|
@@ -350,10 +350,11 @@ ${ew.customSqlSegment}
|
|
from sy_shipping_details a
|
|
from sy_shipping_details a
|
|
left join sy_shipping_details_item b
|
|
left join sy_shipping_details_item b
|
|
on a.id=b.shipping_details_id
|
|
on a.id=b.shipping_details_id
|
|
- where b.id in
|
|
|
|
|
|
+ where a.id in
|
|
<foreach collection="id" item="item" open="(" separator="," close=")">
|
|
<foreach collection="id" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
|
|
+ group by a.id
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="getPurchasePreDeliverDetailVo" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PurchasePreDeliverDetailVo">
|
|
<select id="getPurchasePreDeliverDetailVo" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PurchasePreDeliverDetailVo">
|
|
@@ -363,7 +364,7 @@ ${ew.customSqlSegment}
|
|
b.item_number 'styleNo',b.inventory_code 'invCode',b.colour 'color',
|
|
b.item_number 'styleNo',b.inventory_code 'invCode',b.colour 'color',
|
|
b.inventory_name 'invName',b.specification_and_model 'invSpec',
|
|
b.inventory_name 'invName',b.specification_and_model 'invSpec',
|
|
sum(b.shipment_quantity) 'quantity',b.coding_rules 'codingRules',
|
|
sum(b.shipment_quantity) 'quantity',b.coding_rules 'codingRules',
|
|
- b.submit_status 'submitStatus',b.weight 'weight',
|
|
|
|
|
|
+ a.id 'syShippingId',b.submit_status 'submitStatus',b.weight 'weight',
|
|
b.guangpei_gate_width 'guangpeiGateWidth',b.small_Po 'smallPo',
|
|
b.guangpei_gate_width 'guangpeiGateWidth',b.small_Po 'smallPo',
|
|
b.distribution_Point 'distributionPoint',b.pack_id 'packId',
|
|
b.distribution_Point 'distributionPoint',b.pack_id 'packId',
|
|
b.material_composition 'composition',b.box_number 'boxNumber',
|
|
b.material_composition 'composition',b.box_number 'boxNumber',
|
|
@@ -371,7 +372,7 @@ ${ew.customSqlSegment}
|
|
from sy_shipping_details a
|
|
from sy_shipping_details a
|
|
left join sy_shipping_details_item b
|
|
left join sy_shipping_details_item b
|
|
on a.id=b.shipping_details_id
|
|
on a.id=b.shipping_details_id
|
|
- where b.id in
|
|
|
|
|
|
+ where a.id in
|
|
<foreach collection="id" item="item" open="(" separator="," close=")">
|
|
<foreach collection="id" item="item" open="(" separator="," close=")">
|
|
#{item}
|
|
#{item}
|
|
</foreach>
|
|
</foreach>
|
|
@@ -379,15 +380,50 @@ ${ew.customSqlSegment}
|
|
order by size+0
|
|
order by size+0
|
|
</select>
|
|
</select>
|
|
|
|
|
|
- <select id="getPurchasePreDeliverDetailSizeVo" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PurchasePreDeliverDetailVo">
|
|
|
|
- select b.size 'size',c.num,
|
|
|
|
- b.id 'syShippingDetailsId',
|
|
|
|
- b.ompo_Id_Item 'purchaseId',
|
|
|
|
- b.shipment_quantity 'quantity'
|
|
|
|
|
|
+ <select id="getPurchasePreDeliverDetailSizeVo" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PurchasePreDeliverDetailSizeVo">
|
|
|
|
+ select b.size 'size',c.num,b.id 'syShippingDetailsId',
|
|
|
|
+ b.ompo_Id_Item 'purchaseId',b.shipment_quantity 'quantity',
|
|
|
|
+ b.group_Id 'syShippingDetailGroupId'
|
|
from sy_shipping_details a
|
|
from sy_shipping_details a
|
|
left join sy_shipping_details_item b on a.id=b.shipping_details_id
|
|
left join sy_shipping_details_item b on a.id=b.shipping_details_id
|
|
LEFT JOIN sizetable c ON b.`size`=c.`size`
|
|
LEFT JOIN sizetable c ON b.`size`=c.`size`
|
|
- where b.group_Id = #{value}
|
|
|
|
|
|
+ where a.id in
|
|
|
|
+ <foreach collection="id" item="item" open="(" separator="," close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
order by c.num
|
|
order by c.num
|
|
</select>
|
|
</select>
|
|
|
|
+
|
|
|
|
+ <select id="getStrings" resultType="org.jeecg.modules.documents.shippingDetails.entity.SyShippingDetails">
|
|
|
|
+ select distinct a.id,push_srm_state
|
|
|
|
+ from sy_shipping_details a
|
|
|
|
+ left join sy_shipping_details_item b on a.id=b.shipping_details_id
|
|
|
|
+ where b.group_id in
|
|
|
|
+ <foreach collection="id" item="item" open="(" separator="," close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ <update id="batchSubmission">
|
|
|
|
+
|
|
|
|
+ update sy_shipping_details_item
|
|
|
|
+ <if test='type == "1"'>
|
|
|
|
+ set submit_status = 1
|
|
|
|
+ where group_id in
|
|
|
|
+ <foreach collection="submitListId" item="item" open="(" separator="," close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+ <if test='type == "2"'>
|
|
|
|
+ set submit_status = 0
|
|
|
|
+ where group_id in
|
|
|
|
+ <foreach collection="submitListId" item="item" open="(" separator="," close=")">
|
|
|
|
+ #{item}
|
|
|
|
+ </foreach>
|
|
|
|
+ </if>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ </update>
|
|
</mapper>
|
|
</mapper>
|