|
|
|
@ -193,8 +193,8 @@ |
|
|
|
|
|
|
|
|
|
<!-- 根据业务id获取当前业务的信息专员、资产专员以及AB角的用户id --> |
|
|
|
|
<select id="getAttacheAndABByBusinessId" parameterType="integer" resultType="com.daqing.framework.domain.guarantee.po.AttacheAndABUserIdPO"> |
|
|
|
|
SELECT (SELECT id FROM dg_guarantee_assign_user WHERE business_id = #{businessId} AND role_id = 59) AS a_user_id, |
|
|
|
|
(SELECT id FROM dg_guarantee_assign_user WHERE business_id = #{businessId} AND role_id = 60) AS b_user_id, |
|
|
|
|
SELECT (SELECT emp_id FROM dg_guarantee_assign_user WHERE business_id = #{businessId} AND role_id = 59) AS a_user_id, |
|
|
|
|
(SELECT emp_id FROM dg_guarantee_assign_user WHERE business_id = #{businessId} AND role_id = 60) AS b_user_id, |
|
|
|
|
a.emp_id AS asset_user_id,m.emp_id AS message_user_id |
|
|
|
|
FROM dg_assets_investigation AS a |
|
|
|
|
LEFT JOIN dg_message_investigation AS m |
|
|
|
|