Feature:Taskid/BugId; 完善功能
This commit is contained in:
parent
692b6c5b96
commit
ecb29d3b4f
|
|
@ -0,0 +1,33 @@
|
||||||
|
package online.xuping.automaton.service.function;
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import online.xuping.automaton.domain.ZuaaEntity;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类说明 功能管理管理
|
||||||
|
* <p>功能列表</p>
|
||||||
|
* <p>1.</p>
|
||||||
|
*/
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class FunctionDomain extends ZuaaEntity {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
//功能名称
|
||||||
|
private String name;
|
||||||
|
//功能描述
|
||||||
|
private String description;
|
||||||
|
//功能编码
|
||||||
|
private String code;
|
||||||
|
//功能类型
|
||||||
|
private Integer type;
|
||||||
|
//功能地址
|
||||||
|
private String url;
|
||||||
|
//功能图标
|
||||||
|
private String icon;
|
||||||
|
//功能状态
|
||||||
|
private Boolean status;
|
||||||
|
//排序
|
||||||
|
private Long sort;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
package online.xuping.automaton.service.function;
|
||||||
|
|
||||||
|
import cn.hutool.core.lang.Singleton;
|
||||||
|
import online.xuping.automaton.service.ISqliteServiceV2;
|
||||||
|
import online.xuping.util.SqliteDaoUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public class FunctionServiceImpl extends SqliteDaoUtil<FunctionDomain> implements ISqliteServiceV2<FunctionDomain> {
|
||||||
|
|
||||||
|
private static final String TABLE_NAME = "function_table";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param dbName 数据库名称
|
||||||
|
*/
|
||||||
|
public FunctionServiceImpl(String dbName) {
|
||||||
|
super(dbName, FunctionDomain.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 的构造函数,用于初始化TaskServiceImpl对象。
|
||||||
|
* <p>
|
||||||
|
* 在构造时,会调用父类构造函数,并传入"task"作为数据库名称。
|
||||||
|
*/
|
||||||
|
public FunctionServiceImpl() {
|
||||||
|
super(TABLE_NAME, FunctionDomain.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 。
|
||||||
|
*
|
||||||
|
* @return 返回TaskServiceImpl实例
|
||||||
|
*/
|
||||||
|
public static FunctionServiceImpl create() {
|
||||||
|
return Singleton.get(FunctionServiceImpl.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取表名
|
||||||
|
*
|
||||||
|
* @return 返回字符串类型的表名,此处返回"task"
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getTableName() {
|
||||||
|
return TABLE_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,28 @@
|
||||||
|
package online.xuping.automaton.service.function;
|
||||||
|
/**
|
||||||
|
* 类说明 订单管理
|
||||||
|
* <p>功能列表</p>
|
||||||
|
* <p>1.</p>
|
||||||
|
*
|
||||||
|
* @author xuping
|
||||||
|
* {@code @date} 2024/5/15 下午4:51
|
||||||
|
*/
|
||||||
|
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.EqualsAndHashCode;
|
||||||
|
import online.xuping.automaton.domain.ZuaaEntity;
|
||||||
|
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@EqualsAndHashCode(callSuper = true)
|
||||||
|
public class OperateWithFunctionDomain extends ZuaaEntity {
|
||||||
|
private Long id;
|
||||||
|
private String operateCode;
|
||||||
|
|
||||||
|
private String operateName;
|
||||||
|
private Integer status;
|
||||||
|
//函数的code
|
||||||
|
private String functionCode;
|
||||||
|
//函数的名称
|
||||||
|
private String functionName;
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,59 @@
|
||||||
|
package online.xuping.automaton.service.function;
|
||||||
|
|
||||||
|
|
||||||
|
import cn.hutool.core.lang.Singleton;
|
||||||
|
import online.xuping.automaton.service.ISqliteServiceV2;
|
||||||
|
import online.xuping.util.SqliteDaoUtil;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 类说明
|
||||||
|
* <p>功能列表</p>
|
||||||
|
* <p>1.</p>
|
||||||
|
*
|
||||||
|
* @author xuping
|
||||||
|
* {@code @date} 2024/5/15 下午4:58
|
||||||
|
*/
|
||||||
|
|
||||||
|
public class OperateWithFunctionServiceImpl extends SqliteDaoUtil<OperateWithFunctionDomain> implements ISqliteServiceV2<OperateWithFunctionDomain> {
|
||||||
|
private static final String TABLE_NAME = "OperateWithFunction_table";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param dbName 数据库名称
|
||||||
|
*/
|
||||||
|
public OperateWithFunctionServiceImpl(String dbName) {
|
||||||
|
super(dbName, OperateWithFunctionDomain.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 的构造函数,用于初始化OperateWithFunctionServiceImpl对象。
|
||||||
|
* <p>
|
||||||
|
* 在构造时,会调用父类构造函数,并传入"OperateWithFunction"作为数据库名称。
|
||||||
|
*/
|
||||||
|
public OperateWithFunctionServiceImpl() {
|
||||||
|
super(TABLE_NAME, OperateWithFunctionDomain.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 。
|
||||||
|
*
|
||||||
|
* @return 返回OperateWithFunctionServiceImpl实例
|
||||||
|
*/
|
||||||
|
public static OperateWithFunctionServiceImpl create() {
|
||||||
|
return Singleton.get(OperateWithFunctionServiceImpl.class);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 获取表名
|
||||||
|
*
|
||||||
|
* @return 返回字符串类型的表名,此处返回"OperateWithFunction"
|
||||||
|
*/
|
||||||
|
@Override
|
||||||
|
public String getTableName() {
|
||||||
|
return TABLE_NAME;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -19,6 +19,10 @@ import online.xuping.automaton.domain.ZuaaEntity;
|
||||||
public class OperateDomain extends ZuaaEntity {
|
public class OperateDomain extends ZuaaEntity {
|
||||||
|
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
//操作的code
|
||||||
|
private String operateCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 操作名称
|
* 操作名称
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -48,12 +48,4 @@ public class OperateServiceImpl extends SqliteDaoUtil<OperateDomain> implements
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public void saveOrUpdate(OperateDomain productDomain) {
|
|
||||||
if (productDomain.getId() == null) {
|
|
||||||
save(productDomain);
|
|
||||||
} else {
|
|
||||||
update(productDomain);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue