|
@@ -101,4 +101,57 @@
|
|
|
LIMIT ${startRecord}, ${pageSize}
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="getCountByConditionMy" parameterType="Map" resultType="java.lang.Integer">
|
|
|
+ SELECT
|
|
|
+ count(id)
|
|
|
+ FROM
|
|
|
+ notice_task_info
|
|
|
+ WHERE
|
|
|
+ 1=1
|
|
|
+ AND create_user_id = #{userId}
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <select id="getListByConditionMy" parameterType="Map"
|
|
|
+ resultType="com.winsea.svc.notice.entity.NoticeTaskInfo">
|
|
|
+ SELECT
|
|
|
+ a.id AS id,
|
|
|
+ a.notice_task_status AS noticeTaskStatus,
|
|
|
+ a.business_type AS businessType,
|
|
|
+ a.comp_id AS compId,
|
|
|
+ a.overdue_date AS overdueDate,
|
|
|
+ a.overdue_date_flag AS overdueDateFlag,
|
|
|
+ a.notice_task_push_status AS noticeTaskPushStatus,
|
|
|
+ a.business_id AS businessId,
|
|
|
+ a.business_code AS businessCode,
|
|
|
+ b.business_type_desc AS messageTitle,
|
|
|
+ a.message_content AS messageContent,
|
|
|
+ a.accept_id AS acceptId,
|
|
|
+ a.accept_type AS acceptType,
|
|
|
+ a.vessel_id AS vesselId,
|
|
|
+ a.create_date AS createDate,
|
|
|
+ a.create_user_id AS createUserId,
|
|
|
+ a.update_date AS updateDate,
|
|
|
+ a.update_user_id AS updateUserId,
|
|
|
+ a.update_flag AS updateFlag,
|
|
|
+ a.delete_flag AS deleteFlag
|
|
|
+ FROM
|
|
|
+ notice_task_info a
|
|
|
+ left join notice_business_constant_info b
|
|
|
+ on b.business_code = a.business_code
|
|
|
+ WHERE
|
|
|
+ 1=1
|
|
|
+ AND a.create_user_id = #{userId}
|
|
|
+ GROUP BY
|
|
|
+ a.business_id,
|
|
|
+ a.business_code
|
|
|
+ ORDER BY
|
|
|
+ a.create_date DESC
|
|
|
+ <if test="currentPage != null and currentPage != ''">
|
|
|
+ LIMIT ${startRecord}, ${pageSize}
|
|
|
+ </if>
|
|
|
+ </select>
|
|
|
</mapper>
|