Browse Source

同区域人员重复添加提示修改

fuyuhchuan 1 year ago
parent
commit
1790fc8ed1

+ 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());