|
|
|
@ -97,6 +97,9 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
|
@Resource |
|
|
|
|
private RedissonService redissonService; |
|
|
|
|
|
|
|
|
|
@Value("${exculd.nsrsbh}") |
|
|
|
|
private String exculdNsrsbh; |
|
|
|
|
|
|
|
|
|
//订单读入
|
|
|
|
|
@Override |
|
|
|
|
public R orderRead(ReqParam reqParam) { |
|
|
|
@ -309,6 +312,13 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
|
log.debug("cdlCodeList:{}", JSON.toJSONString(ddhList)); |
|
|
|
|
for (String cdlCode : ddhList) { |
|
|
|
|
DynamicContextHolder.push(nsrsbh); |
|
|
|
|
if (StringUtils.isNotBlank(exculdNsrsbh) && Arrays.asList(exculdNsrsbh.split(",")).contains(nsrsbh)){ |
|
|
|
|
NewTable newTableFull = new NewTable(); |
|
|
|
|
BeanUtil.copyProperties(newTable, newTableFull); |
|
|
|
|
newTableFull.setCDLCode(cdlCode); |
|
|
|
|
DynamicContextHolder.push(ConfigureConstant.MAIN); |
|
|
|
|
count += tInvoiceInvmapMapper.insertBackMsg(newTableFull); |
|
|
|
|
}else { |
|
|
|
|
List<InvoiceBpmmap> ddbhList = yyOrderMapper.getDdbh(cdlCode); |
|
|
|
|
log.debug("查询到中间表信息:{}", JSON.toJSONString(ddbhList)); |
|
|
|
|
if (CollectionUtils.isNotEmpty(ddbhList)) { |
|
|
|
@ -324,6 +334,7 @@ public class YyOrderServiceImpl implements OrderService { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|