| | |
| | | </set> |
| | | where id = #{id,jdbcType=BIGINT} |
| | | </update> |
| | | |
| | | <select id="listbyCreateTime" resultMap="BaseResultMap"> |
| | | SELECT * FROM yeshi_ec_system_msg t |
| | | WHERE t.`createTime` <![CDATA[ >= ]]> #{createTime} |
| | | </select> |
| | | |
| | | <select id="listbyUidAndCreateTime" resultMap="BaseResultMap"> |
| | | SELECT sm.* FROM `yeshi_ec_system_msg` sm |
| | | LEFT JOIN (SELECT * FROM `yeshi_ec_account_message` a |
| | | WHERE a.`uid`= #{uid} AND a.`system_msg_id` IS NOT NULL)s ON s.`system_msg_id`=sm.`id` |
| | | WHERE s.`system_msg_id` IS NULL AND sm.createTime<![CDATA[ >= ]]> #{createTime} |
| | | </select> |
| | | |
| | | </mapper> |