| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206 |
- <?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.ruoyi.project.plant.mapper.TEoegDailyManagementMapper">
- <resultMap type="TEoegDailyManagement" id="TEoegDailyManagementResult">
- <result property="id" column="id" />
- <result property="year" column="year" />
- <result property="startMonth" column="start_month" />
- <result property="endMonth" column="end_month" />
- <result property="rcCode" column="rc_code" />
- <result property="subject" column="subject" />
- <result property="workContent" column="work_content" />
- <result property="responsiblePerson" column="responsible_person" />
- <result property="frequency" column="frequency" />
- <result property="standard" column="standard" />
- <result property="finishStatus" column="finish_status" />
- <result property="q1Jan" column="q1_jan" />
- <result property="q1Feb" column="q1_feb" />
- <result property="q1Mar" column="q1_mar" />
- <result property="q2Apr" column="q2_apr" />
- <result property="q2May" column="q2_may" />
- <result property="q2Jun" column="q2_jun" />
- <result property="q3Jul" column="q3_jul" />
- <result property="q3Aug" column="q3_aug" />
- <result property="q3Sep" column="q3_sep" />
- <result property="q4Oct" column="q4_oct" />
- <result property="q4Nov" column="q4_nov" />
- <result property="q4Dec" column="q4_dec" />
- <result property="delFlag" column="del_flag" />
- <result property="createrCode" column="creater_code" />
- <result property="createdate" column="createdate" />
- <result property="updaterCode" column="updater_code" />
- <result property="updatedate" column="updatedate" />
- <result property="deptId" column="dept_id" />
- <result property="remarks" column="remarks" />
- <result property="deptName" column="dept_name" />
- </resultMap>
- <sql id="selectTEoegDailyManagementVo">
- select d.id, d.year, d.start_month, d.end_month, d.rc_code, d.subject, d.work_content, d.responsible_person, d.frequency, d.standard, d.finish_status, d.q1_jan, d.q1_feb, d.q1_mar, d.q2_apr, d.q2_may, d.q2_jun, d.q3_jul, d.q3_aug, d.q3_sep, d.q4_oct, d.q4_nov, d.q4_dec, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks ,s.dept_name from t_eoeg_daily_management d
- left join sys_dept s on s.dept_id = d.dept_id
- </sql>
- <select id="selectTEoegDailyManagementList" parameterType="TEoegDailyManagement" resultMap="TEoegDailyManagementResult">
- <include refid="selectTEoegDailyManagementVo"/>
- <where>
- <if test="year != null and year != ''"> and year = #{year}</if>
- <if test="startMonth != null and startMonth != ''"> and start_month = #{startMonth}</if>
- <if test="endMonth != null and endMonth != ''"> and end_month = #{endMonth}</if>
- <if test="rcCode != null and rcCode != ''"> and rc_code = #{rcCode}</if>
- <if test="subject != null and subject != ''"> and subject = #{subject}</if>
- <if test="workContent != null and workContent != ''"> and work_content = #{workContent}</if>
- <if test="responsiblePerson != null and responsiblePerson != ''"> and responsible_person = #{responsiblePerson}</if>
- <if test="frequency != null and frequency != ''"> and frequency = #{frequency}</if>
- <if test="standard != null and standard != ''"> and standard = #{standard}</if>
- <if test="finishStatus != null and finishStatus != ''"> and finish_status = #{finishStatus}</if>
- <if test="q1Jan != null and q1Jan != ''"> and q1_jan = #{q1Jan}</if>
- <if test="q1Feb != null and q1Feb != ''"> and q1_feb = #{q1Feb}</if>
- <if test="q1Mar != null and q1Mar != ''"> and q1_mar = #{q1Mar}</if>
- <if test="q2Apr != null and q2Apr != ''"> and q2_apr = #{q2Apr}</if>
- <if test="q2May != null and q2May != ''"> and q2_may = #{q2May}</if>
- <if test="q2Jun != null and q2Jun != ''"> and q2_jun = #{q2Jun}</if>
- <if test="q3Jul != null and q3Jul != ''"> and q3_jul = #{q3Jul}</if>
- <if test="q3Aug != null and q3Aug != ''"> and q3_aug = #{q3Aug}</if>
- <if test="q3Sep != null and q3Sep != ''"> and q3_sep = #{q3Sep}</if>
- <if test="q4Oct != null and q4Oct != ''"> and q4_oct = #{q4Oct}</if>
- <if test="q4Nov != null and q4Nov != ''"> and q4_nov = #{q4Nov}</if>
- <if test="q4Dec != null and q4Dec != ''"> and q4_dec = #{q4Dec}</if>
- <if test="createrCode != null and createrCode != ''"> and creater_code = #{createrCode}</if>
- <if test="createdate != null "> and createdate = #{createdate}</if>
- <if test="updaterCode != null and updaterCode != ''"> and updater_code = #{updaterCode}</if>
- <if test="updatedate != null "> and updatedate = #{updatedate}</if>
- <if test="deptId != null "> and dept_id = #{deptId}</if>
- <if test="remarks != null and remarks != ''"> and remarks = #{remarks}</if>
- and d.del_flag = 0
- </where>
- <!-- 数据范围过滤 -->
- ${params.dataScope}
- </select>
- <select id="selectTEoegDailyManagementById" parameterType="Long" resultMap="TEoegDailyManagementResult">
- <include refid="selectTEoegDailyManagementVo"/>
- where id = #{id}
- </select>
- <insert id="insertTEoegDailyManagement" parameterType="TEoegDailyManagement">
- <selectKey keyProperty="id" resultType="long" order="BEFORE">
- SELECT seq_t_eoeg_daily_management.NEXTVAL as id FROM DUAL
- </selectKey>
- insert into t_eoeg_daily_management
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">id,</if>
- <if test="year != null">year,</if>
- <if test="startMonth != null">start_month,</if>
- <if test="endMonth != null">end_month,</if>
- <if test="rcCode != null">rc_code,</if>
- <if test="subject != null">subject,</if>
- <if test="workContent != null">work_content,</if>
- <if test="responsiblePerson != null">responsible_person,</if>
- <if test="frequency != null">frequency,</if>
- <if test="standard != null">standard,</if>
- <if test="finishStatus != null">finish_status,</if>
- <if test="q1Jan != null">q1_jan,</if>
- <if test="q1Feb != null">q1_feb,</if>
- <if test="q1Mar != null">q1_mar,</if>
- <if test="q2Apr != null">q2_apr,</if>
- <if test="q2May != null">q2_may,</if>
- <if test="q2Jun != null">q2_jun,</if>
- <if test="q3Jul != null">q3_jul,</if>
- <if test="q3Aug != null">q3_aug,</if>
- <if test="q3Sep != null">q3_sep,</if>
- <if test="q4Oct != null">q4_oct,</if>
- <if test="q4Nov != null">q4_nov,</if>
- <if test="q4Dec != null">q4_dec,</if>
- <if test="delFlag != null">del_flag,</if>
- <if test="createrCode != null">creater_code,</if>
- <if test="createdate != null">createdate,</if>
- <if test="updaterCode != null">updater_code,</if>
- <if test="updatedate != null">updatedate,</if>
- <if test="deptId != null">dept_id,</if>
- <if test="remarks != null">remarks,</if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">#{id},</if>
- <if test="year != null">#{year},</if>
- <if test="startMonth != null">#{startMonth},</if>
- <if test="endMonth != null">#{endMonth},</if>
- <if test="rcCode != null">#{rcCode},</if>
- <if test="subject != null">#{subject},</if>
- <if test="workContent != null">#{workContent},</if>
- <if test="responsiblePerson != null">#{responsiblePerson},</if>
- <if test="frequency != null">#{frequency},</if>
- <if test="standard != null">#{standard},</if>
- <if test="finishStatus != null">#{finishStatus},</if>
- <if test="q1Jan != null">#{q1Jan},</if>
- <if test="q1Feb != null">#{q1Feb},</if>
- <if test="q1Mar != null">#{q1Mar},</if>
- <if test="q2Apr != null">#{q2Apr},</if>
- <if test="q2May != null">#{q2May},</if>
- <if test="q2Jun != null">#{q2Jun},</if>
- <if test="q3Jul != null">#{q3Jul},</if>
- <if test="q3Aug != null">#{q3Aug},</if>
- <if test="q3Sep != null">#{q3Sep},</if>
- <if test="q4Oct != null">#{q4Oct},</if>
- <if test="q4Nov != null">#{q4Nov},</if>
- <if test="q4Dec != null">#{q4Dec},</if>
- <if test="delFlag != null">#{delFlag},</if>
- <if test="createrCode != null">#{createrCode},</if>
- <if test="createdate != null">#{createdate},</if>
- <if test="updaterCode != null">#{updaterCode},</if>
- <if test="updatedate != null">#{updatedate},</if>
- <if test="deptId != null">#{deptId},</if>
- <if test="remarks != null">#{remarks},</if>
- </trim>
- </insert>
- <update id="updateTEoegDailyManagement" parameterType="TEoegDailyManagement">
- update t_eoeg_daily_management
- <trim prefix="SET" suffixOverrides=",">
- <if test="year != null">year = #{year},</if>
- <if test="startMonth != null">start_month = #{startMonth},</if>
- <if test="endMonth != null">end_month = #{endMonth},</if>
- <if test="rcCode != null">rc_code = #{rcCode},</if>
- <if test="subject != null">subject = #{subject},</if>
- <if test="workContent != null">work_content = #{workContent},</if>
- <if test="responsiblePerson != null">responsible_person = #{responsiblePerson},</if>
- <if test="frequency != null">frequency = #{frequency},</if>
- <if test="standard != null">standard = #{standard},</if>
- <if test="finishStatus != null">finish_status = #{finishStatus},</if>
- <if test="q1Jan != null">q1_jan = #{q1Jan},</if>
- <if test="q1Feb != null">q1_feb = #{q1Feb},</if>
- <if test="q1Mar != null">q1_mar = #{q1Mar},</if>
- <if test="q2Apr != null">q2_apr = #{q2Apr},</if>
- <if test="q2May != null">q2_may = #{q2May},</if>
- <if test="q2Jun != null">q2_jun = #{q2Jun},</if>
- <if test="q3Jul != null">q3_jul = #{q3Jul},</if>
- <if test="q3Aug != null">q3_aug = #{q3Aug},</if>
- <if test="q3Sep != null">q3_sep = #{q3Sep},</if>
- <if test="q4Oct != null">q4_oct = #{q4Oct},</if>
- <if test="q4Nov != null">q4_nov = #{q4Nov},</if>
- <if test="q4Dec != null">q4_dec = #{q4Dec},</if>
- <if test="delFlag != null">del_flag = #{delFlag},</if>
- <if test="createrCode != null">creater_code = #{createrCode},</if>
- <if test="createdate != null">createdate = #{createdate},</if>
- <if test="updaterCode != null">updater_code = #{updaterCode},</if>
- <if test="updatedate != null">updatedate = #{updatedate},</if>
- <if test="deptId != null">dept_id = #{deptId},</if>
- <if test="remarks != null">remarks = #{remarks},</if>
- </trim>
- where id = #{id}
- </update>
- <update id="deleteTEoegDailyManagementById" parameterType="Long">
- update t_eoeg_daily_management set del_flag = 2 where id = #{id}
- </update>
- <update id="deleteTEoegDailyManagementByIds" parameterType="String">
- update t_eoeg_daily_management set del_flag = 2 where id in
- <foreach item="id" collection="array" open="(" separator="," close=")">
- #{id}
- </foreach>
- </update>
- </mapper>
|