|
|
|
@ -288,10 +288,10 @@
|
|
|
|
|
</select> |
|
|
|
|
<select id="judgmentZeroPackageIsSign" resultType="java.lang.Boolean"> |
|
|
|
|
SELECT |
|
|
|
|
IF(IFNULL(ldl.received_quantity,0) = 2, 1, 0) |
|
|
|
|
FROM logpm_distribution_reservation_zero_package ldrzp |
|
|
|
|
left join logpm_distribution_loadscan ldl on ldrzp.reservation_id = ldl.reservation_id and ldrzp.parcel_list_id = ldl.package_id |
|
|
|
|
IF( received_quantity = #{num}, 1, 0 ) |
|
|
|
|
FROM |
|
|
|
|
logpm_distribution_loadscan AS ldl |
|
|
|
|
WHERE |
|
|
|
|
ldrzp.reservation_id = #{reservationId} AND ldrzp.parcel_list_id = #{packageId} |
|
|
|
|
reservation_id = #{reservationId} AND package_id = #{packageId} |
|
|
|
|
</select> |
|
|
|
|
</mapper> |
|
|
|
|