Browse Source

bug修复

dist.1.3.0
汤建军 9 months ago
parent
commit
afe13c686b
  1. 30
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml

30
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionSignforMapper.xml

@ -1387,20 +1387,22 @@
FROM
logpm_distribution_reservation AS ldr
LEFT JOIN logpm_distribution_signfor AS lds ON ldr.id = lds.reservation_id
WHERE
ldr.is_deleted = 0
AND lds.is_deleted = 0
AND ( ldr.reservation_num + ldr.reservation_stock_list_num ) > 0
AND date_format( lds.signing_time, '%y%m%d%' ) <= date_format(
'2024-04-28',
'%y%m%d%')
AND lds.signing_status = 2
<if test="warehouseIds != null and warehouseIds.size > 0">
AND ldr.warehouse_id in
<foreach collection="warehouseIds" item="warehouseId" index="index" open="(" close=")" separator=",">
#{warehouseId}
</foreach>
</if>
<where>
ldr.is_deleted = 0
AND lds.is_deleted = 0
AND ( ldr.reservation_num + ldr.reservation_stock_list_num ) > 0
AND date_format( lds.signing_time, '%y%m%d%' ) &lt;= date_format(
'2024-04-28',
'%y%m%d%')
AND lds.signing_status = 2
<if test="warehouseIds != null and warehouseIds.size > 0" >
AND ldr.warehouse_id in
<foreach collection="warehouseIds" item="warehouseId" index="index" open="(" close=")" separator=",">
#{warehouseId}
</foreach>
</if>
</where>
GROUP BY ldr.warehouse_id
</select>
</mapper>

Loading…
Cancel
Save