|
@@ -42,7 +42,7 @@
|
|
|
name = #{name,jdbcType=VARCHAR},
|
|
|
data_directory = #{dataDirectory,jdbcType=VARCHAR},
|
|
|
scene_type = #{sceneType,jdbcType=VARCHAR},
|
|
|
-
|
|
|
+ create_time = #{createTime,jdbcType=TIMESTAMP},
|
|
|
modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
modify_user_id = #{modifyUserId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
@@ -51,13 +51,13 @@
|
|
|
<update id="updateStatus" parameterType="api.common.pojo.po.system.SceneImportPO">
|
|
|
update scene_import_task set
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
- modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
error_message = #{errorMessage},
|
|
|
+ modify_time = #{modifyTime,jdbcType=TIMESTAMP},
|
|
|
modify_user_id = #{modifyUserId,jdbcType=VARCHAR}
|
|
|
where id = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
- <update id="updateSceneImportTask" parameterType="api.common.pojo.po.system.SceneImportPO">
|
|
|
+ <update id="updateInfo" parameterType="api.common.pojo.po.system.SceneImportPO">
|
|
|
update simulation.scene_import_task set
|
|
|
status = #{status,jdbcType=VARCHAR},
|
|
|
false_num = #{falseNum},
|
|
@@ -70,25 +70,30 @@
|
|
|
</update>
|
|
|
|
|
|
|
|
|
- <select id="querySceneImportList" parameterType="api.common.pojo.param.scene.SceneImportTaskParam"
|
|
|
- resultType="api.common.pojo.po.system.SceneImportPO">
|
|
|
+ <select id="getSceneImporPagetList" parameterType="api.common.pojo.param.system.SceneImportPageParam" resultType="api.common.pojo.po.system.SceneImportPO">
|
|
|
select
|
|
|
- id,name,scene_type,status,success_num,false_num,error_message,total_time,
|
|
|
- create_user_id,create_time,modify_user_id,modify_time,
|
|
|
+ id,
|
|
|
+ name,
|
|
|
+ scene_type,
|
|
|
+ status,
|
|
|
+ success_num,
|
|
|
+ false_num,
|
|
|
+ error_message,
|
|
|
+ total_time,
|
|
|
+ create_time,
|
|
|
is_deleted
|
|
|
from simulation.scene_import_task
|
|
|
- <where>
|
|
|
- is_deleted = '0'
|
|
|
- <if test="name != null and name != ''">
|
|
|
- and name = #{name,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- <if test="yearMax != null and yearMax != ''">
|
|
|
- and #{yearMax,jdbcType=VARCHAR} > create_time and #{yearMin,jdbcType=VARCHAR} < create_time
|
|
|
- </if>
|
|
|
- <if test="createUserId != null and createUserId != ''">
|
|
|
- and create_user_id=#{createUserId,jdbcType=VARCHAR}
|
|
|
- </if>
|
|
|
- order by create_time desc
|
|
|
- </where>
|
|
|
+ where
|
|
|
+ is_deleted = '0'
|
|
|
+ <if test="name != null and name != ''">
|
|
|
+ and name like CONCAT('%',#{name,jdbcType=VARCHAR},'%')
|
|
|
+ </if>
|
|
|
+ <if test="timeBegin != null">
|
|
|
+ and create_time >= #{timeBegin,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ <if test="timeEnd != null">
|
|
|
+ and create_time <= #{timeEnd,jdbcType=TIMESTAMP}
|
|
|
+ </if>
|
|
|
+ order by create_time desc
|
|
|
</select>
|
|
|
</mapper>
|