|
|
@@ -738,11 +738,13 @@
|
|
|
left join tld_company g on c.company_number = g.code
|
|
|
left join tld_wbs f on a.wbs = f.tld_id
|
|
|
WHERE
|
|
|
- ((a.num + 0) <![CDATA[>]]> (IFNULL(a.out_num, 0) + 0) or ((a.num like '-%') and ((a.num + 0) != (a.out_num + 0))))
|
|
|
- and b.part_type = #{partType}
|
|
|
+ b.part_type = #{partType}
|
|
|
<if test="userId != null and userId != ''">
|
|
|
and b.code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
</if>
|
|
|
+ <if test="isWeb == '0'.toString()">
|
|
|
+ and ((a.num + 0) <![CDATA[>]]> (IFNULL(a.out_num, 0) + 0) or ((a.num like '-%') and ((a.num + 0) != (a.out_num + 0))))
|
|
|
+ </if>
|
|
|
<if test="productionCode != null and productionCode != ''">
|
|
|
and a.production_code like CONCAT(CONCAT('%', #{productionCode}), '%')
|
|
|
</if>
|
|
|
@@ -1714,7 +1716,7 @@
|
|
|
<select id="getCallWorkOrder" resultType="java.util.Map">
|
|
|
select
|
|
|
storage_code as storageCode,
|
|
|
- user_name as userName
|
|
|
+ ifnull(user_name, '300168') as userName
|
|
|
from tld_return_gs_warehousing where source_type <![CDATA[=]]> 'W'
|
|
|
</select>
|
|
|
<!-- 修改数据传输状态 -->
|