|  |  |  | @ -2,25 +2,42 @@ | 
			
		
	
		
			
				
					|  |  |  |  | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | <mapper namespace="com.glxp.api.dao.thrsys.ThrSystemBusApiDao"> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <update id="updateSysBusApi" parameterType="com.glxp.api.entity.thrsys.ThrSystemBusApiEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         UPDATE thr_system_bus_api | 
			
		
	
		
			
				
					|  |  |  |  |         <trim prefix="set" suffixOverrides=","> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="code != null">code=#{code},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="name != null">`name`=#{name},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdBuyName != null">`thirdBuyName`=#{thirdBuyName},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdBuyCode != null">`thirdBuyCode`=#{thirdBuyCode},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdSys != null">thirdSys=#{thirdSys},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="url != null">url=#{url},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="type != null">`type`=#{type},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="remark != null">remark=#{remark},</if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="code != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 code=#{code}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="name != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 `name`=#{name}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdBuyName != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 `thirdBuyName`=#{thirdBuyName}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdBuyCode != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 `thirdBuyCode`=#{thirdBuyCode}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdSys != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 thirdSys=#{thirdSys}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="url != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 url=#{url}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="type != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 `type`=#{type}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="remark != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 remark=#{remark}, | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </trim> | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE id=#{id} | 
			
		
	
		
			
				
					|  |  |  |  |         WHERE id = #{id} | 
			
		
	
		
			
				
					|  |  |  |  |     </update> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <select id="filterSysBusApi" parameterType="com.glxp.api.req.thrsys.FilterBasicThirdSysDetailRequest" | 
			
		
	
		
			
				
					|  |  |  |  |             resultType="com.glxp.api.entity.thrsys.ThrSystemBusApiEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT * FROM thr_system_bus_api | 
			
		
	
		
			
				
					|  |  |  |  |         SELECT thr_system_bus_api.*, tbo.name thirdBuyName | 
			
		
	
		
			
				
					|  |  |  |  |         FROM thr_system_bus_api | 
			
		
	
		
			
				
					|  |  |  |  |                  left join thr_bustype_origin tbo on thr_system_bus_api.thirdBuyCode = tbo.action | 
			
		
	
		
			
				
					|  |  |  |  |         <where> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="key != '' and key != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND code = #{code} | 
			
		
	
	
		
			
				
					|  |  |  | @ -31,11 +48,8 @@ | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="code != '' and code != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND code = #{code} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="name != '' and name != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND name = #{name} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |             <if test="thirdSysFk != '' and thirdSysFk != null"> | 
			
		
	
		
			
				
					|  |  |  |  |                 AND thirdSys = #{thirdSysFk} | 
			
		
	
		
			
				
					|  |  |  |  |                 AND thr_system_bus_api.thirdSys = #{thirdSysFk} | 
			
		
	
		
			
				
					|  |  |  |  |             </if> | 
			
		
	
		
			
				
					|  |  |  |  |         </where> | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
	
		
			
				
					|  |  |  | @ -44,33 +58,29 @@ | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="insertSysBusApi" keyProperty="id" | 
			
		
	
		
			
				
					|  |  |  |  |             parameterType="com.glxp.api.entity.thrsys.ThrSystemBusApiEntity"> | 
			
		
	
		
			
				
					|  |  |  |  |         insert | 
			
		
	
		
			
				
					|  |  |  |  |         ignore | 
			
		
	
		
			
				
					|  |  |  |  |             ignore | 
			
		
	
		
			
				
					|  |  |  |  |         INTO thr_system_bus_api | 
			
		
	
		
			
				
					|  |  |  |  |                 (`code`, `name`, thirdBuyName, thirdBuyCode, `thirdSys`, url, `type`, remark) | 
			
		
	
		
			
				
					|  |  |  |  |         values ( | 
			
		
	
		
			
				
					|  |  |  |  |         #{code}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{name}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{thirdBuyName}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{thirdBuyCode}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{thirdSys}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{url}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{type}, | 
			
		
	
		
			
				
					|  |  |  |  |         #{remark} | 
			
		
	
		
			
				
					|  |  |  |  |         ) | 
			
		
	
		
			
				
					|  |  |  |  |         (`code`, `name`, thirdBuyName, thirdBuyCode, `thirdSys`, url, `type`, remark) | 
			
		
	
		
			
				
					|  |  |  |  |         values (#{code}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{name}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{thirdBuyName}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{thirdBuyCode}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{thirdSys}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{url}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{type}, | 
			
		
	
		
			
				
					|  |  |  |  |                 #{remark}) | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     <insert id="saveBusTypes"> | 
			
		
	
		
			
				
					|  |  |  |  |         insert into thr_system_bus_api (code, `name`, thirdBuyName, thirdBuyCode, thirdSys, type) | 
			
		
	
		
			
				
					|  |  |  |  |         values | 
			
		
	
		
			
				
					|  |  |  |  |         <foreach collection="list" index="index" item="item" separator=","> | 
			
		
	
		
			
				
					|  |  |  |  |             ( | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.code}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.name}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.thirdBuyName}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.thirdBuyCode}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.thirdSys}, | 
			
		
	
		
			
				
					|  |  |  |  |             #{item.type} | 
			
		
	
		
			
				
					|  |  |  |  |             ) | 
			
		
	
		
			
				
					|  |  |  |  |             (#{item.code}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.name}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.thirdBuyName}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.thirdBuyCode}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.thirdSys}, | 
			
		
	
		
			
				
					|  |  |  |  |              #{item.type}) | 
			
		
	
		
			
				
					|  |  |  |  |         </foreach> | 
			
		
	
		
			
				
					|  |  |  |  |     </insert> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
	
		
			
				
					|  |  |  | @ -96,5 +106,4 @@ | 
			
		
	
		
			
				
					|  |  |  |  |         where thirdSys = #{thirdSys} | 
			
		
	
		
			
				
					|  |  |  |  |           and type = #{type} | 
			
		
	
		
			
				
					|  |  |  |  |     </select> | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | </mapper> | 
			
		
	
		
			
				
					|  |  |  |  | </mapper> | 
			
		
	
	
		
			
				
					|  |  |  | 
 |