From fea22e82e7e49691f6e0c20a29b228d0ab3173e9 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期三, 29 十月 2025 17:08:38 +0800
Subject: [PATCH] 修改问题
---
ycl-server/src/main/resources/mapper/zgyw/CheckRuleMapper.xml | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/ycl-server/src/main/resources/mapper/zgyw/CheckRuleMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/CheckRuleMapper.xml
index 999ac2d..4245c27 100644
--- a/ycl-server/src/main/resources/mapper/zgyw/CheckRuleMapper.xml
+++ b/ycl-server/src/main/resources/mapper/zgyw/CheckRuleMapper.xml
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ycl.platform.mapper.CheckRuleMapper">
-
+
<resultMap type="com.ycl.platform.domain.entity.CheckRule" id="CheckRuleResult">
<result property="id" column="id" />
<result property="ruleName" column="rule_name" />
@@ -11,22 +11,24 @@
<result property="ruleCategory" column="rule_category" />
<result property="ruleCondition" column="rule_condition" />
<result property="ruleDescription" column="rule_description" />
+ <result property="icon" column="icon" />
<result property="updateTime" column="update_time" />
<result property="state" column="state" />
<result property="deleted" column="deleted" />
+ <result property="apiUrl" column="api_url" />
</resultMap>
<sql id="selectCheckRuleVo">
- select id, rule_name, rule_index, rule_category, rule_condition, rule_description, rule_object,
+ select id, rule_name, rule_index, rule_category, rule_condition, rule_description, rule_object,icon,
update_time, state, deleted
from t_check_rule
</sql>
<select id="selectCheckRuleList" resultMap="CheckRuleResult">
select cr.id, cr.rule_name, cr.rule_index, cr.rule_category, cr.rule_condition, cr.rule_description,
- cr.update_time, cr.state, cr.deleted
+ cr.update_time, cr.state, cr.deleted,cr.icon, cr.api_url
from t_check_rule cr
- <where>
+ <where>
<if test="ruleName != null and ruleName != ''"> and rule_name like concat('%', #{ruleName}, '%')</if>
<if test="ruleIndex != null and ruleIndex != ''"> and rule_index = #{ruleIndex}</if>
<if test="ruleCategory != null "> and rule_category = #{ruleCategory}</if>
@@ -35,13 +37,15 @@
<if test="state != null "> and state = #{state}</if>
<if test="deleted != null and deleted != ''"> and deleted = #{deleted}</if>
</where>
+ ORDER BY
+ order_num
</select>
-
+
<select id="selectCheckRuleById" resultMap="CheckRuleResult">
<include refid="selectCheckRuleVo"/>
where id = #{id}
</select>
-
+
<insert id="insertCheckRule" useGeneratedKeys="true" keyProperty="id">
insert into t_check_rule
<trim prefix="(" suffix=")" suffixOverrides=",">
@@ -86,9 +90,9 @@
</delete>
<delete id="deleteCheckRuleByIds" >
- delete from t_check_rule where id in
+ delete from t_check_rule where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
-</mapper>
\ No newline at end of file
+</mapper>
--
Gitblit v1.8.0