修复主数据下发%问题

This commit is contained in:
yuqh 2025-01-15 14:11:05 +08:00
parent eeeb63b599
commit 11440a8169
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,7 @@ import cn.hutool.core.date.DateUtil;
import cn.hutool.core.map.MapBuilder; import cn.hutool.core.map.MapBuilder;
import cn.hutool.core.util.StrUtil; import cn.hutool.core.util.StrUtil;
import cn.hutool.http.HttpRequest; import cn.hutool.http.HttpRequest;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.hzya.frame.plugin.kjs.service.IDeliveryOrderPluginService; import com.hzya.frame.plugin.kjs.service.IDeliveryOrderPluginService;
import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity; import com.hzya.frame.sysnew.integtationTaskLivingDetails.entity.IntegrationTaskLivingDetailsEntity;
@ -71,11 +72,13 @@ public class DeliveryOrderPluginServiceImpl extends KjsPluginBaseService impleme
List<DeliveryOrderEntity> orderList = deliveryOrderService.query(orderEntity); List<DeliveryOrderEntity> orderList = deliveryOrderService.query(orderEntity);
if (CollectionUtils.isNotEmpty(orderList)){ if (CollectionUtils.isNotEmpty(orderList)){
for (DeliveryOrderEntity order : orderList) { for (DeliveryOrderEntity order : orderList) {
logger.info("表头数据{}", JSON.toJSONString(order));
try { try {
//2 查询发货单明细表 //2 查询发货单明细表
DeliveryDetailEntity detailEntity = new DeliveryDetailEntity(); DeliveryDetailEntity detailEntity = new DeliveryDetailEntity();
detailEntity.setDlid(order.getDlid()); detailEntity.setDlid(order.getDlid());
detailEntity.setDataSourceCode(datasourceCode); detailEntity.setDataSourceCode(datasourceCode);
detailEntity.setDbname(order.getDbname());
List<DeliveryDetailEntity> detailList = deliveryDetaiService.query(detailEntity); List<DeliveryDetailEntity> detailList = deliveryDetaiService.query(detailEntity);
//发货单表头entity转dto //发货单表头entity转dto
DeliveryOrderDTO deliveryOrderDTO = DeliveryMapper.INSTANCE.deliveryEntityToDto(order); DeliveryOrderDTO deliveryOrderDTO = DeliveryMapper.INSTANCE.deliveryEntityToDto(order);