|
|
@@ -88,11 +88,14 @@
|
|
|
a.production_code,
|
|
|
a.wbs,
|
|
|
a.entry_number,
|
|
|
- e.wllb_class
|
|
|
+ e.wllb_class,
|
|
|
+ a.wbs,
|
|
|
+ f.code as wbsCode
|
|
|
FROM tld_ask_goods a
|
|
|
JOIN tld_ask_goods_f b ON a.ask_goods_id = b.ask_goods_id
|
|
|
LEFT JOIN tld_department c ON b.department = c.code
|
|
|
JOIN tld_material e ON a.material_id = e.tld_id
|
|
|
+ LEFT JOIN tld_wbs f ON a.wbs = f.tld_id
|
|
|
WHERE (a.num + 0) <![CDATA[>]]> (
|
|
|
IFNULL(a.out_num, 0) + 0)
|
|
|
and e.part_type != '半成品' and e.part_type != '产成品'
|
|
|
@@ -697,6 +700,7 @@
|
|
|
e.name as department,
|
|
|
a.type,
|
|
|
a.wbs,
|
|
|
+ f.code as wbsCode,
|
|
|
a.entry_number,
|
|
|
g.name as companyName,
|
|
|
c.source_type,
|
|
|
@@ -709,6 +713,7 @@
|
|
|
join tld_ask_goods_f c on a.ask_goods_id = c.ask_goods_id
|
|
|
left join tld_department e on c.department = e.code
|
|
|
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[>]]> (a.out_num + 0) and
|
|
|
b.part_type = #{partType}
|
|
|
@@ -948,6 +953,9 @@
|
|
|
<if test="endTime != null and endTime != ''">
|
|
|
and a.scrq <![CDATA[<=]]> #{endTime}
|
|
|
</if>
|
|
|
+ <if test="num != null and num != ''">
|
|
|
+ and a.num = #{num}
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
order by a.scrq desc
|
|
|
</select>
|