调整下工作流的包名

pull/2/head
YunaiV 2021-10-31 09:55:12 +08:00
parent 742125ed99
commit 722eaf3513
10 changed files with 129 additions and 1 deletions

View File

@ -0,0 +1,6 @@
/**
* POJO
*
* 使 MapStruct
*/
package cn.iocoder.yudao.adminserver.modules.workflow.convert;

View File

@ -0,0 +1,49 @@
package cn.iocoder.yudao.adminserver.modules.workflow.dal.dataobject.form;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.*;
import java.util.List;
/**
*
*
*
* @author
*/
@TableName(value = "wf_form", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WfForm extends BaseDO {
/**
*
*/
@TableId
private Long id;
/**
*
*/
private String name;
/**
*
*
* https://github.com/JakHuang/form-generator 生成的 JSON 串,直接保存
* https://github.com/JakHuang/form-generator/issues/46
*/
@TableField(typeHandler = JacksonTypeHandler.class)
private List<String> fields;
/**
*
*/
private String remark;
}

View File

@ -0,0 +1,51 @@
package cn.iocoder.yudao.adminserver.modules.workflow.dal.dataobject.form;
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.*;
import java.util.List;
import java.util.Map;
/**
*
*
*
* @author
*/
@TableName(value = "wf_form", autoResultMap = true)
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class WfFormData extends BaseDO {
/**
*
*/
private Long id;
/**
*
*
* {@link WfForm#getId()}
*/
private Long formId;
/**
*
*
* {@link WfForm#getFields()}
*
*/
@TableField(typeHandler = JacksonTypeHandler.class)
private List<String> fields;
/**
*
*/
@TableField(typeHandler = JacksonTypeHandler.class)
private Map<String, Object> values;
}

View File

@ -0,0 +1,4 @@
/**
* TODO
*/
package cn.iocoder.yudao.adminserver.modules.workflow.dal.dataobject.leave;

View File

@ -0,0 +1,4 @@
/**
* TODO
*/
package cn.iocoder.yudao.adminserver.modules.workflow.dal.dataobject.process;

View File

@ -0,0 +1,4 @@
/**
* TODO
*/
package cn.iocoder.yudao.adminserver.modules.workflow.dal.dataobject.task;

View File

@ -0,0 +1,7 @@
/**
* workflow activiti 7
*
*
* wf
*/
package cn.iocoder.yudao.adminserver.modules.workflow;

View File

@ -27,7 +27,7 @@ public class InfApiAccessLogDO extends BaseDO {
*
*/
@TableId
private Integer id;
private Long id;
/**
*
*

View File

@ -89,6 +89,8 @@ public class LoginUser implements UserDetails {
@JsonIgnore// 避免序列化
public Collection<? extends GrantedAuthority> getAuthorities() {
List<GrantedAuthority> list = new ArrayList<>(1);
// 设置 ROLE_ACTIVITI_USER 角色,保证 activiti7 在 Security 验证时,可以通过。参考 https://juejin.cn/post/6972369247041224712 文章
// TODO 芋艿:这里估计得优化下
list.add(new SimpleGrantedAuthority("ROLE_ACTIVITI_USER"));
return list;
}