From 2a64b537e8e3bce9ce030585a3da17d48379c0ad Mon Sep 17 00:00:00 2001
From: sfd <sun.sunshine@163.com>
Date: 星期一, 26 五月 2025 15:04:45 +0800
Subject: [PATCH] 修改json类型转换错误

---
 aps-modules/aps-core/src/main/resources/mapper/core/ApsShopMapper.xml |   13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/aps-modules/aps-core/src/main/resources/mapper/core/ApsShopMapper.xml b/aps-modules/aps-core/src/main/resources/mapper/core/ApsShopMapper.xml
index 90ca081..285b7df 100644
--- a/aps-modules/aps-core/src/main/resources/mapper/core/ApsShopMapper.xml
+++ b/aps-modules/aps-core/src/main/resources/mapper/core/ApsShopMapper.xml
@@ -4,7 +4,7 @@
 "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.aps.core.mapper.ApsShopMapper">
     
-    <resultMap type="ApsShop" id="ApsShopResult">
+    <resultMap type="com.aps.core.domain.ApsShop" id="ApsShopResult">
         <result property="id"    column="id"    />
         <result property="shopName"    column="shop_name"    />
         <result property="shopCode"    column="shop_code"    />
@@ -20,14 +20,15 @@
         select id, shop_name, shop_code, plant_code, status, create_by, create_time, update_by, update_time from aps_shop
     </sql>
 
-    <select id="selectApsShopList" parameterType="ApsShop" resultMap="ApsShopResult">
+    <select id="selectApsShopList" parameterType="com.aps.core.domain.ApsShop" resultMap="ApsShopResult">
         <include refid="selectApsShopVo"/>
         <where>  
-            <if test="shopName != null  and shopName != ''"> and shop_name like concat('%', #{shopName}, '%')</if>
-            <if test="shopCode != null  and shopCode != ''"> and shop_code like concat('%', #{shopCode}, '%')</if>
+            <if test="shopName != null  and shopName != ''"> and shop_name = #{shopName}</if>
+            <if test="shopCode != null  and shopCode != ''"> and shop_code = #{shopCode}</if>
             <if test="plantCode != null  and plantCode != ''"> and plant_code = #{plantCode}</if>
             <if test="status != null  and status != ''"> and status = #{status}</if>
         </where>
+        order by id asc
     </select>
     
     <select id="selectApsShopById" parameterType="String" resultMap="ApsShopResult">
@@ -35,7 +36,7 @@
         where id = #{id}
     </select>
 
-    <insert id="insertApsShop" parameterType="ApsShop">
+    <insert id="insertApsShop" parameterType="com.aps.core.domain.ApsShop">
         insert into aps_shop
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
@@ -61,7 +62,7 @@
          </trim>
     </insert>
 
-    <update id="updateApsShop" parameterType="ApsShop">
+    <update id="updateApsShop" parameterType="com.aps.core.domain.ApsShop">
         update aps_shop
         <trim prefix="SET" suffixOverrides=",">
             <if test="shopName != null">shop_name = #{shopName},</if>

--
Gitblit v1.9.3