Browse Source

取消预约bug修复

training
kilo 1 year ago
parent
commit
8226df45b0
  1. 2
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupInfoMapper.java
  2. 6
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupInfoMapper.xml

2
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupInfoMapper.java

@ -58,7 +58,7 @@ public interface DistributionStockupInfoMapper extends BaseMapper< Distribution
* 删除预约备货中间表
* @param id
*/
void deleteByReservationId(@Param("id") Long stockupId,@Param("reservationId") Long id);
void deleteByReservationId(@Param("stockupId") Long stockupId,@Param("reservationId") Long id);
/**
* 备货商 市查询库存品的数量

6
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupInfoMapper.xml

@ -8,11 +8,11 @@
<delete id="deleteByReservationId">
DELETE FROM logpm_distribution_stockup_info
<where>
<if test="reservationId != null and reservationId != ''">
and reservation_id = #{reservationId}
<if test="stockupId != null and stockupId != ''">
and stockup_id = #{stockupId}
</if>
<if test="reservationId != null and reservationId != ''">
and if = #{id}
and reservation_id = #{reservationId}
</if>
</where>
</delete>

Loading…
Cancel
Save