Merge branch 'dev' into docker_package
This commit is contained in:
commit
81e41c2449
|
@ -10,9 +10,12 @@ import io.renren.common.validator.ValidatorUtils;
|
|||
import io.renren.common.validator.group.AddGroup;
|
||||
import io.renren.common.validator.group.DefaultGroup;
|
||||
import io.renren.common.validator.group.UpdateGroup;
|
||||
import io.renren.modules.resource.dto.ResourceDTO;
|
||||
import io.renren.modules.resourceMountApply.dto.TResourceMountApplyDTO;
|
||||
import io.renren.modules.resourceMountApply.excel.TResourceMountApplyExcel;
|
||||
import io.renren.modules.resourceMountApply.service.TResourceMountApplyService;
|
||||
import io.renren.modules.sys.dto.SysDeptDTO;
|
||||
import io.renren.modules.sys.service.SysDeptService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiImplicitParams;
|
||||
|
@ -39,6 +42,8 @@ import java.util.Map;
|
|||
public class TResourceMountApplyController {
|
||||
@Autowired
|
||||
private TResourceMountApplyService tResourceMountApplyService;
|
||||
@Autowired
|
||||
private SysDeptService sysDeptService;
|
||||
|
||||
@GetMapping("/page")
|
||||
@ApiOperation("分页")
|
||||
|
@ -63,7 +68,12 @@ public class TResourceMountApplyController {
|
|||
// @RequiresPermissions("resourceMountApply:tresourcemountapply:info")
|
||||
public Result<TResourceMountApplyDTO> get(@PathVariable("id") Long id) {
|
||||
TResourceMountApplyDTO data = tResourceMountApplyService.get(id);
|
||||
|
||||
SysDeptDTO sysDeptDTO = sysDeptService.get(Long.valueOf(data.getDeptId()));
|
||||
if (sysDeptDTO != null) {
|
||||
ResourceDTO resourceDTO = data.getResourceDTO();
|
||||
resourceDTO.setDeptName(sysDeptDTO.getName());
|
||||
data.setResourceDTO(resourceDTO);
|
||||
}
|
||||
return new Result<TResourceMountApplyDTO>().ok(data);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue