Browse Source

Merge remote-tracking branch 'origin/dev' into dev

pre-production
pref_mail@163.com 2 days ago
parent
commit
229529ad98
  1. 2
      blade-service-api/logpm-statisticsdata-api/src/main/java/com/logpm/statistics/entity/ExpenseDispatchTrainDetailEntity.java
  2. 124
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/entity/FactoryNodePushEntity.java
  3. 16
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/mapper/FactoryNodePushMapper.java
  4. 5
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/mapper/FactoryNodePushMapper.xml
  5. 14
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/service/FactoryNodePushService.java
  6. 50
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/service/impl/FactoryDataServiceImpl.java
  7. 22
      blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/service/impl/FactoryNodePushServiceImpl.java
  8. 2
      blade-service/logpm-report/src/main/java/com/logpm/report/vo/ReportPackgeStartTimeVO.java
  9. 16
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java
  10. 12
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

2
blade-service-api/logpm-statisticsdata-api/src/main/java/com/logpm/statistics/entity/ExpenseDispatchTrainDetailEntity.java

@ -73,7 +73,7 @@ public class ExpenseDispatchTrainDetailEntity extends TenantEntity {
* 配送日期 * 配送日期
*/ */
@ApiModelProperty(value = "配送日期") @ApiModelProperty(value = "配送日期")
@ExcelProperty("车次号") @ExcelProperty("配送日期")
private String deliveryDate; private String deliveryDate;
/** /**
* 车次完成时间 * 车次完成时间

124
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/entity/FactoryNodePushEntity.java

@ -0,0 +1,124 @@
package com.logpm.factorydata.suofeiya.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springblade.core.mp.base.BaseEntity;
/**
* 索菲亚工厂节点数据推送记录表
*
* @Author zqb
* @Date 2024/3/26
**/
@Builder
@Data
@TableName("sfy_factory_node_push")
@ApiModel(value = "索菲亚工厂节点数据推送记录表", description = "索菲亚工厂节点数据推送记录表")
@EqualsAndHashCode(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class FactoryNodePushEntity extends BaseEntity {
/**
* 预留1
*/
@ApiModelProperty(value = "预留1")
private String reserve1;
/**
* 预留2
*/
@ApiModelProperty(value = "预留2")
private String reserve2;
/**
* 预留3
*/
@ApiModelProperty(value = "预留3")
private String reserve3;
/**
* 预留4
*/
@ApiModelProperty(value = "预留4")
private String reserve4;
/**
* 预留5
*/
@ApiModelProperty(value = "预留5")
private String reserve5;
/**
* 订单类型
*/
@ApiModelProperty(value = "订单类型")
private String orderType;
/**
* 操作节点
*/
@ApiModelProperty(value = "操作节点")
private String logisticsStatus;
/**
* 包条码
*/
@ApiModelProperty(value = "包条码")
private String packageCode;
/**
* 发货单号
*/
@ApiModelProperty(value = "发货单号")
private String shipPlanNo;
/**
* 公司
*/
@ApiModelProperty(value = "公司")
private String companyCode;
/**
* 时间戳
*/
@ApiModelProperty(value = "时间戳")
private Long timestamp;
/**
* 加密字符
*/
@ApiModelProperty(value = "加密字符")
private String digest;
/**
* 发送状态
*/
@ApiModelProperty(value = "发送状态(0:成功,-1:失败,1:取消)")
private String sendStatus;
/**
* 加密秘钥
*/
@ApiModelProperty(value = "加密秘钥")
private String appKey;
/**
* url
*/
@ApiModelProperty(value = "url")
private String sendUrl;
/**
* 内容
*/
@ApiModelProperty(value = "内容")
private String content;
/**
* 返回值
*/
@ApiModelProperty(value = "返回值")
private String resultContent;
/**
* 租户
*/
@ApiModelProperty(value = "租户")
private String tenantCode;
/**
* 作业仓库
*/
@ApiModelProperty(value = "作业仓库")
private String warehouse;
}

16
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/mapper/FactoryNodePushMapper.java

@ -0,0 +1,16 @@
package com.logpm.factorydata.suofeiya.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.logpm.factorydata.suofeiya.entity.FactoryNodePushEntity;
import org.apache.ibatis.annotations.Mapper;
/**
* 索菲亚工厂节点数据推送记录表 mapper
*
* @author zqb
* @since 2024-03-26
*/
@Mapper
public interface FactoryNodePushMapper extends BaseMapper<FactoryNodePushEntity> {
}

5
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/mapper/FactoryNodePushMapper.xml

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.logpm.factorydata.suofeiya.mapper.FactoryNodePushMapper">
</mapper>

14
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/service/FactoryNodePushService.java

@ -0,0 +1,14 @@
package com.logpm.factorydata.suofeiya.service;
import com.logpm.factorydata.suofeiya.entity.FactoryNodePushEntity;
import org.springblade.core.mp.base.BaseService;
/**
* 索菲亚工厂节点数据推送记录表 服务类
*
* @Author zqb
* @Date 2024/4/26
**/
public interface FactoryNodePushService extends BaseService<FactoryNodePushEntity> {
}

50
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/service/impl/FactoryDataServiceImpl.java

@ -18,6 +18,7 @@ import cn.hutool.json.JSONUtil;
import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.logpm.factorydata.enums.SaxStatusEnums; import com.logpm.factorydata.enums.SaxStatusEnums;
import com.logpm.factorydata.suofeiya.entity.DeliveryNoteEntity; import com.logpm.factorydata.suofeiya.entity.DeliveryNoteEntity;
import com.logpm.factorydata.suofeiya.entity.FactoryNodePushEntity;
import com.logpm.factorydata.suofeiya.entity.FactoryOrderLogEntity; import com.logpm.factorydata.suofeiya.entity.FactoryOrderLogEntity;
import com.logpm.factorydata.suofeiya.entity.OrderInfoEntity; import com.logpm.factorydata.suofeiya.entity.OrderInfoEntity;
import com.logpm.factorydata.suofeiya.entity.PackageInfoEntity; import com.logpm.factorydata.suofeiya.entity.PackageInfoEntity;
@ -28,6 +29,7 @@ import com.logpm.factorydata.suofeiya.pros.FactoryDataSuoFeiYaProperties;
import com.logpm.factorydata.suofeiya.pros.OldProperties; import com.logpm.factorydata.suofeiya.pros.OldProperties;
import com.logpm.factorydata.suofeiya.service.DeliveryNoteService; import com.logpm.factorydata.suofeiya.service.DeliveryNoteService;
import com.logpm.factorydata.suofeiya.service.FactoryDataService; import com.logpm.factorydata.suofeiya.service.FactoryDataService;
import com.logpm.factorydata.suofeiya.service.FactoryNodePushService;
import com.logpm.factorydata.suofeiya.service.FactoryOrderLogService; import com.logpm.factorydata.suofeiya.service.FactoryOrderLogService;
import com.logpm.factorydata.suofeiya.service.OrderInfoService; import com.logpm.factorydata.suofeiya.service.OrderInfoService;
import com.logpm.factorydata.suofeiya.service.PackageInfoService; import com.logpm.factorydata.suofeiya.service.PackageInfoService;
@ -68,6 +70,7 @@ public class FactoryDataServiceImpl implements FactoryDataService {
private final FactoryOrderLogService logService; private final FactoryOrderLogService logService;
private final OldProperties oldProperties; private final OldProperties oldProperties;
private final FactoryDataSuoFeiYaProperties dataSuoFeiYaProperties; private final FactoryDataSuoFeiYaProperties dataSuoFeiYaProperties;
private final FactoryNodePushService factoryNodePushService;
@Override @Override
@Transactional(rollbackFor = Exception.class) @Transactional(rollbackFor = Exception.class)
@ -198,6 +201,7 @@ public class FactoryDataServiceImpl implements FactoryDataService {
// 按订单号和运单号进行分组 // 按订单号和运单号进行分组
if (CollUtil.isNotEmpty(content)) { if (CollUtil.isNotEmpty(content)) {
for (Map.Entry<String, Set<String>> entry : packageCodeMap.entrySet()) { for (Map.Entry<String, Set<String>> entry : packageCodeMap.entrySet()) {
FactoryNodePushEntity nodePushEntity = new FactoryNodePushEntity();
String key = entry.getKey(); String key = entry.getKey();
Set<String> value = entry.getValue(); Set<String> value = entry.getValue();
JSONObject jsons = new JSONObject(); JSONObject jsons = new JSONObject();
@ -221,11 +225,23 @@ public class FactoryDataServiceImpl implements FactoryDataService {
packages.add(js); packages.add(js);
} }
} }
if (CollUtil.isNotEmpty(packages)) {
String paNo = packages.stream().map(i -> i.getStr("paNo")).collect(Collectors.joining(","));
nodePushEntity.setPackageCode(paNo);
}
jsons.set("packageInfo", new JSONArray(packages)); jsons.set("packageInfo", new JSONArray(packages));
if(StrUtil.equals(key, "Z")){ if (StrUtil.equals(key, "Z")) {
jsons.set("orderType", key); jsons.set("orderType", key);
nodePushEntity.setOrderType(key);
} }
nodePushEntity.setLogisticsStatus(factoryNode.getText());
String jsonStr = JSONUtil.toJsonStr(jsons); String jsonStr = JSONUtil.toJsonStr(jsons);
nodePushEntity.setContent(jsonStr);
nodePushEntity.setTenantCode(AuthUtil.getTenantId());
nodePushEntity.setAppKey(appKey);
nodePushEntity.setCompanyCode(companyCode);
nodePushEntity.setTimestamp(time);
nodePushEntity.setWarehouse(entries.getStr("warehouse"));
if (oldProperties.getEnable()) { if (oldProperties.getEnable()) {
try { try {
log.info("推送节点数据:{}", jsonStr); log.info("推送节点数据:{}", jsonStr);
@ -238,7 +254,7 @@ public class FactoryDataServiceImpl implements FactoryDataService {
} }
if (dataSuoFeiYaProperties.getPush().getPushEnable()) { if (dataSuoFeiYaProperties.getPush().getPushEnable()) {
String paStatusUrl = dataSuoFeiYaProperties.getPush().getPaStatusUrl(); String paStatusUrl = dataSuoFeiYaProperties.getPush().getPaStatusUrl();
sendFactory(companyCode, jsonStr, time, appKey, paStatusUrl); sendFactory(companyCode, jsonStr, time, appKey, paStatusUrl, nodePushEntity);
} }
} }
} }
@ -246,6 +262,7 @@ public class FactoryDataServiceImpl implements FactoryDataService {
// 推送配送单计划 // 推送配送单计划
if (CollUtil.isNotEmpty(content)) { if (CollUtil.isNotEmpty(content)) {
for (Map.Entry<String, Set<String>> entry : packageCodeMap.entrySet()) { for (Map.Entry<String, Set<String>> entry : packageCodeMap.entrySet()) {
FactoryNodePushEntity nodePushEntity = new FactoryNodePushEntity();
String key = entry.getKey(); String key = entry.getKey();
Set<String> value = entry.getValue(); Set<String> value = entry.getValue();
JSONObject jsons = new JSONObject(); JSONObject jsons = new JSONObject();
@ -262,9 +279,14 @@ public class FactoryDataServiceImpl implements FactoryDataService {
packages.add(pushData.getPackageCode()); packages.add(pushData.getPackageCode());
} }
} }
if (CollUtil.isNotEmpty(packages)) {
String paNo = packages.stream().collect(Collectors.joining(","));
nodePushEntity.setPackageCode(paNo);
}
if (StrUtil.isNotEmpty(main)) { if (StrUtil.isNotEmpty(main)) {
JSONObject jsonObject = JSONUtil.parseObj(main); JSONObject jsonObject = JSONUtil.parseObj(main);
jsons.set("shipPlanNo", jsonObject.getStr("trainNumber")); jsons.set("shipPlanNo", jsonObject.getStr("trainNumber"));
nodePushEntity.setShipPlanNo(jsonObject.getStr("trainNumber"));
jsons.set("receiver", jsonObject.getStr("receiver")); jsons.set("receiver", jsonObject.getStr("receiver"));
jsons.set("receiveAddr", jsonObject.getStr("receiveAddr")); jsons.set("receiveAddr", jsonObject.getStr("receiveAddr"));
jsons.set("receiveTel", jsonObject.getStr("receiveTel")); jsons.set("receiveTel", jsonObject.getStr("receiveTel"));
@ -273,10 +295,18 @@ public class FactoryDataServiceImpl implements FactoryDataService {
jsons.set("paNo", JSONUtil.toJsonStr(packages)); jsons.set("paNo", JSONUtil.toJsonStr(packages));
jsons.set("remark", ""); jsons.set("remark", "");
jsons.set("orderExtendFields", new JSONArray()); jsons.set("orderExtendFields", new JSONArray());
if(StrUtil.equals(key, "Z")){ if (StrUtil.equals(key, "Z")) {
jsons.set("orderType", key); jsons.set("orderType", key);
nodePushEntity.setOrderType(key);
} }
nodePushEntity.setLogisticsStatus(factoryNode.getText());
String jsonStr = JSONUtil.toJsonStr(jsons); String jsonStr = JSONUtil.toJsonStr(jsons);
nodePushEntity.setContent(jsonStr);
nodePushEntity.setTenantCode(AuthUtil.getTenantId());
nodePushEntity.setAppKey(appKey);
nodePushEntity.setCompanyCode(companyCode);
nodePushEntity.setTimestamp(time);
nodePushEntity.setWarehouse(entries.getStr("warehouse"));
if (oldProperties.getEnable()) { if (oldProperties.getEnable()) {
try { try {
log.info("推送节点数据:{}", jsonStr); log.info("推送节点数据:{}", jsonStr);
@ -289,14 +319,14 @@ public class FactoryDataServiceImpl implements FactoryDataService {
} }
if (dataSuoFeiYaProperties.getPush().getPushEnable()) { if (dataSuoFeiYaProperties.getPush().getPushEnable()) {
String paStatusUrl = dataSuoFeiYaProperties.getPush().getShipPlanUrl(); String paStatusUrl = dataSuoFeiYaProperties.getPush().getShipPlanUrl();
sendFactory(companyCode, jsonStr, time, appKey, paStatusUrl); sendFactory(companyCode, jsonStr, time, appKey, paStatusUrl, nodePushEntity);
} }
} }
} }
} }
} }
private void sendFactory(String companyCode, String jsonStr, Long time, String appKey, String paStatusUrl) { private void sendFactory(String companyCode, String jsonStr, Long time, String appKey, String paStatusUrl, FactoryNodePushEntity nodePushEntity) {
try { try {
Map<String, Object> param = new HashMap<>(); Map<String, Object> param = new HashMap<>();
param.put("companyCode", companyCode); param.put("companyCode", companyCode);
@ -306,8 +336,18 @@ public class FactoryDataServiceImpl implements FactoryDataService {
String digest = MD5.create().digestHex(jsonStr + appKey + time); String digest = MD5.create().digestHex(jsonStr + appKey + time);
String encode = Base64.encode(digest); String encode = Base64.encode(digest);
param.put("digest", encode); param.put("digest", encode);
nodePushEntity.setDigest(digest);
nodePushEntity.setSendUrl(dataSuoFeiYaProperties.getPush().getPushHost() + paStatusUrl);
log.info("推送节点数据:{}", JSONUtil.toJsonStr(param)); log.info("推送节点数据:{}", JSONUtil.toJsonStr(param));
String post = HttpUtil.post(dataSuoFeiYaProperties.getPush().getPushHost() + paStatusUrl, param); String post = HttpUtil.post(dataSuoFeiYaProperties.getPush().getPushHost() + paStatusUrl, param);
nodePushEntity.setResultContent(post);
JSONObject entries = JSONUtil.parseObj(post);
if (StrUtil.equals(entries.getStr("result_code"), "0000")) {
nodePushEntity.setSendStatus("0");
} else {
nodePushEntity.setSendStatus("-1");
}
factoryNodePushService.save(nodePushEntity);
log.info("推送结果:{}", post); log.info("推送结果:{}", post);
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();

22
blade-service/logpm-factory-data/logpm-factory-data-suofeiya/src/main/java/com/logpm/factorydata/suofeiya/service/impl/FactoryNodePushServiceImpl.java

@ -0,0 +1,22 @@
package com.logpm.factorydata.suofeiya.service.impl;
import com.logpm.factorydata.suofeiya.entity.FactoryNodePushEntity;
import com.logpm.factorydata.suofeiya.mapper.FactoryNodePushMapper;
import com.logpm.factorydata.suofeiya.service.FactoryNodePushService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
/**
* 索菲亚工厂节点数据推送记录表 业务实现类
*
* @Author zqb
* @Date 2024/4/26
**/
@Slf4j
@Service
@AllArgsConstructor
public class FactoryNodePushServiceImpl extends BaseServiceImpl<FactoryNodePushMapper, FactoryNodePushEntity> implements FactoryNodePushService {
}

2
blade-service/logpm-report/src/main/java/com/logpm/report/vo/ReportPackgeStartTimeVO.java

@ -28,7 +28,7 @@ public class ReportPackgeStartTimeVO implements Serializable {
@ExcelProperty(value = "未发运件数") @ExcelProperty(value = "未发运件数")
private Integer noOutNum; private Integer noOutNum;
@ExcelProperty(value = "发运超时件数") @ExcelProperty(value = "发运超时件数")
private Integer noOutOverNum; private Integer noOutOverNum;
@ExcelProperty(value = "准时发运件数") @ExcelProperty(value = "准时发运件数")

16
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

@ -636,7 +636,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
//如果发货单位没有id值,则把发货单位信息自动添加到client中 //如果发货单位没有id值,则把发货单位信息自动添加到client中
BasicdataClientEntity clientEntity = basicdataClientClient.findByName(shipper); BasicdataClientEntity clientEntity = basicdataClientClient.findByName(shipper);
if(Objects.isNull(clientEntity)){ if(Objects.isNull(clientEntity)){
shipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "6"); shipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "7");
}else{ }else{
shipperId = clientEntity.getId(); shipperId = clientEntity.getId();
} }
@ -654,7 +654,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
//如果收货单位没有id值,则把收货单位信息自动添加到client中 //如果收货单位没有id值,则把收货单位信息自动添加到client中
BasicdataClientEntity clientEntity = basicdataClientClient.findByName(consignee); BasicdataClientEntity clientEntity = basicdataClientClient.findByName(consignee);
if(Objects.isNull(clientEntity)){ if(Objects.isNull(clientEntity)){
consigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "2"); consigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "7");
}else{ }else{
consigneeId = clientEntity.getId(); consigneeId = clientEntity.getId();
} }
@ -1010,7 +1010,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
//如果发货单位没有id值,则把发货单位信息自动添加到client中 //如果发货单位没有id值,则把发货单位信息自动添加到client中
BasicdataClientEntity clientEntity = basicdataClientClient.findByName(shipper); BasicdataClientEntity clientEntity = basicdataClientClient.findByName(shipper);
if(Objects.isNull(clientEntity)){ if(Objects.isNull(clientEntity)){
shipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "6"); shipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "7");
}else{ }else{
shipperId = clientEntity.getId(); shipperId = clientEntity.getId();
} }
@ -1028,7 +1028,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
//如果收货单位没有id值,则把收货单位信息自动添加到client中 //如果收货单位没有id值,则把收货单位信息自动添加到client中
BasicdataClientEntity clientEntity = basicdataClientClient.findByName(consignee); BasicdataClientEntity clientEntity = basicdataClientClient.findByName(consignee);
if(Objects.isNull(clientEntity)){ if(Objects.isNull(clientEntity)){
consigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "2"); consigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "7");
}else{ }else{
consigneeId = clientEntity.getId(); consigneeId = clientEntity.getId();
} }
@ -4037,7 +4037,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
Long shipperId = openOrderDTO.getShipperId(); Long shipperId = openOrderDTO.getShipperId();
if (Objects.isNull(shipperId)) { if (Objects.isNull(shipperId)) {
//如果发货单位没有id值,则把发货单位信息自动添加到client中 //如果发货单位没有id值,则把发货单位信息自动添加到client中
shipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "6"); shipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "7");
} }
waybillEntity.setShipperId(shipperId); waybillEntity.setShipperId(shipperId);
waybillEntity.setShipper(openOrderDTO.getShipper()); waybillEntity.setShipper(openOrderDTO.getShipper());
@ -4048,7 +4048,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
Long consigneeId = openOrderDTO.getConsigneeId();//收货单位id Long consigneeId = openOrderDTO.getConsigneeId();//收货单位id
if (Objects.isNull(consigneeId)) { if (Objects.isNull(consigneeId)) {
//如果收货单位没有id值,则把收货单位信息自动添加到client中 //如果收货单位没有id值,则把收货单位信息自动添加到client中
consigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "2"); consigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "7");
} }
waybillEntity.setConsigneeId(consigneeId); waybillEntity.setConsigneeId(consigneeId);
waybillEntity.setConsignee(openOrderDTO.getConsignee()); waybillEntity.setConsignee(openOrderDTO.getConsignee());
@ -5491,7 +5491,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
if(Objects.isNull(newShipperId)){ if(Objects.isNull(newShipperId)){
BasicdataClientEntity clientEntity = basicdataClientClient.findByName(newShipper); BasicdataClientEntity clientEntity = basicdataClientClient.findByName(newShipper);
if(Objects.isNull(clientEntity)){ if(Objects.isNull(clientEntity)){
newShipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "6"); newShipperId = saveNewClient(openOrderDTO.getShipper(), openOrderDTO.getShipperName(), openOrderDTO.getShipperMobile(), openOrderDTO.getShipperAddress(), "7");
}else{ }else{
newShipperId = clientEntity.getId(); newShipperId = clientEntity.getId();
} }
@ -5531,7 +5531,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
waybillEntity.setServiceType(1); waybillEntity.setServiceType(1);
BasicdataClientEntity clientEntity = basicdataClientClient.findByName(newConsignee); BasicdataClientEntity clientEntity = basicdataClientClient.findByName(newConsignee);
if(Objects.isNull(clientEntity)){ if(Objects.isNull(clientEntity)){
newConsigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "2"); newConsigneeId = saveNewClient(openOrderDTO.getConsignee(), openOrderDTO.getConsigneeName(), openOrderDTO.getConsigneeMobile(), openOrderDTO.getConsigneeAddress(), "7");
}else{ }else{
newConsigneeId = clientEntity.getId(); newConsigneeId = clientEntity.getId();
waybillEntity.setServiceType(clientEntity.getTypeService()); waybillEntity.setServiceType(clientEntity.getTypeService());

12
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/TrunklineCarsLoadServiceImpl.java

@ -11648,11 +11648,13 @@ public class TrunklineCarsLoadServiceImpl extends BaseServiceImpl<TrunklineCarsL
//判断包件是否已入库 //判断包件是否已入库
DistributionParcelListEntity distributionParcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId); DistributionParcelListEntity distributionParcelListEntity = distributionParcelListClient.findByPacketBarCodeAndWarehouseId(orderPackageCode, warehouseId);
if (!Objects.isNull(distributionParcelListEntity)) { if (!Objects.isNull(distributionParcelListEntity)) {
String orderPackageStatus = distributionParcelListEntity.getOrderPackageStatus(); // String orderPackageStatus = distributionParcelListEntity.getOrderPackageStatus();
if ("20".equals(orderPackageStatus) || "30".equals(orderPackageStatus)) { // if ("20".equals(orderPackageStatus) || "30".equals(orderPackageStatus)) {
log.warn("##############unloadPackage: 包件已入库 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId); // log.warn("##############unloadPackage: 包件已入库 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId);
return Resp.scanFail(200,"包件已入库", "包件已入库"); // return Resp.scanFail(200,"包件已入库", "包件已入库");
} // }
log.warn("##############unloadPackage: 包件已入库 orderPackageCode={} warehouseId={}", orderPackageCode, warehouseId);
return Resp.scanFail(200,"包件已入库", "包件已入库");
} }

Loading…
Cancel
Save