From 6eb90049f284f63fe623c76cb0599d5c927c1a8a Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期一, 08 七月 2019 23:17:20 +0800
Subject: [PATCH] 映射保存处理
---
java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml | 19 +++++++++++--------
1 files changed, 11 insertions(+), 8 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml
index 4b157d2..8b79988 100644
--- a/java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml
@@ -6,11 +6,13 @@
<!-- 淇濆瓨鏄犲皠淇℃伅 add by wuxw 2018-07-03 -->
<insert id="saveMappingInfo" parameterType="Map">
- insert into c_mapping(
-domain,name,remark,id,value,key
-) values (
-#{domain},#{name},#{remark},#{id},#{value},#{key}
-)
+ <![CDATA[
+ insert into c_mapping(
+ domain,name,remark,id,value,`key`) values (
+ #{domain},#{name},#{remark},#{id},#{value},#{key}
+ )
+ ]]>
+
</insert>
@@ -38,7 +40,7 @@
and t.value= #{value}
</if>
<if test="key !=null and key != ''">
- and t.key= #{key}
+ and t.`key`= #{key}
</if>
</select>
@@ -101,7 +103,8 @@
</if>
<if test="key !=null and key != ''">
and t.key= #{key}
-</if>
+</if>
+ order by t.create_time desc
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
@@ -128,7 +131,7 @@
, t.value= #{value}
</if>
<if test="key !=null and key != ''">
-, t.key= #{key}
+, t.`key`= #{key}
</if>
where 1=1 <if test="id !=null and id != ''">
and t.id= #{id}
--
Gitblit v1.8.0