修改FI847和FI849

release
yishiqihuasheng 2 years ago
parent 7403e85f44
commit 01448b1d4d
  1. 2
      dxhy-erp/src/main/java/com/dxhy/erp/controller/InterfaceController.java
  2. 10
      dxhy-erp/src/main/java/com/dxhy/erp/service/impl/InvoiceAuthServiceImpl.java

@ -45,6 +45,7 @@ import java.math.BigDecimal;
import java.nio.charset.StandardCharsets; import java.nio.charset.StandardCharsets;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.*; import java.util.*;
import java.util.stream.Collectors;
/** /**
* @author jiaohongyang * @author jiaohongyang
@ -1290,6 +1291,7 @@ public class InterfaceController extends AbstractController {
es.setBSKEY(erpInvoiceData.getIS_INPUT().getBSKEY()); es.setBSKEY(erpInvoiceData.getIS_INPUT().getBSKEY());
es.setZTYPE("S"); es.setZTYPE("S");
es.setZMESSAGE("处理成功"); es.setZMESSAGE("处理成功");
invoices = invoices.stream().filter(e->"0".equals(e.getRzhYesorno())).collect(Collectors.toList());
if(CollectionUtils.isEmpty(invoices)){ if(CollectionUtils.isEmpty(invoices)){
es.setZTYPE("E"); es.setZTYPE("E");
es.setZMESSAGE("底账数据不存在"); es.setZMESSAGE("底账数据不存在");

@ -378,11 +378,11 @@ public class InvoiceAuthServiceImpl extends MpBaseServiceImpl<RecordInvoiceDao,
} }
exitList.add(zdata1); exitList.add(zdata1);
} }
// if (errorMsg.length() > 1) { if (exitList.size() ==0) {
// es.setZMESSAGE(errorMsg.toString() + "不存在"); es.setZMESSAGE(errorMsg.append("发票号码").append(notExit).toString() + "不存在");
// es.setZTYPE("E"); es.setZTYPE("E");
// return es; return es;
// } }
log.info("exitList={}",exitList); log.info("exitList={}",exitList);
for (ZDATA zdata1 : exitList) { for (ZDATA zdata1 : exitList) {
//成功或者失败标识 //成功或者失败标识

Loading…
Cancel
Save