|
@@ -7,7 +7,7 @@
|
|
<resultMap type="SortieParameter" id="SortieParameterResult">
|
|
<resultMap type="SortieParameter" id="SortieParameterResult">
|
|
<result property="id" column="ID" />
|
|
<result property="id" column="ID" />
|
|
<result property="sortieNo" column="SORTIE_NO" />
|
|
<result property="sortieNo" column="SORTIE_NO" />
|
|
- <result property="parameterName" column="PARAMETER_NAME" />
|
|
|
|
|
|
+ <result property="batchNo" column="BATCH_NO" />
|
|
<result property="dataPath" column="DATA_PATH" />
|
|
<result property="dataPath" column="DATA_PATH" />
|
|
<result property="isDelete" column="IS_DELETE" />
|
|
<result property="isDelete" column="IS_DELETE" />
|
|
<result property="createBy" column="CREATE_BY" />
|
|
<result property="createBy" column="CREATE_BY" />
|
|
@@ -17,15 +17,15 @@
|
|
</resultMap>
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectSortieParameterVo">
|
|
<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
|
|
|
|
|
|
+ select ID, SORTIE_NO, BATCH_NO, DATA_PATH, IS_DELETE, CREATE_BY, CREATE_TIME, UPDATE_BY, UPDATE_TIME from PHM_SORTIE_PARAMETER
|
|
</sql>
|
|
</sql>
|
|
|
|
|
|
<select id="selectSortieParameterList" parameterType="SortieParameter" resultMap="SortieParameterResult">
|
|
<select id="selectSortieParameterList" parameterType="SortieParameter" resultMap="SortieParameterResult">
|
|
<include refid="selectSortieParameterVo"/>
|
|
<include refid="selectSortieParameterVo"/>
|
|
<where>
|
|
<where>
|
|
- <if test="ID != null "> and ID = #{id}</if>
|
|
|
|
|
|
+ <if test="id != null "> and ID = #{id}</if>
|
|
<if test="sortieNo != null and sortieNo != ''"> and SORTIE_NO = #{sortieNo}</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="batchNo != null and batchNo != ''"> and BATCH_NO like concat('%', #{batchNo}, '%')</if>
|
|
<if test="dataPath != null and dataPath != ''"> and DATA_PATH = #{dataPath}</if>
|
|
<if test="dataPath != null and dataPath != ''"> and DATA_PATH = #{dataPath}</if>
|
|
<if test="isDelete != null "> and IS_DELETE = #{isDelete}</if>
|
|
<if test="isDelete != null "> and IS_DELETE = #{isDelete}</if>
|
|
<if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
|
|
<if test="createBy != null and createBy != ''"> and CREATE_BY = #{createBy}</if>
|
|
@@ -43,9 +43,9 @@
|
|
<insert id="insertSortieParameter" parameterType="SortieParameter">
|
|
<insert id="insertSortieParameter" parameterType="SortieParameter">
|
|
insert into PHM_SORTIE_PARAMETER
|
|
insert into PHM_SORTIE_PARAMETER
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
<trim prefix="(" suffix=")" suffixOverrides=",">
|
|
- <if test="ID != null">ID,</if>
|
|
|
|
|
|
+ <if test="id != null">ID,</if>
|
|
<if test="sortieNo != null">SORTIE_NO,</if>
|
|
<if test="sortieNo != null">SORTIE_NO,</if>
|
|
- <if test="parameterName != null">PARAMETER_NAME,</if>
|
|
|
|
|
|
+ <if test="batchNo != null">BATCH_NO,</if>
|
|
<if test="dataPath != null">DATA_PATH,</if>
|
|
<if test="dataPath != null">DATA_PATH,</if>
|
|
<if test="isDelete != null">IS_DELETE,</if>
|
|
<if test="isDelete != null">IS_DELETE,</if>
|
|
<if test="createBy != null">CREATE_BY,</if>
|
|
<if test="createBy != null">CREATE_BY,</if>
|
|
@@ -54,9 +54,9 @@
|
|
<if test="updateTime != null">UPDATE_TIME,</if>
|
|
<if test="updateTime != null">UPDATE_TIME,</if>
|
|
</trim>
|
|
</trim>
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
- <if test="ID != null">#{id},</if>
|
|
|
|
|
|
+ <if test="id != null">#{id},</if>
|
|
<if test="sortieNo != null">#{sortieNo},</if>
|
|
<if test="sortieNo != null">#{sortieNo},</if>
|
|
- <if test="parameterName != null">#{parameterName},</if>
|
|
|
|
|
|
+ <if test="batchNo != null">#{batchNo},</if>
|
|
<if test="dataPath != null">#{dataPath},</if>
|
|
<if test="dataPath != null">#{dataPath},</if>
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
<if test="isDelete != null">#{isDelete},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
<if test="createBy != null">#{createBy},</if>
|
|
@@ -70,7 +70,7 @@
|
|
update PHM_SORTIE_PARAMETER
|
|
update PHM_SORTIE_PARAMETER
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
<if test="sortieNo != null">SORTIE_NO = #{sortieNo},</if>
|
|
<if test="sortieNo != null">SORTIE_NO = #{sortieNo},</if>
|
|
- <if test="parameterName != null">PARAMETER_NAME = #{parameterName},</if>
|
|
|
|
|
|
+ <if test="batchNo != null">BATCH_NO = #{batchNo},</if>
|
|
<if test="dataPath != null">DATA_PATH = #{dataPath},</if>
|
|
<if test="dataPath != null">DATA_PATH = #{dataPath},</if>
|
|
<if test="isDelete != null">IS_DELETE = #{isDelete},</if>
|
|
<if test="isDelete != null">IS_DELETE = #{isDelete},</if>
|
|
<if test="createBy != null">CREATE_BY = #{createBy},</if>
|
|
<if test="createBy != null">CREATE_BY = #{createBy},</if>
|
|
@@ -87,7 +87,7 @@
|
|
|
|
|
|
<delete id="deleteSortieParameterByIds" parameterType="String">
|
|
<delete id="deleteSortieParameterByIds" parameterType="String">
|
|
delete from PHM_SORTIE_PARAMETER where ID in
|
|
delete from PHM_SORTIE_PARAMETER where ID in
|
|
- <foreach item="ID" collection="array" open="(" separator="," close=")">
|
|
|
|
|
|
+ <foreach item="id" collection="array" open="(" separator="," close=")">
|
|
#{id}
|
|
#{id}
|
|
</foreach>
|
|
</foreach>
|
|
</delete>
|
|
</delete>
|