支持规则块配置方式
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.fibo.ddp.common.dao.strategyx.guiderule;
|
||||
|
||||
import com.fibo.ddp.common.model.strategyx.guiderule.RuleBlock;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 规则块配置表(RuleBlock)表数据库访问层
|
||||
*
|
||||
* @author andy.wang
|
||||
* @since 2022-08-05 10:32:11
|
||||
*/
|
||||
@Mapper
|
||||
public interface RuleBlockMapper extends BaseMapper<RuleBlock>{
|
||||
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
<?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="com.fibo.ddp.common.dao.strategyx.guiderule.RuleBlockMapper">
|
||||
|
||||
</mapper>
|
||||
@@ -12,23 +12,16 @@
|
||||
<result property="author" column="author" jdbcType="INTEGER"/>
|
||||
<result property="userId" column="user_id" jdbcType="INTEGER"/>
|
||||
<result property="organId" column="organ_id" jdbcType="INTEGER"/>
|
||||
<result property="engineId" column="engine_id" jdbcType="INTEGER"/>
|
||||
<result property="status" column="status" jdbcType="INTEGER"/>
|
||||
<result property="type" column="type" jdbcType="INTEGER"/>
|
||||
<result property="isNon" column="is_non" jdbcType="INTEGER"/>
|
||||
<result property="content" column="content" jdbcType="VARCHAR"/>
|
||||
<result property="created" column="created" jdbcType="TIMESTAMP"/>
|
||||
<result property="updated" column="updated" jdbcType="TIMESTAMP"/>
|
||||
<result property="ruleType" column="rule_type" jdbcType="INTEGER"/>
|
||||
<result property="ruleAudit" column="rule_audit" jdbcType="INTEGER"/>
|
||||
<result property="score" column="score" jdbcType="INTEGER"/>
|
||||
<result property="difficulty" column="difficulty" jdbcType="INTEGER"/>
|
||||
<result property="scriptType" column="script_type" jdbcType="VARCHAR"/>
|
||||
<result property="lastLogical" column="last_logical" jdbcType="VARCHAR"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_column">
|
||||
id, name, code, description, priority, parent_id, author, user_id, organ_id, engine_id, status, type, is_non, content, created, updated, rule_type, rule_audit, score, last_logical,difficulty,script_type,result_field_en,score_field_en
|
||||
id, name, code, description, priority, parent_id, author, user_id, organ_id, status, type, created, updated,difficulty,script_type
|
||||
</sql>
|
||||
<!--查询单个-->
|
||||
<select id="queryById" resultMap="RuleMap">
|
||||
@@ -76,9 +69,6 @@
|
||||
<if test="organId != null">
|
||||
and organ_id = #{organId}
|
||||
</if>
|
||||
<if test="engineId != null">
|
||||
and engine_id = #{engineId}
|
||||
</if>
|
||||
<if test="status != null">
|
||||
and status = #{status}
|
||||
</if>
|
||||
@@ -88,30 +78,12 @@
|
||||
<if test="type != null">
|
||||
and `type` = #{type}
|
||||
</if>
|
||||
<if test="isNon != null">
|
||||
and is_non = #{isNon}
|
||||
</if>
|
||||
<if test="content != null and content != ''">
|
||||
and content = #{content}
|
||||
</if>
|
||||
<if test="created != null">
|
||||
and created >= #{created}
|
||||
</if>
|
||||
<if test="updated != null">
|
||||
and updated >= #{updated}
|
||||
</if>
|
||||
<if test="ruleType != null">
|
||||
and rule_type = #{ruleType}
|
||||
</if>
|
||||
<if test="ruleAudit != null">
|
||||
and rule_audit = #{ruleAudit}
|
||||
</if>
|
||||
<if test="score != null">
|
||||
and score = #{score}
|
||||
</if>
|
||||
<if test="lastLogical != null and lastLogical != ''">
|
||||
and last_logical = #{lastLogical}
|
||||
</if>
|
||||
<if test="difficulty != null">
|
||||
and difficulty = #{difficulty}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user