代码提交

This commit is contained in:
liang.chao 2025-09-29 09:25:47 +08:00
parent 1209ff2df8
commit c283059a37
4 changed files with 10 additions and 1 deletions

View File

@ -88,6 +88,7 @@ public class TransferApplyController extends BaseController {
@ApiOperation(value = "档案移交申请详情")
@GetMapping("getTransferApply")
@SysLog(title = "档案移交申请详情", module = "数据/档案移交->档案移交申请", businessType = OperaType.QUERY, details = "档案移交申请详情", logType = 1)
@RequiresPermissions("transfer:apply:query")
public AjaxResult getTransferApply(TransferApplyDto dto) {
try {
TransferApplyDto transferApply = transferApplyService.getTransferApply(dto);
@ -163,6 +164,7 @@ public class TransferApplyController extends BaseController {
}
}
@GetMapping("getTransferApplyFilesByApplyId")
@RequiresPermissions("transfer:apply:query")
public AjaxResult getTransferApplyFilesByApplyId(TransferApplyDto dto) {
try {
List<DaKyProFilesContentsDto> list = transferApplyService.getTransferApplyFilesByApplyId(dto);

View File

@ -67,4 +67,6 @@ public interface TransferApplyMapper {
Integer updateReceiveStatus(TransferFileDto dto);
Integer isAllReceiveByProject(TransferFileDto dto);
Integer updateProjectFileStatus(TransferFileDto dto);
}

View File

@ -172,7 +172,7 @@ public class TransferApplyServiceImpl implements TransferApplyService {
// 如果该项目下所有文件都已接收则修改项目移交状态
Integer allReceiveByProject = transferApplyMapper.isAllReceiveByProject(dto);
if (allReceiveByProject == 1) {
transferApplyMapper.updateTransferStatus(dto);
transferApplyMapper.updateProjectFileStatus(dto);
}
if (i > 0) {
return AjaxResult.success("接收成功");

View File

@ -306,6 +306,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
SET receive_status = '1'
WHERE id = #{transferApplyId}
</update>
<update id="updateProjectFileStatus">
UPDATE da_ky_project
SET file_status = '2'
WHERE id = #{proId}
</update>
<delete id="delTransferFiles">
DELETE FROM da_ky_transfer_file
WHERE transfer_apply_id = #{id}