|
|
@@ -1966,5 +1966,25 @@ left join department d on o.order_dep = d.id left join t_order_mid a on o.orde
|
|
|
select order_no orderNo,contract_picture_url contractPictureUrl ,agreement_url agreementUrl ,service_content serviceContent
|
|
|
from t_order_new where delete_sign in (0,2)
|
|
|
</select>
|
|
|
+ <select id="getProcessName" resultType="com.goafanti.order.bo.OrderProcessName">
|
|
|
+ select a.order_no orderNo,a.approval ,b.name ,yxgly.name yxgly,d.name cwzy,zc.name zc,
|
|
|
+ zxsgly.name zxsgly,dsz.name dsz
|
|
|
+ from t_order_new a left join admin b on a.salesman_id =b.id
|
|
|
+ left join department c on a.order_dep =c.id
|
|
|
+ left join (select a.department_id depId,group_concat(a.name) name
|
|
|
+ from admin a left join user_role b on a.id=b.uid left join `role` c on b.rid =c.id
|
|
|
+ where c.role_type ='9996' and a.status ='0' group by a.department_id )yxgly on c.id =yxgly.depId
|
|
|
+ left join admin d on c.finance_id =d.id
|
|
|
+ left join (select group_concat(a.name) name
|
|
|
+ from admin a left join user_role b on a.id=b.uid left join `role` c on b.rid =c.id
|
|
|
+ where c.role_type in ('99998','99988') and a.status ='0' ) zc on 1=1
|
|
|
+ left join (select group_concat(a.name) name
|
|
|
+ from admin a left join user_role b on a.id=b.uid left join `role` c on b.rid =c.id
|
|
|
+ where c.role_type in ('99999','99989') and a.status ='0' ) dsz on 1=1
|
|
|
+ left join (select group_concat(a.name) name
|
|
|
+ from admin a left join user_role b on a.id=b.uid left join `role` c on b.rid =c.id
|
|
|
+ where c.role_type in ('9998') and a.status ='0' ) zxsgly on 1=1
|
|
|
+ where a.order_no = #{orderNo}
|
|
|
+ </select>
|
|
|
|
|
|
</mapper>
|