|  | @@ -277,7 +277,7 @@ ${ew.customSqlSegment}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          update sy_shipping_details_item
 |  |          update sy_shipping_details_item
 | 
											
												
													
														|  |          <if test='type == "1"'>
 |  |          <if test='type == "1"'>
 | 
											
												
													
														|  | -            set submit_status = 1
 |  | 
 | 
											
												
													
														|  | 
 |  | +            set submit_status = 1,push_srm_state = '0'
 | 
											
												
													
														|  |              where group_id in
 |  |              where group_id in
 | 
											
												
													
														|  |              <foreach collection="submitListId" item="item"  open="(" separator="," close=")">
 |  |              <foreach collection="submitListId" item="item"  open="(" separator="," close=")">
 | 
											
												
													
														|  |                  #{item}
 |  |                  #{item}
 | 
											
										
											
												
													
														|  | @@ -363,7 +363,7 @@ ${ew.customSqlSegment}
 | 
											
												
													
														|  |          b.group_Id 'syShippingDetailGroupId',b.order_Number 'orderCode',
 |  |          b.group_Id 'syShippingDetailGroupId',b.order_Number 'orderCode',
 | 
											
												
													
														|  |          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',
 |  | 
 | 
											
												
													
														|  | 
 |  | +        b.shipment_quantity 'quantity',b.coding_rules 'codingRules',
 | 
											
												
													
														|  |          a.id 'syShippingId',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',
 | 
											
										
											
												
													
														|  | @@ -371,7 +371,8 @@ ${ew.customSqlSegment}
 | 
											
												
													
														|  |          b.pre_delivery_date 'arriveDate',
 |  |          b.pre_delivery_date 'arriveDate',
 | 
											
												
													
														|  |          b.ompo_Id_Item 'purchaseId',
 |  |          b.ompo_Id_Item 'purchaseId',
 | 
											
												
													
														|  |          c.declaration_name,c.declaration_unit,
 |  |          c.declaration_name,c.declaration_unit,
 | 
											
												
													
														|  | -        b.inventory_ccode as invccode,b.ompo_id as purchase_order_id,b.ompo_account as sys_org_code
 |  | 
 | 
											
												
													
														|  | 
 |  | +        b.inventory_ccode as invccode,b.ompo_id as purchase_order_id,b.ompo_account as sys_org_code,
 | 
											
												
													
														|  | 
 |  | +        b.id 'syShippingDetailsId'
 | 
											
												
													
														|  |          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
 | 
											
										
											
												
													
														|  | @@ -380,8 +381,9 @@ ${ew.customSqlSegment}
 | 
											
												
													
														|  |          <foreach collection="id" item="item"  open="(" separator="," close=")">
 |  |          <foreach collection="id" item="item"  open="(" separator="," close=")">
 | 
											
												
													
														|  |              #{item}
 |  |              #{item}
 | 
											
												
													
														|  |          </foreach>
 |  |          </foreach>
 | 
											
												
													
														|  | 
 |  | +        <!--
 | 
											
												
													
														|  |          group by b.group_Id
 |  |          group by b.group_Id
 | 
											
												
													
														|  | -        order by size+0
 |  | 
 | 
											
												
													
														|  | 
 |  | +        order by size+0-->
 | 
											
												
													
														|  |      </select>
 |  |      </select>
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |      <select id="getPurchasePreDeliverDetailSizeVo" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PurchasePreDeliverDetailSizeVo">
 |  |      <select id="getPurchasePreDeliverDetailSizeVo" resultType="org.jeecg.modules.documents.shippingDetails.entity.VO.PurchasePreDeliverDetailSizeVo">
 | 
											
										
											
												
													
														|  | @@ -414,7 +416,7 @@ ${ew.customSqlSegment}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          update sy_shipping_details_item
 |  |          update sy_shipping_details_item
 | 
											
												
													
														|  |          <if test='type == "1"'>
 |  |          <if test='type == "1"'>
 | 
											
												
													
														|  | -            set submit_status = 1
 |  | 
 | 
											
												
													
														|  | 
 |  | +            set submit_status = 1,push_srm_state = '0'
 | 
											
												
													
														|  |              where group_id in
 |  |              where group_id in
 | 
											
												
													
														|  |              <foreach collection="submitListId" item="item"  open="(" separator="," close=")">
 |  |              <foreach collection="submitListId" item="item"  open="(" separator="," close=")">
 | 
											
												
													
														|  |                  #{item}
 |  |                  #{item}
 | 
											
										
											
												
													
														|  | @@ -442,7 +444,7 @@ ${ew.customSqlSegment}
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |          update sy_shipping_details_item
 |  |          update sy_shipping_details_item
 | 
											
												
													
														|  |          set push_srm_state = #{status},push_srm_message=#{message}
 |  |          set push_srm_state = #{status},push_srm_message=#{message}
 | 
											
												
													
														|  | -        where group_id in
 |  | 
 | 
											
												
													
														|  | 
 |  | +        where id in
 | 
											
												
													
														|  |          <foreach collection="groupIdList" item="item"  open="(" separator="," close=")">
 |  |          <foreach collection="groupIdList" item="item"  open="(" separator="," close=")">
 | 
											
												
													
														|  |              #{item}
 |  |              #{item}
 | 
											
												
													
														|  |          </foreach>
 |  |          </foreach>
 |