|  |  | @ -18,6 +18,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         <!--@mbg.generated--> |  |  |  |         <!--@mbg.generated--> | 
			
		
	
		
		
			
				
					
					|  |  |  |         id, code, `name`, workPlaceIdFk, remark, createTime, updateTime, `createUser`, updateUser |  |  |  |         id, code, `name`, workPlaceIdFk, remark, createTime, updateTime, `createUser`, updateUser | 
			
		
	
		
		
			
				
					
					|  |  |  |     </sql> |  |  |  |     </sql> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="selectMaxLayer" resultType="java.lang.Integer"> |  |  |  |     <select id="selectMaxLayer" resultType="java.lang.Integer"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select max(layer) as layer from sys_workplace_queue |  |  |  |         select max(layer) as layer from sys_workplace_queue | 
			
		
	
		
		
			
				
					
					|  |  |  |         <where> |  |  |  |         <where> | 
			
		
	
	
		
		
			
				
					|  |  | @ -28,10 +29,12 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     <select id="filterBindList" resultType="com.glxp.api.res.basic.SysWorkplaceQueueResponse"> |  |  |  |     <select id="filterBindList" resultType="com.glxp.api.res.basic.SysWorkplaceQueueResponse"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         select swq.*,bp.nameCode,bp.ggxh,bp.cpmctymc |  |  |  |         select swq.*,bp.nameCode, | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                COALESCE(bp.ggxh,bp.bzgg) AS ggxh, | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                bp.cpmctymc | 
			
		
	
		
		
			
				
					
					|  |  |  |         from sys_workplace_queue swq |  |  |  |         from sys_workplace_queue swq | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join |  |  |  |         left join | 
			
		
	
		
		
			
				
					
					|  |  |  |         (select bu.id,bp.nameCode,bp.ggxh,bp.cpmctymc |  |  |  |         (select bu.id,bp.nameCode,bp.ggxh,bp.cpmctymc,bp.bzgg | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |         from basic_udirel bu |  |  |  |         from basic_udirel bu | 
			
		
	
		
		
			
				
					
					|  |  |  |         left join basic_products bp ON bu.uuid = bp.uuid |  |  |  |         left join basic_products bp ON bu.uuid = bp.uuid | 
			
		
	
		
		
			
				
					
					|  |  |  |         group by bu.id,bp.nameCode,bp.ggxh,bp.cpmctymc) as bp ON bp.id = swq.relId |  |  |  |         group by bu.id,bp.nameCode,bp.ggxh,bp.cpmctymc) as bp ON bp.id = swq.relId | 
			
		
	
	
		
		
			
				
					|  |  | @ -124,4 +127,22 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         LIMIT 1 |  |  |  |         LIMIT 1 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </select> |  |  |  |     </select> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--    <update id="updateByRelId">--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--        UPDATE sys_workplace_queue--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--        <trim prefix="set" suffixOverrides=",">--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--            <if test="nameCode != null">--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--                nameCode=#{nameCode},--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--            </if>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--        </trim>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--        WHERE nameCode = #{nameCode}--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--        and uuid = #{uuid}--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | <!--    </update>--> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     <update id="updateByRelId"> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         UPDATE sys_workplace_queue | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         <set> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |             relId = null | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         </set> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |         WHERE code = #{code} | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     </update> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | </mapper> |  |  |  | </mapper> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |