|
@@ -962,11 +962,12 @@
|
|
a.id,
|
|
a.id,
|
|
a.notice_id,
|
|
a.notice_id,
|
|
a.entry_number,
|
|
a.entry_number,
|
|
- a.production_code,
|
|
|
|
a.material_id,
|
|
a.material_id,
|
|
a.wbs,
|
|
a.wbs,
|
|
a.measurement_id,
|
|
a.measurement_id,
|
|
a.num,
|
|
a.num,
|
|
|
|
+ a.entry_number,
|
|
|
|
+ a.warehousing_num,
|
|
b.notice_code,
|
|
b.notice_code,
|
|
b.company_number,
|
|
b.company_number,
|
|
b.notice_time,
|
|
b.notice_time,
|
|
@@ -982,15 +983,18 @@
|
|
join tld_material c on a.material_id = c.tld_id
|
|
join tld_material c on a.material_id = c.tld_id
|
|
join tld_company k on b.company_number = k.code
|
|
join tld_company k on b.company_number = k.code
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
- <if test="type != null and type != ''">
|
|
|
|
- and a.type = #{type}
|
|
|
|
- </if>
|
|
|
|
<if test="materialCode != null and materialCode != ''">
|
|
<if test="materialCode != null and materialCode != ''">
|
|
and c.code like CONCAT(CONCAT('%', #{materialCode}), '%')
|
|
and c.code like CONCAT(CONCAT('%', #{materialCode}), '%')
|
|
</if>
|
|
</if>
|
|
<if test="materialName != null and materialName != ''">
|
|
<if test="materialName != null and materialName != ''">
|
|
and c.name like CONCAT(CONCAT('%', #{materialName}), '%')
|
|
and c.name like CONCAT(CONCAT('%', #{materialName}), '%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialId != null and materialId != ''">
|
|
|
|
+ and c.tld_id like CONCAT(CONCAT('%', #{materialId}), '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="partType != null and partType != ''">
|
|
|
|
+ and c.part_type = #{partType}
|
|
|
|
+ </if>
|
|
<if test="startTime != null and startTime != ''">
|
|
<if test="startTime != null and startTime != ''">
|
|
and b.notice_time <![CDATA[>=]]> #{startTime}
|
|
and b.notice_time <![CDATA[>=]]> #{startTime}
|
|
</if>
|
|
</if>
|
|
@@ -1000,9 +1004,6 @@
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
and b.company_number = #{companyNumber}
|
|
and b.company_number = #{companyNumber}
|
|
</if>
|
|
</if>
|
|
- <if test="entryNumber != null and entryNumber != ''">
|
|
|
|
- and a.entry_number like CONCAT(CONCAT('%', #{entryNumber}), '%')
|
|
|
|
- </if>
|
|
|
|
<if test="wbs != null and wbs != ''">
|
|
<if test="wbs != null and wbs != ''">
|
|
and a.wbs like CONCAT(CONCAT('%', #{wbs}), '%')
|
|
and a.wbs like CONCAT(CONCAT('%', #{wbs}), '%')
|
|
</if>
|
|
</if>
|
|
@@ -1019,11 +1020,11 @@
|
|
select
|
|
select
|
|
a.id,
|
|
a.id,
|
|
a.ask_goods_id,
|
|
a.ask_goods_id,
|
|
- a.entry_number,
|
|
|
|
a.material_id,
|
|
a.material_id,
|
|
a.wbs,
|
|
a.wbs,
|
|
a.measurement_id,
|
|
a.measurement_id,
|
|
a.num,
|
|
a.num,
|
|
|
|
+ a.out_num,
|
|
b.ask_goods_code,
|
|
b.ask_goods_code,
|
|
b.company_number,
|
|
b.company_number,
|
|
b.sqrq,
|
|
b.sqrq,
|
|
@@ -1041,15 +1042,18 @@
|
|
join tld_material c on a.material_id = c.tld_id
|
|
join tld_material c on a.material_id = c.tld_id
|
|
join tld_company k on b.company_number = k.code
|
|
join tld_company k on b.company_number = k.code
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
- <if test="askGoodsType != null and askGoodsType != ''">
|
|
|
|
- and a.ask_goods_type = #{askGoodsType}
|
|
|
|
- </if>
|
|
|
|
<if test="materialCode != null and materialCode != ''">
|
|
<if test="materialCode != null and materialCode != ''">
|
|
and c.code like CONCAT(CONCAT('%', #{materialCode}), '%')
|
|
and c.code like CONCAT(CONCAT('%', #{materialCode}), '%')
|
|
</if>
|
|
</if>
|
|
<if test="materialName != null and materialName != ''">
|
|
<if test="materialName != null and materialName != ''">
|
|
and c.name like CONCAT(CONCAT('%', #{materialName}), '%')
|
|
and c.name like CONCAT(CONCAT('%', #{materialName}), '%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="materialId != null and materialId != ''">
|
|
|
|
+ and c.tld_id like CONCAT(CONCAT('%', #{materialId}), '%')
|
|
|
|
+ </if>
|
|
|
|
+ <if test="partType != null and partType != ''">
|
|
|
|
+ and c.part_type = #{partType}
|
|
|
|
+ </if>
|
|
<if test="startTime != null and startTime != ''">
|
|
<if test="startTime != null and startTime != ''">
|
|
and b.sqrq <![CDATA[>=]]> #{startTime}
|
|
and b.sqrq <![CDATA[>=]]> #{startTime}
|
|
</if>
|
|
</if>
|
|
@@ -1059,9 +1063,6 @@
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
and b.company_number = #{companyNumber}
|
|
and b.company_number = #{companyNumber}
|
|
</if>
|
|
</if>
|
|
- <if test="entryNumber != null and entryNumber != ''">
|
|
|
|
- and a.entry_number like CONCAT(CONCAT('%', #{entryNumber}), '%')
|
|
|
|
- </if>
|
|
|
|
<if test="wbs != null and wbs != ''">
|
|
<if test="wbs != null and wbs != ''">
|
|
and a.wbs like CONCAT(CONCAT('%', #{wbs}), '%')
|
|
and a.wbs like CONCAT(CONCAT('%', #{wbs}), '%')
|
|
</if>
|
|
</if>
|