|
@@ -225,9 +225,7 @@ public class MsgAlarmTemporaryController extends BaseController {
|
|
|
files2[0] = files;
|
|
|
reqMsgAlarmVo.setFiles(files2);
|
|
|
if (!ObjectUtils.isEmpty(reqMsgAlarmVo.getAlarmAttr())) {
|
|
|
- if (!reqMsgAlarmVo.getAlarmAttr().matches(PATTERN)) {
|
|
|
- return AjaxResult.error("你填写的报警病害属性不符合规则!!!");
|
|
|
- }
|
|
|
+ return AjaxResult.error("你填写的报警病害属性不能为空!!!");
|
|
|
}
|
|
|
if (!reqMsgAlarmVo.getAlarmMile().toString().matches(PATTERNS)) {
|
|
|
return AjaxResult.error("报警里程位置填写错误");
|