| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -121,14 +121,15 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            parameterType="com.glxp.api.entity.inventory.InvSubWarehouseEntity">
 | 
					 | 
					 | 
					 | 
					            parameterType="com.glxp.api.entity.inventory.InvSubWarehouseEntity">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        replace
 | 
					 | 
					 | 
					 | 
					        replace
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        INTO inv_warehouse_sub
 | 
					 | 
					 | 
					 | 
					        INTO inv_warehouse_sub
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        (id, code, `name`, parentId, remark,defaultInv)
 | 
					 | 
					 | 
					 | 
					        (id, code, `name`, parentId, remark,defaultInv,parentCode)
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        values (
 | 
					 | 
					 | 
					 | 
					        values (
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{id},
 | 
					 | 
					 | 
					 | 
					        #{id},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{code},
 | 
					 | 
					 | 
					 | 
					        #{code},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{name},
 | 
					 | 
					 | 
					 | 
					        #{name},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{parentId},
 | 
					 | 
					 | 
					 | 
					        #{parentId},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{remark},
 | 
					 | 
					 | 
					 | 
					        #{remark},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        #{defaultInv}
 | 
					 | 
					 | 
					 | 
					        #{defaultInv},
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        #{parentCode}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        )
 | 
					 | 
					 | 
					 | 
					        )
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </insert>
 | 
					 | 
					 | 
					 | 
					    </insert>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -154,13 +155,14 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="parentId != null">parentId=#{parentId},</if>
 | 
					 | 
					 | 
					 | 
					            <if test="parentId != null">parentId=#{parentId},</if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="remark != null">remark=#{remark},</if>
 | 
					 | 
					 | 
					 | 
					            <if test="remark != null">remark=#{remark},</if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="defaultInv != null">defaultInv=#{defaultInv},</if>
 | 
					 | 
					 | 
					 | 
					            <if test="defaultInv != null">defaultInv=#{defaultInv},</if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					            <if test="parentCode != null">parentCode=#{parentCode},</if>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </trim>
 | 
					 | 
					 | 
					 | 
					        </trim>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        WHERE id = #{id}
 | 
					 | 
					 | 
					 | 
					        WHERE id = #{id}
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </update>
 | 
					 | 
					 | 
					 | 
					    </update>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <insert id="importInvSubWarehouse" parameterType="java.util.List">
 | 
					 | 
					 | 
					 | 
					    <insert id="importInvSubWarehouse" parameterType="java.util.List">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        replace into inv_warehouse_sub
 | 
					 | 
					 | 
					 | 
					        replace into inv_warehouse_sub
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        (id, code, `name`, parentId, remark,defaultInv)
 | 
					 | 
					 | 
					 | 
					        (id, code, `name`, parentId, remark,defaultInv,parentCode)
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        values
 | 
					 | 
					 | 
					 | 
					        values
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <foreach collection="invWarehouseEntities" item="item" index="index" separator=",">
 | 
					 | 
					 | 
					 | 
					        <foreach collection="invWarehouseEntities" item="item" index="index" separator=",">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            (
 | 
					 | 
					 | 
					 | 
					            (
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -168,7 +170,7 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            #{item.code},
 | 
					 | 
					 | 
					 | 
					            #{item.code},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            #{item.name},
 | 
					 | 
					 | 
					 | 
					            #{item.name},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            #{item.parentId},
 | 
					 | 
					 | 
					 | 
					            #{item.parentId},
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            #{item.remark},#{item.defaultInv})
 | 
					 | 
					 | 
					 | 
					            #{item.remark},#{item.defaultInv},#{item.parentCode})
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        </foreach>
 | 
					 | 
					 | 
					 | 
					        </foreach>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    </insert>
 | 
					 | 
					 | 
					 | 
					    </insert>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -194,9 +196,10 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    <select id="filterInvSubWarehouseResponse"
 | 
					 | 
					 | 
					 | 
					    <select id="filterInvSubWarehouseResponse"
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            resultType="com.glxp.api.res.inventory.InvSubWarehouseResponse">
 | 
					 | 
					 | 
					 | 
					            resultType="com.glxp.api.res.inventory.InvSubWarehouseResponse">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        select a.id, a.code, a.name, a.parentId, a.remark, a.defaultInv, a.thirdId, a.thirdId1, a.thirdId2,
 | 
					 | 
					 | 
					 | 
					        select a.id, a.code, a.name, a.parentId, a.remark, a.defaultInv, a.thirdId, a.thirdId1, a.thirdId2,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        a.thirdId3, a.thirdId4, b.name as parentName
 | 
					 | 
					 | 
					 | 
					        a.thirdId3, a.thirdId4, b.name as parentName,a.parentCode,c.name parentInvName
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        FROM inv_warehouse_sub a
 | 
					 | 
					 | 
					 | 
					        FROM inv_warehouse_sub a
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        left join inv_warehouse b on a.parentId = b.code
 | 
					 | 
					 | 
					 | 
					        left join inv_warehouse b on a.parentId = b.code
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        left join inv_warehouse_sub c on a.parentCode = c.code
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        <where>
 | 
					 | 
					 | 
					 | 
					        <where>
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            <if test="id != '' and id != null">
 | 
					 | 
					 | 
					 | 
					            <if test="id != '' and id != null">
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                AND a.id = #{id}
 | 
					 | 
					 | 
					 | 
					                AND a.id = #{id}
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -243,7 +246,7 @@
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        a.thirdId2,
 | 
					 | 
					 | 
					 | 
					        a.thirdId2,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        a.thirdId3,
 | 
					 | 
					 | 
					 | 
					        a.thirdId3,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        a.thirdId4,
 | 
					 | 
					 | 
					 | 
					        a.thirdId4,
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					               b.name parentName
 | 
					 | 
					 | 
					 | 
					        b.name parentName,a.parentCode
 | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        from inv_warehouse_sub a
 | 
					 | 
					 | 
					 | 
					        from inv_warehouse_sub a
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        left join inv_warehouse b on a.parentId = b.code
 | 
					 | 
					 | 
					 | 
					        left join inv_warehouse b on a.parentId = b.code
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        left join inv_warehouse_user c on a.code = c.code
 | 
					 | 
					 | 
					 | 
					        left join inv_warehouse_user c on a.code = c.code
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
 
 |