|
@@ -18,12 +18,15 @@
|
|
|
a.id syShippingDetailsId,
|
|
|
b.id syShippingDetailsItemId,
|
|
|
/*IF(INSTR(c.OMPO_id,'-')>0,LEFT(c.OMPO_id,INSTR(c.OMPO_id,'-')-1),c.OMPO_id) PlanLotNumber,*/
|
|
|
- IF(INSTR(b.pur_or_sub_order,'-')>0,LEFT(b.pur_or_sub_order,INSTR(b.pur_or_sub_order,'-')-1),b.pur_or_sub_order) PlanLotNumber,
|
|
|
- a.declaration_Name,/*报关品名*/
|
|
|
+ IF(INSTR(b.pur_or_sub_order,'-')>0,LEFT(b.pur_or_sub_order,INSTR(b.pur_or_sub_order,'-')-1),b.pur_or_sub_order) PlanLotNumber,
|
|
|
+ /*a.declaration_Name,报关品名*/
|
|
|
+ (select declaration_Name from sy_declaration_elements where id=b.elements_Id) as declaration_Name,
|
|
|
c.master_Metering,/*主计量*/
|
|
|
+ c.weight as gramWeight,/*克重*/
|
|
|
b.salesman,/*业务员*/
|
|
|
b.item_Number,/*款号*/
|
|
|
b.order_Number,/*订单号*/
|
|
|
+ b.u8_Remarks memo,
|
|
|
b.colour,/*颜色*/
|
|
|
b.inventory_Code,/*物料编码*/
|
|
|
b.inventory_Name,/*物料名称*/
|
|
@@ -35,6 +38,7 @@
|
|
|
b.manual_Yarn_Unit_Price,/*手册纱单价*/
|
|
|
b.manual_Yarn_Proportion,/*手册纱占比*/
|
|
|
b.shipment_Quantity AS inventoryQuantity,/*入库数量*/
|
|
|
+ b.elements_Id,/*申报要素*/
|
|
|
b.specification_And_Model,/*规格型号*/
|
|
|
b.excess_Quantity /*excessQuantity*/
|
|
|
FROM
|
|
@@ -52,13 +56,17 @@
|
|
|
SELECT
|
|
|
a.id syShippingDetailsId,
|
|
|
b.id syShippingDetailsItemId,
|
|
|
+ (select declaration_Name from sy_declaration_elements where id=b.elements_Id) as declaration_Name,
|
|
|
/*IF(INSTR(c.OMPO_id,'-')>0,LEFT(c.OMPO_id,INSTR(c.OMPO_id,'-')-1),c.OMPO_id) PlanLotNumber,*/
|
|
|
IF(INSTR(b.pur_or_sub_order,'-')>0,LEFT(b.pur_or_sub_order,INSTR(b.pur_or_sub_order,'-')-1),b.pur_or_sub_order) PlanLotNumber,
|
|
|
- a.declaration_Name,/*报关品名*/
|
|
|
+ /*a.declaration_Name,报关品名*/
|
|
|
c.master_Metering,/*主计量*/
|
|
|
+ c.Weight as gramWeight,/*克重*/
|
|
|
b.salesman,/*业务员*/
|
|
|
b.item_Number,/*款号*/
|
|
|
b.colour,/*颜色*/
|
|
|
+ /*b.elements_Id,申报要素*/
|
|
|
+ b.memo,
|
|
|
b.inventory_Code,/*物料编码*/
|
|
|
b.inventory_Name,/*物料名称*/
|
|
|
b.material_Composition AS Composition,/*成分/Composition*/
|
|
@@ -83,6 +91,10 @@
|
|
|
<foreach collection="ids" item="value" index="index" open="(" separator="," close=")">
|
|
|
#{value}
|
|
|
</foreach>
|
|
|
+ and b.group_id in
|
|
|
+ <foreach collection="groupIds" item="value" index="index" open="(" separator="," close=")">
|
|
|
+ #{value}
|
|
|
+ </foreach>
|
|
|
</select>
|
|
|
|
|
|
<select id="selectByMainId2" parameterType="java.lang.String" resultType="org.jeecg.modules.splfi.entity.SyPackingListFabricItem">
|