|
|
@@ -322,15 +322,9 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
@Override
|
|
|
public List<ProjectStaffRecordOut> listRecord(ProjectStaffRecordInput in) {
|
|
|
if (in.getRoleType()==null)in.setRoleType(0);
|
|
|
- if (in.getRoleType()==0){
|
|
|
in.setAid(SecurityUtils.getUserId());
|
|
|
- }else if (in.getRoleType()==1){
|
|
|
- //判定1=经理审核成员2=技术总监审核经理
|
|
|
- if (SecurityUtils.hashRoles(UserRolesType.INSPECTORS.getCode())){
|
|
|
- in.setRoleType(2);
|
|
|
- }else if (SecurityUtils.hashRoles(UserRolesType.CEO.getCode())||SecurityUtils.hashRoles(UserRolesType.ADMIN.getCode())){
|
|
|
- in.setRoleType(3);
|
|
|
- }
|
|
|
+ if (SecurityUtils.hashRoles(UserRolesType.CEO.getCode())||SecurityUtils.hashRoles(UserRolesType.ADMIN.getCode())){
|
|
|
+ in.setRoleType(2);
|
|
|
}
|
|
|
Long companyId = deptService.selectCompanyByDeptId();
|
|
|
if (companyId!=null)in.setCompanyId(companyId);
|
|
|
@@ -339,7 +333,7 @@ public class ProjectStaffRecordServiceImpl implements ProjectStaffRecordService
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public String importProject(List<ProjectStaffRecordOut> list, boolean updateSupport, String operName) {
|
|
|
+ public String importProject(List<ProjectStaffRecordOut> list, boolean updateSupport) {
|
|
|
if (StringUtils.isNull(list) || list.size() == 0)
|
|
|
{
|
|
|
throw new ServiceException("导入用户数据不能为空!");
|