shiyj
2019-07-16 6d8a43de07062234a05716fcbb94273709cab21e
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}