待处理 我的数据
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>
|
||||
|
||||
@@ -217,4 +217,39 @@
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getSpecialShopStageInfo" resultMap="BaseResultMap">
|
||||
select
|
||||
*
|
||||
from xfsg_shop_stage_info a
|
||||
<if test="investmentUserId!=null and investmentUserId!='' and queryUserType == 0 ">
|
||||
left join xfsg_line_info b on a.line_id = b.id
|
||||
</if>
|
||||
<if test="investmentUserId!=null and investmentUserId!='' and queryUserType == 1 ">
|
||||
left join xfsg_system_building_shop c on a.id = c.shop_id
|
||||
</if>
|
||||
<where>
|
||||
<if test="shopIds != null and shopIds.size() > 0">
|
||||
and a.id in
|
||||
<foreach collection="shopIds" item="shopId" index="index" open="(" separator="," close=")">
|
||||
#{shopId}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="shopSubStage!=null">
|
||||
and a.shop_sub_stage = #{shopSubStage}
|
||||
</if>
|
||||
<if test="shopSubStageStatusList != null and shopSubStageStatusList.size() > 0">
|
||||
and a.shop_sub_stage_status in
|
||||
<foreach collection="shopSubStageStatusList" item="stageStatus" index="index" open="(" separator="," close=")">
|
||||
#{stageStatus}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="investmentUserId!=null and investmentUserId!='' and queryUserType == 0">
|
||||
and b.investment_manager = #{investmentUserId}
|
||||
</if>
|
||||
<if test="investmentUserId!=null and investmentUserId!='' and queryUserType == 1">
|
||||
and c.supervisor_id = #{investmentUserId}
|
||||
</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user