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.
25 lines
1.0 KiB
25 lines
1.0 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.techsor.datacenter.business.dao.ex.DashboardNotificationMapperExt">
|
|
|
|
|
|
<select id="getListPage" resultType="com.techsor.datacenter.business.vo.dashboardnotification.DashboardNotificationPageVO">
|
|
SELECT
|
|
dn.id dashboardNotificationId,
|
|
dn.company_id,
|
|
dn.`demand_time`,
|
|
dn.category,
|
|
dn.content,
|
|
dn.created_at
|
|
FROM
|
|
dashboard_notification dn
|
|
WHERE
|
|
dn.flag != 1
|
|
AND dn.company_id IN <foreach collection="companyIdList" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
<if test="dashboardNotificationIdList != null">
|
|
AND dn.id IN <foreach collection="dashboardNotificationIdList" item="item" open="(" separator="," close=")">#{item}</foreach>
|
|
</if>
|
|
ORDER BY dn.created_at DESC
|
|
</select>
|
|
|
|
</mapper>
|