Browse Source

1.欧派日志打印

newStockUp
zhenghaoyu 1 year ago
parent
commit
94cca9dadc
  1. 7
      blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

7
blade-service/logpm-factory/src/main/java/com/logpm/factory/oupai/service/impl/OuPaiFactoryServiceImpl.java

@ -5,7 +5,6 @@ import cn.hutool.http.HttpResponse;
import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
import com.baomidou.mybatisplus.core.toolkit.StringUtils; import com.baomidou.mybatisplus.core.toolkit.StringUtils;
import com.logpm.factory.comfac.service.IAsyncDataService; import com.logpm.factory.comfac.service.IAsyncDataService;
import com.logpm.factory.oupai.entity.*; import com.logpm.factory.oupai.entity.*;
@ -150,7 +149,7 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
try { try {
rabbitTemplate.convertAndSend(RabbitConstant.OUPAI_SIGN_EXCHANGE, RabbitConstant.OUPAI_SIGN_ROUTING, map); rabbitTemplate.convertAndSend(RabbitConstant.OUPAI_SIGN_EXCHANGE, RabbitConstant.OUPAI_SIGN_ROUTING, map);
} catch (Exception e) { } catch (Exception e) {
log.error("############handlePackageData: {}", e.getMessage()); log.error("############handleSignBillData: {}", e.getMessage());
} }
} }
@ -163,13 +162,13 @@ public class OuPaiFactoryServiceImpl implements IOuPaiFactoryService {
try { try {
JSONObject jsonObject = JSONObject.parseObject(opOrderStatusLogEntity.getArgs()); JSONObject jsonObject = JSONObject.parseObject(opOrderStatusLogEntity.getArgs());
JSONArray resultArray = jsonObject.getJSONArray("value"); JSONArray resultArray = jsonObject.getJSONArray("value");
log.info("############handlePackageData: 数据处理开始"); log.info("############handleOutGoingOrderData: 数据处理开始");
//TODO 这里需要添加处理配送发运单的逻辑 //TODO 这里需要添加处理配送发运单的逻辑
opOrderStatusLogEntity.setDataStatus(1); opOrderStatusLogEntity.setDataStatus(1);
} catch (Exception e) { } catch (Exception e) {
log.error("############handlePackageData: {}", e.getMessage()); log.error("############handleOutGoingOrderData: {}", e.getMessage());
opOrderStatusLogEntity.setDataStatus(2); opOrderStatusLogEntity.setDataStatus(2);
} }
opOrderStatusLogService.saveOrUpdate(opOrderStatusLogEntity); opOrderStatusLogService.saveOrUpdate(opOrderStatusLogEntity);

Loading…
Cancel
Save