| 12345678910111213141516171819202122232425 |
- <?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="platform.modules.sys.dao.NoticesAcceptDao">
- <select id="findNotifyDetailByPushType" resultType="platform.modules.sys.entity.NoticesAccept">
- SELECT
- company.company_name,
- notices_accept.read_statu
- FROM
- notices notice
- LEFT JOIN notices_accept notices_accept ON notice.id = notices_accept.notice_id
- LEFT JOIN y_company company ON notices_accept.user_id = company.id
- WHERE
- notice.recorde_id = #{id}
- AND notices_accept.user_type = #{usertype}
- <if test=" is_read != null ">
- AND notices_accept.read_statu = #{is_read}
- </if>
- <if test=" keyword != null and keyword != '' ">
- AND company.company_name LIKE CONCAT('%',#{keyword},'%')
- </if>
- <!-- GROUP BY notices_accept.user_id -->
- </select>
- </mapper>
|