| | |
| | | </select> |
| | | |
| | | <select id="selectStatsCheckUnit" resultType="com.panzhihua.common.model.vos.neighbor.ServiceStaticsVO"> |
| | | select count(t1.checkId) as times,sum(t1.hours) as hours from |
| | | ((select real_service_time as hours,solve_unit_id as checkId from com_act_neighbor_circle where order_type = 1 and solve_status = 4 and solve_unit_id = #{checkUnitId} and create_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59')) |
| | | select count(t1.checkId) as times,COALESCE(sum(t1.hours),0) as hours from |
| | | ((select real_service_time as hours,solve_unit_id as checkId from com_act_neighbor_circle where order_type = 1 AND is_del = 2 and solve_status = 4 and solve_unit_id = #{checkUnitId} and order_time between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59')) |
| | | union all |
| | | (select duration as hours,check_unit_id as checkId from com_act_activity where check_unit_id = #{checkUnitId} and publish_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59'))) t1 |
| | | (select duration as hours,check_unit_id as checkId from com_act_activity where check_unit_id = #{checkUnitId} AND `status` = 5 and publish_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59')) |
| | | union all |
| | | (SELECT a.duration AS hours,s.check_unit_id AS checkId FROM com_act_activity a LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | WHERE s.end_time IS NOT NULL AND s.check_unit_id = #{checkUnitId} AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) AND concat( #{date}, '-12-31 23:59:59' ) GROUP BY a.id) |
| | | ) t1 |
| | | </select> |
| | | <select id="selectListByCheckUnitId" resultType="com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleAppVO"> |
| | | SELECT |
| | |
| | | where is_del = 2 and canc.solve_status=4 and canc.solve_unit_id = #{checkUnitId} and canc.create_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59') |
| | | </select> |
| | | |
| | | <select id="selectServiceDetailList" resultType="com.panzhihua.common.model.vos.neighbor.ServiceDetailStaticsVO"> |
| | | <if test="serviceType == null"> |
| | | SELECT * FROM ( |
| | | SELECT |
| | | id AS serviceId, |
| | | order_time AS serviceAt, |
| | | real_service_time AS serviceTime, |
| | | 1 AS serviceType |
| | | FROM |
| | | com_act_neighbor_circle |
| | | WHERE |
| | | order_type = 1 |
| | | AND is_del = 2 |
| | | AND solve_status = 4 |
| | | AND solve_unit_id = #{checkUnitId} |
| | | AND order_time BETWEEN concat(#{date}, '-01-01 00:00:00') |
| | | AND concat(#{date}, '-12-31 23:59:59') |
| | | UNION ALL |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 2 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND s.check_unit_id = #{checkUnitId} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY |
| | | a.id |
| | | UNION ALL |
| | | SELECT |
| | | id AS serviceId, |
| | | publish_at AS serviceAt, |
| | | duration AS serviceTime, |
| | | 3 AS serviceType |
| | | FROM |
| | | com_act_activity |
| | | WHERE |
| | | check_unit_id = #{checkUnitId} |
| | | AND `status` = 5 |
| | | AND publish_at BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | ) temp ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 1"> |
| | | SELECT |
| | | id AS serviceId, |
| | | order_time AS serviceAt, |
| | | real_service_time AS serviceTime, |
| | | 1 AS serviceType |
| | | FROM |
| | | com_act_neighbor_circle |
| | | WHERE |
| | | order_type = 1 |
| | | AND is_del = 2 |
| | | AND solve_status = 4 |
| | | AND solve_unit_id = #{checkUnitId} |
| | | AND order_time BETWEEN concat(#{date}, '-01-01 00:00:00') |
| | | AND concat(#{date}, '-12-31 23:59:59') |
| | | ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 2"> |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 2 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND s.check_unit_id = #{checkUnitId} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY a.id |
| | | ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 3"> |
| | | SELECT |
| | | id AS serviceId, |
| | | publish_at AS serviceAt, |
| | | duration AS serviceTime, |
| | | 3 AS serviceType |
| | | FROM |
| | | com_act_activity |
| | | WHERE |
| | | check_unit_id = #{checkUnitId} |
| | | AND `status` = 5 |
| | | AND publish_at BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | ORDER BY serviceAt |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectServiceDetailListForPersonal" resultType="com.panzhihua.common.model.vos.neighbor.ServiceDetailStaticsVO"> |
| | | <if test="serviceType == null"> |
| | | SELECT * FROM ( |
| | | SELECT |
| | | canc.id AS serviceId, |
| | | canc.order_time AS serviceAt, |
| | | canc.real_service_time AS serviceTime, |
| | | 1 AS serviceType |
| | | FROM |
| | | com_act_neighbor_circle AS canc |
| | | LEFT JOIN sys_user su1 ON su1.user_id = canc.solve_id |
| | | WHERE |
| | | canc.order_type = 2 |
| | | AND canc.is_del = 2 |
| | | AND canc.solve_status = 4 |
| | | AND su1.phone = #{phone} |
| | | AND canc.order_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | <if test="checkUnitId != null"> |
| | | UNION ALL |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 2 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND s.check_unit_id = #{checkUnitId} |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY |
| | | a.id |
| | | </if> |
| | | UNION ALL |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 3 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND a.check_unit_id IS NOT NULL |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY |
| | | a.id |
| | | UNION ALL |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 4 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND a.check_unit_id IS NULL |
| | | AND s.sign_identity = 2 |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY |
| | | a.id |
| | | ) temp ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 1"> |
| | | SELECT |
| | | canc.id AS serviceId, |
| | | canc.order_time AS serviceAt, |
| | | canc.real_service_time AS serviceTime, |
| | | 1 AS serviceType |
| | | FROM |
| | | com_act_neighbor_circle AS canc |
| | | LEFT JOIN sys_user su1 ON su1.user_id = canc.solve_id |
| | | WHERE |
| | | canc.order_type = 2 |
| | | AND canc.is_del = 2 |
| | | AND canc.solve_status = 4 |
| | | AND su1.phone = #{phone} |
| | | AND canc.order_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 2 and checkUnitId != null"> |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 2 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND s.check_unit_id = #{checkUnitId} |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY a.id |
| | | ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 3"> |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 3 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND a.check_unit_id IS NOT NULL |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY a.id |
| | | ORDER BY serviceAt |
| | | </if> |
| | | <if test="serviceType == 4"> |
| | | SELECT |
| | | a.id AS serviceId, |
| | | a.publish_at AS serviceAt, |
| | | a.duration AS serviceTime, |
| | | 4 AS serviceType |
| | | FROM |
| | | com_act_activity a |
| | | LEFT JOIN com_act_act_regist s ON a.id = s.activity_id |
| | | LEFT JOIN sys_user su ON su.user_id = s.user_id |
| | | WHERE |
| | | s.end_time IS NOT NULL |
| | | AND a.check_unit_id IS NULL |
| | | AND s.sign_identity = 2 |
| | | AND su.phone = #{phone} |
| | | AND s.start_time BETWEEN concat( #{date}, '-01-01 00:00:00' ) |
| | | AND concat( #{date}, '-12-31 23:59:59' ) |
| | | GROUP BY a.id |
| | | ORDER BY serviceAt |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectStatsUser" resultType="com.panzhihua.common.model.vos.neighbor.ServiceStaticsVO"> |
| | | select count(t1.checkId) as times,sum(t1.hours) as hours from ((select real_service_time as hours,solve_id as checkId from com_act_neighbor_circle canc left join sys_user su on canc.solve_id = su.user_id where order_type = 2 and solve_status = 4 and su.phone = #{phone} and canc.create_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59')) union all |
| | | (select duration as hours,caas.user_id as checkId from com_act_activity caa LEFT JOIN com_act_act_regist caas on caa.id = caas.activity_id left join sys_user su on caas.user_id = su.user_id where caa.type !=5 and caas.end_time is not null and su.phone =#{phone} and publish_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59') group by caa.id)) t1 |
| | | select count(t1.checkId) as times,sum(t1.hours) as hours from ((select real_service_time as hours,solve_id as checkId from com_act_neighbor_circle canc left join sys_user su on canc.solve_id = su.user_id where order_type = 2 AND canc.is_del = 2 and solve_status = 4 and su.phone = #{phone} and canc.order_time between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59')) union all |
| | | (select duration as hours,caas.user_id as checkId from com_act_activity caa LEFT JOIN com_act_act_regist caas on caa.id = caas.activity_id left join sys_user su on caas.user_id = su.user_id where caas.sign_identity = 2 and caas.end_time is not null and su.phone =#{phone} and publish_at between concat(#{date},'-01-01 00:00:00') and concat(#{date},'-12-31 23:59:59') group by caa.id)) t1 |
| | | </select> |
| | | |
| | | <select id="selectListByPhone" resultType="com.panzhihua.common.model.vos.neighbor.ComActNeighborCircleAppVO"> |
| | |
| | | select canc.solve_unit_id as unitId,sum(canc.real_service_time) as serviceTime,count(canc.real_service_time) as serviceTimes,canc.community_id as communityId,cpcu.belong_to |
| | | from com_act_neighbor_circle as canc |
| | | left join com_pb_check_unit as cpcu on canc.solve_unit_id=cpcu.id |
| | | where canc.solve_unit_id<>'' |
| | | where |
| | | canc.order_type = 1 |
| | | AND is_del = 2 |
| | | AND solve_status = 4 |
| | | AND canc.solve_unit_id<>'' |
| | | <if test="beginTime != null"> |
| | | and canc.create_at between #{beginTime} and #{endTime} |
| | | and canc.order_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="belongTo != null and belongTo != ''"> |
| | | and belong_to=#{belongTo} |
| | |
| | | </select> |
| | | <select id="institutionalUnitActivityAnalysis" |
| | | resultType="com.panzhihua.common.model.vos.neighbor.UnitActivityAnalysisVO"> |
| | | SELECT count(caa.check_unit_id) as serviceTimes,sum(caa.duration) as serviceTime,caa.check_unit_id as unitId,caa.community_id as communityId,cpcu.belong_to |
| | | SELECT sum(serviceTimes) AS serviceTimes, sum(serviceTime) as serviceTime, unitId, communityId, belong_to |
| | | FROM ( |
| | | SELECT count(caa.check_unit_id) as serviceTimes,sum(caa.duration) as serviceTime,caa.check_unit_id as |
| | | unitId,caa.community_id as communityId,cpcu.belong_to |
| | | FROM com_act_activity as caa |
| | | left join com_pb_check_unit as cpcu on caa.check_unit_id=cpcu.id |
| | | where caa.check_unit_id<>'' |
| | | where caa.`status` = 5 AND caa.check_unit_id<>'' |
| | | and caa.type=5 |
| | | <if test="beginTime != null"> |
| | | and caa.create_at between #{beginTime} and #{endTime} |
| | | and caa.publish_at between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="belongTo != null and belongTo != ''"> |
| | | and belong_to=#{belongTo} |
| | |
| | | and caa.community_id=#{communityId} |
| | | </if> |
| | | GROUP BY (caa.check_unit_id) |
| | | UNION ALL |
| | | SELECT count(id) as serviceTimes, sum(duration) as serviceTime, check_unit_id as unitId, community_id as |
| | | communityId, belong_to |
| | | FROM( |
| | | SELECT caa.id, caa.duration, s.check_unit_id , cpcu.community_id , cpcu.belong_to |
| | | FROM com_act_activity caa |
| | | LEFT JOIN com_act_act_regist s ON caa.id = s.activity_id |
| | | left join com_pb_check_unit as cpcu on s.check_unit_id = cpcu.id |
| | | WHERE s.end_time IS NOT NULL AND s.check_unit_id IS NOT NULL |
| | | <if test="beginTime != null">AND s.start_time BETWEEN #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="belongTo != null and belongTo != ''">and belong_to=#{belongTo} |
| | | </if> |
| | | <if test="communityId != null"> |
| | | and caa.community_id=#{communityId} |
| | | </if> |
| | | GROUP BY caa.id,s.check_unit_id |
| | | ) temp GROUP BY check_unit_id |
| | | ) temp2 GROUP BY unitId |
| | | having serviceTimes<>'' and serviceTime<>'' |
| | | order by serviceTime desc |
| | | </select> |
| | | <select id="institutionalPartyMemberServiceAnalysis" |
| | | resultType="com.panzhihua.common.model.vos.neighbor.PartyMemberAnalysisVO"> |
| | | SELECT count(caa.sponsor_id) as serviceTimes,sum(caa.duration) as serviceTime,caa.check_unit_id as unitId |
| | | ,caa.community_id as communityId,caa.sponsor_id as memberId,su.name as memberName,su.relation_name as belongUnit,ca.name as belongCommunity,cpcu.belong_to |
| | | SELECT count(id) as serviceTimes, sum(duration) as serviceTime, unitId, |
| | | communityId, memberId, memberName, belongUnit, belongCommunity, belong_to FROM ( |
| | | SELECT caa.id, caa.duration, cpcu.id as unitId, cpcu.community_id as communityId, su.user_id as |
| | | memberId, su.name as memberName, su.relation_name as belongUnit, ca.name as belongCommunity, cpcu.belong_to |
| | | FROM `com_act_activity` as caa |
| | | left join com_act_act_sign as caas on caa.id=caas.activity_id |
| | | left join sys_user as su on caa.sponsor_id=su.user_id |
| | | left join com_act as ca on su.community_id=ca.community_id |
| | | left join com_pb_check_unit as cpcu on ca.community_id=cpcu.community_id |
| | | where caa.sponsor_id<>'' |
| | | and caa.type=3 |
| | | left join com_act_act_regist as caar on caa.id=caar.activity_id |
| | | left join sys_user as su on caar.user_id=su.user_id |
| | | left join com_pb_member as cpm on su.phone=cpm.phone |
| | | left join com_pb_check_unit as cpcu on cpm.check_unit_id=cpcu.id |
| | | left join com_act as ca on cpcu.community_id=ca.community_id |
| | | where caar.sign_identity = 2 AND cpcu.id IS NOT NULL |
| | | <if test="beginTime != null"> |
| | | and caa.create_at between #{beginTime} and #{endTime} |
| | | and caar.start_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="belongTo != null and belongTo != ''"> |
| | | and belong_to=#{belongTo} |
| | | and cpcu.belong_to=#{belongTo} |
| | | </if> |
| | | <if test="communityId != null"> |
| | | and su.community_id=#{communityId} |
| | | and cpcu.community_id=#{communityId} |
| | | </if> |
| | | <if test="unitId != null"> |
| | | and caa.check_unit_id=#{unitId} |
| | | and cpcu.id=#{unitId} |
| | | </if> |
| | | GROUP BY (caa.sponsor_id) |
| | | GROUP BY caa.id,caar.user_id |
| | | ) temp GROUP BY memberId |
| | | having serviceTimes<>'' and serviceTime<>'' and memberName<>'' |
| | | order by serviceTime desc |
| | | </select> |
| | | <select id="institutionalPartyMemberActAnalysis" |
| | | resultType="com.panzhihua.common.model.vos.neighbor.PartyMemberAnalysisVO"> |
| | | SELECT count(canc.solve_id) as serviceTimes,sum(canc.real_service_time) as serviceTime |
| | | ,canc.community_id as communityId,canc.solve_id as memberId,su.name as memberName,su.relation_name as belongUnit,ca.name as belongCommunity,cpcu.belong_to |
| | | ,cpcu.community_id as communityId,canc.solve_id as memberId,su.name as memberName,su.relation_name as belongUnit,ca.name as belongCommunity,cpcu.belong_to |
| | | FROM `com_act_neighbor_circle` as canc |
| | | left join sys_user as su on canc.solve_id=su.user_id |
| | | left join com_act as ca on su.community_id=ca.community_id |
| | | left join com_pb_check_unit as cpcu on ca.community_id=cpcu.community_id |
| | | where canc.solve_id<>'' |
| | | left join com_pb_member as cpm on su.phone=cpm.phone |
| | | left join com_pb_check_unit as cpcu on cpm.check_unit_id=cpcu.id |
| | | left join com_act as ca on cpcu.community_id=ca.community_id |
| | | where cpcu.id IS NOT NULL |
| | | <if test="beginTime != null"> |
| | | and canc.create_at between #{beginTime} and #{endTime} |
| | | and canc.order_time between #{beginTime} and #{endTime} |
| | | </if> |
| | | <if test="belongTo != null and belongTo != ''"> |
| | | and belong_to=#{belongTo} |
| | | and cpcu.belong_to=#{belongTo} |
| | | </if> |
| | | <if test="communityId != null"> |
| | | and su.community_id=#{communityId} |
| | | and cpcu.community_id=#{communityId} |
| | | </if> |
| | | <if test="unitId != null"> |
| | | and cpcu.id=#{unitId} |
| | |
| | | left join com_act_neighbor_circle_topic as canct on canct.id = canc.topic_id |
| | | left join com_act as ca on ca.community_id = canc.community_id |
| | | LEFT JOIN com_act_activity t ON canc.id = t.relation_id |
| | | where is_del = 2 and canc.status = 2 and canc.community_id = ${neighborCircleAppDTO.communityId} AND t.id IS NULL |
| | | where is_del = 2 and canc.status = 2 and canc.solve_status in (2,3,4) and canc.community_id = ${neighborCircleAppDTO.communityId} AND t.id IS NULL |
| | | <if test='neighborCircleAppDTO.topicId != null '> |
| | | and canc.topic_id = #{neighborCircleAppDTO.topicId} |
| | | </if> |
| | | <if test='neighborCircleAppDTO.checkUnitId != null '> |
| | | and canc.solve_unit_id = #{neighborCircleAppDTO.checkUnitId} |
| | | </if> |
| | | <if test='neighborCircleAppDTO.belongType != null '> |
| | | and canc.belong_type = #{neighborCircleAppDTO.belongType} |
| | |
| | | </if> |
| | | <if test="neighborCircleAppDTO.isHelp ==1"> |
| | | and (canc.help_member_content like concat ('%',#{neighborCircleAppDTO.phone},'%') or canc.help_org_content like concat ('%',#{neighborCircleAppDTO.phone},'%') ) |
| | | </if> |
| | | <if test="neighborCircleAppDTO.solveStatus !=null"> |
| | | <if test="neighborCircleAppDTO.solveStatus ==1"> |
| | | and canc.solve_status in (0,1) |
| | | </if> |
| | | <if test="neighborCircleAppDTO.solveStatus ==2"> |
| | | and canc.solve_status =2 |
| | | </if> |
| | | <if test="neighborCircleAppDTO.solveStatus ==3"> |
| | | and canc.solve_status in(3,4) |
| | | </if> |
| | | </if> |
| | | order by canc.create_at desc |
| | | </select> |