|
|
@ -8,8 +8,6 @@ import com.dreamchaser.depository_manage.entity.*; |
|
|
import com.dreamchaser.depository_manage.entity.MaterialAndPlace; |
|
|
import com.dreamchaser.depository_manage.entity.MaterialAndPlace; |
|
|
import com.dreamchaser.depository_manage.exception.MyException; |
|
|
import com.dreamchaser.depository_manage.exception.MyException; |
|
|
import com.dreamchaser.depository_manage.depository_mapper.*; |
|
|
import com.dreamchaser.depository_manage.depository_mapper.*; |
|
|
import com.dreamchaser.depository_manage.hrNew_mapper.AdministrativeMapper; |
|
|
|
|
|
import com.dreamchaser.depository_manage.hrNew_mapper.UserMapper; |
|
|
|
|
|
import com.dreamchaser.depository_manage.pojo.*; |
|
|
import com.dreamchaser.depository_manage.pojo.*; |
|
|
import com.dreamchaser.depository_manage.pojo.callBackXml.approvalCallBackXml.ApprovalInfo_Details; |
|
|
import com.dreamchaser.depository_manage.pojo.callBackXml.approvalCallBackXml.ApprovalInfo_Details; |
|
|
import com.dreamchaser.depository_manage.pojo.callBackXml.approvalCallBackXml.ApprovalInfo_Details_Approver; |
|
|
import com.dreamchaser.depository_manage.pojo.callBackXml.approvalCallBackXml.ApprovalInfo_Details_Approver; |
|
|
@ -245,7 +243,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
} else { |
|
|
} else { |
|
|
List<Long> depositoryIdForUserHas = roleService.findDepositoryIdForUser(userToken); |
|
|
List<Long> depositoryIdForUserHas = roleService.findDepositoryIdForUser(userToken); |
|
|
map.put("flagForOpenDepository", 2); |
|
|
map.put("flagForOpenDepository", 2); |
|
|
if (depositoryIdForUserHas.contains(ObjectFormatUtil.toInteger(depositoryId))) { |
|
|
if (depositoryIdForUserHas.contains(ObjectFormatUtil.toLong(depositoryId))) { |
|
|
map.put("flagForOpenDepository", 1); |
|
|
map.put("flagForOpenDepository", 1); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -756,7 +754,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
List<UserByPort> userByPortList = userService.findUserByConditionForNoPack(paramForGetUserByPost); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost,null,null); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -795,7 +793,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
paramForGetUserByPost.put("position", uid); |
|
|
paramForGetUserByPost.put("position", uid); |
|
|
List<UserByPort> userByPortList = userService.findUserByConditionForNoPack(paramForGetUserByPost); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost,null,null); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -1923,7 +1921,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 强行完成出库
|
|
|
// 强行完成出库
|
|
|
|
|
|
|
|
|
// 获取当前出库人员
|
|
|
// 获取当前出库人员
|
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(outRecordMin.getCheckId()); |
|
|
UserByPort userByPort = PublicConfig.FindUserById(outRecordMin.getCheckId(),userKey,token); |
|
|
|
|
|
|
|
|
outRecord.setPass(1); |
|
|
outRecord.setPass(1); |
|
|
updateApplicationMinOutInfo(id, outRecordMin, outRecord, (double) (quantity), userByPort, placeById.getId(), userAgent, userKey, token); |
|
|
updateApplicationMinOutInfo(id, outRecordMin, outRecord, (double) (quantity), userByPort, placeById.getId(), userAgent, userKey, token); |
|
|
@ -1942,7 +1940,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
for (RoleAndMaterialType mt : materialTypeIdForIn |
|
|
for (RoleAndMaterialType mt : materialTypeIdForIn |
|
|
) { |
|
|
) { |
|
|
// 获取管理员数据
|
|
|
// 获取管理员数据
|
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(mt.getUid()); |
|
|
UserByPort userByPort = PublicConfig.FindUserById(mt.getUid(),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -1960,7 +1958,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
for (RoleAndDepository mt : materialTypeIdForIn |
|
|
for (RoleAndDepository mt : materialTypeIdForIn |
|
|
) { |
|
|
) { |
|
|
// 获取管理员数据
|
|
|
// 获取管理员数据
|
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(mt.getUserId()); |
|
|
UserByPort userByPort = PublicConfig.FindUserById(mt.getUserId(),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -2369,7 +2367,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
Long uid = ObjectFormatUtil.toLong(s); |
|
|
Long uid = ObjectFormatUtil.toLong(s); |
|
|
UserByPort depositoryManager = userService.findUserByIdForNoPack(uid); |
|
|
UserByPort depositoryManager = PublicConfig.FindUserById(uid,userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = depositoryManager.getEmptype(); |
|
|
int emptype = depositoryManager.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -2916,7 +2914,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 获取审批人userId
|
|
|
// 获取审批人userId
|
|
|
String userId = approver.getUserId(); |
|
|
String userId = approver.getUserId(); |
|
|
// 获取审批人
|
|
|
// 获取审批人
|
|
|
UserByPort userByPort = userService.findUserByWorkWechat(userId); |
|
|
// UserByPort userByPort = userService.findUserByWorkWechat(userId);
|
|
|
|
|
|
Map<String, Object> userByQyWxUserId = PublicConfig.findUserByQyWxUserId(userId); |
|
|
|
|
|
UserByPort userByPort = (UserByPort) userByQyWxUserId.get("user"); |
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
Map<String, Object> map = new HashMap<>(); |
|
|
map.put("approverId", userByPort.getId()); |
|
|
map.put("approverId", userByPort.getId()); |
|
|
map.put("approverTime", System.currentTimeMillis()); |
|
|
map.put("approverTime", System.currentTimeMillis()); |
|
|
@ -3096,7 +3096,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
map.put("transferId", transferId); |
|
|
map.put("transferId", transferId); |
|
|
// 获取当前转移物料仓库
|
|
|
// 获取当前转移物料仓库
|
|
|
Depository depositoryRecordById = depositoryMapper.findDepositoryById(material.getDepositoryId()); |
|
|
Depository depositoryRecordById = depositoryMapper.findDepositoryById(material.getDepositoryId()); |
|
|
Administration company = administrativeService.findAdministrationById(userByPort.getMaindeparment()); |
|
|
// Administration company = administrativeService.findAdministrationById(userByPort.getMaindeparment());
|
|
|
|
|
|
Administration company = PublicConfig.getCompany(userByPort.getMaindeparment(),userKey,token); |
|
|
// 生成出库订单
|
|
|
// 生成出库订单
|
|
|
map.put("code", createCode(depositoryRecordById.getDname(), "outOrderNumber", "out", company.getName())); |
|
|
map.put("code", createCode(depositoryRecordById.getDname(), "outOrderNumber", "out", company.getName())); |
|
|
Object placeId = map.get("fromPlaceId"); |
|
|
Object placeId = map.get("fromPlaceId"); |
|
|
@ -3186,7 +3187,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
List<ApplicationOutRecordMin> minByParent = depositoryRecordMapper.findApplicationOutRecordMinByParent(record.getId()); |
|
|
List<ApplicationOutRecordMin> minByParent = depositoryRecordMapper.findApplicationOutRecordMinByParent(record.getId()); |
|
|
// 获取申请用户
|
|
|
// 获取申请用户
|
|
|
UserByPort applicantUser = userService.findUserByIdForNoPack(record.getApplicantId()); |
|
|
UserByPort applicantUser = PublicConfig.FindUserById(record.getApplicantId(),userKey,token); |
|
|
// 用于标志该仓库是否为前置仓下的仓库
|
|
|
// 用于标志该仓库是否为前置仓下的仓库
|
|
|
boolean flagForHasOtherDepository = true; //默认是前置仓下的仓库
|
|
|
boolean flagForHasOtherDepository = true; //默认是前置仓下的仓库
|
|
|
// 获取当前出库是否为开放出库
|
|
|
// 获取当前出库是否为开放出库
|
|
|
@ -3194,9 +3195,11 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
int flagForOpenDepository = record.getFlagForOpenDepository(); |
|
|
int flagForOpenDepository = record.getFlagForOpenDepository(); |
|
|
if (manager1 != null && !"".equals(manager1)) { |
|
|
if (manager1 != null && !"".equals(manager1)) { |
|
|
flagForHasOtherDepository = false; |
|
|
flagForHasOtherDepository = false; |
|
|
} else { |
|
|
} |
|
|
|
|
|
else { |
|
|
if (flagForOpenDepository != 1) { |
|
|
if (flagForOpenDepository != 1) { |
|
|
// 如果是开放仓库
|
|
|
// 如果是开放仓库
|
|
|
|
|
|
|
|
|
flagForHasOtherDepository = false; |
|
|
flagForHasOtherDepository = false; |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
@ -3272,7 +3275,9 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 获取当前仓库所属的部门
|
|
|
// 获取当前仓库所属的部门
|
|
|
String adminorg = depositoryById.getAdminorg(); |
|
|
String adminorg = depositoryById.getAdminorg(); |
|
|
|
|
|
|
|
|
List<UserByPort> departmentHeadByUser = userService.getDepartmentHeaderByIdForNoPack(ObjectFormatUtil.toLong(adminorg)); |
|
|
// List<UserByPort> departmentHeadByUser = userService.getDepartmentHeaderByIdForNoPack(ObjectFormatUtil.toLong(adminorg));
|
|
|
|
|
|
List<UserByPort> departmentHeadByUser = PublicConfig.findDepartmentHeadByUser(ObjectFormatUtil.toLong(adminorg),userKey,token); |
|
|
|
|
|
|
|
|
for (UserByPort departmentHead : departmentHeadByUser |
|
|
for (UserByPort departmentHead : departmentHeadByUser |
|
|
) { |
|
|
) { |
|
|
depositoryManager.append(departmentHead.getId()).append(","); |
|
|
depositoryManager.append(departmentHead.getId()).append(","); |
|
|
@ -3287,7 +3292,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取仓储中心负责人
|
|
|
// 获取仓储中心负责人
|
|
|
List<UserByPort> departmentHeadByUser = userService.getDepartmentHeaderByIdForNoPack(361L); |
|
|
List<UserByPort> departmentHeadByUser = PublicConfig.findDepartmentHeadByUser(361L,userKey,token); |
|
|
|
|
|
|
|
|
for (UserByPort userByPort : departmentHeadByUser) { |
|
|
for (UserByPort userByPort : departmentHeadByUser) { |
|
|
depositoryManager.append(userByPort.getId()).append(","); |
|
|
depositoryManager.append(userByPort.getId()).append(","); |
|
|
@ -3306,7 +3311,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 如果是第一个节点
|
|
|
// 如果是第一个节点
|
|
|
List<String> qyWxLabelUserList = QyWxConfig.getQyWxLabelUserListForLabelName(userAgent, "平衡岗"); |
|
|
List<String> qyWxLabelUserList = QyWxConfig.getQyWxLabelUserListForLabelName(userAgent, "平衡岗"); |
|
|
for (String s : qyWxLabelUserList) { |
|
|
for (String s : qyWxLabelUserList) { |
|
|
UserByPort user = userService.findUserByWorkWechat(s); |
|
|
UserByPort user = (UserByPort) PublicConfig.findUserByQyWxUserId(s).get("user"); |
|
|
String workwechat = user.getWorkwechat(); |
|
|
String workwechat = user.getWorkwechat(); |
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
if (workwechat == null || "".equals(workwechat)) { |
|
|
workwechat = user.getWechat(); |
|
|
workwechat = user.getWechat(); |
|
|
@ -3336,7 +3341,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
if ("".equals(depositorymanager)) { |
|
|
if ("".equals(depositorymanager)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort depositoryManage = userService.findUserByIdForNoPack(ObjectFormatUtil.toLong(depositorymanager)); |
|
|
UserByPort depositoryManage = PublicConfig.FindUserById(ObjectFormatUtil.toLong(depositorymanager),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = depositoryManage.getEmptype(); |
|
|
int emptype = depositoryManage.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3395,7 +3400,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(ObjectFormatUtil.toLong(s)); |
|
|
UserByPort userByPort = PublicConfig.FindUserById(ObjectFormatUtil.toLong(s),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3411,7 +3416,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
s = "PangFuZhen,"; |
|
|
s = "PangFuZhen,"; |
|
|
qyWxOperationService.sendMessageForOtherUserByCard(ObjectFormatUtil.toLong(id), s, userAgent, 1, userKey, token); |
|
|
qyWxOperationService.sendMessageForOtherUserByCard(ObjectFormatUtil.toLong(id), s, userAgent, 1, userKey, token); |
|
|
}); |
|
|
}); |
|
|
} else if (map.containsKey("balancePosterPass") && !flagForHasOtherDepository) { |
|
|
} |
|
|
|
|
|
else if (map.containsKey("balancePosterPass") && !flagForHasOtherDepository) { |
|
|
// 如果是平衡岗人员审批且进入该流程
|
|
|
// 如果是平衡岗人员审批且进入该流程
|
|
|
|
|
|
|
|
|
String result = ""; |
|
|
String result = ""; |
|
|
@ -3431,7 +3437,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 获取综合办负责人
|
|
|
// 获取综合办负责人
|
|
|
List<UserByPort> departmentHeadByUser = userService.getDepartmentHeaderByIdForNoPack(268L); |
|
|
List<UserByPort> departmentHeadByUser = PublicConfig.findDepartmentHeadByUser(268L,userKey,token); |
|
|
|
|
|
|
|
|
for (UserByPort userByPort : departmentHeadByUser) { |
|
|
for (UserByPort userByPort : departmentHeadByUser) { |
|
|
depositoryManager.append(userByPort.getId()).append(","); |
|
|
depositoryManager.append(userByPort.getId()).append(","); |
|
|
@ -3456,7 +3462,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
if ("".equals(depositorymanager)) { |
|
|
if ("".equals(depositorymanager)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort depositoryManage = userService.findUserByIdForNoPack(ObjectFormatUtil.toLong(depositorymanager)); |
|
|
UserByPort depositoryManage = PublicConfig.FindUserById(ObjectFormatUtil.toLong(depositorymanager),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = depositoryManage.getEmptype(); |
|
|
int emptype = depositoryManage.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3515,7 +3521,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(ObjectFormatUtil.toLong(s)); |
|
|
UserByPort userByPort = PublicConfig.FindUserById(ObjectFormatUtil.toLong(s),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3531,7 +3537,8 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
s = "PangFuZhen,"; |
|
|
s = "PangFuZhen,"; |
|
|
qyWxOperationService.sendMessageForOtherUserByCard(ObjectFormatUtil.toLong(id), s, userAgent, 1, userKey, token); |
|
|
qyWxOperationService.sendMessageForOtherUserByCard(ObjectFormatUtil.toLong(id), s, userAgent, 1, userKey, token); |
|
|
}); |
|
|
}); |
|
|
} else { |
|
|
} |
|
|
|
|
|
else { |
|
|
String result = ""; |
|
|
String result = ""; |
|
|
// 开启线程更改其他用户卡片模板样式
|
|
|
// 开启线程更改其他用户卡片模板样式
|
|
|
String simpleTime = DateUtil.getSimpleTime(new Date()); |
|
|
String simpleTime = DateUtil.getSimpleTime(new Date()); |
|
|
@ -3634,7 +3641,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
paramForGetUserByPost.put("position", roleAndMaterialType.getUid()); |
|
|
paramForGetUserByPost.put("position", roleAndMaterialType.getUid()); |
|
|
List<UserByPort> userByPortList = userService.findUserByConditionForNoPack(paramForGetUserByPost); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost,userKey,token); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3657,7 +3664,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
|
|
|
|
|
|
for (Long integer : userIdByDid) { |
|
|
for (Long integer : userIdByDid) { |
|
|
// 获取仓库管理员信息
|
|
|
// 获取仓库管理员信息
|
|
|
UserByPort manager = userService.findUserByIdForNoPack(integer); |
|
|
UserByPort manager = PublicConfig.FindUserById(integer,userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = manager.getEmptype(); |
|
|
int emptype = manager.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3721,7 +3728,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
// 定义用于获取当前岗位下的人的参数map
|
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
Map<String, Object> paramForGetUserByPost = new HashMap<>(); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
paramForGetUserByPost.put("position", roleAndDepository.getUserId()); |
|
|
List<UserByPort> userByPortList = userService.findUserByConditionForNoPack(paramForGetUserByPost); |
|
|
List<UserByPort> userByPortList = PublicConfig.FindUserByMap(paramForGetUserByPost,userKey,token); |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
for (UserByPort userByPort : userByPortList) { |
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3746,7 +3753,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
// 修改redis中用户的数据
|
|
|
// 修改redis中用户的数据
|
|
|
updateRedisDataForUserManager(integer, minRecordKey); |
|
|
updateRedisDataForUserManager(integer, minRecordKey); |
|
|
// 获取仓库管理员信息
|
|
|
// 获取仓库管理员信息
|
|
|
UserByPort manager = userService.findUserByIdForNoPack(integer); |
|
|
UserByPort manager = PublicConfig.FindUserById(integer,userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = manager.getEmptype(); |
|
|
int emptype = manager.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3784,7 +3791,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
if ("".equals(s)) { |
|
|
if ("".equals(s)) { |
|
|
continue; |
|
|
continue; |
|
|
} |
|
|
} |
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(ObjectFormatUtil.toLong(s)); |
|
|
UserByPort userByPort = PublicConfig.FindUserById(ObjectFormatUtil.toLong(s),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = userByPort.getEmptype(); |
|
|
int emptype = userByPort.getEmptype(); |
|
|
if (emptype > 10) { |
|
|
if (emptype > 10) { |
|
|
@ -3831,7 +3838,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
SendQyWxMessageThreadPool.execute(() -> { |
|
|
SendQyWxMessageThreadPool.execute(() -> { |
|
|
// 获取responseCode(key为申请人number)
|
|
|
// 获取responseCode(key为申请人number)
|
|
|
//获取部门负责人信息
|
|
|
//获取部门负责人信息
|
|
|
UserByPort departHead = userService.findUserByIdForNoPack(ObjectFormatUtil.toLong(record.getDepartmenthead())); |
|
|
UserByPort departHead = PublicConfig.FindUserById(ObjectFormatUtil.toLong(record.getDepartmenthead()),userKey,token); |
|
|
// 获取用户的用工关系
|
|
|
// 获取用户的用工关系
|
|
|
int emptype = departHead.getEmptype(); |
|
|
int emptype = departHead.getEmptype(); |
|
|
if (emptype <= 10) { |
|
|
if (emptype <= 10) { |
|
|
@ -5803,7 +5810,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
List<SimpleApplicationOutOrInRecordP> result = new ArrayList<>(list.size()); |
|
|
List<SimpleApplicationOutOrInRecordP> result = new ArrayList<>(list.size()); |
|
|
for (SimpleApplicationOutRecord record : list) { |
|
|
for (SimpleApplicationOutRecord record : list) { |
|
|
SimpleApplicationOutOrInRecordP d = new SimpleApplicationOutOrInRecordP(record); |
|
|
SimpleApplicationOutOrInRecordP d = new SimpleApplicationOutOrInRecordP(record); |
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(record.getApplicantId()); |
|
|
UserByPort userByPort = userService.findUserById(record.getApplicantId()); |
|
|
d.setApplyRemark(d.getApplyRemark() == null ? "" : d.getApplyRemark()); |
|
|
d.setApplyRemark(d.getApplyRemark() == null ? "" : d.getApplyRemark()); |
|
|
d.setApplicantName(userByPort.getMaindeparmentname() + "_" + userByPort.getName()); |
|
|
d.setApplicantName(userByPort.getMaindeparmentname() + "_" + userByPort.getName()); |
|
|
|
|
|
|
|
|
@ -5816,7 +5823,7 @@ public class DepositoryRecordServiceImpl implements DepositoryRecordService { |
|
|
List<SimpleApplicationOutOrInRecordP> result = new ArrayList<>(list.size()); |
|
|
List<SimpleApplicationOutOrInRecordP> result = new ArrayList<>(list.size()); |
|
|
for (SimpleApplicationInRecord record : list) { |
|
|
for (SimpleApplicationInRecord record : list) { |
|
|
SimpleApplicationOutOrInRecordP d = new SimpleApplicationOutOrInRecordP(record); |
|
|
SimpleApplicationOutOrInRecordP d = new SimpleApplicationOutOrInRecordP(record); |
|
|
UserByPort userByPort = userService.findUserByIdForNoPack(record.getApplicantId()); |
|
|
UserByPort userByPort = userService.findUserById(record.getApplicantId()); |
|
|
d.setApplyRemark(d.getApplyRemark() == null ? "" : d.getApplyRemark()); |
|
|
d.setApplyRemark(d.getApplyRemark() == null ? "" : d.getApplyRemark()); |
|
|
d.setApplicantName(userByPort.getMaindeparmentname() + "_" + userByPort.getName()); |
|
|
d.setApplicantName(userByPort.getMaindeparmentname() + "_" + userByPort.getName()); |
|
|
result.add(d); |
|
|
result.add(d); |
|
|
|