|
|
@ -188,7 +188,7 @@ |
|
|
|
t5.NICKNAME as supportNickname, |
|
|
|
t5.USER_AVATAR as supportUserAvatar, |
|
|
|
(if(find_in_set(t7.DEPT_ID,t6.ALL_DEPT_IDS)>0,'1','0'))as thisCommunity, |
|
|
|
t.TOP_FLAG, |
|
|
|
t.TOP_FLAG |
|
|
|
from epdc_party_topic t |
|
|
|
<if test='userId != "" and userId != null'> |
|
|
|
left join (select * from epdc_party_topic_user_attitude)t1 on t.ID = t1.PARTY_TOPIC_ID and t1.DEL_FLAG='0' and t1.USER_ID = #{userId} |
|
|
@ -339,13 +339,13 @@ |
|
|
|
</select> |
|
|
|
|
|
|
|
<update id="updateTopicTopFlagById"> |
|
|
|
UPDATE epdc_party_topic SET TOP_FLAG = #{topFlag} |
|
|
|
<if test="formDto.topFlag != null and formDto.topFlag != '' and formDto.topFlag == '0'"> |
|
|
|
, TOP_TIME = CREATED_TIME |
|
|
|
UPDATE epdc_party_topic SET TOP_FLAG = #{formDto.topFlag} |
|
|
|
<if test='formDto.topFlag == "0"'> |
|
|
|
, TOP_TIME = NULL |
|
|
|
</if> |
|
|
|
<if test="formDto.topFlag != null and formDto.topFlag != '' and formDto.topFlag == '1'"> |
|
|
|
<if test='formDto.topFlag == "1"'> |
|
|
|
, TOP_TIME = NOW() |
|
|
|
</if> |
|
|
|
WHERE ID = #{topicId} |
|
|
|
WHERE ID = #{formDto.topicId} |
|
|
|
</update> |
|
|
|
</mapper> |