|
@@ -451,7 +451,9 @@
|
|
|
join tld_material c on a.material_id = c.tld_id
|
|
|
join tld_company e on b.company_number = e.code
|
|
|
<trim prefix="WHERE" prefixOverrides="and |or">
|
|
|
- and c.code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
+ <if test="userId != null and userId != ''">
|
|
|
+ and c.code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
+ </if>
|
|
|
<if test="type != null and type != ''">
|
|
|
and a.type = #{type}
|
|
|
</if>
|
|
@@ -884,7 +886,7 @@
|
|
|
b.user_name,
|
|
|
a.account_sleeve
|
|
|
from tld_warehousing_virtual a
|
|
|
- left join tld_user b on a.user_id = b.id
|
|
|
+ left join tld_user b on a.user_id = b.id
|
|
|
where a.unique_code = #{uniqueCode}
|
|
|
and a.type = #{type}
|
|
|
and a.notice_id = #{noticeId}
|
|
@@ -1169,4 +1171,8 @@
|
|
|
<update id="updateNoticesWarehousingNum">
|
|
|
update tld_notices set warehousing_num = warehousing_num + #{amount} where notice_id = #{noticeId} and entry_number = #{entryNumber}
|
|
|
</update>
|
|
|
+ <!-- 查询库存是否存在此产成品 -->
|
|
|
+ <select id="getFinishedInfo" resultType="String">
|
|
|
+ select id from tld_inventory where wllb_code = #{wllbCode} and wbs = #{wbs} and account_sleeve = #{accountSleeve} limit 1
|
|
|
+ </select>
|
|
|
</mapper>
|