<?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.gkhy.assess.system.mapper.AssWorkNotificationMapper">
|
<resultMap type="com.gkhy.assess.system.domain.AssWorkNotification" id="WorkNotificationResult">
|
<id property="id" column="id" />
|
<result property="serviceStartDate" column="service_start_date" />
|
<result property="serviceEndDate" column="service_end_date" />
|
<result property="investigationPlanDate" column="investigation_plan_date" />
|
<result property="projectId" column="project_id" />
|
<result property="auditId" column="audit_id" />
|
<result property="state" column="state" />
|
<result property="delFlag" column="del_flag" />
|
<result property="version" column="version" />
|
<result property="createBy" column="create_by" />
|
<result property="createTime" column="create_time" />
|
<result property="updateBy" column="update_by" />
|
<result property="updateTime" column="update_time" />
|
<result property="remark" column="remark" />
|
</resultMap>
|
|
<sql id="selectWorkNotificationVo">
|
select w.id,w.service_start_date, w.service_end_date,w.investigation_plan_date,w.project_id,w.state,w.audit_id,
|
w.del_flag,w.create_by,w.create_time,w.update_by,w.update_time,w.remark
|
from ass_work_notification w
|
</sql>
|
|
|
<select id="getCountByProjectId" resultType="java.lang.Integer" parameterType="java.lang.Long">
|
select count(1) from ass_work_notification where project_id=#{projectId} and del_flag=0
|
</select>
|
|
<select id="getWorkNotificationByProjectId" resultMap="WorkNotificationResult">
|
<include refid="selectWorkNotificationVo"/>
|
where project_id=#{projectId} and del_flag=0
|
</select>
|
|
<select id="getWorkNotificationById" resultMap="WorkNotificationResult">
|
<include refid="selectWorkNotificationVo"/>
|
where id=#{workNotificationId}
|
</select>
|
</mapper>
|