feat(flow): 添加业务类型和ID字段映射并增加流程任务调试信息
- 在HrmFlowTask实体中添加TableField注解映射biz_type和biz_id字段 - 在流程任务服务实现中添加业务类型和ID的打印调试信息 - 在创建下一个任务时设置业务类型和ID字段值 - 修复流程处理中的业务数据传递问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.klp.hrm.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@@ -26,9 +27,11 @@ public class HrmFlowTask extends BaseEntity implements Serializable {
|
||||
private String remark;
|
||||
|
||||
/** 业务类型:leave/travel/seal */
|
||||
@TableField("biz_type")
|
||||
private String bizType;
|
||||
|
||||
/** 业务ID:对应请假/出差/用印的 bizId */
|
||||
@TableField("biz_id")
|
||||
private Long bizId;
|
||||
|
||||
@TableLogic
|
||||
|
||||
@@ -225,6 +225,8 @@ public class HrmFlowTaskServiceImpl implements IHrmFlowTaskService {
|
||||
nextTask.setInstId(inst.getInstId());
|
||||
nextTask.setNodeId(next.getNodeId());
|
||||
nextTask.setAssigneeUserId(assignees.get(0));
|
||||
nextTask.setBizType(inst.getBizType());
|
||||
nextTask.setBizId(inst.getBizId());
|
||||
nextTask.setStatus("pending");
|
||||
baseMapper.insert(nextTask);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user