|
@@ -1354,17 +1354,16 @@
|
|
|
SELECT
|
|
|
count(*)
|
|
|
FROM
|
|
|
- tld_trace_back a
|
|
|
- JOIN tld_material b ON a.material_id = b.tld_id
|
|
|
- where (a.out_num + 0) <![CDATA[<]]> (
|
|
|
- a.num + 0) and b.code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
+ tld_trace_back
|
|
|
+ where (out_num + 0) <![CDATA[<]]> (
|
|
|
+ num + 0) and material_code in (select material_id from tld_user_material where user_id = #{userId})
|
|
|
</select>
|
|
|
<!-- 查询发货追溯任务数量 -->
|
|
|
<select id="getBanChenPinChu" resultType="int">
|
|
|
SELECT
|
|
|
count(*)
|
|
|
FROM
|
|
|
- tld_trace_back a
|
|
|
+ tld_ask_goods a
|
|
|
JOIN tld_material b on a.material_id = b.tld_id
|
|
|
WHERE
|
|
|
( a.out_num + 0 ) <![CDATA[<]]> (
|