测试问题项修改
This commit is contained in:
parent
7cb36cbbcb
commit
e547366f45
|
|
@ -141,14 +141,18 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
public int audit(BackApplyInfo record) {
|
public int audit(BackApplyInfo record) {
|
||||||
int num = 0;
|
int num = 0;
|
||||||
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
|
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
|
||||||
String username = SecurityUtils.getLoginUser().getUsername();
|
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
|
||||||
String userId = String.valueOf(SecurityUtils.getLoginUser().getUserid());
|
String userId = String.valueOf(SecurityUtils.getLoginUser().getUserid());
|
||||||
record.setCreateBy(userId);
|
record.setCreateBy(userId);
|
||||||
if (roles.contains("jjfgs") || roles.contains("admin")) {
|
if (roles.contains("admin")) {
|
||||||
record.setStatus("1");
|
record.setStatus("1");
|
||||||
backApplyMapper.audit(record);
|
backApplyMapper.audit(record);
|
||||||
}
|
}
|
||||||
if (roles.contains("tsfgs") || roles.contains("admin")) {
|
if (companyId != null && companyId.equals(101)) {
|
||||||
|
record.setStatus("1");
|
||||||
|
backApplyMapper.audit(record);
|
||||||
|
}
|
||||||
|
if (companyId != null && companyId.equals(102)) {
|
||||||
record.setStatus("3");
|
record.setStatus("3");
|
||||||
backApplyMapper.audit(record);
|
backApplyMapper.audit(record);
|
||||||
}
|
}
|
||||||
|
|
@ -172,12 +176,17 @@ public class BackApplyServiceImpl implements BackApplyService {
|
||||||
int num = 0;
|
int num = 0;
|
||||||
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
|
Set<String> roles = SecurityUtils.getLoginUser().getRoles();
|
||||||
Long userid = SecurityUtils.getLoginUser().getUserid();
|
Long userid = SecurityUtils.getLoginUser().getUserid();
|
||||||
|
Long companyId = SecurityUtils.getLoginUser().getSysUser().getCompanyId();
|
||||||
record.setCreateBy(userid.toString());
|
record.setCreateBy(userid.toString());
|
||||||
if (roles.contains("jjfgs") || roles.contains("admin")) {
|
if (roles.contains("admin")) {
|
||||||
record.setStatus("2");
|
record.setStatus("2");
|
||||||
return backApplyMapper.refuse(record);
|
return backApplyMapper.refuse(record);
|
||||||
}
|
}
|
||||||
if (roles.contains("tsfgs") || roles.contains("admin")) {
|
if (companyId != null && companyId.equals(101)) {
|
||||||
|
record.setStatus("2");
|
||||||
|
return backApplyMapper.refuse(record);
|
||||||
|
}
|
||||||
|
if (companyId != null && companyId.equals(101)) {
|
||||||
record.setStatus("4");
|
record.setStatus("4");
|
||||||
return backApplyMapper.refuse(record);
|
return backApplyMapper.refuse(record);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue