From 528b1892d8e929b199dddc96f3a43f9b8039c8c8 Mon Sep 17 00:00:00 2001
From: fuliqi <fuliqi@qq.com>
Date: 星期四, 06 六月 2024 18:00:42 +0800
Subject: [PATCH] 模板接口打通

---
 src/main/resources/mapper/SubjectMapper.xml |   22 +++++++++++-----------
 1 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/src/main/resources/mapper/SubjectMapper.xml b/src/main/resources/mapper/SubjectMapper.xml
index 607c317..3b31e9b 100644
--- a/src/main/resources/mapper/SubjectMapper.xml
+++ b/src/main/resources/mapper/SubjectMapper.xml
@@ -1,17 +1,17 @@
 <?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.ycl.jxkg.mapper.SubjectMapper">
-    <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.Subject">
+    <resultMap id="BaseResultMap" type="com.ycl.jxkg.domain.entity.Subject">
         <id column="id" jdbcType="INTEGER" property="id"/>
         <result column="name" jdbcType="VARCHAR" property="name"/>
-        <result column="level" jdbcType="INTEGER" property="level"/>
-        <result column="level_name" jdbcType="VARCHAR" property="levelName"/>
         <result column="item_order" jdbcType="INTEGER" property="itemOrder"/>
+        <result column="status" jdbcType="INTEGER" property="status"/>
+        <result column="create_user" jdbcType="INTEGER" property="createUser"/>
+        <result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
         <result column="deleted" jdbcType="BIT" property="deleted"/>
     </resultMap>
     <sql id="Base_Column_List">
-        id
-        , name, level, level_name, item_order, deleted
+        id, name, item_order, deleted, status, create_user, create_time
     </sql>
 
 
@@ -29,17 +29,17 @@
         from t_subject
     </select>
 
-    <select id="page" resultMap="BaseResultMap" parameterType="com.ycl.jxkg.vo.admin.education.SubjectPageRequestVO">
+    <select id="page" resultMap="BaseResultMap" parameterType="com.ycl.jxkg.domain.vo.admin.education.SubjectPageRequestVO">
         SELECT
         <include refid="Base_Column_List"/>
         FROM t_subject
         <where>
-            and deleted=0
-            <if test="id != null ">
-                and id= #{id}
+            and deleted = 0
+            <if test="status != null">
+                and status = #{status}
             </if>
-            <if test="level != null ">
-                and level= #{level}
+            <if test="name != null and name != ''">
+                and instr(name, #{name})
             </if>
         </where>
     </select>

--
Gitblit v1.8.0