|
@@ -160,14 +160,27 @@
|
|
|
|
|
|
<update id="updateAnalysisState" parameterType="java.lang.String">
|
|
|
update analysis_result
|
|
|
- set analysis_state = 10
|
|
|
+ set analysis_state = 10,
|
|
|
+ err_state = 0,
|
|
|
+ err_code = '',
|
|
|
+ err_info = '',
|
|
|
+ analysis_progress = 0.00,
|
|
|
+ data_start_time = null,
|
|
|
+ data_end_time = null,
|
|
|
+ data_type_code = '',
|
|
|
+ analysis_start_time = null,
|
|
|
+ analysis_finish_time = null
|
|
|
where analysis_state = -1 or analysis_state = 30
|
|
|
and batch_code = #{batchCode,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
|
|
|
<update id="updateByBatchCode" parameterType="com.energy.manage.service.domain.dto.analysis.AnalysisDto">
|
|
|
update analysis_result
|
|
|
- set data_start_time = #{beginTime,jdbcType=INTEGER},
|
|
|
+ set
|
|
|
+ err_state = 0,
|
|
|
+ err_code = '',
|
|
|
+ err_info = '',
|
|
|
+ data_start_time = #{beginTime,jdbcType=INTEGER},
|
|
|
data_end_time = #{endTime,jdbcType=VARCHAR},
|
|
|
data_type_code = #{scada,jdbcType=VARCHAR},
|
|
|
analysis_start_time = now(),
|