|
@ -88,8 +88,8 @@ |
|
|
<if test='formDto.searchContent != null and formDto.searchContent != ""'> |
|
|
<if test='formDto.searchContent != null and formDto.searchContent != ""'> |
|
|
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%') |
|
|
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%') |
|
|
</if> |
|
|
</if> |
|
|
<if test='formDto.categoryId != null and formDto.categoryId != ""'> |
|
|
<if test='formDto.categoryCode != null and formDto.categoryCode != ""'> |
|
|
AND t1.CATEGORY_CODE = #{formDto.categoryId} |
|
|
AND t1.CATEGORY_CODE = #{formDto.categoryCode} |
|
|
</if> |
|
|
</if> |
|
|
<if test='formDto.userId != null and formDto.userId != ""'> |
|
|
<if test='formDto.userId != null and formDto.userId != ""'> |
|
|
AND t1.USER_ID = #{formDto.userId} |
|
|
AND t1.USER_ID = #{formDto.userId} |
|
@ -231,8 +231,8 @@ |
|
|
<if test='formDto.searchContent != null and formDto.searchContent != ""'> |
|
|
<if test='formDto.searchContent != null and formDto.searchContent != ""'> |
|
|
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%') |
|
|
AND t1.ITEM_CONTENT LIKE CONCAT('%',#{formDto.searchContent},'%') |
|
|
</if> |
|
|
</if> |
|
|
<if test='formDto.categoryId != null and formDto.categoryId != ""'> |
|
|
<if test='formDto.categoryCode != null and formDto.categoryCode != ""'> |
|
|
AND t1.CATEGORY_CODE = #{formDto.categoryId} |
|
|
AND t1.CATEGORY_CODE = #{formDto.categoryCode} |
|
|
</if> |
|
|
</if> |
|
|
<if test='formDto.userId != null and formDto.userId != ""'> |
|
|
<if test='formDto.userId != null and formDto.userId != ""'> |
|
|
AND t1.USER_ID = #{formDto.userId} |
|
|
AND t1.USER_ID = #{formDto.userId} |
|
@ -273,7 +273,7 @@ |
|
|
<result property="opposeNum" column="OPPOSE_NUM"/> |
|
|
<result property="opposeNum" column="OPPOSE_NUM"/> |
|
|
<result property="commentNum" column="COMMENT_NUM"/> |
|
|
<result property="commentNum" column="COMMENT_NUM"/> |
|
|
<result property="statementNum" column="statementNum"/> |
|
|
<result property="statementNum" column="statementNum"/> |
|
|
<result property="categoryId" column="CATEGORY_CODE"/> |
|
|
<result property="categoryCode" column="CATEGORY_CODE"/> |
|
|
<result property="isOperational" column="isOperational"/> |
|
|
<result property="isOperational" column="isOperational"/> |
|
|
<result property="isSatisfactionEvaluation" column="isSatisfactionEvaluation"/> |
|
|
<result property="isSatisfactionEvaluation" column="isSatisfactionEvaluation"/> |
|
|
<result property="isShowSatisfactionEvaluation" column="isShowSatisfactionEvaluation"/> |
|
|
<result property="isShowSatisfactionEvaluation" column="isShowSatisfactionEvaluation"/> |
|
@ -347,7 +347,7 @@ |
|
|
COUNT( item.ID ) AS itemNum, |
|
|
COUNT( item.ID ) AS itemNum, |
|
|
SUM( eve.APPROVE_NUM + eve.OPPOSE_NUM + eve.BROWSE_NUM + eve.COMMENT_NUM ) AS attitudeNum, |
|
|
SUM( eve.APPROVE_NUM + eve.OPPOSE_NUM + eve.BROWSE_NUM + eve.COMMENT_NUM ) AS attitudeNum, |
|
|
cate.CATEGORY_NAME, |
|
|
cate.CATEGORY_NAME, |
|
|
cate.CATEGORY_CODE AS categoryId |
|
|
cate.CATEGORY_CODE AS categoryCode |
|
|
FROM |
|
|
FROM |
|
|
epdc_item item |
|
|
epdc_item item |
|
|
LEFT JOIN epdc_events eve ON item.EVENT_ID = eve.ID |
|
|
LEFT JOIN epdc_events eve ON item.EVENT_ID = eve.ID |
|
@ -358,7 +358,7 @@ |
|
|
item.DEL_FLAG = '0' |
|
|
item.DEL_FLAG = '0' |
|
|
AND item.ITEM_STATE IN (0, 10) |
|
|
AND item.ITEM_STATE IN (0, 10) |
|
|
AND item.GRID_ID = #{gridId} |
|
|
AND item.GRID_ID = #{gridId} |
|
|
AND item.CATEGORY_CODE = #{categoryId} |
|
|
AND item.CATEGORY_CODE = #{categoryCode} |
|
|
</select> |
|
|
</select> |
|
|
|
|
|
|
|
|
<select id="selectListOfPendingHandleItems" resultType="com.elink.esua.epdc.dto.item.ItemPendingHandleDTO"> |
|
|
<select id="selectListOfPendingHandleItems" resultType="com.elink.esua.epdc.dto.item.ItemPendingHandleDTO"> |
|
|