|
@ -2659,7 +2659,6 @@ |
|
|
where ei.is_people = '1' |
|
|
where ei.is_people = '1' |
|
|
and ei.del_flag = '0' |
|
|
and ei.del_flag = '0' |
|
|
AND ei.event_id is NULL |
|
|
AND ei.event_id is NULL |
|
|
AND ei.issue_id is NULL |
|
|
|
|
|
and h.del_flag = '0' |
|
|
and h.del_flag = '0' |
|
|
and h.created_time = ( |
|
|
and h.created_time = ( |
|
|
select max(created_time) |
|
|
select max(created_time) |
|
@ -2673,7 +2672,6 @@ |
|
|
a.is_people = '1' |
|
|
a.is_people = '1' |
|
|
AND a.del_flag = '0' |
|
|
AND a.del_flag = '0' |
|
|
AND a.event_id is NULL |
|
|
AND a.event_id is NULL |
|
|
AND a.issue_id is NULL |
|
|
|
|
|
<if test="deptId != null and deptId != ''"> |
|
|
<if test="deptId != null and deptId != ''"> |
|
|
AND a.all_dept_ids LIKE concat('%', trim(#{deptId}), '%') |
|
|
AND a.all_dept_ids LIKE concat('%', trim(#{deptId}), '%') |
|
|
</if> |
|
|
</if> |
|
@ -2730,7 +2728,6 @@ |
|
|
i.del_flag = '0' |
|
|
i.del_flag = '0' |
|
|
AND i.is_people = '1' |
|
|
AND i.is_people = '1' |
|
|
and i.event_id is NULL |
|
|
and i.event_id is NULL |
|
|
AND i.issue_id is NULL |
|
|
|
|
|
<!-- itemStateType 0:待处理 1:处理中 2:已结案 --> |
|
|
<!-- itemStateType 0:待处理 1:处理中 2:已结案 --> |
|
|
<if test='itemStateType == "0" or itemStateType == "1"'> |
|
|
<if test='itemStateType == "0" or itemStateType == "1"'> |
|
|
AND i.item_state = '0' |
|
|
AND i.item_state = '0' |
|
@ -2805,7 +2802,6 @@ |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -2834,7 +2830,6 @@ |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',2) != '城市综合' |
|
|
and SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',2) != '城市综合' |
|
|
<choose> |
|
|
<choose> |
|
@ -2869,7 +2864,6 @@ |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -2904,7 +2898,6 @@ |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.ITEM_STATE = '10' |
|
|
and item.ITEM_STATE = '10' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -2943,7 +2936,6 @@ |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.ITEM_STATE = '10' |
|
|
and item.ITEM_STATE = '10' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -2982,7 +2974,6 @@ |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -3020,7 +3011,6 @@ |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -3110,7 +3100,6 @@ |
|
|
item.del_flag = '0' |
|
|
item.del_flag = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
@ -3190,7 +3179,6 @@ |
|
|
where item.DEL_FLAG = '0' |
|
|
where item.DEL_FLAG = '0' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.IS_PEOPLE = '1' |
|
|
and item.EVENT_ID is null |
|
|
and item.EVENT_ID is null |
|
|
and item.ISSUE_ID is null |
|
|
|
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
and ((SUBSTRING_INDEX(item.CATEGORY_FULL_NAME,'-',1) != '其他' and item.PEOPLE_FLAG = '0') or (item.PEOPLE_FLAG in ('1','2'))) |
|
|
<choose> |
|
|
<choose> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|
<when test="startTime != null and startTime != '' and endTime != null and endTime != ''"> |
|
|