|
@@ -146,6 +146,10 @@ public class MsgAlarmTemporaryController extends BaseController {
|
|
|
idempotenceUtils.deleteIdempotence(msgAlarmTemporary.getAlarmId());
|
|
|
return error("里程位置填写格式不正确,请填写数字");
|
|
|
}
|
|
|
+ if (!msgAlarmTemporary.getAlarmConfidence().toString().matches(PATTERNS)) {
|
|
|
+ idempotenceUtils.deleteIdempotence(msgAlarmTemporary.getAlarmId());
|
|
|
+ return error("报警置信度格式不正确,请填写数字");
|
|
|
+ }
|
|
|
LambdaQueryWrapper<MsgAlarmTemporary> lw = new LambdaQueryWrapper<>();
|
|
|
if (!ObjectUtils.isEmpty(msgAlarmTemporary.getAlarmId())) {
|
|
|
lw.eq(MsgAlarmTemporary::getAlarmId, msgAlarmTemporary.getAlarmId());
|
|
@@ -181,6 +185,10 @@ public class MsgAlarmTemporaryController extends BaseController {
|
|
|
if (!msgAlarmTemporary.getAlarmMile().toString().matches(PATTERNS)) {
|
|
|
return error("里程位置填写格式不正确,请填写数字");
|
|
|
}
|
|
|
+ if (!msgAlarmTemporary.getAlarmConfidence().toString().matches(PATTERNS)) {
|
|
|
+ idempotenceUtils.deleteIdempotence(msgAlarmTemporary.getAlarmId());
|
|
|
+ return error("报警置信度格式不正确,请填写数字");
|
|
|
+ }
|
|
|
QueryWrapper<MsgAlarmTemporary> wrapper=new QueryWrapper<>();
|
|
|
wrapper.eq("alarm_id",msgAlarmTemporary.getAlarmId());
|
|
|
MsgAlarmTemporary one = msgAlarmTemporaryService.getOne(wrapper);
|