|
@@ -57,7 +57,8 @@
|
|
</select>
|
|
</select>
|
|
<!-- 查询是否是混合物料 -->
|
|
<!-- 查询是否是混合物料 -->
|
|
<select id="getIsNotSisable" resultType="String">
|
|
<select id="getIsNotSisable" resultType="String">
|
|
- select is_not_disable
|
|
|
|
|
|
+ select
|
|
|
|
+ ifnull(is_not_disable,'') as isNotDisable
|
|
from tld_material
|
|
from tld_material
|
|
where code = #{wllbCode}
|
|
where code = #{wllbCode}
|
|
</select>
|
|
</select>
|
|
@@ -318,6 +319,7 @@
|
|
c.real_name as realName,
|
|
c.real_name as realName,
|
|
a.order_code as orderCode,
|
|
a.order_code as orderCode,
|
|
f.name as accountName,
|
|
f.name as accountName,
|
|
|
|
+ a.account_sleeve as accountSleeve,
|
|
if(a.purchase_num = '', null, a.purchase_num) as purchaseNum
|
|
if(a.purchase_num = '', null, a.purchase_num) as purchaseNum
|
|
from tld_storage a
|
|
from tld_storage a
|
|
left join tld_material b on a.wllb_code = b.code
|
|
left join tld_material b on a.wllb_code = b.code
|
|
@@ -639,10 +641,11 @@
|
|
c.user_name,
|
|
c.user_name,
|
|
a.scrq,
|
|
a.scrq,
|
|
a.storage_code,
|
|
a.storage_code,
|
|
- a.wbs,
|
|
|
|
|
|
+ if(a.wbs = '' , null ,a.wbs) wbs,
|
|
c.real_name as realName,
|
|
c.real_name as realName,
|
|
- a.production_code as productionCode,
|
|
|
|
- e.name as accountName
|
|
|
|
|
|
+ if(a.production_code = '' , null ,a.production_code) as productionCode,
|
|
|
|
+ e.name as accountName,
|
|
|
|
+ a.account_sleeve as accountSleeve
|
|
from tld_half_product a
|
|
from tld_half_product a
|
|
left join tld_material b on a.wllb_code = b.code
|
|
left join tld_material b on a.wllb_code = b.code
|
|
left join tld_user c on a.user_id = c.id
|
|
left join tld_user c on a.user_id = c.id
|
|
@@ -730,7 +733,7 @@
|
|
size,
|
|
size,
|
|
wllb_class,
|
|
wllb_class,
|
|
is_not_disable,
|
|
is_not_disable,
|
|
- is_recommend,
|
|
|
|
|
|
+ ifnull(is_recommend,'') as isRecommend,
|
|
part_type
|
|
part_type
|
|
from tld_material
|
|
from tld_material
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
@@ -816,7 +819,7 @@
|
|
a.storage_code,
|
|
a.storage_code,
|
|
a.wbs,
|
|
a.wbs,
|
|
c.real_name as realName,
|
|
c.real_name as realName,
|
|
- a.production_code as productionCod,
|
|
|
|
|
|
+ a.production_code as productionCode,
|
|
a.account_sleeve as companyNumber,
|
|
a.account_sleeve as companyNumber,
|
|
f.name as accountName
|
|
f.name as accountName
|
|
from tld_half a
|
|
from tld_half a
|
|
@@ -855,6 +858,9 @@
|
|
<if test="storageLocationName != null and storageLocationName != ''">
|
|
<if test="storageLocationName != null and storageLocationName != ''">
|
|
and e.storage_location_name like CONCAT(CONCAT('%', #{storageLocationName}), '%')
|
|
and e.storage_location_name like CONCAT(CONCAT('%', #{storageLocationName}), '%')
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="productionCode != null and productionCode != ''">
|
|
|
|
+ and a.production_code like CONCAT(CONCAT('%', #{productionCode}), '%')
|
|
|
|
+ </if>
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
and a.account_sleeve = #{companyNumber}
|
|
and a.account_sleeve = #{companyNumber}
|
|
</if>
|
|
</if>
|
|
@@ -872,13 +878,13 @@
|
|
a.storage_location_code,
|
|
a.storage_location_code,
|
|
a.scrq,
|
|
a.scrq,
|
|
a.serial,
|
|
a.serial,
|
|
- if(a.seq = '' , null , a.seq) as seq,
|
|
|
|
if(a.attribute = '' , null , a.attribute) as attribute,
|
|
if(a.attribute = '' , null , a.attribute) as attribute,
|
|
a.storage_code,
|
|
a.storage_code,
|
|
if(a.wbs = '' , null , a.wbs) as wbs,
|
|
if(a.wbs = '' , null , a.wbs) as wbs,
|
|
c.real_name as realName,
|
|
c.real_name as realName,
|
|
a.production_code as productionCode,
|
|
a.production_code as productionCode,
|
|
- f.name as accountName
|
|
|
|
|
|
+ f.name as accountName,
|
|
|
|
+ a.account_sleeve as accountSleeve
|
|
from tld_half a
|
|
from tld_half a
|
|
left join tld_material b on a.wllb_code = b.code
|
|
left join tld_material b on a.wllb_code = b.code
|
|
left join tld_user c on a.user_id = c.id
|
|
left join tld_user c on a.user_id = c.id
|
|
@@ -917,9 +923,6 @@
|
|
<if test="storageLocationName != null and storageLocationName != ''">
|
|
<if test="storageLocationName != null and storageLocationName != ''">
|
|
and e.storage_location_name like CONCAT(CONCAT('%', #{storageLocationName}), '%')
|
|
and e.storage_location_name like CONCAT(CONCAT('%', #{storageLocationName}), '%')
|
|
</if>
|
|
</if>
|
|
- <if test="productionCode != null and productionCode != ''">
|
|
|
|
- and a.production_code like CONCAT(CONCAT('%', #{productionCode}), '%')
|
|
|
|
- </if>
|
|
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
<if test="companyNumber != null and companyNumber != ''">
|
|
and a.account_sleeve = #{companyNumber}
|
|
and a.account_sleeve = #{companyNumber}
|
|
</if>
|
|
</if>
|