|
|
@ -750,6 +750,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, null, null); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, null, null); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
approverId.append(userByPort.getId()).append(","); |
|
|
approverId.append(userByPort.getId()).append(","); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -785,6 +789,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", uid); |
|
|
paramForGetUserByPost.put("position", uid); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, null, null); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, null, null); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
approverId.append(userByPort.getId()).append(","); |
|
|
approverId.append(userByPort.getId()).append(","); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
@ -2513,6 +2521,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 获取当前岗位对应的人员
|
|
|
// 获取当前岗位对应的人员
|
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
|
|
|
int emptype = userByPort1.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
Integer userId1 = userByPort1.getId(); |
|
|
Integer userId1 = userByPort1.getId(); |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(userId1, minRecordKey); |
|
|
updateRedisDataForUserManager(userId1, minRecordKey); |
|
|
@ -2587,6 +2599,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
|
|
|
int emptype = userByPort1.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
Integer userId1 = userByPort1.getId(); |
|
|
Integer userId1 = userByPort1.getId(); |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(userId1, minRecordKey); |
|
|
updateRedisDataForUserManager(userId1, minRecordKey); |
|
|
@ -3588,6 +3604,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", roleAndMaterialType.getUid()); |
|
|
paramForGetUserByPost.put("position", roleAndMaterialType.getUid()); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
Integer userId = userByPort.getId(); |
|
|
Integer userId = userByPort.getId(); |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
@ -3671,6 +3691,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
Integer userId = userByPort.getId(); |
|
|
Integer userId = userByPort.getId(); |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
@ -4091,6 +4115,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", roleAndMaterialType.getUid()); |
|
|
paramForGetUserByPost.put("position", roleAndMaterialType.getUid()); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
|
|
|
int emptype = userByPort1.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
Integer userId = userByPort1.getId(); |
|
|
Integer userId = userByPort1.getId(); |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
@ -4173,6 +4201,10 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost, userKey, token); |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
for (UserByPort userByPort1 : userByPortList) { |
|
|
|
|
|
int emptype = userByPort1.getEmptype(); |
|
|
|
|
|
if(emptype > 10){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
Integer userId = userByPort1.getId(); |
|
|
Integer userId = userByPort1.getId(); |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
updateRedisDataForUserManager(userId, minRecordKey); |
|
|
|