Browse Source

扫描记录修复调整

chenglong
汤建军 8 months ago
parent
commit
1653d47271
  1. 2
      blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseScanRecordVO.java
  2. 16
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseStockMapper.xml
  3. 9
      blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseStockServiceImpl.java

2
blade-service-api/logpm-warehouse-api/src/main/java/com/logpm/warehouse/vo/WarehouseScanRecordVO.java

@ -52,7 +52,7 @@ public class WarehouseScanRecordVO extends WarehouseScanRecordEntity {
* 二级扫描类型(扫描详情) * 二级扫描类型(扫描详情)
*/ */
@ApiModelProperty(value = "扫描详情") @ApiModelProperty(value = "扫描详情")
private Date date; private String date;
/** /**

16
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/mapper/WarehouseStockMapper.xml

@ -103,7 +103,6 @@
'取消装车' AS `scanNodeType`, '取消装车' AS `scanNodeType`,
'配送' AS `nodeName` '配送' AS `nodeName`
FROM FROM
`logpm_distribution_parcel_list` `ldpl` `logpm_distribution_parcel_list` `ldpl`
JOIN `logpm_distribution_loadscan` `ldl` ON JOIN `logpm_distribution_loadscan` `ldl` ON
`ldpl`.`id` = `ldl`.`package_id` `ldpl`.`id` = `ldl`.`package_id`
@ -143,8 +142,8 @@
<if test="param.thirdProduct != null and param.thirdProduct != '' "> <if test="param.thirdProduct != null and param.thirdProduct != '' ">
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') and ldpl.third_product like concat('%',#{param.thirdProduct},'%')
</if> </if>
<if test="param.date != null "> <if test="param.date != null ">
and ldl.update_time like concat(#{param.date},'%') and DATE(ldpl.warehouse_entry_time_end)= #{param.date}
</if> </if>
</where> </where>
UNION ALL UNION ALL
@ -245,7 +244,7 @@
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') and ldpl.third_product like concat('%',#{param.thirdProduct},'%')
</if> </if>
<if test="param.date != null "> <if test="param.date != null ">
and ldl.create_time like concat(#{param.date},'%') and DATE(ldl.create_time) = #{param.date}
</if> </if>
</where> </where>
UNION ALL UNION ALL
@ -346,7 +345,7 @@
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') and ldpl.third_product like concat('%',#{param.thirdProduct},'%')
</if> </if>
<if test="param.date != null "> <if test="param.date != null ">
and ldl.update_time like concat(#{param.date},'%') and DATE(ldl.update_time) = #{param.date}
</if> </if>
</where> </where>
UNION ALL UNION ALL
@ -406,7 +405,6 @@
`lds`.`create_time` AS `operatorTime`, `lds`.`create_time` AS `operatorTime`,
`lds`.`create_user` AS `operatorId`,( `lds`.`create_user` AS `operatorId`,(
CASE CASE
WHEN ( `lds`.`conditions` = 1 ) THEN WHEN ( `lds`.`conditions` = 1 ) THEN
'配送备货' '配送备货'
WHEN ( `lds`.`conditions` = 2 ) THEN WHEN ( `lds`.`conditions` = 2 ) THEN
@ -453,7 +451,7 @@
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') and ldpl.third_product like concat('%',#{param.thirdProduct},'%')
</if> </if>
<if test="param.date != null "> <if test="param.date != null ">
and lds.create_time like concat(#{param.date},'%') and DATE(lds.create_time) =#{param.date}
</if> </if>
</where> </where>
UNION ALL UNION ALL
@ -553,7 +551,7 @@
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') and ldpl.third_product like concat('%',#{param.thirdProduct},'%')
</if> </if>
<if test="param.date != null "> <if test="param.date != null ">
and lwug.create_time like concat(#{param.date},'%') and DATE(lwug.create_time) =#{param.date}
</if> </if>
</where> </where>
UNION ALL UNION ALL
@ -653,7 +651,7 @@
and ldpl.third_product like concat('%',#{param.thirdProduct},'%') and ldpl.third_product like concat('%',#{param.thirdProduct},'%')
</if> </if>
<if test="param.date != null "> <if test="param.date != null ">
and lwtg.create_time like concat(#{param.date},'%') and DATE(lwtg.create_time) =#{param.date}
</if> </if>
</where> </where>

9
blade-service/logpm-warehouse/src/main/java/com/logpm/warehouse/service/impl/WarehouseStockServiceImpl.java

@ -67,7 +67,6 @@ public class WarehouseStockServiceImpl extends BaseServiceImpl<WarehouseStockMap
warehouseScanRecordVO.setWarehouseIdList(this.loginPerson()); warehouseScanRecordVO.setWarehouseIdList(this.loginPerson());
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse();
try {
if (Func.isEmpty(myCurrentWarehouse)){ if (Func.isEmpty(myCurrentWarehouse)){
return null; return null;
} }
@ -76,12 +75,8 @@ public class WarehouseStockServiceImpl extends BaseServiceImpl<WarehouseStockMap
return null; return null;
} }
String operatorTime = warehouseScanRecordVO.getOperatorTime(); String operatorTime = warehouseScanRecordVO.getOperatorTime();
SimpleDateFormat sf = new SimpleDateFormat(DateUtil.PATTERN_DATE); warehouseScanRecordVO.setDate(operatorTime);
Date parse = sf.parse(operatorTime);
warehouseScanRecordVO.setDate(parse);
} catch (ParseException e) {
throw new RuntimeException(e);
}
List<WarehouseScanRecordVO> result = new ArrayList<>(); List<WarehouseScanRecordVO> result = new ArrayList<>();
warehouseScanRecordVO.setWarehouseId(myCurrentWarehouse.getId()); warehouseScanRecordVO.setWarehouseId(myCurrentWarehouse.getId());
List<WarehouseScanRecordVO> warehouseScanRecordVOS = baseMapper.selectWarehouseStockPage(page, warehouseScanRecordVO); List<WarehouseScanRecordVO> warehouseScanRecordVOS = baseMapper.selectWarehouseStockPage(page, warehouseScanRecordVO);

Loading…
Cancel
Save