Compare commits
3 Commits
7f374a7fc8
...
9fc8da40ce
Author | SHA1 | Date | |
---|---|---|---|
![]() |
9fc8da40ce | ||
![]() |
db07bcc870 | ||
![]() |
23041a4547 |
@ -0,0 +1,56 @@
|
||||
package cn.iocoder.yudao.framework.mybatis.core.dataobject;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.FieldFill;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
import com.fhs.core.trans.vo.TransPojo;
|
||||
import lombok.Data;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 基础实体对象
|
||||
*
|
||||
* 为什么实现 {@link TransPojo} 接口?
|
||||
* 因为使用 Easy-Trans TransType.SIMPLE 模式,集成 MyBatis Plus 查询
|
||||
*
|
||||
* @author 芋道源码
|
||||
*/
|
||||
@Data
|
||||
@JsonIgnoreProperties(value = "transMap") // 由于 Easy-Trans 会添加 transMap 属性,避免 Jackson 在 Spring Cache 反序列化报错
|
||||
public abstract class BaseEntity implements Serializable, TransPojo {
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT)
|
||||
private LocalDateTime createTime;
|
||||
/**
|
||||
* 最后更新时间
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE)
|
||||
private LocalDateTime updateTime;
|
||||
/**
|
||||
* 创建者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT, jdbcType = JdbcType.VARCHAR)
|
||||
private String creator;
|
||||
/**
|
||||
* 更新者,目前使用 SysUser 的 id 编号
|
||||
*
|
||||
* 使用 String 类型的原因是,未来可能会存在非数值的情况,留好拓展性。
|
||||
*/
|
||||
@TableField(fill = FieldFill.INSERT_UPDATE, jdbcType = JdbcType.VARCHAR)
|
||||
private String updater;
|
||||
/**
|
||||
* 是否删除
|
||||
*/
|
||||
// @TableLogic
|
||||
// private Boolean delet;
|
||||
|
||||
}
|
@ -7,6 +7,7 @@
|
||||
<groupId>cn.iocoder.boot</groupId>
|
||||
<artifactId>yudao</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
|
||||
<artifactId>yudao-module-mdpf</artifactId>
|
||||
|
@ -6,7 +6,8 @@
|
||||
<parent>
|
||||
<groupId>cn.iocoder.boot</groupId>
|
||||
<artifactId>yudao-module-mdpf</artifactId>
|
||||
<version>2.3.0-jdk8-SNAPSHOT</version>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<artifactId>yudao-module-mdpf-api</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
@ -7,6 +7,7 @@
|
||||
<groupId>cn.iocoder.boot</groupId>
|
||||
<artifactId>yudao-module-mdpf</artifactId>
|
||||
<version>${revision}</version>
|
||||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<packaging>jar</packaging>
|
||||
<artifactId>yudao-module-mdpf-biz</artifactId>
|
||||
|
@ -1,6 +1,7 @@
|
||||
package cn.iocoder.yudao.module.mdpf.dal.dataobject.cat;
|
||||
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseDO;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.dataobject.BaseEntity;
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.*;
|
||||
|
||||
@ -18,7 +19,7 @@ import lombok.*;
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class AttApiCatDO extends BaseDO {
|
||||
public class AttApiCatDO extends BaseEntity {
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
@ -1,140 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="tech.qiantong.qdata.module.att.dal.mapper.rule.AttAuditRuleMapper">
|
||||
|
||||
<resultMap type="AttAuditRuleDO" id="AttAuditRuleResult">
|
||||
<result property="id" column="ID" />
|
||||
<result property="name" column="NAME" />
|
||||
<result property="qualityDim" column="QUALITY_DIM" />
|
||||
<result property="type" column="TYPE" />
|
||||
<result property="level" column="LEVEL" />
|
||||
<result property="description" column="DESCRIPTION" />
|
||||
<result property="validFlag" column="VALID_FLAG" />
|
||||
<result property="delFlag" column="DEL_FLAG" />
|
||||
<result property="createBy" column="CREATE_BY" />
|
||||
<result property="creatorId" column="CREATOR_ID" />
|
||||
<result property="createTime" column="CREATE_TIME" />
|
||||
<result property="updateBy" column="UPDATE_BY" />
|
||||
<result property="updaterId" column="UPDATER_ID" />
|
||||
<result property="updateTime" column="UPDATE_TIME" />
|
||||
<result property="remark" column="REMARK" />
|
||||
<result property="code" column="CODE"/>
|
||||
<result property="useCase" column="USE_CASE"/>
|
||||
<result property="example" column="EXAMPLE"/>
|
||||
<result property="iconPath" column="ICON_PATH"/>
|
||||
<result property="strategyKey" column="STRATEGY_KEY"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectAttAuditRuleVo">
|
||||
select ID, NAME, QUALITY_DIM, TYPE, LEVEL, DESCRIPTION, CODE, USE_CASE, EXAMPLE, ICON_PATH, STRATEGY_KEY,VALID_FLAG, DEL_FLAG, CREATE_BY, CREATOR_ID, CREATE_TIME, UPDATE_BY, UPDATER_ID, UPDATE_TIME, REMARK from ATT_AUDIT_RULE
|
||||
</sql>
|
||||
|
||||
<select id="selectAttAuditRuleList" parameterType="Long" resultMap="AttAuditRuleResult">
|
||||
select
|
||||
a.ID,
|
||||
a.NAME,
|
||||
a.QUALITY_DIM,
|
||||
a.TYPE,
|
||||
a.LEVEL,
|
||||
a.DESCRIPTION,
|
||||
r.ID AS "ruleRelId",
|
||||
r.RULE_CONFIG AS "ruleConfig"
|
||||
from
|
||||
ATT_AUDIT_RULE a
|
||||
LEFT JOIN DP_DATA_ELEM_RULE_REL r ON a.ID = r.RULE_ID AND r.RULE_TYPE = '1' AND r.DATA_ELEM_ID = #{dataElemId} AND r.DEL_FLAG = '0'
|
||||
WHERE
|
||||
a.DEL_FLAG = '0'
|
||||
</select>
|
||||
|
||||
<select id="selectAttAuditRuleByID" parameterType="Long" resultMap="AttAuditRuleResult">
|
||||
<include refid="selectAttAuditRuleVo"/>
|
||||
where ID = #{id}
|
||||
</select>
|
||||
|
||||
<insert id="insertAttAuditRule" parameterType="AttAuditRuleDO">
|
||||
insert into ATT_AUDIT_RULE
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">ID,</if>
|
||||
<if test="name != null">NAME,</if>
|
||||
<if test="qualityDim != null">QUALITY_DIM,</if>
|
||||
<if test="type != null">TYPE,</if>
|
||||
<if test="level != null">LEVEL,</if>
|
||||
<if test="description != null">DESCRIPTION,</if>
|
||||
<if test="validFlag != null">VALID_FLAG,</if>
|
||||
<if test="delFlag != null">DEL_FLAG,</if>
|
||||
<if test="createBy != null">CREATE_BY,</if>
|
||||
<if test="creatorId != null">CREATOR_ID,</if>
|
||||
<if test="createTime != null">CREATE_TIME,</if>
|
||||
<if test="updateBy != null">UPDATE_BY,</if>
|
||||
<if test="updaterId != null">UPDATER_ID,</if>
|
||||
<if test="updateTime != null">UPDATE_TIME,</if>
|
||||
<if test="remark != null">REMARK,</if>
|
||||
<if test="code != null">CODE,</if>
|
||||
<if test="useCase != null">USE_CASE,</if>
|
||||
<if test="example != null">EXAMPLE,</if>
|
||||
<if test="iconPath != null">ICON_PATH,</if>
|
||||
<if test="strategyKey != null">STRATEGY_KEY,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">#{id},</if>
|
||||
<if test="name != null">#{name},</if>
|
||||
<if test="qualityDim != null">#{qualityDim},</if>
|
||||
<if test="type != null">#{type},</if>
|
||||
<if test="level != null">#{level},</if>
|
||||
<if test="description != null">#{description},</if>
|
||||
<if test="validFlag != null">#{validFlag},</if>
|
||||
<if test="delFlag != null">#{delFlag},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
<if test="creatorId != null">#{creatorId},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="updateBy != null">#{updateBy},</if>
|
||||
<if test="updaterId != null">#{updaterId},</if>
|
||||
<if test="updateTime != null">#{updateTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
<if test="code != null">#{code},</if>
|
||||
<if test="useCase != null">#{useCase},</if>
|
||||
<if test="example != null">#{example},</if>
|
||||
<if test="iconPath != null">#{iconPath},</if>
|
||||
<if test="strategyKey != null">#{strategyKey},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateAttAuditRule" parameterType="AttAuditRuleDO">
|
||||
update ATT_AUDIT_RULE
|
||||
<trim prefix="SET" suffixOverrides=",">
|
||||
<if test="name != null">NAME = #{name},</if>
|
||||
<if test="qualityDim != null">QUALITY_DIM = #{qualityDim},</if>
|
||||
<if test="type != null">TYPE = #{type},</if>
|
||||
<if test="level != null">LEVEL = #{level},</if>
|
||||
<if test="description != null">DESCRIPTION = #{description},</if>
|
||||
<if test="validFlag != null">VALID_FLAG = #{validFlag},</if>
|
||||
<if test="delFlag != null">DEL_FLAG = #{delFlag},</if>
|
||||
<if test="createBy != null">CREATE_BY = #{createBy},</if>
|
||||
<if test="creatorId != null">CREATOR_ID = #{creatorId},</if>
|
||||
<if test="createTime != null">CREATE_TIME = #{createTime},</if>
|
||||
<if test="updateBy != null">UPDATE_BY = #{updateBy},</if>
|
||||
<if test="updaterId != null">UPDATER_ID = #{updaterId},</if>
|
||||
<if test="updateTime != null">UPDATE_TIME = #{updateTime},</if>
|
||||
<if test="remark != null">REMARK = #{remark},</if>
|
||||
<if test="code != null">CODE = #{code},</if>
|
||||
<if test="useCase != null">USE_CASE = #{useCase},</if>
|
||||
<if test="example != null">EXAMPLE = #{example},</if>
|
||||
<if test="iconPath != null">ICON_PATH = #{iconPath},</if>
|
||||
<if test="strategyKey != null">STRATEGY_KEY = #{strategyKey},</if>
|
||||
</trim>
|
||||
where ID = #{id}
|
||||
</update>
|
||||
|
||||
<delete id="deleteAttAuditRuleByID" parameterType="Long">
|
||||
delete from ATT_AUDIT_RULE where ID = #{id}
|
||||
</delete>
|
||||
|
||||
<delete id="deleteAttAuditRuleByIDs" parameterType="String">
|
||||
delete from ATT_AUDIT_RULE where ID in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
@ -44,13 +44,13 @@ spring:
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://221.238.217.216:4156/mid_platform_ai_education?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
username: xhllm_user
|
||||
password: XNJZ-xhllm_user-!#%246
|
||||
username: root
|
||||
password: 123456
|
||||
slave: # 模拟从库,可根据自己需要修改 # 模拟从库,可根据自己需要修改
|
||||
lazy: true # 开启懒加载,保证启动速度
|
||||
url: jdbc:mysql://221.238.217.216:4156/data_mid_platform?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
username: xhllm_user
|
||||
password: XNJZ-xhllm_user-!#%246
|
||||
username: root
|
||||
password: 123456
|
||||
|
||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||
redis:
|
||||
|
@ -46,12 +46,12 @@ spring:
|
||||
primary: master
|
||||
datasource:
|
||||
master:
|
||||
url: jdbc:mysql://221.238.217.216:4156/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
url: jdbc:mysql://221.238.217.216:4156/mid_platform_ai_education?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true&rewriteBatchedStatements=true # MySQL Connector/J 8.X 连接的示例
|
||||
username: root
|
||||
password: 123456
|
||||
slave: # 模拟从库,可根据自己需要修改
|
||||
lazy: true # 开启懒加载,保证启动速度
|
||||
url: jdbc:mysql://221.238.217.216:4156/ruoyi-vue-pro?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
|
||||
url: jdbc:mysql://221.238.217.216:4156/data_mid_platform?useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&rewriteBatchedStatements=true&nullCatalogMeansCurrent=true
|
||||
username: root
|
||||
password: 123456
|
||||
# Redis 配置。Redisson 默认的配置足够使用,一般不需要进行调优
|
||||
|
Loading…
x
Reference in New Issue
Block a user