Browse Source

修改同区域添加巡检人员报错提示

fuyuhchuan 1 year ago
parent
commit
9896b837be

+ 1 - 1
service-fire/service-fire-biz/src/main/java/com/usky/fire/service/impl/PatrolInspectionPersonnelServiceImpl.java

@@ -59,7 +59,7 @@ public class PatrolInspectionPersonnelServiceImpl extends AbstractCrudService<Pa
                 .eq(PatrolInspectionPersonnel::getUserId, patrolInspectionPersonnel.getUserId());
         int count = this.count(queryWrapper);
         if (count>0){
-            throw new BusinessException("一个用户只能添加一个巡检人员");
+            throw new BusinessException("巡检人员只能绑定一个巡检区域");
         }
         patrolInspectionPersonnel.setCompanyId(0);
         patrolInspectionPersonnel.setTenantId(SecurityUtils.getTenantId());