|
|
@ -97,6 +97,9 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
@Resource |
|
|
|
@Resource |
|
|
|
private RedissonService redissonService; |
|
|
|
private RedissonService redissonService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Value("${exculd.nsrsbh}") |
|
|
|
|
|
|
|
private String exculdNsrsbh; |
|
|
|
|
|
|
|
|
|
|
|
//订单读入
|
|
|
|
//订单读入
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public R orderRead(ReqParam reqParam) { |
|
|
|
public R orderRead(ReqParam reqParam) { |
|
|
@ -309,19 +312,28 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
log.debug("cdlCodeList:{}", JSON.toJSONString(ddhList)); |
|
|
|
log.debug("cdlCodeList:{}", JSON.toJSONString(ddhList)); |
|
|
|
for (String cdlCode : ddhList) { |
|
|
|
for (String cdlCode : ddhList) { |
|
|
|
DynamicContextHolder.push(nsrsbh); |
|
|
|
DynamicContextHolder.push(nsrsbh); |
|
|
|
List<InvoiceBpmmap> ddbhList = yyOrderMapper.getDdbh(cdlCode); |
|
|
|
log.debug("exculdNsrsbh:{}", exculdNsrsbh); |
|
|
|
log.debug("查询到中间表信息:{}", JSON.toJSONString(ddbhList)); |
|
|
|
if (StringUtils.isNotBlank(exculdNsrsbh) && Arrays.asList(exculdNsrsbh.split(",")).contains(nsrsbh)){ |
|
|
|
if (CollectionUtils.isNotEmpty(ddbhList)) { |
|
|
|
NewTable newTableFull = new NewTable(); |
|
|
|
for (InvoiceBpmmap invoiceBpmmap : ddbhList) { |
|
|
|
BeanUtil.copyProperties(newTable, newTableFull); |
|
|
|
NewTable newTableFull = new NewTable(); |
|
|
|
newTableFull.setCDLCode(cdlCode); |
|
|
|
BeanUtil.copyProperties(newTable, newTableFull); |
|
|
|
DynamicContextHolder.push(ConfigureConstant.MAIN); |
|
|
|
newTableFull.setBpmNo(invoiceBpmmap.getBpmno()); |
|
|
|
count += tInvoiceInvmapMapper.insertBackMsg(newTableFull); |
|
|
|
newTableFull.setBpmlsNo(invoiceBpmmap.getBpmlsno()); |
|
|
|
}else { |
|
|
|
newTableFull.setCDLCode(cdlCode); |
|
|
|
List<InvoiceBpmmap> ddbhList = yyOrderMapper.getDdbh(cdlCode); |
|
|
|
DynamicContextHolder.push(ConfigureConstant.MAIN); |
|
|
|
log.debug("查询到中间表信息:{}", JSON.toJSONString(ddbhList)); |
|
|
|
count += tInvoiceInvmapMapper.insertBackMsg(newTableFull); |
|
|
|
if (CollectionUtils.isNotEmpty(ddbhList)) { |
|
|
|
} |
|
|
|
for (InvoiceBpmmap invoiceBpmmap : ddbhList) { |
|
|
|
|
|
|
|
NewTable newTableFull = new NewTable(); |
|
|
|
|
|
|
|
BeanUtil.copyProperties(newTable, newTableFull); |
|
|
|
|
|
|
|
newTableFull.setBpmNo(invoiceBpmmap.getBpmno()); |
|
|
|
|
|
|
|
newTableFull.setBpmlsNo(invoiceBpmmap.getBpmlsno()); |
|
|
|
|
|
|
|
newTableFull.setCDLCode(cdlCode); |
|
|
|
|
|
|
|
DynamicContextHolder.push(ConfigureConstant.MAIN); |
|
|
|
|
|
|
|
count += tInvoiceInvmapMapper.insertBackMsg(newTableFull); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -366,10 +378,10 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
yyOrderInfo.setHsje(hsje.setScale(ConfigureConstant.INT_2, RoundingMode.HALF_UP).toPlainString()); |
|
|
|
yyOrderInfo.setHsje(hsje.setScale(ConfigureConstant.INT_2, RoundingMode.HALF_UP).toPlainString()); |
|
|
|
yyOrderInfo.setSe(se.setScale(ConfigureConstant.INT_2, RoundingMode.HALF_UP).toPlainString()); |
|
|
|
yyOrderInfo.setSe(se.setScale(ConfigureConstant.INT_2, RoundingMode.HALF_UP).toPlainString()); |
|
|
|
yyOrderInfo.setBz(bz.toString()); |
|
|
|
yyOrderInfo.setBz(bz.toString()); |
|
|
|
if (yyOrderInfo.getCvouchtype().equals(ConfigureConstant.STRING_26)) { |
|
|
|
if (ConfigureConstant.STRING_26.equals(yyOrderInfo.getCvouchtype())) { |
|
|
|
yyOrderInfo.setCvouchtype(ConfigureConstant.STRING_001); |
|
|
|
yyOrderInfo.setCvouchtype(ConfigureConstant.STRING_001); |
|
|
|
} |
|
|
|
} |
|
|
|
if (yyOrderInfo.getCvouchtype().equals(ConfigureConstant.STRING_27)) { |
|
|
|
if (ConfigureConstant.STRING_27.equals(yyOrderInfo.getCvouchtype())) { |
|
|
|
yyOrderInfo.setCvouchtype(ConfigureConstant.STRING_002); |
|
|
|
yyOrderInfo.setCvouchtype(ConfigureConstant.STRING_002); |
|
|
|
} |
|
|
|
} |
|
|
|
yyOrderInfoMapper.insertYyOrderInfo(yyOrderInfo); |
|
|
|
yyOrderInfoMapper.insertYyOrderInfo(yyOrderInfo); |
|
|
@ -422,7 +434,7 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
// ddtxxBO.setSFZSXFYHZH(ebsOrderInfo.getSalebankAccountJud());
|
|
|
|
// ddtxxBO.setSFZSXFYHZH(ebsOrderInfo.getSalebankAccountJud());
|
|
|
|
ddtxxBO.setGMFLX("04"); |
|
|
|
ddtxxBO.setGMFLX("04"); |
|
|
|
ddtxxBO.setBYZD1(yyOrderInfo.getYscdlcode()); |
|
|
|
ddtxxBO.setBYZD1(yyOrderInfo.getYscdlcode()); |
|
|
|
|
|
|
|
ddtxxBO.setBYZD2(yyOrderInfo.getCpznum()); |
|
|
|
|
|
|
|
|
|
|
|
String invoiceAmount = ConfigureConstant.STRING_0; |
|
|
|
String invoiceAmount = ConfigureConstant.STRING_0; |
|
|
|
String taxAmount = ConfigureConstant.STRING_0; |
|
|
|
String taxAmount = ConfigureConstant.STRING_0; |
|
|
|