|
@@ -9,6 +9,7 @@
|
|
<result property="sortieNo" column="SORTIE_NO" />
|
|
<result property="sortieNo" column="SORTIE_NO" />
|
|
<result property="batchNo" column="BATCH_NO" />
|
|
<result property="batchNo" column="BATCH_NO" />
|
|
<result property="type" column="TYPE" />
|
|
<result property="type" column="TYPE" />
|
|
|
|
+ <result property="source" column="SOURCE" />
|
|
<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" />
|
|
@@ -22,6 +23,7 @@
|
|
SORTIE_NO,
|
|
SORTIE_NO,
|
|
BATCH_NO,
|
|
BATCH_NO,
|
|
TYPE,
|
|
TYPE,
|
|
|
|
+ SOURCE,
|
|
DATA_PATH,
|
|
DATA_PATH,
|
|
IS_DELETE,
|
|
IS_DELETE,
|
|
CREATE_BY,
|
|
CREATE_BY,
|
|
@@ -38,6 +40,7 @@
|
|
<if test="sortieNo != null and sortieNo != ''"> and SORTIE_NO = #{sortieNo}</if>
|
|
<if test="sortieNo != null and sortieNo != ''"> and SORTIE_NO = #{sortieNo}</if>
|
|
<if test="batchNo != null and batchNo != ''"> and BATCH_NO like concat('%', #{batchNo}, '%')</if>
|
|
<if test="batchNo != null and batchNo != ''"> and BATCH_NO like concat('%', #{batchNo}, '%')</if>
|
|
<if test="type != null "> and TYPE = #{type}</if>
|
|
<if test="type != null "> and TYPE = #{type}</if>
|
|
|
|
+ <if test="source != null "> and SOURCE = #{source}</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>
|
|
@@ -47,6 +50,20 @@
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
+ <select id="selectSortieParameter" 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="batchNo != null and batchNo != ''"> and BATCH_NO like concat('%', #{batchNo}, '%')</if>
|
|
|
|
+ <if test="type != null "> and TYPE = #{type}</if>
|
|
|
|
+ <if test="source != null "> and SOURCE = #{source}</if>
|
|
|
|
+ <if test="dataPath != null and dataPath != ''"> and DATA_PATH = #{dataPath}</if>
|
|
|
|
+ LIMIT 1
|
|
|
|
+ </where>
|
|
|
|
+ </select>
|
|
|
|
+
|
|
<select id="selectSortieParameterById" parameterType="Long" resultMap="SortieParameterResult">
|
|
<select id="selectSortieParameterById" parameterType="Long" resultMap="SortieParameterResult">
|
|
<include refid="selectSortieParameterVo"/>
|
|
<include refid="selectSortieParameterVo"/>
|
|
where ID = #{id}
|
|
where ID = #{id}
|
|
@@ -59,6 +76,7 @@
|
|
<if test="sortieNo != null">SORTIE_NO,</if>
|
|
<if test="sortieNo != null">SORTIE_NO,</if>
|
|
<if test="batchNo != null">BATCH_NO,</if>
|
|
<if test="batchNo != null">BATCH_NO,</if>
|
|
<if test="type != null">TYPE,</if>
|
|
<if test="type != null">TYPE,</if>
|
|
|
|
+ <if test="source != null">SOURCE,</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>
|
|
@@ -70,7 +88,8 @@
|
|
<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="batchNo != null">#{batchNo},</if>
|
|
<if test="batchNo != null">#{batchNo},</if>
|
|
- <if test="type != null">#{TYPE},</if>
|
|
|
|
|
|
+ <if test="type != null">#{type},</if>
|
|
|
|
+ <if test="source != null">#{source},</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>
|
|
@@ -85,7 +104,8 @@
|
|
<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="batchNo != null">BATCH_NO = #{batchNo},</if>
|
|
<if test="batchNo != null">BATCH_NO = #{batchNo},</if>
|
|
- <if test="type != null">BATCH_NO = #{TYPE},</if>
|
|
|
|
|
|
+ <if test="type != null">TYPE = #{TYPE},</if>
|
|
|
|
+ <if test="source != null">SOURCE = #{source},</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>
|