|  |  | @ -45,120 +45,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{remark,jdbcType=VARCHAR}) |  |  |  |                 #{remark,jdbcType=VARCHAR}) | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |     </insert> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="insertSelective" keyColumn="id" keyProperty="id" |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             parameterType="com.glxp.api.entity.auth.InvSpace" useGeneratedKeys="true"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert into auth_space |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <trim prefix="(" suffix=")" suffixOverrides=","> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="code != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 code, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="name != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 `name`, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="type != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 type, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invStorageCode != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invStorageCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invWarehouseCode != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invWarehouseCode, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="status != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 `status`, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createTime != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 createTime, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateTime != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 updateTime, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createUser != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 `createUser`, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateUser != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 updateUser, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="remark != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 remark, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <trim prefix="values (" suffix=")" suffixOverrides=","> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="code != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{code,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="name != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{name,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="type != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{type,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invStorageCode != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{invStorageCode,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invWarehouseCode != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{invWarehouseCode,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="status != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{status,jdbcType=BOOLEAN}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createTime != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{createTime,jdbcType=TIMESTAMP}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateTime != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{updateTime,jdbcType=TIMESTAMP}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createUser != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{createUser,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateUser != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{updateUser,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="remark != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 #{remark,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </trim> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <update id="updateByPrimaryKeySelective" parameterType="com.glxp.api.entity.auth.InvSpace"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         update auth_space |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <set> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="code != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 code = #{code,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="name != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 `name` = #{name,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="type != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 type = #{type,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invStorageCode != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invStorageCode = #{invStorageCode,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invWarehouseCode != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 invWarehouseCode = #{invWarehouseCode,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="status != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 `status` = #{status,jdbcType=BOOLEAN}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createTime != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 createTime = #{createTime,jdbcType=TIMESTAMP}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateTime != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 updateTime = #{updateTime,jdbcType=TIMESTAMP}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="createUser != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 `createUser` = #{createUser,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="updateUser != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 updateUser = #{updateUser,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="remark != null"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 remark = #{remark,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </set> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         where id = #{id,jdbcType=INTEGER} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.auth.InvSpace"> |  |  |  |     <update id="updateByPrimaryKey" parameterType="com.glxp.api.entity.auth.InvSpace"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         update auth_space |  |  |  |         update auth_space | 
			
		
	
	
		
		
			
				
					|  |  | @ -241,21 +128,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |         </foreach> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </update> |  |  |  |     </update> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <insert id="batchInsert" keyColumn="id" keyProperty="id" parameterType="map" useGeneratedKeys="true"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         insert into auth_space |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 (code, `name`, type, invStorageCode, invWarehouseCode, `status`, createTime, updateTime, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                  `createUser`, updateUser, remark) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 values |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <foreach collection="list" item="item" separator=","> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             (#{item.code,jdbcType=VARCHAR}, #{item.name,jdbcType=VARCHAR}, #{item.type,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.invStorageCode,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.invWarehouseCode,jdbcType=VARCHAR}, #{item.status,jdbcType=BOOLEAN}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.createTime,jdbcType=TIMESTAMP}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.updateTime,jdbcType=TIMESTAMP}, #{item.createUser,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.updateUser,jdbcType=VARCHAR}, |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |              #{item.remark,jdbcType=VARCHAR}) |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </foreach> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </insert> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterList" parameterType="com.glxp.api.req.auth.FilterInvSpaceRequest" |  |  |  |     <select id="filterList" parameterType="com.glxp.api.req.auth.FilterInvSpaceRequest" | 
			
		
	
		
		
			
				
					
					|  |  |  |             resultType="com.glxp.api.res.auth.InvSpaceResponse"> |  |  |  |             resultType="com.glxp.api.res.auth.InvSpaceResponse"> | 
			
		
	
	
		
		
			
				
					|  |  | @ -282,27 +154,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectEntityList" resultMap="BaseResultMap"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         select * |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         from auth_space |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invStorageCode != null and invStorageCode != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND invStorageCode = #{invStorageCode} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invWarehouseCode != null and invWarehouseCode != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND invWarehouseCode = #{invWarehouseCode} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="name != null and name != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND name = #{name} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="type != null and type != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND type = #{type} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="code != null and code != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND code = #{code} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectSpaceCodeList" resultType="com.glxp.api.res.auth.InvSpaceResponse"> |  |  |  |     <select id="selectSpaceCodeList" resultType="com.glxp.api.res.auth.InvSpaceResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select auth_space.code, auth_space.name, iws.name invSubStorageName, iw.name invStorageName |  |  |  |         select auth_space.code, auth_space.name, iws.name invSubStorageName, iw.name invStorageName | 
			
		
	
	
		
		
			
				
					|  |  | @ -355,22 +206,6 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |         </where> | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectByInvCode" resultMap="BaseResultMap"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         select |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <include refid="Base_Column_List"/> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         from auth_space |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invStorageCode != null and invStorageCode != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND invStorageCode = #{invStorageCode} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invWarehouseCode != null and invWarehouseCode != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND invWarehouseCode = #{invWarehouseCode} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             <if test="invSpaceCode != null and invSpaceCode != ''"> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |                 AND code = #{invSpaceCode} |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |             </if> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |         </where> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectExistByName" resultMap="BaseResultMap"> |  |  |  |     <select id="selectExistByName" resultMap="BaseResultMap"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select |  |  |  |         select | 
			
		
	
	
		
		
			
				
					|  |  | 
 |