|
@@ -19,6 +19,7 @@ import com.jeeplus.sys.domain.Office;
|
|
|
import com.jeeplus.sys.domain.WorkAttachmentInfo;
|
|
|
import com.jeeplus.sys.feign.*;
|
|
|
//import com.jeeplus.sys.mapper.OfficeMapper;
|
|
|
+import com.jeeplus.sys.service.dto.OfficeDTO;
|
|
|
import com.jeeplus.sys.service.dto.RoleDTO;
|
|
|
import com.jeeplus.sys.service.dto.UserDTO;
|
|
|
//import com.jeeplus.sys.utils.DictUtils;
|
|
@@ -176,7 +177,7 @@ public class ReimbursementInfoService {
|
|
|
queryWrapper.eq("a.source_type", dto.getSourceType());
|
|
|
}
|
|
|
//获取当前登录人信息
|
|
|
- UserDTO userDTO = SpringUtil.getBean ( IUserApi.class ).getByToken(TokenProvider.getCurrentToken ( ));
|
|
|
+ /*UserDTO userDTO = SpringUtil.getBean ( IUserApi.class ).getByToken(TokenProvider.getCurrentToken ( ));
|
|
|
//获取当前登录人所属角色
|
|
|
//若是评估部门主任,则仅展示部门主任信息
|
|
|
//若是评估员工,则仅展示自己的数据信息
|
|
@@ -191,7 +192,7 @@ public class ReimbursementInfoService {
|
|
|
queryWrapper.eq("c.office_id", userDTO.getOfficeDTO().getId());
|
|
|
break;
|
|
|
}
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
|
|
|
IPage<RetureListDto> pageList = infoMapper.findList(page, queryWrapper);
|
|
@@ -484,7 +485,7 @@ public class ReimbursementInfoService {
|
|
|
if (ObjectUtil.isNotEmpty(info)){
|
|
|
BeanUtils.copyProperties(info, dto);
|
|
|
if(StringUtils.isNotBlank(info.getDepartment())) {
|
|
|
- Office byId = SpringUtil.getBean ( IOfficeApi.class ).selectById(info.getDepartment());
|
|
|
+ OfficeDTO byId = SpringUtil.getBean ( IOfficeApi.class ).getOfficeById(info.getDepartment());
|
|
|
if (ObjectUtil.isNotEmpty(byId)) {
|
|
|
dto.setDepartmentName(byId.getName());
|
|
|
}
|