feat:规则引擎版本
parent
f3bb1b9671
commit
7a8a75dc53
|
@ -0,0 +1 @@
|
|||
com.etl.data.client.config.DataAccessClientConfig
|
|
@ -0,0 +1 @@
|
|||
com.etl.data.source.remote.factory.DataSourceFactory
|
|
@ -0,0 +1,68 @@
|
|||
package com.etl.rule.engine.domain;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.etl.common.core.web.domain.BaseEntity;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
import lombok.experimental.SuperBuilder;
|
||||
|
||||
/**
|
||||
* 规则引擎版本
|
||||
* @author YunFei.Du
|
||||
* @date 20:19 2024/5/6
|
||||
*/
|
||||
@Data
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
@TableName("rule_engine_version")
|
||||
public class RuleEngineVersion extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/**
|
||||
* 主键ID
|
||||
*/
|
||||
@TableId(value = "id",type = IdType.AUTO)
|
||||
private Long id;
|
||||
/**
|
||||
* 规则引擎ID
|
||||
*/
|
||||
private Long engineMaintenanceId;
|
||||
/**
|
||||
* 版本名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 版本CODE
|
||||
*/
|
||||
private String code;
|
||||
/**
|
||||
* 版本状态(0,成功 1,失败)
|
||||
*/
|
||||
private String status;
|
||||
/**
|
||||
* 版本类
|
||||
*/
|
||||
private String versionCode;
|
||||
/**
|
||||
* 版本是否激活
|
||||
*/
|
||||
private String isActivate;
|
||||
/**
|
||||
* 版本是否测试(0,未测试 1.测试通过.2.测试未通过)
|
||||
*/
|
||||
private Integer isTest;
|
||||
|
||||
/** 引擎编码*/
|
||||
private String codeIng;
|
||||
|
||||
/**
|
||||
* 版本描述
|
||||
*/
|
||||
private String description;
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
package com.etl.rule.engine.controller;
|
||||
|
||||
import com.etl.common.core.domain.Result;
|
||||
import com.etl.rule.engine.domain.RuleEngineVersion;
|
||||
import com.etl.rule.engine.service.IRuleEngineVersionService;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @ClassName RuleEngineVersion
|
||||
* @Description 描述
|
||||
* @Author YunFei.Du
|
||||
* @Date 2024/5/6 20:57
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("version")
|
||||
public class RuleEngineVersionController {
|
||||
@Autowired
|
||||
private IRuleEngineVersionService ruleEngineVersionService;
|
||||
|
||||
/**
|
||||
* 新增版本
|
||||
* @param ruleEngineVersion
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("InsertVersion")
|
||||
public Result insertVersion(@RequestBody RuleEngineVersion ruleEngineVersion){
|
||||
return ruleEngineVersionService.save ( ruleEngineVersion )?Result.success ():Result.error ();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 修改版本
|
||||
*/
|
||||
@PostMapping("UpdateVersion")
|
||||
public Result updateVersion(@RequestBody RuleEngineVersion ruleEngineVersion){
|
||||
return ruleEngineVersionService.updateById ( ruleEngineVersion )?Result.success ():Result.error ();
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package com.etl.rule.engine.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.etl.rule.engine.domain.EngineMaintenance;
|
||||
import com.etl.rule.engine.domain.RuleEngineVersion;
|
||||
|
||||
/**
|
||||
* 引擎维护 映射器
|
||||
* @author YunFei.Du
|
||||
* @date 20:54 2024/5/6
|
||||
*/
|
||||
public interface RuleEngineVersionMapper extends BaseMapper< RuleEngineVersion > {
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package com.etl.rule.engine.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.etl.rule.engine.domain.RuleEngineVersion;
|
||||
import com.etl.rule.engine.mapper.RuleEngineVersionMapper;
|
||||
import com.etl.rule.engine.service.IRuleEngineVersionService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 规则引擎版本 服务实现
|
||||
* @author YunFei.Du
|
||||
* @date 20:56 2024/5/6
|
||||
*/
|
||||
@Service
|
||||
public class RuleEngineVersionServiceImpl extends ServiceImpl< RuleEngineVersionMapper, RuleEngineVersion > implements IRuleEngineVersionService {
|
||||
|
||||
|
||||
|
||||
}
|
|
@ -10,6 +10,13 @@
|
|||
</parent>
|
||||
|
||||
<artifactId>etl-rule-engine</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<modules>
|
||||
<module>etl-rule-engine-server</module>
|
||||
<module>etl-rule-engine-common</module>
|
||||
<module>etl-rule-engine-remote</module>
|
||||
<module>etl-rule-engine-client</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
|
|
Loading…
Reference in New Issue