|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="name" column="name" />
|
|
|
<result property="path" column="path" />
|
|
|
<result property="type" column="type" />
|
|
|
+ <result property="dataType" column="data_type" />
|
|
|
<result property="createBy" column="create_by" />
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateBy" column="update_by" />
|
|
@@ -17,7 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectFileVo">
|
|
|
- select id, `name`, `path`, `type`, create_by, create_time, update_by, update_time, remark from t_file
|
|
|
+ select id, `name`, `path`, `type`, data_type, create_by, create_time, update_by, update_time, remark from t_file
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectFileList" parameterType="File" resultMap="FileResult">
|
|
@@ -26,6 +27,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null and name != ''"> and `name` like concat('%', #{name}, '%')</if>
|
|
|
<if test="path != null and path != ''"> and `path` = #{path}</if>
|
|
|
<if test="type != null and type != ''"> and `type` = #{type}</if>
|
|
|
+ <if test="dataType != null and dataType != ''"> and `data_type` = #{dataType}</if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="selectInputFileList" parameterType="File" resultMap="FileResult">
|
|
|
+ <include refid="selectFileVo"/>
|
|
|
+ <where>
|
|
|
+ <if test="name != null and name != ''"> and `name` like concat('%', #{name}, '%')</if>
|
|
|
+ <if test="path != null and path != ''"> and `path` = #{path}</if>
|
|
|
+ <if test="type != null and type != ''"> and `type` = #{type}</if>
|
|
|
+ <if test="dataType != null and dataType != ''"> and `data_type` = #{dataType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -40,6 +52,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null">`name`,</if>
|
|
|
<if test="path != null">`path`,</if>
|
|
|
<if test="type != null">`type`,</if>
|
|
|
+ <if test="dataType != null">`data_type`,</if>
|
|
|
<if test="createBy != null">create_by,</if>
|
|
|
<if test="createTime != null">create_time,</if>
|
|
|
<if test="updateBy != null">update_by,</if>
|
|
@@ -50,6 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="path != null">#{path},</if>
|
|
|
<if test="type != null">#{type},</if>
|
|
|
+ <if test="dataType != null">#{dataType},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -64,6 +78,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="name != null">`name` = #{name},</if>
|
|
|
<if test="path != null">`path` = #{path},</if>
|
|
|
<if test="type != null">`type` = #{type},</if>
|
|
|
+ <if test="dataType != null">`type` = #{dataType},</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>
|
|
@@ -85,7 +100,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
</delete>
|
|
|
|
|
|
<select id="getOption" resultType="Map">
|
|
|
- select id, `name`, `type` from t_file
|
|
|
+ select id, `name`, `type`, data_type from t_file
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getInputOption" parameterType="Long" resultType="Map">
|
|
|
+ SELECT
|
|
|
+ f.id,
|
|
|
+ f.`name`,
|
|
|
+ f.`type`,
|
|
|
+ f.data_type
|
|
|
+ FROM
|
|
|
+ t_file f
|
|
|
+ JOIN t_algorithm_sub_type ast ON ast.data_type = f.data_type
|
|
|
+ WHERE
|
|
|
+ f.type = 1
|
|
|
+ AND ast.id = #{subTypeId}
|
|
|
</select>
|
|
|
|
|
|
<select id="selectOutputFile" resultType="Long">
|