添加审核

This commit is contained in:
2025-10-27 20:00:56 +08:00
parent 81be4a862c
commit 9a3b7ebe54
63 changed files with 915 additions and 29 deletions

View File

@ -308,12 +308,12 @@ xss:
- /project/project
- /xzd/contractDetails/**
- /xzd/contractChange/**
- /comprehensive/csContractChange/**
- /comprehensive/csContractInformation/**
- /hetongbiangeng/**
- /fenbaohetongbiangg/**
- /fenbaohetongxinxi/**
- /contractManagement/**
- /xzd/comprehensive/csContractChange/**
- /xzd/comprehensive/csContractInformation/**
- /xzd/hetongbiangeng/**
- /xzd/fenbaohetongbiangg/**
- /xzd/fenbaohetongxinxi/**
- /xzd/contractManagement/**
# 全局线程池相关配置
# 如使用JDK21请直接使用虚拟线程 不要开启此配置

View File

@ -61,7 +61,7 @@ public class XzdCsContractChangeController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("comprehensive:csContractChange:query")
@SaCheckPermission("comprehensive:csContractChange:query")
@GetMapping("/{id}")
public R<XzdCsContractChangeVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -70,7 +70,7 @@ public class XzdCsContractInformationController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("comprehensive:csContractInformation:query")
@SaCheckPermission("comprehensive:csContractInformation:query")
@GetMapping("/{id}")
public R<XzdCsContractInformationVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdCsContractSuspendController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("comprehensive:csContractSuspend:query")
@SaCheckPermission("comprehensive:csContractSuspend:query")
@GetMapping("/{id}")
public R<XzdCsContractSuspendVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -213,4 +213,10 @@ public class XzdCsContractChange extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -242,6 +242,11 @@ public class XzdCsContractInformation extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 部门id
*/

View File

@ -221,6 +221,12 @@ public class XzdCsContractChangeBo extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 扣款与奖励项
*/

View File

@ -265,6 +265,12 @@ public class XzdCsContractInformationBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 扣款与奖励项
*/

View File

@ -280,6 +280,12 @@ public class XzdCsContractChangeVo implements Serializable {
@ExcelProperty(value = "文件id")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 扣款与奖励项
*/

View File

@ -329,6 +329,12 @@ public class XzdCsContractInformationVo implements Serializable {
@ExcelProperty(value = "文件id")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 扣款与奖励项
*/

View File

@ -1,7 +1,11 @@
package org.dromara.xzd.comprehensive.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -16,6 +20,7 @@ import org.dromara.system.service.ISysDeptService;
import org.dromara.system.service.ISysUserService;
import org.dromara.system.service.impl.SysDeptServiceImpl;
import org.dromara.system.service.impl.SysOssServiceImpl;
import org.dromara.tender.domain.BusBLimitListVersions;
import org.dromara.xzd.comprehensive.domain.XzdCsContractInformation;
import org.dromara.xzd.comprehensive.domain.XzdCsContractSuspendZfkx;
import org.dromara.xzd.comprehensive.domain.XzdHtglHtbgqd;
@ -32,6 +37,7 @@ import org.dromara.xzd.enums.XzdClassEnum;
import org.dromara.xzd.service.IXzdCorrespondentList;
import org.dromara.xzd.service.impl.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;
import org.dromara.xzd.comprehensive.domain.bo.XzdCsContractChangeBo;
import org.dromara.xzd.comprehensive.domain.vo.XzdCsContractChangeVo;
@ -50,6 +56,7 @@ import java.util.*;
*/
@RequiredArgsConstructor
@Service
@Slf4j
public class XzdCsContractChangeServiceImpl extends ServiceImpl<XzdCsContractChangeMapper, XzdCsContractChange> implements IXzdCsContractChangeService {
private final XzdCsContractChangeMapper baseMapper;
@ -112,6 +119,7 @@ public class XzdCsContractChangeServiceImpl extends ServiceImpl<XzdCsContractCha
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdCsContractChange> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdCsContractChange::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdCsContractChange::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdCsContractChange::getDocCode, bo.getDocCode());
lqw.eq(StringUtils.isNotBlank(bo.getTitle()), XzdCsContractChange::getTitle, bo.getTitle());
lqw.eq(bo.getDocDate() != null, XzdCsContractChange::getDocDate, bo.getDocDate());
@ -351,4 +359,48 @@ public class XzdCsContractChangeServiceImpl extends ServiceImpl<XzdCsContractCha
List<XzdHtglHtbgqd> list4 = xzdHtglHtbgqdService.getBaseMapper().selectList(new LambdaQueryWrapper<XzdHtglHtbgqd>().eq(XzdHtglHtbgqd::getMainDocumentId, vo.getId()));
vo.setHtbgqds(list4);
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCsContractChange')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("综合服务合同变更审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCsContractChange xzdCsContractChange = baseMapper.selectById(Long.valueOf(id));
xzdCsContractChange.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCsContractChange);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCsContractChange')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("综合服务合同变更审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCsContractChange')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("综合服务合同变更计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -5,7 +5,11 @@ import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.service.XzdCsContractInformationService;
import org.dromara.common.core.utils.MapstructUtils;
@ -22,6 +26,7 @@ import org.dromara.system.domain.vo.SysDeptVo;
import org.dromara.system.service.ISysUserService;
import org.dromara.system.service.impl.SysDeptServiceImpl;
import org.dromara.system.service.impl.SysOssServiceImpl;
import org.dromara.xzd.comprehensive.domain.XzdCsContractChange;
import org.dromara.xzd.comprehensive.domain.XzdCsContractSuspendZfkx;
import org.dromara.xzd.comprehensive.domain.XzdHtglHtbgqd;
import org.dromara.xzd.comprehensive.service.IXzdCsContractSuspendZfkxService;
@ -39,6 +44,7 @@ import org.dromara.xzd.service.IXzdCorrespondentList;
import org.dromara.xzd.service.impl.*;
import org.dromara.xzd.settlement.domain.vo.XzdJsCgJungonVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;
import org.dromara.xzd.comprehensive.domain.bo.XzdCsContractInformationBo;
import org.dromara.xzd.comprehensive.domain.vo.XzdCsContractInformationVo;
@ -57,6 +63,7 @@ import java.util.*;
*/
@RequiredArgsConstructor
@Service
@Slf4j
public class XzdCsContractInformationServiceImpl extends ServiceImpl<XzdCsContractInformationMapper, XzdCsContractInformation> implements IXzdCsContractInformationService, XzdCsContractInformationService {
private final XzdCsContractInformationMapper baseMapper;
@ -147,6 +154,7 @@ public class XzdCsContractInformationServiceImpl extends ServiceImpl<XzdCsContra
LambdaQueryWrapper<XzdCsContractInformation> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdCsContractInformation::getId);
lqw.eq(StringUtils.isNotBlank(bo.getContractCode()), XzdCsContractInformation::getContractCode, bo.getContractCode());
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdCsContractInformation::getAuditStatus, bo.getAuditStatus());
lqw.like(StringUtils.isNotBlank(bo.getContractName()), XzdCsContractInformation::getContractName, bo.getContractName());
lqw.eq(bo.getDocumentDate() != null, XzdCsContractInformation::getDocumentDate, bo.getDocumentDate());
lqw.eq(bo.getDeptId() != null, XzdCsContractInformation::getDeptId, bo.getDeptId());
@ -382,4 +390,49 @@ public class XzdCsContractInformationServiceImpl extends ServiceImpl<XzdCsContra
}
return String.join(StringUtils.SEPARATOR, list);
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCsContractInfo')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("综合服务合同信息审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCsContractInformation xzdCsContractInformation = baseMapper.selectById(Long.valueOf(id));
xzdCsContractInformation.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCsContractInformation);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCsContractInfo')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("综合服务合同信息审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCsContractInfo')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("综合服务合同信息计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,7 +1,11 @@
package org.dromara.xzd.comprehensive.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
@ -13,6 +17,7 @@ import lombok.RequiredArgsConstructor;
import org.dromara.system.domain.vo.SysDeptVo;
import org.dromara.system.service.impl.SysDeptServiceImpl;
import org.dromara.system.service.impl.SysOssServiceImpl;
import org.dromara.xzd.comprehensive.domain.XzdCsContractInformation;
import org.dromara.xzd.comprehensive.domain.vo.XzdCsContractInformationVo;
import org.dromara.xzd.domain.dto.QuerCorrespondentDto;
import org.dromara.xzd.domain.vo.XzdProjectVo;
@ -20,6 +25,7 @@ import org.dromara.xzd.domain.vo.XzdSupplierInfoVo;
import org.dromara.xzd.service.IXzdCorrespondentList;
import org.dromara.xzd.service.impl.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Service;
import org.dromara.xzd.comprehensive.domain.bo.XzdCsContractSuspendBo;
import org.dromara.xzd.comprehensive.domain.vo.XzdCsContractSuspendVo;
@ -38,6 +44,7 @@ import java.util.*;
*/
@RequiredArgsConstructor
@Service
@Slf4j
public class XzdCsContractSuspendServiceImpl extends ServiceImpl<XzdCsContractSuspendMapper, XzdCsContractSuspend> implements IXzdCsContractSuspendService {
private final XzdCsContractSuspendMapper baseMapper;
@ -172,4 +179,49 @@ public class XzdCsContractSuspendServiceImpl extends ServiceImpl<XzdCsContractSu
}
return baseMapper.deleteByIds(ids) > 0;
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCsContractSuspend')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("综合服务合同终止审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCsContractSuspend xzdCsContractSuspend = baseMapper.selectById(Long.valueOf(id));
xzdCsContractSuspend.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCsContractSuspend);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCsContractSuspend')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("综合服务合同终止审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCsContractSuspend')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("综合服务合同终止计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -61,7 +61,7 @@ public class XzdCbysJdcbfjController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("costBudget:cbysJdcbfj:query")
@SaCheckPermission("costBudget:cbysJdcbfj:query")
@GetMapping("/{id}")
public R<XzdCbysJdcbfjVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdCbysWgcbtbController extends BaseController {
*
* @param id 主键
*/
//@SaCheckPermission("costBudget:cbysWgcbtb:query")
@SaCheckPermission("costBudget:cbysWgcbtb:query")
@GetMapping("/{id}")
public R<XzdCbysWgcbtbVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdCbysZjhcbAlterationController extends BaseController {
*
* @param id 主键
*/
//@SaCheckPermission("costBudget:cbysZjhcbAlteration:query")
@SaCheckPermission("costBudget:cbysZjhcbAlteration:query")
@GetMapping("/{id}")
public R<XzdCbysZjhcbAlterationVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdCbysZjhcbController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("costBudget:cbysZjhcb:query")
@SaCheckPermission("costBudget:cbysZjhcb:query")
@GetMapping("/{id}")
public R<XzdCbysZjhcbVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -111,4 +111,10 @@ public class XzdCbysJdcbfj extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -115,4 +115,10 @@ public class XzdCbysWgcbtb extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -151,4 +151,9 @@ public class XzdCbysZjhcb extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -155,4 +155,9 @@ public class XzdCbysZjhcbAlteration extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -115,6 +115,12 @@ public class XzdCbysJdcbfjBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 副表数据
*/

View File

@ -116,6 +116,12 @@ public class XzdCbysWgcbtbBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
private List<XzdCbysWgcbtbFubiao> xzdCbysWgcbtbFubiao;
}

View File

@ -159,6 +159,13 @@ public class XzdCbysZjhcbAlterationBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 变更记录
*/

View File

@ -154,6 +154,12 @@ public class XzdCbysZjhcbBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 变更记录
*/

View File

@ -140,6 +140,12 @@ public class XzdCbysJdcbfjVo implements Serializable {
@ExcelProperty(value = "文件ID")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 副表数据
*/

View File

@ -157,6 +157,12 @@ public class XzdCbysWgcbtbVo implements Serializable {
@ExcelProperty(value = "文件ID")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
private List<XzdCbysWgcbtbFubiao> xzdCbysWgcbtbFubiao;

View File

@ -218,6 +218,12 @@ public class XzdCbysZjhcbAlterationVo implements Serializable {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 变更记录
*/

View File

@ -194,6 +194,12 @@ public class XzdCbysZjhcbVo implements Serializable {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 变更记录
*/

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.costProjectApproval.costBudget.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -33,6 +37,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-17
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdCbysJdcbfjServiceImpl extends ServiceImpl<XzdCbysJdcbfjMapper, XzdCbysJdcbfj> implements IXzdCbysJdcbfjService {
@ -98,6 +103,7 @@ public class XzdCbysJdcbfjServiceImpl extends ServiceImpl<XzdCbysJdcbfjMapper, X
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdCbysJdcbfj> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdCbysJdcbfj::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdCbysJdcbfj::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdCbysJdcbfj::getDocCode, bo.getDocCode());
lqw.eq(StringUtils.isNotBlank(bo.getDocTitle()), XzdCbysJdcbfj::getDocTitle, bo.getDocTitle());
lqw.eq(bo.getDeptId() != null, XzdCbysJdcbfj::getDeptId, bo.getDeptId());
@ -239,4 +245,50 @@ public class XzdCbysJdcbfjServiceImpl extends ServiceImpl<XzdCbysJdcbfjMapper, X
vo.setXzdCbysJdcbfjFubiao(xzdCbysZtjhcbBgjls);
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCbysJdcbfj')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("立项及成本-成本预算-阶段成本分解审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCbysJdcbfj xzdCbysJdcbfj = baseMapper.selectById(Long.valueOf(id));
xzdCbysJdcbfj.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCbysJdcbfj);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCbysJdcbfj')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("立项及成本-成本预算-阶段成本分解审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCbysJdcbfj')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("立项及成本-成本预算-阶段成本分解计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,7 +1,11 @@
package org.dromara.xzd.costProjectApproval.costBudget.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -13,6 +17,7 @@ import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import lombok.RequiredArgsConstructor;
import org.dromara.common.utils.BatchNumberGenerator;
import org.dromara.system.service.impl.SysOssServiceImpl;
import org.dromara.xzd.costProjectApproval.costBudget.domain.XzdCbysJdcbfj;
import org.dromara.xzd.costProjectApproval.costBudget.domain.XzdCbysWgcbtbFubiao;
import org.dromara.xzd.costProjectApproval.costBudget.service.IXzdCbysWgcbtbFubiaoService;
import org.dromara.xzd.domain.XzdContractDetails;
@ -39,6 +44,7 @@ import java.util.stream.Collectors;
*/
@RequiredArgsConstructor
@Service
@Slf4j
public class XzdCbysWgcbtbServiceImpl extends ServiceImpl<XzdCbysWgcbtbMapper, XzdCbysWgcbtb> implements IXzdCbysWgcbtbService {
private final XzdCbysWgcbtbMapper baseMapper;
@ -117,6 +123,7 @@ public class XzdCbysWgcbtbServiceImpl extends ServiceImpl<XzdCbysWgcbtbMapper, X
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdCbysWgcbtb> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdCbysWgcbtb::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdCbysWgcbtb::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdCbysWgcbtb::getDocCode, bo.getDocCode());
lqw.eq(StringUtils.isNotBlank(bo.getDocTitle()), XzdCbysWgcbtb::getDocTitle, bo.getDocTitle());
lqw.eq(bo.getDeptId() != null, XzdCbysWgcbtb::getDeptId, bo.getDeptId());
@ -215,4 +222,50 @@ public class XzdCbysWgcbtbServiceImpl extends ServiceImpl<XzdCbysWgcbtbMapper, X
fubiaoService.getBaseMapper().delete(new LambdaQueryWrapper<XzdCbysWgcbtbFubiao>().in(XzdCbysWgcbtbFubiao::getMainDocId, ids));
return baseMapper.deleteByIds(ids) > 0;
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCbysWgcbtb')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("立项及成本-成本预算-完工成本填报审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCbysWgcbtb xzdCbysWgcbtb = baseMapper.selectById(Long.valueOf(id));
xzdCbysWgcbtb.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCbysWgcbtb);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCbysWgcbtb')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("立项及成本-成本预算-完工成本填报审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCbysWgcbtb')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("立项及成本-成本预算-完工成本填报计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.costProjectApproval.costBudget.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -31,6 +35,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-17
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdCbysZjhcbAlterationServiceImpl extends ServiceImpl<XzdCbysZjhcbAlterationMapper, XzdCbysZjhcbAlteration> implements IXzdCbysZjhcbAlterationService {
@ -124,6 +129,7 @@ public class XzdCbysZjhcbAlterationServiceImpl extends ServiceImpl<XzdCbysZjhcbA
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdCbysZjhcbAlteration> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdCbysZjhcbAlteration::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdCbysZjhcbAlteration::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdCbysZjhcbAlteration::getDocCode, bo.getDocCode());
lqw.eq(StringUtils.isNotBlank(bo.getDocTitle()), XzdCbysZjhcbAlteration::getDocTitle, bo.getDocTitle());
lqw.eq(bo.getDeptId() != null, XzdCbysZjhcbAlteration::getDeptId, bo.getDeptId());
@ -255,4 +261,49 @@ public class XzdCbysZjhcbAlterationServiceImpl extends ServiceImpl<XzdCbysZjhcbA
fubiaoService.remove(new LambdaQueryWrapper<XzdCbysWgcbtbFubiao>().in(XzdCbysWgcbtbFubiao::getMainDocId, ids));
return baseMapper.deleteByIds(ids) > 0;
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCbysZjhcbBg')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("立项及成本-成本预算-总体计划成本变更审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCbysZjhcbAlteration xzdCbysZjhcbAlteration = baseMapper.selectById(Long.valueOf(id));
xzdCbysZjhcbAlteration.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCbysZjhcbAlteration);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCbysZjhcbBg')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("立项及成本-成本预算-总体计划成本变更审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCbysZjhcbBg')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("立项及成本-成本预算-总体计划成本变更计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.costProjectApproval.costBudget.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -33,6 +37,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-17
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdCbysZjhcbServiceImpl extends ServiceImpl<XzdCbysZjhcbMapper, XzdCbysZjhcb> implements IXzdCbysZjhcbService {
@ -99,6 +104,7 @@ public class XzdCbysZjhcbServiceImpl extends ServiceImpl<XzdCbysZjhcbMapper, Xzd
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdCbysZjhcb> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdCbysZjhcb::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdCbysZjhcb::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdCbysZjhcb::getDocCode, bo.getDocCode());
lqw.eq(StringUtils.isNotBlank(bo.getDocTitle()), XzdCbysZjhcb::getDocTitle, bo.getDocTitle());
lqw.eq(bo.getDeptId() != null, XzdCbysZjhcb::getDeptId, bo.getDeptId());
@ -278,4 +284,49 @@ public class XzdCbysZjhcbServiceImpl extends ServiceImpl<XzdCbysZjhcbMapper, Xzd
List<XzdCbysZjhcbFubiao> xzdCbysWgcbtbFubiaos = fubiaoService.getBaseMapper().selectList(new LambdaQueryWrapper<XzdCbysZjhcbFubiao>().eq(XzdCbysZjhcbFubiao::getMainDocumentId, vo.getId()));
vo.setXzdCbysWgcbtbFubiao(xzdCbysWgcbtbFubiaos);
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdCbysZjhcb')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("立项及成本-成本预算-总体计划成本审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdCbysZjhcb xzdCbysZjhcb = baseMapper.selectById(Long.valueOf(id));
xzdCbysZjhcb.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdCbysZjhcb);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdCbysZjhcb')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("立项及成本-成本预算-总体计划成本审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdCbysZjhcb')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("立项及成本-成本预算-总体计划成本计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -61,7 +61,7 @@ public class XzdSfkCaigouFkController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("paymentsReceipts:sfkCaigouFk:query")
@SaCheckPermission("paymentsReceipts:sfkCaigouFk:query")
@GetMapping("/{id}")
public R<XzdSfkCaigouFkVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdSfkZonhefuwuFkController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("paymentsReceipts:sfkZonhefuwuFk:query")
@SaCheckPermission("paymentsReceipts:sfkZonhefuwuFk:query")
@GetMapping("/{id}")
public R<XzdSfkZonhefuwuFkVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -224,4 +224,10 @@ public class XzdSfkCaigouFk extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -225,4 +225,10 @@ public class XzdSfkZonhefuwuFk extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -236,6 +236,12 @@ public class XzdSfkCaigouFkBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
List<XzdSfkFukuan> fukuanList;
List<XzdSfkFapiao> fapiaoList;

View File

@ -235,6 +235,12 @@ public class XzdSfkZonhefuwuFkBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
List<XzdSfkFukuan> fukuanList;
List<XzdSfkFapiao> fapiaoList;

View File

@ -301,6 +301,12 @@ public class XzdSfkCaigouFkVo extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
List<XzdSfkFukuan> fukuanList;
List<XzdSfkFapiao> fapiaoList;

View File

@ -299,6 +299,12 @@ public class XzdSfkZonhefuwuFkVo extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
List<XzdSfkFukuan> fukuanList;
List<XzdSfkFapiao> fapiaoList;

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.paymentsReceipts.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -41,6 +45,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-16
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdSfkCaigouFkServiceImpl extends ServiceImpl<XzdSfkCaigouFkMapper, XzdSfkCaigouFk> implements IXzdSfkCaigouFkService {
@ -107,6 +112,7 @@ public class XzdSfkCaigouFkServiceImpl extends ServiceImpl<XzdSfkCaigouFkMapper,
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdSfkCaigouFk> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdSfkCaigouFk::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdSfkCaigouFk::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdSfkCaigouFk::getDocCode, bo.getDocCode());
lqw.like(StringUtils.isNotBlank(bo.getTitle()), XzdSfkCaigouFk::getTitle, bo.getTitle());
lqw.eq(bo.getDeptId() != null, XzdSfkCaigouFk::getDeptId, bo.getDeptId());
@ -255,4 +261,50 @@ public class XzdSfkCaigouFkServiceImpl extends ServiceImpl<XzdSfkCaigouFkMapper,
//付款信息
vo.setFukuanList(fukuanService.getBaseMapper().selectList(new LambdaQueryWrapper<XzdSfkFukuan>().eq(XzdSfkFukuan::getMainDocumentId, vo.getId())));
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdSfkCaigouFk')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("采购合同付款审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdSfkCaigouFk xzdSfkCaigouFk = baseMapper.selectById(Long.valueOf(id));
xzdSfkCaigouFk.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdSfkCaigouFk);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdSfkCaigouFk')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("采购合同付款审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdSfkCaigouFk')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("采购合同付款计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.paymentsReceipts.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -39,6 +43,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-16
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdSfkZonhefuwuFkServiceImpl extends ServiceImpl<XzdSfkZonhefuwuFkMapper, XzdSfkZonhefuwuFk> implements IXzdSfkZonhefuwuFkService {
@ -52,16 +57,6 @@ public class XzdSfkZonhefuwuFkServiceImpl extends ServiceImpl<XzdSfkZonhefuwuFkM
private IXzdSfkFukuanService fukuanService;
@Autowired
private SysOssServiceImpl sysOssService;
@Autowired
private IXzdCsContractInformationService csContractInformationService;
@Autowired
private XzdProjectServiceImpl xzdProjectService;
@Autowired
private IXzdSupplierOpenBankService supplierOpenBankService;
@Autowired
private IXzdCorrespondentList iXzdCorrespondentList;
@Autowired
private XzdSupplierInfoServiceImpl xzdSupplierInfoService;
/**
* 查询综合服务合同付款
@ -106,6 +101,7 @@ public class XzdSfkZonhefuwuFkServiceImpl extends ServiceImpl<XzdSfkZonhefuwuFkM
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdSfkZonhefuwuFk> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdSfkZonhefuwuFk::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdSfkZonhefuwuFk::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdSfkZonhefuwuFk::getDocCode, bo.getDocCode());
lqw.like(StringUtils.isNotBlank(bo.getTitle()), XzdSfkZonhefuwuFk::getTitle, bo.getTitle());
lqw.eq(bo.getDeptId() != null, XzdSfkZonhefuwuFk::getDeptId, bo.getDeptId());
@ -252,4 +248,49 @@ public class XzdSfkZonhefuwuFkServiceImpl extends ServiceImpl<XzdSfkZonhefuwuFkM
//付款信息
vo.setFukuanList(fukuanService.getBaseMapper().selectList(new LambdaQueryWrapper<XzdSfkFukuan>().eq(XzdSfkFukuan::getMainDocumentId, vo.getId())));
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdSfkZonhefuwuFk')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("综合服务合同付款审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdSfkZonhefuwuFk xzdSfkZonhefuwuFk = baseMapper.selectById(Long.valueOf(id));
xzdSfkZonhefuwuFk.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdSfkZonhefuwuFk);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdSfkZonhefuwuFk')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("综合服务合同付款审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdSfkZonhefuwuFk')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("综合服务合同付款计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -61,7 +61,7 @@ public class XzdJsCgJinduController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("settlement:jsCgJindu:query")
@SaCheckPermission("settlement:jsCgJindu:query")
@GetMapping("/{id}")
public R<XzdJsCgJinduVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdJsCgJungonController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("settlement:jsCgJungon:query")
@SaCheckPermission("settlement:jsCgJungon:query")
@GetMapping("/{id}")
public R<XzdJsCgJungonVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdJsCgJungonEditController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("settlement:jsCgJungonEdit:query")
@SaCheckPermission("settlement:jsCgJungonEdit:query")
@GetMapping("/{id}")
public R<XzdJsCgJungonEditVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -61,7 +61,7 @@ public class XzdJsZhfwJinduController extends BaseController {
*
* @param id 主键
*/
// @SaCheckPermission("settlement:jsZhfwJindu:query")
@SaCheckPermission("settlement:jsZhfwJindu:query")
@GetMapping("/{id}")
public R<XzdJsZhfwJinduVo> getInfo(@NotNull(message = "主键不能为空")
@PathVariable Long id) {

View File

@ -165,4 +165,10 @@ public class XzdJsCgJindu extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -145,4 +145,9 @@ public class XzdJsCgJungon extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -104,4 +104,11 @@ public class XzdJsCgJungonEdit extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -167,4 +167,11 @@ public class XzdJsZhfwJindu extends BaseEntity {
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
}

View File

@ -175,6 +175,13 @@ public class XzdJsCgJinduBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -152,6 +152,12 @@ public class XzdJsCgJungonBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -112,6 +112,12 @@ public class XzdJsCgJungonEditBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -172,6 +172,12 @@ public class XzdJsZhfwJinduBo extends BaseEntity {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -229,6 +229,12 @@ public class XzdJsCgJinduVo implements Serializable {
@ExcelProperty(value = "文件ID")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -143,6 +143,13 @@ public class XzdJsCgJungonEditVo implements Serializable {
*/
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -205,6 +205,14 @@ public class XzdJsCgJungonVo implements Serializable {
@ExcelProperty(value = "文件ID")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -214,6 +214,12 @@ public class XzdJsZhfwJinduVo implements Serializable {
@ExcelProperty(value = "文件ID")
private String fileId;
/**
* 审核状态
*/
private String auditStatus;
/**
* 奖励与扣款
*/

View File

@ -1,7 +1,11 @@
package org.dromara.xzd.settlement.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.R;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -22,6 +26,7 @@ import org.dromara.xzd.domain.XzdSettlementRules;
import org.dromara.xzd.domain.dto.QuerCorrespondentDto;
import org.dromara.xzd.enums.XzdClassEnum;
import org.dromara.xzd.enums.ZxdEnum;
import org.dromara.xzd.paymentsReceipts.domain.XzdSfkCaigouFk;
import org.dromara.xzd.service.IXzdCorrespondentList;
import org.dromara.xzd.service.impl.XzdProjectServiceImpl;
import org.dromara.xzd.service.impl.XzdSupplierInfoServiceImpl;
@ -43,6 +48,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-14
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdJsCgJinduServiceImpl extends ServiceImpl<XzdJsCgJinduMapper, XzdJsCgJindu> implements IXzdJsCgJinduService {
@ -119,6 +125,7 @@ public class XzdJsCgJinduServiceImpl extends ServiceImpl<XzdJsCgJinduMapper, Xzd
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdJsCgJindu> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdJsCgJindu::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdJsCgJindu::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdJsCgJindu::getDocCode, bo.getDocCode());
lqw.like(StringUtils.isNotBlank(bo.getTitle()), XzdJsCgJindu::getTitle, bo.getTitle());
lqw.eq(bo.getDocDate() != null, XzdJsCgJindu::getDocDate, bo.getDocDate());
@ -332,4 +339,49 @@ public class XzdJsCgJinduServiceImpl extends ServiceImpl<XzdJsCgJinduMapper, Xzd
List<XzdJsCghtCgrkqd> list3 = jsCghtCgrkqdService.getBaseMapper().selectList(new LambdaQueryWrapper<XzdJsCghtCgrkqd>().eq(XzdJsCghtCgrkqd::getMainDocId, vo.getId()));
vo.setCgrkqd(list3);
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdJsCgJindu')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("采购合同进度结算审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdJsCgJindu xzdJsCgJindu = baseMapper.selectById(Long.valueOf(id));
xzdJsCgJindu.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdJsCgJindu);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdJsCgJindu')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("采购合同进度结算审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdJsCgJindu')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("采购合同进度结算计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.settlement.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
import org.dromara.common.mybatis.core.page.TableDataInfo;
@ -15,6 +19,7 @@ import org.dromara.system.service.impl.SysOssServiceImpl;
import org.dromara.xzd.contractManagement.purchaseManagement.service.IXzdPurchaseContractInformationService;
import org.dromara.xzd.enums.XzdClassEnum;
import org.dromara.xzd.enums.ZxdEnum;
import org.dromara.xzd.paymentsReceipts.domain.XzdSfkCaigouFk;
import org.dromara.xzd.service.impl.XzdProjectServiceImpl;
import org.dromara.xzd.settlement.domain.XzdJsCghtJstzqd;
import org.dromara.xzd.settlement.domain.XzdJsDeductionItems;
@ -38,6 +43,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-14
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdJsCgJungonEditServiceImpl extends ServiceImpl<XzdJsCgJungonEditMapper, XzdJsCgJungonEdit> implements IXzdJsCgJungonEditService {
@ -96,6 +102,7 @@ public class XzdJsCgJungonEditServiceImpl extends ServiceImpl<XzdJsCgJungonEditM
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdJsCgJungonEdit> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdJsCgJungonEdit::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdJsCgJungonEdit::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdJsCgJungonEdit::getDocCode, bo.getDocCode());
lqw.like(StringUtils.isNotBlank(bo.getTitle()), XzdJsCgJungonEdit::getTitle, bo.getTitle());
lqw.eq(bo.getDocDate() != null, XzdJsCgJungonEdit::getDocDate, bo.getDocDate());
@ -240,4 +247,50 @@ public class XzdJsCgJungonEditServiceImpl extends ServiceImpl<XzdJsCgJungonEditM
vo.setJstzqd(list1);
}
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdJsCgJungonEdit')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("采购合同竣工结算调整审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdJsCgJungonEdit xzdJsCgJungonEdit = baseMapper.selectById(Long.valueOf(id));
xzdJsCgJungonEdit.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdJsCgJungonEdit);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdJsCgJungonEdit')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("采购合同竣工结算调整审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdJsCgJungonEdit')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("采购合同竣工结算调整计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -3,6 +3,10 @@ package org.dromara.xzd.settlement.service.impl;
import cn.hutool.core.convert.Convert;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.service.XzdJsCgJungonService;
import org.dromara.common.core.utils.MapstructUtils;
@ -20,6 +24,7 @@ import org.dromara.xzd.contractManagement.purchaseManagement.service.IXzdPurchas
import org.dromara.xzd.domain.vo.XzdProjectVo;
import org.dromara.xzd.enums.XzdClassEnum;
import org.dromara.xzd.enums.ZxdEnum;
import org.dromara.xzd.paymentsReceipts.domain.XzdSfkCaigouFk;
import org.dromara.xzd.service.IXzdCorrespondentList;
import org.dromara.xzd.service.impl.XzdProjectServiceImpl;
import org.dromara.xzd.service.impl.XzdSupplierInfoServiceImpl;
@ -45,6 +50,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-14
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdJsCgJungonServiceImpl extends ServiceImpl<XzdJsCgJungonMapper, XzdJsCgJungon> implements IXzdJsCgJungonService, XzdJsCgJungonService {
@ -115,6 +121,7 @@ public class XzdJsCgJungonServiceImpl extends ServiceImpl<XzdJsCgJungonMapper, X
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdJsCgJungon> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdJsCgJungon::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdJsCgJungon::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdJsCgJungon::getDocCode, bo.getDocCode());
lqw.like(StringUtils.isNotBlank(bo.getTitle()), XzdJsCgJungon::getTitle, bo.getTitle());
lqw.eq(bo.getDocDate() != null, XzdJsCgJungon::getDocDate, bo.getDocDate());
@ -288,4 +295,50 @@ public class XzdJsCgJungonServiceImpl extends ServiceImpl<XzdJsCgJungonMapper, X
}
return String.join(StringUtils.SEPARATOR, list);
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdJsCgJungon')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("采购合同竣工结算审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdJsCgJungon xzdJsCgJungon = baseMapper.selectById(Long.valueOf(id));
xzdJsCgJungon.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdJsCgJungon);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdJsCgJungon')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("采购合同竣工结算审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdJsCgJungon')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("采购合同竣工结算计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}

View File

@ -1,6 +1,10 @@
package org.dromara.xzd.settlement.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.dromara.common.core.domain.event.ProcessDeleteEvent;
import org.dromara.common.core.domain.event.ProcessEvent;
import org.dromara.common.core.domain.event.ProcessTaskEvent;
import org.dromara.common.core.exception.ServiceException;
import org.dromara.common.core.utils.MapstructUtils;
import org.dromara.common.core.utils.StringUtils;
@ -17,6 +21,7 @@ import org.dromara.system.service.impl.SysOssServiceImpl;
import org.dromara.xzd.comprehensive.service.IXzdCsContractInformationService;
import org.dromara.xzd.enums.XzdClassEnum;
import org.dromara.xzd.enums.ZxdEnum;
import org.dromara.xzd.paymentsReceipts.domain.XzdSfkCaigouFk;
import org.dromara.xzd.service.IXzdCorrespondentList;
import org.dromara.xzd.service.impl.XzdProjectServiceImpl;
import org.dromara.xzd.settlement.domain.XzdAlterationInventory;
@ -44,6 +49,7 @@ import java.util.*;
* @author Lion Li
* @date 2025-10-14
*/
@Slf4j
@RequiredArgsConstructor
@Service
public class XzdJsZhfwJinduServiceImpl extends ServiceImpl<XzdJsZhfwJinduMapper, XzdJsZhfwJindu> implements IXzdJsZhfwJinduService {
@ -116,6 +122,7 @@ public class XzdJsZhfwJinduServiceImpl extends ServiceImpl<XzdJsZhfwJinduMapper,
Map<String, Object> params = bo.getParams();
LambdaQueryWrapper<XzdJsZhfwJindu> lqw = Wrappers.lambdaQuery();
lqw.orderByDesc(XzdJsZhfwJindu::getId);
lqw.eq(StringUtils.isNotBlank(bo.getAuditStatus()), XzdJsZhfwJindu::getAuditStatus, bo.getAuditStatus());
lqw.eq(StringUtils.isNotBlank(bo.getDocCode()), XzdJsZhfwJindu::getDocCode, bo.getDocCode());
lqw.like(StringUtils.isNotBlank(bo.getTitle()), XzdJsZhfwJindu::getTitle, bo.getTitle());
lqw.eq(bo.getDeptId() != null, XzdJsZhfwJindu::getDeptId, bo.getDeptId());
@ -315,4 +322,49 @@ public class XzdJsZhfwJinduServiceImpl extends ServiceImpl<XzdJsZhfwJinduMapper,
vo.setHtwqd(wList);
}
}
/**
* 总体流程监听(例如: 草稿,撤销,退回,作废,终止,已完成,单任务完成等)
* 正常使用只需#processEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processEvent.flowCode.endsWith('xzdJsZhfwJindu')")
public void processPlansHandlErequipmentList(ProcessEvent processEvent) {
log.info("综合服务合同进度结算审核任务执行了{}", processEvent.toString());
String id = processEvent.getBusinessId();
XzdJsZhfwJindu xzdJsZhfwJindu = baseMapper.selectById(Long.valueOf(id));
xzdJsZhfwJindu.setAuditStatus(processEvent.getStatus());
baseMapper.updateById(xzdJsZhfwJindu);
}
/**
* 执行任务创建监听
* 示例:也可通过 @EventListener(condition = "#processTaskEvent.flowCode=='leave1'")进行判断
* 在方法中判断流程节点key
* if ("xxx".equals(processTaskEvent.getNodeCode())) {
* //执行业务逻辑
* }
*
* @param processTaskEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processTaskEvent.flowCode.endsWith('xzdJsZhfwJindu')")
public void processTaskPlansHandlerEquipmentList(ProcessTaskEvent processTaskEvent) {
log.info("综合服务合同进度结算审核任务创建了{}", processTaskEvent.toString());
}
/**
* 监听删除流程事件
* 正常使用只需#processDeleteEvent.flowCode=='leave1'
* 示例为了方便则使用startsWith匹配了全部示例key
*
* @param processDeleteEvent 参数
*/
@org.springframework.context.event.EventListener(condition = "#processDeleteEvent.flowCode.endsWith('xzdJsZhfwJindu')")
public void processDeletePlansHandlerEquipmentList(ProcessDeleteEvent processDeleteEvent) {
log.info("综合服务合同进度结算计划删除流程事件,技术标准文件审核任务执行了{}", processDeleteEvent.toString());
}
}