Commit 1ef394d2 authored by Administrator's avatar Administrator

2024-6.6 接触报警逻辑优化-> 增加了对updatetime字段的修改 获取当前时间

parent 0d7f57a6
......@@ -69,8 +69,9 @@ public class TabAbnormalServiceImpl extends ServiceImpl<TabAbnormalMapper, Abnor
Date date = c.getTime(); //结果
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String jcbjtime = format.format(date);
String nowDateString = format.format(nowDate);
//解除报警表的信息
int jcbj = tabAbnormalMapper.jcbj(jcreason, jcbjtime, reason, equipno);
int jcbj = tabAbnormalMapper.jcbj(jcreason, jcbjtime, reason, equipno,nowDateString);
//解除设备的报警状态
int jcbj1 = drybeachequipinforMapper.jcbj(equipno);
//更新历史表中报警状态
......
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