|
@@ -324,6 +324,9 @@
|
|
<result column="delivery" property="delivery" />
|
|
<result column="delivery" property="delivery" />
|
|
<result column="mDeclareResult" property="mDeclareResult" />
|
|
<result column="mDeclareResult" property="mDeclareResult" />
|
|
<result column="eDeclareResult" property="eDeclareResult" />
|
|
<result column="eDeclareResult" property="eDeclareResult" />
|
|
|
|
+ <result column="repertoryState" property="repertoryState" />
|
|
|
|
+ <result column="mDeclareResult" property="mDeclareResult" />
|
|
|
|
+ <result column="eDeclareResult" property="eDeclareResult" />
|
|
<association property="currentNodeName" javaType="java.lang.String"
|
|
<association property="currentNodeName" javaType="java.lang.String"
|
|
select="queryCurrentNodeName" column="{businessId=businessId,productionNo=productionNo}"/>
|
|
select="queryCurrentNodeName" column="{businessId=businessId,productionNo=productionNo}"/>
|
|
</resultMap>
|
|
</resultMap>
|
|
@@ -371,11 +374,12 @@
|
|
pf.production_should_amount as shouldAmount,
|
|
pf.production_should_amount as shouldAmount,
|
|
fi.invoiceAmount,
|
|
fi.invoiceAmount,
|
|
mp.delivery,
|
|
mp.delivery,
|
|
|
|
+ (case mp.repertory_state when 0 then '已入库' when 1 then '已出库' else '未入库' end ) repertoryState,
|
|
( SELECT declare_result FROM commission_declare WHERE business_id = m.id AND production_id IS NULL AND business_type = 'COMMISSION_DECLARE_MAJOR_MARKET' AND deleted = 0 ) as mDeclareResult,
|
|
( SELECT declare_result FROM commission_declare WHERE business_id = m.id AND production_id IS NULL AND business_type = 'COMMISSION_DECLARE_MAJOR_MARKET' AND deleted = 0 ) as mDeclareResult,
|
|
( SELECT declare_result FROM commission_declare WHERE business_id = m.id AND production_id IS NULL AND business_type = 'COMMISSION_DECLARE_MAJOR_EVALUATE' AND deleted = 0 ) as eDeclareResult
|
|
( SELECT declare_result FROM commission_declare WHERE business_id = m.id AND production_id IS NULL AND business_type = 'COMMISSION_DECLARE_MAJOR_EVALUATE' AND deleted = 0 ) as eDeclareResult
|
|
FROM
|
|
FROM
|
|
major m
|
|
major m
|
|
- left join (select id,name,major_id,report_no,evaluate_amount,production,if_save_file,delivery from major_production where deleted = 0 ) mp on mp.major_id = m.id
|
|
|
|
|
|
+ left join (select id,name,major_id,report_no,evaluate_amount,production,if_save_file,delivery,repertory_state from major_production where deleted = 0 ) mp on mp.major_id = m.id
|
|
left join user u on u.id = m.principal_id
|
|
left join user u on u.id = m.principal_id
|
|
left join user u1 on u1.id = m.client_manager_id
|
|
left join user u1 on u1.id = m.client_manager_id
|
|
left join customer_company cc on cc.id = m.clientele_id
|
|
left join customer_company cc on cc.id = m.clientele_id
|