You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

36 lines
1.1 KiB

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.epmet.dao.ResiEventReportOrgDao">
<update id="updateReadFlag" parameterType="map">
UPDATE resi_event_report_org
SET ORG_READ = 'read',
UPDATED_BY = #{userId},
UPDATED_TIME = NOW()
WHERE
RESI_EVENT_ID = #{eventId}
AND ORG_ID = #{orgId}
AND DEL_FLAG = '0'
</update>
<update id="updateRedDotShow" parameterType="java.lang.String">
UPDATE resi_event_report_org
SET RED_DOT = '1',
UPDATED_TIME = NOW()
WHERE
RESI_EVENT_ID = #{resiEventId}
AND DEL_FLAG = '0'
</update>
<!-- 更新组织的红点显示状态 -->
<update id="updateEventOrg">
UPDATE resi_event_report_org
SET RED_DOT = 0,
UPDATED_TIME = NOW()
WHERE DEL_FLAG = '0'
AND ORG_ID = #{orgId}
AND RESI_EVENT_ID = #{eventId}
</update>
</mapper>