|
@@ -0,0 +1,94 @@
|
|
|
+<?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.phm.manage.mapper.SortieParameterMapper">
|
|
|
+
|
|
|
+ <resultMap type="SortieParameter" id="SortieParameterResult">
|
|
|
+ <result property="id" column="ID" />
|
|
|
+ <result property="sortieNo" column="SORTIE_NO" />
|
|
|
+ <result property="parameterName" column="PARAMETER_NAME" />
|
|
|
+ <result property="dataPath" column="DATA_PATH" />
|
|
|
+ <result property="isDelete" column="IS_DELETE" />
|
|
|
+ <result property="createBy" column="CREATE_BY" />
|
|
|
+ <result property="createTime" column="CREATE_TIME" />
|
|
|
+ <result property="updateBy" column="UPDATE_BY" />
|
|
|
+ <result property="updateTime" column="UPDATE_TIME" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <sql id="selectSortieParameterVo">
|
|
|
+ select ID, SORTIE_NO, PARAMETER_NAME, DATA_PATH, IS_DELETE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME from PHM_SORTIE_PARAMETER
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectSortieParameterList" parameterType="SortieParameter" resultMap="SortieParameterResult">
|
|
|
+ <include refid="selectSortieParameterVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="ID != null "> and ID = #{id}</if>
|
|
|
+ <if test="sortieNo != null and sortieNo != ''"> and SORTIE_NO = #{sortieNo}</if>
|
|
|
+ <if test="parameterName != null and parameterName != ''"> and PARAMETER_NAME like concat('%', #{parameterName}, '%')</if>
|
|
|
+ <if test="dataPath != null and dataPath != ''"> and DATA_PATH = #{dataPath}</if>
|
|
|
+ <if test="isDelete != null "> and IS_DELETE = #{isDelete}</if>
|
|
|
+ <if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
|
|
|
+ <if test="createTime != null "> and CREATE_TIME = #{createTime}</if>
|
|
|
+ <if test="updateBy != null and updateBy != ''"> and UPDATE_BY = #{updateBy}</if>
|
|
|
+ <if test="updateTime != null "> and UPDATE_TIME = #{updateTime}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectSortieParameterById" parameterType="Long" resultMap="SortieParameterResult">
|
|
|
+ <include refid="selectSortieParameterVo"/>
|
|
|
+ where ID = #{id}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <insert id="insertSortieParameter" parameterType="SortieParameter">
|
|
|
+ insert into PHM_SORTIE_PARAMETER
|
|
|
+ <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="ID != null">ID,</if>
|
|
|
+ <if test="sortieNo != null">SORTIE_NO,</if>
|
|
|
+ <if test="parameterName != null">PARAMETER_NAME,</if>
|
|
|
+ <if test="dataPath != null">DATA_PATH,</if>
|
|
|
+ <if test="isDelete != null">IS_DELETE,</if>
|
|
|
+ <if test="createBy != null">CREATE_BY,</if>
|
|
|
+ <if test="createTime != null">CREATE_TIME,</if>
|
|
|
+ <if test="updateBy != null">UPDATE_BY,</if>
|
|
|
+ <if test="updateTime != null">UPDATE_TIME,</if>
|
|
|
+ </trim>
|
|
|
+ <trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
+ <if test="ID != null">#{id},</if>
|
|
|
+ <if test="sortieNo != null">#{sortieNo},</if>
|
|
|
+ <if test="parameterName != null">#{parameterName},</if>
|
|
|
+ <if test="dataPath != null">#{dataPath},</if>
|
|
|
+ <if test="isDelete != null">#{isDelete},</if>
|
|
|
+ <if test="createBy != null">#{createBy},</if>
|
|
|
+ <if test="createTime != null">#{createTime},</if>
|
|
|
+ <if test="updateBy != null">#{updateBy},</if>
|
|
|
+ <if test="updateTime != null">#{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ </insert>
|
|
|
+
|
|
|
+ <update id="updateSortieParameter" parameterType="SortieParameter">
|
|
|
+ update PHM_SORTIE_PARAMETER
|
|
|
+ <trim prefix="SET" suffixOverrides=",">
|
|
|
+ <if test="sortieNo != null">SORTIE_NO = #{sortieNo},</if>
|
|
|
+ <if test="parameterName != null">PARAMETER_NAME = #{parameterName},</if>
|
|
|
+ <if test="dataPath != null">DATA_PATH = #{dataPath},</if>
|
|
|
+ <if test="isDelete != null">IS_DELETE = #{isDelete},</if>
|
|
|
+ <if test="createBy != null">CREATE_BY = #{createBy},</if>
|
|
|
+ <if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
|
|
+ <if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
|
|
|
+ <if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
|
|
+ </trim>
|
|
|
+ where ID = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
+ <delete id="deleteSortieParameterById" parameterType="Long">
|
|
|
+ delete from PHM_SORTIE_PARAMETER where ID = #{id}
|
|
|
+ </delete>
|
|
|
+
|
|
|
+ <delete id="deleteSortieParameterByIds" parameterType="String">
|
|
|
+ delete from PHM_SORTIE_PARAMETER where ID in
|
|
|
+ <foreach item="ID" collection="array" open="(" separator="," close=")">
|
|
|
+ #{id}
|
|
|
+ </foreach>
|
|
|
+ </delete>
|
|
|
+</mapper>
|