Commit d048eede authored by H2T's avatar H2T

警情编辑时间修改

parent 975eb390
...@@ -52,8 +52,8 @@ public class AlertFormRecordDto extends BaseDto { ...@@ -52,8 +52,8 @@ public class AlertFormRecordDto extends BaseDto {
@ApiModelProperty(value = "被困时间") @ApiModelProperty(value = "被困时间")
private Date trappedTime; private Date trappedTime;
@ApiModelProperty(value = "更新时间") @ApiModelProperty(value = "编辑时间")
private Date updateTime; private Date editTime;
@ApiModelProperty(value = "事件描述") @ApiModelProperty(value = "事件描述")
private String description; private String description;
......
...@@ -84,8 +84,8 @@ public class AlertFormRecord extends BaseEntity { ...@@ -84,8 +84,8 @@ public class AlertFormRecord extends BaseEntity {
/** /**
* 更新时间 * 更新时间
*/ */
@TableField("update_time") @TableField("edit_time")
private Date updateTime; private Date editTime;
/** /**
* 事件描述 * 事件描述
......
...@@ -10,6 +10,6 @@ ...@@ -10,6 +10,6 @@
<if test="TzCarcylRegDto!=null and TzCarcylRegDto!='' "> <if test="TzCarcylRegDto!=null and TzCarcylRegDto!='' ">
AND afr.alert_called_id = #{alertCalledId} AND afr.alert_called_id = #{alertCalledId}
</if> </if>
ORDER BY afr.update_time desc ORDER BY afr.edit_time desc
</select> </select>
</mapper> </mapper>
...@@ -84,12 +84,12 @@ public class AlertFormRecordServiceImpl extends BaseService<AlertFormRecordDto, ...@@ -84,12 +84,12 @@ public class AlertFormRecordServiceImpl extends BaseService<AlertFormRecordDto,
//第一次修改,保存旧记录 //第一次修改,保存旧记录
if (recordByCalledId.isEmpty()) { if (recordByCalledId.isEmpty()) {
BeanUtils.copyProperties(oldData, oldRecord); BeanUtils.copyProperties(oldData, oldRecord);
oldRecord.setUpdateTime(oldData.getTrappedTime()); oldRecord.setEditTime(oldData.getTrappedTime());
alertFormRecordMapper.insert(oldRecord); alertFormRecordMapper.insert(oldRecord);
} }
AlertFormRecord record = new AlertFormRecord(); AlertFormRecord record = new AlertFormRecord();
BeanUtils.copyProperties(newData, record); BeanUtils.copyProperties(newData, record);
record.setUpdateTime(new Date()); record.setEditTime(new Date());
alertFormRecordMapper.insert(record); alertFormRecordMapper.insert(record);
// 更新警情基本信息 // 更新警情基本信息
Long alertCalled = record.getAlertCalledId(); Long alertCalled = record.getAlertCalledId();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment