|
|
|
|
@ -21,7 +21,7 @@ public interface DataPetitionComplaintMapper extends BaseMapper<DataPetitionComp
|
|
|
|
|
*/ |
|
|
|
|
@Select("SELECT sd.id, sd.short_name label,count(*) value " + |
|
|
|
|
"FROM (SELECT * FROM data_petition_complaint dpc " + |
|
|
|
|
"WHERE dpc.create_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"WHERE dpc.discovery_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"INNER JOIN sup_depart sd on sd.id=temp.second_depart_id " + |
|
|
|
|
"WHERE sd.statistics_group_id=#{departId} and temp.initial_petition=#{Repeat} " + |
|
|
|
|
"GROUP BY temp.second_depart_id") |
|
|
|
|
@ -36,7 +36,7 @@ public interface DataPetitionComplaintMapper extends BaseMapper<DataPetitionComp
|
|
|
|
|
*/ |
|
|
|
|
@Select("SELECT sd.id, sd.short_name label,count(*) value " + |
|
|
|
|
"FROM (SELECT * FROM data_petition_complaint dpc " + |
|
|
|
|
"WHERE dpc.create_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"WHERE dpc.discovery_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"INNER JOIN sup_depart sd on sd.id=temp.second_depart_id " + |
|
|
|
|
"WHERE sd.statistics_group_id=#{departId} and temp.receiving_leader_name is not null " + |
|
|
|
|
"GROUP BY temp.second_depart_id") |
|
|
|
|
@ -53,7 +53,7 @@ public interface DataPetitionComplaintMapper extends BaseMapper<DataPetitionComp
|
|
|
|
|
*/ |
|
|
|
|
@Select("SELECT sd.id, sd.short_name label,count(*) value " + |
|
|
|
|
"FROM (SELECT * FROM data_petition_complaint dpc " + |
|
|
|
|
"WHERE dpc.create_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"WHERE dpc.discovery_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"INNER JOIN sup_depart sd on sd.id=temp.second_depart_id " + |
|
|
|
|
"WHERE sd.statistics_group_id=#{id} AND entanglement_visits =#{isEntanglement} " + |
|
|
|
|
"GROUP BY temp.second_depart_id") |
|
|
|
|
@ -62,7 +62,7 @@ public interface DataPetitionComplaintMapper extends BaseMapper<DataPetitionComp
|
|
|
|
|
|
|
|
|
|
@Select("SELECT sd.id, sd.short_name label,count(*) value " + |
|
|
|
|
"FROM (SELECT * FROM data_petition_complaint dpc " + |
|
|
|
|
"WHERE dpc.create_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"WHERE dpc.discovery_time BETWEEN #{beginTime} AND #{endTime}) as temp " + |
|
|
|
|
"INNER JOIN sup_depart sd on sd.id=temp.second_depart_id " + |
|
|
|
|
"WHERE sd.statistics_group_id=#{id} AND mass_visits =#{isMass} " + |
|
|
|
|
"GROUP BY temp.second_depart_id") |
|
|
|
|
|