Browse Source

已签订单BUG修复

dist.1.3.0
汤建军 6 months ago
parent
commit
ea4ccc2aa4
  1. 3
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionBillLadingScanEntity.java
  2. 5
      blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java
  3. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockArticleController.java
  4. 4
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionParcelListExcel.java
  5. 47
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
  6. 7
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java
  7. 270
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml
  8. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockArticleService.java
  9. 6
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

3
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/entity/DistributionBillLadingScanEntity.java

@ -75,4 +75,7 @@ public class DistributionBillLadingScanEntity extends BaseEntity {
@ApiModelProperty(value = "扫描操作人")
private String scanUser;
@ApiModelProperty(value = "签收方式1 扫描签收 2PDA批量操作 3文员PC操作")
private Integer signforType;
}

5
blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionParcelListVO.java

@ -126,6 +126,11 @@ public class DistributionParcelListVO extends DistributionParcelListEntity {
*/
private Integer loadingNub;
/**
* 装车数量
*/
private Integer signforType;
/**
* 签收数量
*/

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/controller/DistributionStockArticleController.java

@ -637,7 +637,7 @@ public class DistributionStockArticleController extends BladeController {
@ApiOperationSupport(order = 2)
@ApiOperation(value = "已签收订单 导出", notes = "传入distributionStockArticle")
public void exportSignforDistributionStockArticleList(@ApiIgnore @RequestParam Map<String, Object> distributionStockArticle, Query query, HttpServletResponse response) {
List<DistributionSignForStockArticleExcel> list = distributionStockArticleService.exportSignforDistributionStockArticleList(distributionStockArticle, Condition.getPage(query));
List<DistributionSignForStockArticleExcel> list = distributionStockArticleService.exportSignforDistributionStockArticleList(distributionStockArticle);
ExcelUtil.export(response, "在库订单明细" + DateUtil.time(), "在库订单明细", list, DistributionSignForStockArticleExcel.class);
}

4
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/excel/DistributionParcelListExcel.java

@ -123,6 +123,10 @@ public class DistributionParcelListExcel implements Serializable {
@ExcelProperty("实际签收人")
private String signingUser;
@ColumnWidth(20)
@ExcelProperty("签收方式")
private String signingType;
@ColumnWidth(20)
@ExcelProperty("车次号")
private String trainNumber;

47
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml

@ -89,6 +89,7 @@
ldpl.waybill_number waybillNumber,
ldsa.type_service typeService,
ldpl.order_code,
IF(c.signfor_type IS NOT NULL, c.signfor_type, IF ( b.signfor_type IS NOT NULL, b.pickup_batch, a.signfor_type )) AS signforType,
IF(c.reservation_code is not null,c.reservation_code,IF(b.pickup_batch is not null,b.pickup_batch,a.reservation_code)) AS reservationCode,
IF(c.driver_name is not null,c.driver_name,IF(b.consignee is not null,b.consignee,a.driver_name)) AS driverName,
IF(c.vehicle_name is not null,c.vehicle_name,IF(b.pick_up_plate is not null,b.pick_up_plate,a.vehicle_name)) AS vehicleName,
@ -117,7 +118,12 @@
ldl.signing_time,
ldl.scan_user,
ldl.signing_user,
ldr.reservation_code
ldr.reservation_code,
CASE ldl.signfor_type
WHEN 1 THEN '扫描签收'
WHEN 2 THEN '司机批量'
WHEN 3 THEN '文员签收'
END signfor_type
FROM logpm_distribution_reservation_package ldrp
LEFT JOIN logpm_distribution_loadscan ldl on ldl.package_id = ldrp.parce_list_id and ldl.scan_status !=1 AND ldl.is_deleted = 0
LEFT JOIN logpm_distribution_reservation ldr on ldr.id = ldrp.reservation_id
@ -164,7 +170,12 @@
ldbls.create_time AS scan_time,
ldbls.create_time AS signing_time,
ldbls.scan_user AS scan_user,
ldbls.scan_user AS signing_user
ldbls.scan_user AS signing_user,
CASE ldbls.signfor_type
WHEN 1 THEN '扫描签收'
WHEN 2 THEN '司机批量'
WHEN 3 THEN '文员签收'
END signfor_type
FROM
logpm_distrilbution_bill_package AS ldbp
LEFT JOIN logpm_distrilbution_bill_lading ldbl ON ldbl.id = ldbp.bill_lading_id
@ -207,7 +218,12 @@
IF(ldl.scan_time is not null,ldl.scan_time,ldbls.create_time) AS scan_time,
IF(ldl.scan_user is not null,ldl.scan_user,ldbls.scan_user) AS scan_user,
IF(ldl.signing_user is not null,ldl.signing_user,ldbls.scan_user) AS signing_user,
IF(ldr.reservation_code is not null,ldr.reservation_code,ldbl.pickup_batch) AS reservation_code
IF(ldr.reservation_code is not null,ldr.reservation_code,ldbl.pickup_batch) AS reservation_code,
CASE ldl.signfor_type
WHEN 1 THEN '扫描签收'
WHEN 2 THEN '司机批量'
WHEN 3 THEN '文员签收'
END signfor_type
FROM logpm_distribution_reservation_zero_package ldrzp
LEFT JOIN logpm_distribution_loadscan ldl on ldl.package_id = ldrzp.parcel_list_id and ldl.scan_status !=1 AND ldl.is_deleted = 0
LEFT JOIN logpm_distribution_reservation ldr on ldr.id = ldrzp.reservation_id
@ -215,6 +231,9 @@
LEFT JOIN logpm_distribution_delivery_list lddl on lds.delivery_id =lddl.id
LEFT JOIN logpm_distrilbution_bill_lading ldbl ON ldrzp.reservation_id = ldbl.id
LEFT JOIN logpm_distribution_bill_lading_scan ldbls ON ldbls.parcel_list_id = ldrzp.parcel_list_id
<where>
ldrzp.zero_package_status != 2
</where>
) AS c ON c.parcel_list_id = ldpl.id
<where>
ldpl.is_deleted = 0
@ -912,6 +931,7 @@
ldpl.waybill_number waybillNumber,
ldsa.type_service typeService,
ldpl.order_code,
IF(c.signfor_type IS NOT NULL,c.signfor_type,IF(b.signfor_type IS NOT NULL, b.pickup_batch, a.signfor_type )) AS signforType,
IF(c.reservation_code is not null,c.reservation_code,IF(b.pickup_batch is not null,b.pickup_batch,a.reservation_code)) AS reservationCode,
IF(c.driver_name is not null,c.driver_name,IF(b.consignee is not null,b.consignee,a.driver_name)) AS driverName,
IF(c.vehicle_name is not null,c.vehicle_name,IF(b.pick_up_plate is not null,b.pick_up_plate,a.vehicle_name)) AS vehicleName,
@ -940,7 +960,12 @@
ldl.signing_time,
ldl.scan_user,
ldl.signing_user,
ldr.reservation_code
ldr.reservation_code,
CASE ldl.signfor_type
WHEN 1 THEN '扫描签收'
WHEN 2 THEN '司机批量'
WHEN 3 THEN '文员签收'
END signfor_type
FROM logpm_distribution_reservation_package ldrp
LEFT JOIN logpm_distribution_loadscan ldl on ldl.package_id = ldrp.parce_list_id and ldl.scan_status !=1 AND ldl.is_deleted = 0
LEFT JOIN logpm_distribution_reservation ldr on ldr.id = ldrp.reservation_id
@ -987,7 +1012,12 @@
ldbls.create_time AS scan_time,
ldbls.create_time AS signing_time,
ldbls.scan_user AS scan_user,
ldbls.scan_user AS signing_user
ldbls.scan_user AS signing_user,
CASE ldbls.signfor_type
WHEN 1 THEN '扫描签收'
WHEN 2 THEN '司机批量'
WHEN 3 THEN '文员签收'
END signfor_type
FROM
logpm_distrilbution_bill_package AS ldbp
LEFT JOIN logpm_distrilbution_bill_lading ldbl ON ldbl.id = ldbp.bill_lading_id
@ -1030,7 +1060,12 @@
IF(ldl.scan_time is not null,ldl.scan_time,ldbls.create_time) AS scan_time,
IF(ldl.scan_user is not null,ldl.scan_user,ldbls.scan_user) AS scan_user,
IF(ldl.signing_user is not null,ldl.signing_user,ldbls.scan_user) AS signing_user,
IF(ldr.reservation_code is not null,ldr.reservation_code,ldbl.pickup_batch) AS reservation_code
IF(ldr.reservation_code is not null,ldr.reservation_code,ldbl.pickup_batch) AS reservation_code,
CASE ldl.signfor_type
WHEN 1 THEN '扫描签收'
WHEN 2 THEN '司机批量'
WHEN 3 THEN '文员签收'
END signfor_type
FROM logpm_distribution_reservation_zero_package ldrzp
LEFT JOIN logpm_distribution_loadscan ldl on ldl.package_id = ldrzp.parcel_list_id and ldl.scan_status !=1 AND ldl.is_deleted = 0
LEFT JOIN logpm_distribution_reservation ldr on ldr.id = ldrzp.reservation_id

7
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.java

@ -192,6 +192,13 @@ public interface DistributionStockArticleMapper extends BaseMapper<DistributionS
*/
IPage<DistributionSignforStockArticleVO> pageSignforListOwe(IPage<DistributionSignforStockArticleVO> page,@Param("param") DistributionStockArticleOweDTO stockArticleEntity,@Param("collect") List<Long> warehouseIdList);
/**
* 查询签收订单信息
* @param stockArticleEntity
* @return
*/
List<DistributionSignforStockArticleVO> listSignforListOwe(@Param("param") DistributionStockArticleOweDTO stockArticleEntity,@Param("collect") List<Long> warehouseIdList);
void updateAllOrderTotalNum(@Param("orderCode") String orderCode, @Param("total") Integer total);
List<Map<String, Object>> selectAdvance(@Param("orderCode")String orderCode);

270
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockArticleMapper.xml

@ -1178,6 +1178,253 @@
from logpm_distribution_stock_article ldsa
where ldsa.id = #{orderId}
</select>
<select id="listSignforListOwe" resultType="com.logpm.distribution.vo.DistributionSignforStockArticleVO">
SELECT
ldsa.id AS id,
ldsa.waybill_number AS waybillNumber,
ldsa.service_number AS serviceNumber,
ldsa.order_code AS orderCode,
ldsa.mall_name AS mallName,
ldsa.warehouse AS warehouseName,
ldsa.consignee_unit AS consigneeUnit,
ldsa.consignee_person AS consigneePerson,
ldsa.total_number AS totalNumber,
ldsa.hand_quantity AS handQuantity,
ldsa.brand AS brand,
ldsa.delivery_quantity as deliveryNumber,
ldsa.signin_quantity AS signForNumber,
IFNULL((SELECT sum(stock_quantity) FROM logpm_distribution_stock WHERE stock_article = ldsa.id),0) AS
stockUpNumber,
ldsa.create_time AS createTime,
ldsa.create_user AS createUser,
CASE
ldsa.order_status
WHEN 70 THEN
'部分签收'
WHEN 80 THEN
'已签收' ELSE '未知'
END AS orderStatusName,
CASE
ldsa.is_zero
WHEN 0 THEN
'否'
WHEN 1 THEN
'是' ELSE '未知'
END AS isZeroName,
CASE
ldsa.reservation_status
WHEN 10 THEN
'待预约'
WHEN 20 THEN
'部分预约'
WHEN 30 THEN
'已预约'
END AS orderReservationStatusName,
CASE
ldsa.is_zero
WHEN 0 THEN
IF
( ldsa.total_number = ( SELECT sum( quantity ) FROM logpm_distribution_parcel_list WHERE stock_article_id =
ldsa.id ), '是', '否' )
WHEN 1 THEN
IF
( ldsa.total_number = ( SELECT sum( quantity ) FROM logpm_distribution_parcel_number WHERE stock_article_id =
ldsa.id ), '是', '否' )
END AS isCompleteSet,
CASE
ldsa.type_service
WHEN 1 THEN
'商配'
WHEN 2 THEN
'市配'
WHEN 3 THEN
'自提'
WHEN 4 THEN
'三方中转'
END AS typeServiceName,
min( ldpl.create_time ) earliestWarehouseEntryTime,
max( ldpl.create_time ) warehouseEntryTime,
MIN( ldl.signing_time ) scanSigningTime,
MAX( ldl.scan_time ) signinTime
FROM
logpm_distribution_loadscan ldl
LEFT JOIN logpm_distribution_stock_article ldsa ON ldsa.id = ldl.order_id
LEFT JOIN logpm_distribution_parcel_list ldpl ON ldpl.stock_article_id = ldsa.id
left JOIN logpm_distribution_reservation ldr on ldr.id = ldl.reservation_id
<where>
ldl.signfor_state = 2
and ldsa.order_status in ('70','80')
<if test="collect != null and @org.apache.commons.collections4.CollectionUtils@isNotEmpty(collect)">
and ldl.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
<if test="param.waybillNumber != null and param.waybillNumber != ''">
AND ldsa.waybill_number like concat(#{param.waybillNumber},"%")
</if>
<if test="param.serviceNumber != null and param.serviceNumber != ''">
AND ldsa.service_number like concat(#{param.serviceNumber},"%")
</if>
<if test="param.orderCode != null and param.orderCode != ''">
AND ldsa.order_code like concat(#{param.orderCode},"%")
</if>
<if test="param.warehouseName != null and param.warehouseName != ''">
AND ldsa.warehouse like concat(#{param.warehouseName},"%")
</if>
<if test="param.mallName != null and param.mallName != ''">
AND ldsa.mall_name like concat(#{param.mallName},"%")
</if>
<if test="param.brand != null and param.brand != ''">
AND ldsa.brand like concat("%",#{param.brand},"%")
</if>
<if test="param.consigneePerson != null and param.consigneePerson != ''">
AND ldsa.consignee_person like concat(#{param.consigneePerson},"%")
</if>
<if test="param.consigneeUnit != null and param.consigneeUnit != ''">
AND ldsa.consignee_unit like concat(#{param.consigneeUnit},"%")
</if>
<if test="param.earliestWarehouseEntryTime != null ">
AND date_format(ldpl.create_time ,'%y%m%d%') = date_format(#{param.earliestWarehouseEntryTime},'%y%m%d%')
</if>
<if test="param.warehouseEntryTime != null ">
AND date_format(ldpl.create_time ,'%y%m%d%') = date_format(#{param.warehouseEntryTime},'%y%m%d%')
</if>
<if test="param.scanSigningTime != null ">
AND date_format(ldl.signing_time ,'%y%m%d%') = date_format(#{param.scanSigningTime},'%y%m%d%')
</if>
<if test="param.warehouseEntryTimeStart != null and param.warehouseEntryTimeEnd != null ">
AND date_format(ldpl.create_time ,'%y%m%d%') BETWEEN date_format(#{param.warehouseEntryTimeStart},'%y%m%d%') AND date_format(#{param.warehouseEntryTimeEnd},'%y%m%d%')
</if>
<if test="param.scanSigningTimeStart != null and param.scanSigningTimeEnd != null ">
AND date_format(ldl.signing_time ,'%y%m%d%') BETWEEN date_format(#{param.scanSigningTimeStart},'%y%m%d%') AND date_format(#{param.scanSigningTimeEnd},'%y%m%d%')
</if>
</where>
GROUP BY
ldl.order_id,ldl.reservation_id
UNION ALL
SELECT
ldsa.id AS id,
ldsa.waybill_number AS waybillNumber,
ldsa.service_number AS serviceNumber,
ldsa.order_code AS orderCode,
ldsa.mall_name AS mallName,
ldsa.warehouse AS warehouseName,
ldsa.consignee_unit AS consigneeUnit,
ldsa.consignee_person AS consigneePerson,
ldsa.total_number AS totalNumber,
ldsa.hand_quantity AS handQuantity,
ldsa.brand AS brand,
ldsa.delivery_quantity as deliveryNumber,
ldsa.signin_quantity AS signForNumber,
IFNULL((SELECT sum(stock_quantity) FROM logpm_distribution_stock WHERE stock_article = ldsa.id),0) AS
stockUpNumber,
ldsa.create_time AS createTime,
ldsa.create_user AS createUser,
CASE
ldsa.order_status
WHEN 70 THEN
'部分签收'
WHEN 80 THEN
'已签收' ELSE '未知'
END AS orderStatusName,
CASE
ldsa.is_zero
WHEN 0 THEN
'否'
WHEN 1 THEN
'是' ELSE '未知'
END AS isZeroName,
CASE
ldsa.reservation_status
WHEN 10 THEN
'待预约'
WHEN 20 THEN
'部分预约'
WHEN 30 THEN
'已预约'
END AS orderReservationStatusName,
CASE
ldsa.is_zero
WHEN 0 THEN
IF
( ldsa.total_number = ( SELECT sum( quantity ) FROM logpm_distribution_parcel_list WHERE stock_article_id =
ldsa.id ), '是', '否' )
WHEN 1 THEN
IF
( ldsa.total_number = ( SELECT sum( quantity ) FROM logpm_distribution_parcel_number WHERE stock_article_id =
ldsa.id ), '是', '否' )
END AS isCompleteSet,
CASE
ldsa.type_service
WHEN 1 THEN
'商配'
WHEN 2 THEN
'市配'
WHEN 3 THEN
'自提'
WHEN 4 THEN
'三方中转'
END AS typeServiceName,
min( ldpl.create_time ) earliestWarehouseEntryTime,
max( ldpl.create_time ) warehouseEntryTime,
MIN( ldbls.create_time ) scanSigningTime,
MAX( ldbls.create_time ) signinTime
FROM
logpm_distribution_bill_lading_scan AS ldbls
LEFT JOIN logpm_distribution_stock_article ldsa ON ldsa.id = ldbls.stock_article_id
LEFT JOIN logpm_distribution_parcel_list ldpl ON ldpl.stock_article_id = ldsa.id
LEFT JOIN logpm_distrilbution_bill_lading AS ldbl ON ldbls.bill_lading_id = ldbl.id
<where>
ldsa.order_status in ('70','80')
and ldbls.warehouse_id in
<foreach collection="collect" item="item" open="(" close=")" separator=",">
#{item}
</foreach>
<if test="param.waybillNumber != null and param.waybillNumber != ''">
AND ldsa.waybill_number like concat(#{param.waybillNumber},"%")
</if>
<if test="param.serviceNumber != null and param.serviceNumber != ''">
AND ldsa.service_number like concat(#{param.serviceNumber},"%")
</if>
<if test="param.orderCode != null and param.orderCode != ''">
AND ldsa.order_code like concat(#{param.orderCode},"%")
</if>
<if test="param.warehouseName != null and param.warehouseName != ''">
AND ldsa.warehouse like concat(#{param.warehouseName},"%")
</if>
<if test="param.mallName != null and param.mallName != ''">
AND ldsa.mall_name like concat(#{param.mallName},"%")
</if>
<if test="param.brand != null and param.brand != ''">
AND ldsa.brand like concat("%",#{param.brand},"%")
</if>
<if test="param.consigneePerson != null and param.consigneePerson != ''">
AND ldsa.consignee_person like concat(#{param.consigneePerson},"%")
</if>
<if test="param.consigneeUnit != null and param.consigneeUnit != ''">
AND ldsa.consignee_unit like concat(#{param.consigneeUnit},"%")
</if>
<if test="param.earliestWarehouseEntryTime != null ">
AND date_format(ldpl.create_time ,'%y%m%d%') = date_format(#{param.earliestWarehouseEntryTime},'%y%m%d%')
</if>
<if test="param.warehouseEntryTime != null ">
AND date_format(ldpl.create_time ,'%y%m%d%') = date_format(#{param.warehouseEntryTime},'%y%m%d%')
</if>
<if test="param.scanSigningTime != null ">
AND date_format(ldbls.create_time ,'%y%m%d%') = date_format(#{param.scanSigningTime},'%y%m%d%')
</if>
<if test="param.warehouseEntryTimeStart != null and param.warehouseEntryTimeEnd != null ">
AND date_format(ldpl.create_time ,'%y%m%d%') BETWEEN date_format(#{param.warehouseEntryTimeStart},'%y%m%d%') AND date_format(#{param.warehouseEntryTimeEnd},'%y%m%d%')
</if>
<if test="param.scanSigningTimeStart != null and param.scanSigningTimeEnd != null ">
AND date_format(ldbls.create_time ,'%y%m%d%') BETWEEN date_format(#{param.scanSigningTimeStart},'%y%m%d%') AND date_format(#{param.scanSigningTimeEnd},'%y%m%d%')
</if>
</where>
GROUP BY
ldbls.stock_article_id,ldbls.bill_lading_id
</select>
<select id="pageSignforListOwe" resultType="com.logpm.distribution.vo.DistributionSignforStockArticleVO">
SELECT
ldsa.id AS id,
@ -1509,6 +1756,29 @@
AND lds.signing_status = 2
GROUP BY
ldrs.reservation_id
UNION ALL
SELECT
ldbl.id,
ldbl.pickup_batch AS reservationCode,
IFNULL(SUM(ldbp.packet_number),0) AS reservationNum,
ldbl.examine_user_name AS examineUserName,
IF(ldbl.conditions = '30',ldbl.update_time,null) AS signingTime,
IF(ldbl.conditions = '30',ldbl.update_time,null) AS sjsigningTime,
ldbl.pickup_batch AS trainNumber,
ldbl.pick_up_plate AS vehicleName,
ldbl.delivery_document AS driverName,
ldbl.id AS signforId,
ldbl.id AS deliveryId
FROM
logpm_distrilbution_bill_stock AS ldbs
LEFT JOIN logpm_distrilbution_bill_lading AS ldbl ON ldbs.bill_lading_id = ldbl.id
LEFT JOIN logpm_distrilbution_bill_package AS ldbp ON ldbp.bill_lading_id = ldbl.id AND ldbp.stock_article_id = ldbs.stock_article_id
LEFT JOIN logpm_distribution_bill_lading_scan AS ldbls ON ldbls.bill_lading_id = ldbl.id AND ldbls.stock_article_id = ldbs.stock_article_id
WHERE
ldbs.stock_article_id = #{orderId}
AND ldbs.is_deleted = 0
AND ldbs.order_status != 2
GROUP BY ldbs.bill_lading_id
</select>
<update id="clearTraysByIds" >

3
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/IDistributionStockArticleService.java

@ -270,10 +270,9 @@ public interface IDistributionStockArticleService extends BaseService<Distributi
/**
* 查询已签收订单 导出
* @param distributionStockArticle
* @param page
* @return
*/
List<DistributionSignForStockArticleExcel> exportSignforDistributionStockArticleList(Map<String, Object> distributionStockArticle, IPage<DistributionSignforStockArticleVO> page);
List<DistributionSignForStockArticleExcel> exportSignforDistributionStockArticleList(Map<String, Object> distributionStockArticle);
/**
* 维护指定订单的商场信息

6
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockArticleServiceImpl.java

@ -2651,7 +2651,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
* @return
*/
@Override
public List<DistributionSignForStockArticleExcel> exportSignforDistributionStockArticleList(Map<String, Object> distributionStockArticle, IPage<DistributionSignforStockArticleVO> page) {
public List<DistributionSignForStockArticleExcel> exportSignforDistributionStockArticleList(Map<String, Object> distributionStockArticle) {
DistributionStockArticleOweDTO stockArticleEntity = JSONObject.parseObject(JSONObject.toJSONString(distributionStockArticle), DistributionStockArticleOweDTO.class);
if (Func.isNotEmpty(distributionStockArticle.get("typeServer"))) {
stockArticleEntity.setTypeService((String) distributionStockArticle.get("typeServer"));
@ -2703,10 +2703,10 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
// stockArticleEntity.setWarehouseIdList(null);
// stockArticleEntity.setWarehouseId(currentWarehouse.getId());
// }
IPage<DistributionSignforStockArticleVO> distributionStockArticleEntityIPage = baseMapper.pageSignforListOwe(page, stockArticleEntity,warehouseIdList);
List<DistributionSignforStockArticleVO> list = baseMapper.listSignforListOwe(stockArticleEntity,warehouseIdList);
//处理创建人
List<DistributionSignForStockArticleExcel> signForStockArticleExcels = new ArrayList<>();
distributionStockArticleEntityIPage.getRecords().forEach(a -> {
list.forEach(a -> {
if (Func.isNotEmpty(a.getCreateUser())) {
R<User> userR = userClient.userInfoById(a.getCreateUser());
a.setCreateUserName(userR.getData().getName());

Loading…
Cancel
Save