待处理 我的数据
This commit is contained in:
@@ -357,6 +357,20 @@
|
||||
xfsg_line_info where deleted = 0 and line_status = 1
|
||||
</select>
|
||||
|
||||
|
||||
<select id="investmentData" resultType="com.cool.store.dto.InvestmentCountDTO">
|
||||
SELECT
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 1, 1, 0 ) ) AS intendCount,
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 5, 1, 0 ) ) AS interviewCount,
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 10, 1, 0 ) ) AS firstInterviewCount,
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 15, 1, 0 ) ) AS payStageCount,
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 20, 1, 0 ) ) AS signingCount,
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 25, 1, 0 ) ) AS storeExperienceCount,
|
||||
sum( IF ( investment_manager = #{userId} AND workflow_sub_stage = 30, 1, 0 ) ) AS secondInterviewCount
|
||||
FROM
|
||||
xfsg_line_info where deleted = 0 and line_status = 1 and investment_manager = #{userId}
|
||||
</select>
|
||||
|
||||
<select id="lineList" resultMap="BaseResultMap">
|
||||
select * from xfsg_line_info a
|
||||
<if test="wantShopAreaName!=null">
|
||||
@@ -485,7 +499,7 @@
|
||||
join enterprise_user_${enterpriseId} eu on xli.investment_manager = eu.user_id
|
||||
where deleted = 0 and join_status = 1 and line_status = 1
|
||||
<if test=" lineIdList != null and lineIdList.size>0">
|
||||
and id in
|
||||
and xli.id in
|
||||
<foreach collection="lineIdList" item="lineId" open="(" separator="," close=")">
|
||||
#{lineId}
|
||||
</foreach>
|
||||
|
||||
Reference in New Issue
Block a user