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