|
@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="type" column="type" />
|
|
|
<result property="name" column="name" />
|
|
|
<result property="url" column="url" />
|
|
|
+ <result property="runType" column="run_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="selectAlgorithmSubTypeVo">
|
|
|
- select id, `type`, `name`, url, create_by, create_time, update_by, update_time, remark from t_algorithm_sub_type
|
|
|
+ select id, `type`, `name`, url, run_type, create_by, create_time, update_by, update_time, remark from t_algorithm_sub_type
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectAlgorithmSubTypeList" parameterType="AlgorithmSubType" resultMap="AlgorithmSubTypeResult">
|
|
@@ -26,6 +27,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null and type != ''"> and `type` = #{type}</if>
|
|
|
<if test="name != null and name != ''"> and `name` like concat('%', #{name}, '%')</if>
|
|
|
<if test="url != null and url != ''"> and url = #{url}</if>
|
|
|
+ <if test="runType != null and runType != ''"> and run_type = #{runType}</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|
|
@@ -40,6 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null">`type`,</if>
|
|
|
<if test="name != null">`name`,</if>
|
|
|
<if test="url != null">url,</if>
|
|
|
+ <if test="runType != null">run_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 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="type != null">#{type},</if>
|
|
|
<if test="name != null">#{name},</if>
|
|
|
<if test="url != null">#{url},</if>
|
|
|
+ <if test="runType != null">#{runType},</if>
|
|
|
<if test="createBy != null">#{createBy},</if>
|
|
|
<if test="createTime != null">#{createTime},</if>
|
|
|
<if test="updateBy != null">#{updateBy},</if>
|
|
@@ -61,9 +65,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<update id="updateAlgorithmSubType" parameterType="AlgorithmSubType">
|
|
|
update t_algorithm_sub_type
|
|
|
<trim prefix="SET" suffixOverrides=",">
|
|
|
- <if test="type != null">type = #{type},</if>
|
|
|
+ <if test="type != null">`type` = #{type},</if>
|
|
|
<if test="name != null">`name` = #{name},</if>
|
|
|
<if test="url != null">url = #{url},</if>
|
|
|
+ <if test="runType != null">run_type = #{runType},</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>
|