Pu Zhibing
2025-02-28 398213305237fe9e8a4ee84a2c052ec5f393c4f9
springcloud_k8s_panzhihuazhihuishequ/service_sangeshenbian/src/main/resources/mapper/MessageNotificationMapper.xml
@@ -32,9 +32,9 @@
      <if test="query.title != null and query.title != ''">
         and a.title like concat('%', #{query.title}, '%')
      </if>
      <if test="query.undertaker != null and query.undertaker != ''">
         and (b5.name like concat('%', #{undertaker}, '%') or b4.name like concat('%', #{undertaker}, '%') or b3.name like concat('%', #{undertaker}, '%') or
         b2.region_name like concat('%', #{undertaker}, '%') or b1.region_name like concat('%', #{undertaker}, '%'))
      <if test="query.undertakerUser != null and query.undertakerUser != ''">
         and (b5.name like concat('%', #{query.undertakerUser}, '%') or b4.name like concat('%', #{query.undertakerUser}, '%') or b3.name like concat('%', #{query.undertakerUser}, '%') or
         b2.region_name like concat('%', #{query.undertakerUser}, '%') or b1.region_name like concat('%', #{query.undertakerUser}, '%'))
      </if>
      <if test="query.phone != null and query.phone != ''">
         and a.phone like concat('%', #{query.phone}, '%')
@@ -43,8 +43,8 @@
         and (c.one_department_id = #{query.departmentId} or c.two_department_id = #{query.departmentId} or
              c.three_department_id = #{query.departmentId} or c.four_department_id = #{query.departmentId})
      </if>
      <if test="query.positionId != null">
         and c.system_post_id = #{query.positionId}
      <if test="query.position != null">
         and c.system_post_id = #{query.position}
      </if>
      order by a.read_status asc, a.create_time desc
   </select>