Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx
This commit is contained in:
commit
72ad8d5048
|
|
@ -58,9 +58,9 @@ public class TokenController {
|
||||||
//web端登录
|
//web端登录
|
||||||
@PostMapping("login")
|
@PostMapping("login")
|
||||||
public R<?> login(@RequestBody LoginBody form) throws Exception {
|
public R<?> login(@RequestBody LoginBody form) throws Exception {
|
||||||
//String decryptedData = RsaUtil.decryptByPrivateKey(form.getPassword(), privateKey);
|
String decryptedData = RsaUtil.decryptByPrivateKey(form.getPassword(), privateKey);
|
||||||
// 用户登录
|
// 用户登录
|
||||||
LoginUser userInfo = sysLoginService.login(form.getUsername(), form.getPassword());
|
LoginUser userInfo = sysLoginService.login(form.getUsername(), decryptedData);
|
||||||
String uuid = form.getUuid();
|
String uuid = form.getUuid();
|
||||||
String captcha = redisService.getCacheObject(CacheConstants.CAPTCHA_CODE_KEY + uuid).toString();
|
String captcha = redisService.getCacheObject(CacheConstants.CAPTCHA_CODE_KEY + uuid).toString();
|
||||||
if (StringUtils.isBlank(captcha)) {
|
if (StringUtils.isBlank(captcha)) {
|
||||||
|
|
|
||||||
|
|
@ -619,13 +619,12 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
|
|
||||||
for (TmTask tmTask : tmTaskList) {
|
for (TmTask tmTask : tmTaskList) {
|
||||||
int count = 0;
|
int count = 0;
|
||||||
tmTask.setDeptId(deptId);
|
|
||||||
if (tmTask != null) {
|
if (tmTask != null) {
|
||||||
// 去查询任务分单表
|
// 去查询任务分单表
|
||||||
List<LeaseApplyInfo> collect = tmTaskMapper.getAuditManageListByLeaseInfo(tmTask);
|
List<LeaseApplyInfo> collect = tmTaskMapper.getAuditManageListByLeaseInfo(tmTask);
|
||||||
if (collect.size() > 0) {
|
if (collect.size() > 0) {
|
||||||
int deptId1 = tmTaskMapper.getDeptId(collect.get(0).getCreateBy());
|
int deptId1 = tmTaskMapper.getDeptId(collect.get(0).getCreateBy());
|
||||||
if (roles.contains("admin")) {
|
if (roles.contains("admin") || deptId == 100) {
|
||||||
// 对领料任务集合查询具体详情
|
// 对领料任务集合查询具体详情
|
||||||
for (LeaseApplyInfo leaseApplyInfo : collect) {
|
for (LeaseApplyInfo leaseApplyInfo : collect) {
|
||||||
if (leaseApplyInfo != null) {
|
if (leaseApplyInfo != null) {
|
||||||
|
|
@ -642,6 +641,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
||||||
// 存入领料任务实体集合
|
// 存入领料任务实体集合
|
||||||
tmTask.setLeaseApplyInfoList(collect);
|
tmTask.setLeaseApplyInfoList(collect);
|
||||||
|
tmTask.setDeptId(Long.parseLong(String.valueOf(deptId1)));
|
||||||
tmTask.setRemark(collect.get(0).getRemark());
|
tmTask.setRemark(collect.get(0).getRemark());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -670,6 +670,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
||||||
// 存入领料任务实体集合
|
// 存入领料任务实体集合
|
||||||
tmTask.setLeaseApplyInfoList(auditListByLeaseInfo);
|
tmTask.setLeaseApplyInfoList(auditListByLeaseInfo);
|
||||||
|
tmTask.setDeptId(Long.parseLong(String.valueOf(deptId1)));
|
||||||
tmTask.setRemark(collect.get(0).getRemark());
|
tmTask.setRemark(collect.get(0).getRemark());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -699,6 +700,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
||||||
// 存入领料任务实体集合
|
// 存入领料任务实体集合
|
||||||
tmTask.setLeaseApplyInfoList(auditListByLeaseInfo);
|
tmTask.setLeaseApplyInfoList(auditListByLeaseInfo);
|
||||||
|
tmTask.setDeptId(Long.parseLong(String.valueOf(deptId1)));
|
||||||
tmTask.setRemark(collect.get(0).getRemark());
|
tmTask.setRemark(collect.get(0).getRemark());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -721,6 +723,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
||||||
// 存入领料任务实体集合
|
// 存入领料任务实体集合
|
||||||
tmTask.setLeaseApplyInfoList(collect);
|
tmTask.setLeaseApplyInfoList(collect);
|
||||||
|
tmTask.setDeptId(Long.parseLong(String.valueOf(deptId1)));
|
||||||
tmTask.setRemark(collect.get(0).getRemark());
|
tmTask.setRemark(collect.get(0).getRemark());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -749,6 +752,7 @@ public class TmTaskServiceImpl implements TmTaskService {
|
||||||
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
leaseApplyInfo.setLeaseApplyDetails(leaseApplyDetails);
|
||||||
// 存入领料任务实体集合
|
// 存入领料任务实体集合
|
||||||
tmTask.setLeaseApplyInfoList(auditListByLeaseInfo);
|
tmTask.setLeaseApplyInfoList(auditListByLeaseInfo);
|
||||||
|
tmTask.setDeptId(Long.parseLong(String.valueOf(deptId1)));
|
||||||
tmTask.setRemark(collect.get(0).getRemark());
|
tmTask.setRemark(collect.get(0).getRemark());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue