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