代码提交
This commit is contained in:
parent
f254c1df1a
commit
c8b374b24e
|
|
@ -98,6 +98,19 @@ public class TransferApplyController extends BaseController {
|
|||
return AjaxResult.error("请求出错了");
|
||||
}
|
||||
}
|
||||
@ApiOperation(value = "档案移交审核详情")
|
||||
@GetMapping("getTransferAudit")
|
||||
@SysLog(title = "档案移交审核详情", module = "数据/档案移交->档案移交审核", businessType = OperaType.QUERY, details = "档案移交审核详情", logType = 1)
|
||||
@RequiresPermissions("transfer:apply:query")
|
||||
public AjaxResult getTransferAudit(TransferApplyDto dto) {
|
||||
try {
|
||||
TransferApplyDto transferApply = transferApplyService.getTransferApply(dto);
|
||||
return AjaxResult.success(transferApply);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(), e);
|
||||
return AjaxResult.error("请求出错了");
|
||||
}
|
||||
}
|
||||
|
||||
@ApiOperation(value = "编辑档案移交申请")
|
||||
@PostMapping("editTransferApply")
|
||||
|
|
@ -163,6 +176,7 @@ public class TransferApplyController extends BaseController {
|
|||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
// 档案移交申请文件详情
|
||||
@GetMapping("getTransferApplyFilesByApplyId")
|
||||
@RequiresPermissions("transfer:apply:query")
|
||||
public AjaxResult getTransferApplyFilesByApplyId(TransferApplyDto dto) {
|
||||
|
|
@ -174,4 +188,17 @@ public class TransferApplyController extends BaseController {
|
|||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
|
||||
// 档案移交审核文件详情
|
||||
@GetMapping("getTransferAudieFilesByApplyId")
|
||||
@RequiresPermissions("transfer:apply:query")
|
||||
public AjaxResult getTransferAudieFilesByApplyId(TransferApplyDto dto) {
|
||||
try {
|
||||
List<DaKyProFilesContentsDto> list = transferApplyService.getTransferApplyFilesByApplyId(dto);
|
||||
return AjaxResult.success(list);
|
||||
} catch (Exception e) {
|
||||
log.error(e.toString(), e);
|
||||
return AjaxResult.error();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ package com.bonus.web.service.impl;
|
|||
import com.bonus.common.core.domain.AjaxResult;
|
||||
import com.bonus.common.core.domain.entity.SysDept;
|
||||
import com.bonus.common.core.domain.entity.SysRole;
|
||||
import com.bonus.common.utils.DateUtils;
|
||||
import com.bonus.web.controller.tool.TreeBuilder;
|
||||
import com.bonus.web.domain.*;
|
||||
import com.bonus.web.mapper.TransferApplyMapper;
|
||||
|
|
@ -14,6 +15,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|||
import org.springframework.transaction.interceptor.TransactionAspectSupport;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import static com.bonus.common.utils.SecurityUtils.getLoginUser;
|
||||
|
|
@ -42,6 +44,8 @@ public class TransferApplyServiceImpl implements TransferApplyService {
|
|||
public AjaxResult save(TransferApplyDto dto) {
|
||||
try {
|
||||
dto.setAuditStatus("0");
|
||||
dto.setApplyUser(getLoginUser().getUserId().toString());
|
||||
dto.setApplyTime(DateUtils.getDate());
|
||||
dto.setCreateUserId(getLoginUser().getUserId().intValue());
|
||||
dto.setCreateUserName(getLoginUser().getUsername());
|
||||
dto.setUpdateUserId(getLoginUser().getUserId().intValue());
|
||||
|
|
|
|||
Loading…
Reference in New Issue