From 6d8a43de07062234a05716fcbb94273709cab21e Mon Sep 17 00:00:00 2001
From: shiyj <1098226878@qq.com>
Date: 星期二, 16 七月 2019 17:04:36 +0800
Subject: [PATCH] Merge branch 'master' of https://github.com/java110/MicroCommunity
---
java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml | 18 ++++++++++--------
1 files changed, 10 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..cffcc21 100644
--- a/java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/mapping/MappingServiceDaoImplMapper.xml
@@ -6,11 +6,12 @@
<!-- 淇濆瓨鏄犲皠淇℃伅 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 select
+ #{id},#{domain},#{name},#{key},#{value},#{remark},now(),'0'
+
+ ]]>
+
</insert>
@@ -38,7 +39,7 @@
and t.value= #{value}
</if>
<if test="key !=null and key != ''">
- and t.key= #{key}
+ and t.`key`= #{key}
</if>
</select>
@@ -101,7 +102,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 +130,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