Browse Source

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

pre-production
zhenghaoyu 3 days ago
parent
commit
294e4bd36c
  1. 1
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceMapper.xml
  2. 8
      blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/service/impl/OpenOrderServiceImpl.java

1
blade-service/logpm-trunkline/src/main/java/com/logpm/trunkline/mapper/TrunklineAdvanceMapper.xml

@ -93,7 +93,6 @@
<select id="selectInfoByIds" resultType="com.logpm.trunkline.vo.OpenOrderVO"> <select id="selectInfoByIds" resultType="com.logpm.trunkline.vo.OpenOrderVO">
select GROUP_CONCAT(DISTINCT brand) brand, select GROUP_CONCAT(DISTINCT brand) brand,
GROUP_CONCAT(DISTINCT train_number) trainNumber, GROUP_CONCAT(DISTINCT train_number) trainNumber,
GROUP_CONCAT(DISTINCT order_code) orderCode,
GROUP_CONCAT(DISTINCT dealer_code) dealerCode, GROUP_CONCAT(DISTINCT dealer_code) dealerCode,
GROUP_CONCAT(DISTINCT dealer_name) dealerName GROUP_CONCAT(DISTINCT dealer_name) dealerName
from logpm_trunkline_advance from logpm_trunkline_advance

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

@ -320,6 +320,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
String dealerName = null; String dealerName = null;
String dealerCode = null; String dealerCode = null;
String brand = null; String brand = null;
Set<String> orderCodeSet = new HashSet<>();
for (TrunklineAdvanceEntity advanceEntity : list) { for (TrunklineAdvanceEntity advanceEntity : list) {
if (StringUtil.isBlank(dealerName)) { if (StringUtil.isBlank(dealerName)) {
dealerName = advanceEntity.getDealerName(); dealerName = advanceEntity.getDealerName();
@ -328,11 +329,13 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
if (StringUtil.isBlank(brand)) { if (StringUtil.isBlank(brand)) {
brand = advanceEntity.getBrand(); brand = advanceEntity.getBrand();
} }
orderCodeSet.add(advanceEntity.getOrderCode());
} }
OpenOrderVO openOrderVO = new OpenOrderVO(); OpenOrderVO openOrderVO = new OpenOrderVO();
//查询品牌 客户车次号 订单自编码 //查询品牌 客户车次号 订单自编码
OpenOrderVO infoByIds = advanceService.selectInfoByIds(advanceIds); OpenOrderVO infoByIds = advanceService.selectInfoByIds(advanceIds);
BeanUtil.copy(infoByIds, openOrderVO); BeanUtil.copy(infoByIds, openOrderVO);
openOrderVO.setOrderCode(String.join(",", orderCodeSet));
openOrderVO.setAdvanceIds(advanceIds); openOrderVO.setAdvanceIds(advanceIds);
BasicdataBrandEntity basicdataBrandEntity = basicdataBrandClient.findEntityByName(brand); BasicdataBrandEntity basicdataBrandEntity = basicdataBrandClient.findEntityByName(brand);
if (!Objects.isNull(basicdataBrandEntity)) { if (!Objects.isNull(basicdataBrandEntity)) {
@ -4051,6 +4054,7 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
String dealerName = null; String dealerName = null;
String brand = null; String brand = null;
Integer totalNum = 0; Integer totalNum = 0;
Set<String> orderCodeSet = new HashSet<>();
for (TrunklineAdvanceEntity advanceEntity : list) { for (TrunklineAdvanceEntity advanceEntity : list) {
if (StringUtil.isBlank(dealerName)) { if (StringUtil.isBlank(dealerName)) {
dealerName = advanceEntity.getDealerName(); dealerName = advanceEntity.getDealerName();
@ -4060,11 +4064,15 @@ public class OpenOrderServiceImpl implements IOpenOrderService {
} }
totalNum = totalNum + advanceEntity.getTotalNum(); totalNum = totalNum + advanceEntity.getTotalNum();
orderCodeSet.add(advanceEntity.getOrderCode());
} }
OpenOrderVO openOrderVO = new OpenOrderVO(); OpenOrderVO openOrderVO = new OpenOrderVO();
//查询品牌 客户车次号 订单自编码 //查询品牌 客户车次号 订单自编码
OpenOrderVO infoByIds = advanceService.selectInfoByIds(advanceIds); OpenOrderVO infoByIds = advanceService.selectInfoByIds(advanceIds);
BeanUtil.copy(infoByIds, openOrderVO); BeanUtil.copy(infoByIds, openOrderVO);
openOrderVO.setOrderCode(String.join(",", orderCodeSet));
openOrderVO.setAdvanceIds(advanceIds); openOrderVO.setAdvanceIds(advanceIds);
//发站仓-----目前登录人的仓库 //发站仓-----目前登录人的仓库
openOrderVO.setDepartureWarehouseName(basicdataWarehouseEntity.getName()); openOrderVO.setDepartureWarehouseName(basicdataWarehouseEntity.getName());

Loading…
Cancel
Save