|
|
@@ -2501,7 +2501,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <delete id="deleteBySplitId" parameterType="java.lang.Integer">
|
|
|
+ <delete id="deleteBySplitId" parameterType="java.lang.Integer">
|
|
|
delete from t_order_task
|
|
|
where split_super = #{id,jdbcType=INTEGER}
|
|
|
</delete>
|
|
|
@@ -2511,4 +2511,23 @@
|
|
|
where manager_id = #{aid}
|
|
|
</update>
|
|
|
|
|
|
+ <select id="selectStatisticsOrderProject" resultType="com.goafanti.order.bo.OutOrderProject">
|
|
|
+ SELECT a.order_no as orderNo, a.order_type orderType,a.sales_type as salesType,b.service_type AS serviceType,a.liquidation_status as liquidationStatus,
|
|
|
+ '催款节点' as dunNodeContent,b.project_type as projectType, a.total_amount as totalAmount,a.approval ,a.sign_time as signTime,
|
|
|
+ a.create_time as createTime,b.buyer_name as buyerName,a.contract_no as contractNo, d.bname htlx,
|
|
|
+ a.settlement_amount as settlementAmount,b.invoice_amount as invicueAmount, b.cost_amount as costAmount,b.payment_amount as paymentAmount,
|
|
|
+ b.finance_name as financeName,b.salesman_name as salesmanName, e.commodity_name as commodityName,e2.service_year as serviceYear,
|
|
|
+ e2.service_life as serviceLife,e2.year_sum as yearSum,e.task_distribution_time as taskDistributionTime ,e.commodity_quantity as commodityQuantity,
|
|
|
+ e3.cost_amount as costAmount,e.project_status as projectStatus,e.task_start_time as taskStartTime,e.task_end_time as taskEndTime,
|
|
|
+ e.receiver_name as receiverName ,'技术组',t1.cb,a.order_type orderType,
|
|
|
+ e.task_comment taskComment,'核算比例',a.order_status orderStatus,t1.counts,t1.tdtk
|
|
|
+ from t_order_new a left join t_order_mid b on a.order_no =b.order_no
|
|
|
+ left join t_order_task c on a.order_no =c.order_no and c.main =1
|
|
|
+ left join business_project d on c.commodity_id =d.id left join business_category d2 on d.cid =d2.id
|
|
|
+ left join t_order_task e on a.order_no =e.order_no and e.split_status in (0,2)
|
|
|
+ left join t_task_member e2 on e.id =e2.tid left join t_task_mid e3 on e.id =e3.tid
|
|
|
+ left join (SELECT order_no ,count(*)counts,sum(if(`type`=0,1,0))tdtk,sum(if(`type`=4,1,0))cb
|
|
|
+ from new_order_change group by order_no ) t1 on a.order_no =t1.order_no
|
|
|
+ where a.process_status >6
|
|
|
+ </select>
|
|
|
</mapper>
|