|
|
@ -124,7 +124,29 @@ |
|
|
|
item.CREATED_TIME DESC, |
|
|
|
img.IMG_URL |
|
|
|
</select> |
|
|
|
<select id="selectListOfItemsByWork" resultMap="itemsMap"> |
|
|
|
<resultMap id="itemsForWorkMap" type="com.elink.esua.epdc.dto.item.result.ItemResultDTO"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="eventId" column="EVENT_ID"/> |
|
|
|
<result property="itemContent" column="ITEM_CONTENT"/> |
|
|
|
<result property="nickname" column="NICK_NAME"/> |
|
|
|
<result property="avatar" column="USER_FACE"/> |
|
|
|
<result property="partyFlag" column="IS_PARTY_MEMBER"/> |
|
|
|
<result property="approveNum" column="APPROVE_NUM"/> |
|
|
|
<result property="opposeNum" column="OPPOSE_NUM"/> |
|
|
|
<result property="commentNum" column="COMMENT_NUM"/> |
|
|
|
<result property="stateName" column="stateName"/> |
|
|
|
<result property="categoryName" column="CATEGORY_NAME"/> |
|
|
|
<result property="createdTime" column="CREATED_TIME"/> |
|
|
|
<result property="statementNum" column="statementNum"/> |
|
|
|
<result property="address" column="ISSUE_ADDRESS"/> |
|
|
|
<result property="latestProgress.progressName" column="stateName"/> |
|
|
|
<result property="latestProgress.createdTime" column="handleTime"/> |
|
|
|
<result property="latestProgress.advice" column="OUT_HANDLE_ADVICE"/> |
|
|
|
<collection property="images" ofType="java.lang.String"> |
|
|
|
<result property="image" column="IMG_URL"/> |
|
|
|
</collection> |
|
|
|
</resultMap> |
|
|
|
<select id="selectListOfItemsByWork" resultMap="itemsForWorkMap"> |
|
|
|
SELECT |
|
|
|
item.ID, |
|
|
|
item.ITEM_CONTENT, |
|
|
@ -533,7 +555,38 @@ |
|
|
|
item.DEL_FLAG = '0' |
|
|
|
AND item.ID = #{itemId} |
|
|
|
</select> |
|
|
|
<select id="selectOneOfItemDetailForWork" resultMap="itemDetailMap"> |
|
|
|
<resultMap id="itemDetailForWorkMap" type="com.elink.esua.epdc.dto.item.result.ItemDetailResultDTO"> |
|
|
|
<result property="id" column="ID"/> |
|
|
|
<result property="userId" column="USER_ID"/> |
|
|
|
<result property="eventId" column="EVENT_ID"/> |
|
|
|
<result property="issueId" column="ISSUE_ID"/> |
|
|
|
<result property="userLike" column="userLike"/> |
|
|
|
<result property="userDislike" column="userDislike"/> |
|
|
|
<result property="content" column="ITEM_CONTENT"/> |
|
|
|
<result property="itemState" column="ITEM_STATE"/> |
|
|
|
<result property="categoryName" column="CATEGORY_NAME"/> |
|
|
|
<result property="distributeTime" column="DISTRIBUTE_TIME"/> |
|
|
|
<result property="createdTime" column="CREATED_TIME"/> |
|
|
|
<result property="mobile" column="MOBILE"/> |
|
|
|
<result property="partyFlag" column="IS_PARTY_MEMBER"/> |
|
|
|
<result property="nickname" column="NICK_NAME"/> |
|
|
|
<result property="avatar" column="USER_FACE"/> |
|
|
|
<result property="address" column="ISSUE_ADDRESS"/> |
|
|
|
<result property="browseNum" column="BROWSE_NUM"/> |
|
|
|
<result property="approveNum" column="APPROVE_NUM"/> |
|
|
|
<result property="opposeNum" column="OPPOSE_NUM"/> |
|
|
|
<result property="commentNum" column="COMMENT_NUM"/> |
|
|
|
<result property="statementNum" column="statementNum"/> |
|
|
|
<result property="categoryCode" column="CATEGORY_CODE"/> |
|
|
|
<result property="firstCategoryCode" column="FIRST_CATEGORY_CODE"/> |
|
|
|
<result property="isOperational" column="isOperational"/> |
|
|
|
<result property="isSatisfactionEvaluation" column="isSatisfactionEvaluation"/> |
|
|
|
<result property="isShowSatisfactionEvaluation" column="isShowSatisfactionEvaluation"/> |
|
|
|
<collection property="images" ofType="java.lang.String"> |
|
|
|
<result property="image" column="IMG_URL"/> |
|
|
|
</collection> |
|
|
|
</resultMap> |
|
|
|
<select id="selectOneOfItemDetailForWork" resultMap="itemDetailForWorkMap"> |
|
|
|
SELECT |
|
|
|
item.ID, |
|
|
|
item.USER_ID, |
|
|
|