|
|
@ -17,10 +17,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<result property="userId" column="user_id" /> |
|
|
<result property="userId" column="user_id" /> |
|
|
<result property="deptId" column="dept_id" /> |
|
|
<result property="deptId" column="dept_id" /> |
|
|
<result property="isDelete" column="is_delete" /> |
|
|
<result property="isDelete" column="is_delete" /> |
|
|
|
|
|
<result property="isPublish" column="is_publish" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<sql id="selectEnforcementInspectionProgramVo"> |
|
|
<sql id="selectEnforcementInspectionProgramVo"> |
|
|
select id, plan_year, plan_name, enforcement_department, enforcement_department_id, enforcement_time, enforcement_area, create_time, create_by, user_id, dept_id, is_delete from enforcement_inspection_program |
|
|
select id, plan_year, plan_name, enforcement_department, enforcement_department_id, enforcement_time, enforcement_area, create_time, create_by, user_id, dept_id, is_delete,is_publish from enforcement_inspection_program |
|
|
</sql> |
|
|
</sql> |
|
|
|
|
|
|
|
|
<select id="selectEnforcementInspectionProgramList" parameterType="EnforcementInspectionProgram" resultMap="EnforcementInspectionProgramResult"> |
|
|
<select id="selectEnforcementInspectionProgramList" parameterType="EnforcementInspectionProgram" resultMap="EnforcementInspectionProgramResult"> |
|
|
@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if> |
|
|
<if test="userId != null and userId != ''"> and user_id = #{userId}</if> |
|
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> |
|
|
<if test="deptId != null and deptId != ''"> and dept_id = #{deptId}</if> |
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
<if test="isDelete != null "> and is_delete = #{isDelete}</if> |
|
|
|
|
|
<if test="isPublish != null "> and is_publish = #{isPublish}</if> |
|
|
<if test="searchText != null and searchText != ''"> |
|
|
<if test="searchText != null and searchText != ''"> |
|
|
and (plan_name like concat('%', #{searchText}, '%') |
|
|
and (plan_name like concat('%', #{searchText}, '%') |
|
|
or enforcement_department like concat('%', #{searchText}, '%') |
|
|
or enforcement_department like concat('%', #{searchText}, '%') |
|
|
@ -66,6 +68,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="userId != null and userId != ''">user_id,</if> |
|
|
<if test="userId != null and userId != ''">user_id,</if> |
|
|
<if test="deptId != null and deptId != ''">dept_id,</if> |
|
|
<if test="deptId != null and deptId != ''">dept_id,</if> |
|
|
<if test="isDelete != null ">is_delete,</if> |
|
|
<if test="isDelete != null ">is_delete,</if> |
|
|
|
|
|
<if test="isPublish != null ">is_publish,</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
<if test="id != null and id != ''">#{id},</if> |
|
|
@ -80,6 +83,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="userId != null and userId != ''">#{userId},</if> |
|
|
<if test="userId != null and userId != ''">#{userId},</if> |
|
|
<if test="deptId != null and deptId != ''">#{deptId},</if> |
|
|
<if test="deptId != null and deptId != ''">#{deptId},</if> |
|
|
<if test="isDelete != null ">#{isDelete},</if> |
|
|
<if test="isDelete != null ">#{isDelete},</if> |
|
|
|
|
|
<if test="isPublish != null ">#{is_publish},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
|
|
|
|
|
|
@ -97,6 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
|
<if test="userId != null and userId != ''">user_id = #{userId},</if> |
|
|
<if test="userId != null and userId != ''">user_id = #{userId},</if> |
|
|
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if> |
|
|
<if test="deptId != null and deptId != ''">dept_id = #{deptId},</if> |
|
|
<if test="isDelete != null ">is_delete = #{isDelete},</if> |
|
|
<if test="isDelete != null ">is_delete = #{isDelete},</if> |
|
|
|
|
|
<if test="isPublish != null ">is_publish = #{isPublish},</if> |
|
|
</trim> |
|
|
</trim> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|
</update> |
|
|
</update> |
|
|
|