|
@@ -112,7 +112,7 @@ public class AllocateRepairBaseStrategy extends AbstractRepairBaseStrategy {
|
|
|
String userNames = ConfigCache.getLabelByValueAllowNull(SysConfigEnum.REPAIR_SUPER_USERS.name()); // 超级用户
|
|
|
if(StringUtils.isNotBlank(userNames)){
|
|
|
String arr[]=getStringArarry(userNames);
|
|
|
- for(int i=0;i<arr.length-1;i++){
|
|
|
+ for(int i=0;i<arr.length;i++){
|
|
|
if(arr[i].equals(userInfo.getUsername())){
|
|
|
RepairApplicationForm applicationForm = new RepairApplicationForm();
|
|
|
applicationForm.setId(model.getId());
|
|
@@ -126,6 +126,7 @@ public class AllocateRepairBaseStrategy extends AbstractRepairBaseStrategy {
|
|
|
repairApplicationFormMapper.updateByPrimaryKeySelective(applicationForm);
|
|
|
// 给报修人发送消息
|
|
|
sendMessageToRepairCaller(superModel.getId(),superModel.getNo(),superModel.getUserId());
|
|
|
+ break;
|
|
|
}else if(i>=arr.length-1){
|
|
|
// 非超级用户,判断是否具有审核派工权限
|
|
|
if(!userInfo.getUserId().equals(model.getDispatchUserId())){
|