|
@@ -300,10 +300,12 @@
|
|
mp.repertory_out_time,
|
|
mp.repertory_out_time,
|
|
mp.if_save_file,
|
|
mp.if_save_file,
|
|
mp.save_file_date,
|
|
mp.save_file_date,
|
|
- mp.delivery
|
|
|
|
|
|
+ mp.delivery,
|
|
|
|
+ `of`.should_amount AS orderShouldAmount
|
|
FROM
|
|
FROM
|
|
major_production mp
|
|
major_production mp
|
|
LEFT JOIN ( SELECT id, business_id, production_no, real_amount, production_type FROM production_fund WHERE business_type = 'MAJOR_BUSINESS' AND deleted = 0 ) pf ON ( mp.major_id = pf.business_id AND mp.report_no = pf.production_no AND mp.production = pf.production_type )
|
|
LEFT JOIN ( SELECT id, business_id, production_no, real_amount, production_type FROM production_fund WHERE business_type = 'MAJOR_BUSINESS' AND deleted = 0 ) pf ON ( mp.major_id = pf.business_id AND mp.report_no = pf.production_no AND mp.production = pf.production_type )
|
|
|
|
+ LEFT JOIN (SELECT business_id,should_amount FROM order_fund WHERE business_type = 'MAJOR_BUSINESS' AND deleted = 0) AS `of` ON mp.major_id = `of`.business_id
|
|
WHERE
|
|
WHERE
|
|
mp.major_id = #{majorId} and mp.deleted = 0
|
|
mp.major_id = #{majorId} and mp.deleted = 0
|
|
|
|
|
|
@@ -373,7 +375,7 @@
|
|
and wtr.handler_id =#{todoVO.handlerId}
|
|
and wtr.handler_id =#{todoVO.handlerId}
|
|
AND wnt.deleted = 0
|
|
AND wnt.deleted = 0
|
|
AND wtr.deleted = 0
|
|
AND wtr.deleted = 0
|
|
- and pf.real_amount is not null
|
|
|
|
|
|
+# and pf.real_amount is not null
|
|
<if test="keyword!=null and keyword!='' ">
|
|
<if test="keyword!=null and keyword!='' ">
|
|
and (
|
|
and (
|
|
mp.name like concat('%',#{keyword},'%')
|
|
mp.name like concat('%',#{keyword},'%')
|