|
@@ -0,0 +1,126 @@
|
|
|
+<?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.sems.his.mapper.TDashboarddayeleceightMapper">
|
|
|
+
|
|
|
+ <resultMap type="TDashboarddayeleceight" id="TDashboarddayeleceightResult">
|
|
|
+ <result property="id" column="id" />
|
|
|
+ <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="ypg" column="ypg" />
|
|
|
+ <result property="daodianliang" column="daodianliang" />
|
|
|
+ <result property="eveLec" column="eve_lec" />
|
|
|
+ <result property="fenggucha" column="fenggucha" />
|
|
|
+ <result property="bycElec" column="byc_elec" />
|
|
|
+ <result property="bocElec" column="boc_elec" />
|
|
|
+ <result property="dataDate" column="data_date" />
|
|
|
+ <result property="dateDay" column="date_day" />
|
|
|
+ <result property="deptName" column="dept_name" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectTDashboarddayeleceightVo">
|
|
|
+ select d.id, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.ypg, d.daodianliang, d.eve_lec, d.fenggucha, d.byc_elec, d.boc_elec, d.data_date, d.date_day ,s.dept_name from t_dashboarddayeleceight d
|
|
|
+ left join sys_dept s on s.dept_id = d.dept_id
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectTDashboarddayeleceightList" parameterType="TDashboarddayeleceight" resultMap="TDashboarddayeleceightResult">
|
|
|
+ <include refid="selectTDashboarddayeleceightVo"/>
|
|
|
+ <where>
|
|
|
+ <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="ypg != null and ypg != ''"> and ypg = #{ypg}</if>
|
|
|
+ <if test="daodianliang != null and daodianliang != ''"> and daodianliang = #{daodianliang}</if>
|
|
|
+ <if test="eveLec != null and eveLec != ''"> and eve_lec = #{eveLec}</if>
|
|
|
+ <if test="fenggucha != null and fenggucha != ''"> and fenggucha = #{fenggucha}</if>
|
|
|
+ <if test="bycElec != null and bycElec != ''"> and byc_elec = #{bycElec}</if>
|
|
|
+ <if test="bocElec != null and bocElec != ''"> and boc_elec = #{bocElec}</if>
|
|
|
+ <if test="dataDate != null "> and data_date = #{dataDate}</if>
|
|
|
+ <if test="dateDay != null and dateDay != ''"> and date_day = #{dateDay}</if>
|
|
|
+ and d.del_flag = 0
|
|
|
+ </where>
|
|
|
+ <!-- 数据范围过滤 -->
|
|
|
+ ${params.dataScope}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectTDashboarddayeleceightById" parameterType="Long" resultMap="TDashboarddayeleceightResult">
|
|
|
+ <include refid="selectTDashboarddayeleceightVo"/>
|
|
|
+ where id = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertTDashboarddayeleceight" parameterType="TDashboarddayeleceight">
|
|
|
+ <selectKey keyProperty="id" resultType="long" order="BEFORE">
|
|
|
+ SELECT seq_t_dashboarddayeleceight.NEXTVAL as id FROM DUAL
|
|
|
+ </selectKey>
|
|
|
+ insert into t_dashboarddayeleceight
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">id,</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="ypg != null">ypg,</if>
|
|
|
+ <if test="daodianliang != null">daodianliang,</if>
|
|
|
+ <if test="eveLec != null">eve_lec,</if>
|
|
|
+ <if test="fenggucha != null">fenggucha,</if>
|
|
|
+ <if test="bycElec != null">byc_elec,</if>
|
|
|
+ <if test="bocElec != null">boc_elec,</if>
|
|
|
+ <if test="dataDate != null">data_date,</if>
|
|
|
+ <if test="dateDay != null">date_day,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="id != null">#{id},</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="ypg != null">#{ypg},</if>
|
|
|
+ <if test="daodianliang != null">#{daodianliang},</if>
|
|
|
+ <if test="eveLec != null">#{eveLec},</if>
|
|
|
+ <if test="fenggucha != null">#{fenggucha},</if>
|
|
|
+ <if test="bycElec != null">#{bycElec},</if>
|
|
|
+ <if test="bocElec != null">#{bocElec},</if>
|
|
|
+ <if test="dataDate != null">#{dataDate},</if>
|
|
|
+ <if test="dateDay != null">#{dateDay},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateTDashboarddayeleceight" parameterType="TDashboarddayeleceight">
|
|
|
+ update t_dashboarddayeleceight
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <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="ypg != null">ypg = #{ypg},</if>
|
|
|
+ <if test="daodianliang != null">daodianliang = #{daodianliang},</if>
|
|
|
+ <if test="eveLec != null">eve_lec = #{eveLec},</if>
|
|
|
+ <if test="fenggucha != null">fenggucha = #{fenggucha},</if>
|
|
|
+ <if test="bycElec != null">byc_elec = #{bycElec},</if>
|
|
|
+ <if test="bocElec != null">boc_elec = #{bocElec},</if>
|
|
|
+ <if test="dataDate != null">data_date = #{dataDate},</if>
|
|
|
+ <if test="dateDay != null">date_day = #{dateDay},</if>
|
|
|
+ </trim>
|
|
|
+ where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="deleteTDashboarddayeleceightById" parameterType="Long">
|
|
|
+ update t_dashboarddayeleceight set del_flag = 2 where id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <update id="deleteTDashboarddayeleceightByIds" parameterType="String">
|
|
|
+ update t_dashboarddayeleceight set del_flag = 2 where id in
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </update>
|
|
|
+
|
|
|
+</mapper>
|