|
|
|
@ -18,6 +18,7 @@
|
|
|
|
|
<!--@mbg.generated-->
|
|
|
|
|
id, code, `name`, workPlaceIdFk, remark, createTime, updateTime, `createUser`, updateUser
|
|
|
|
|
</sql>
|
|
|
|
|
|
|
|
|
|
<select id="selectMaxLayer" resultType="java.lang.Integer">
|
|
|
|
|
select max(layer) as layer from sys_workplace_queue
|
|
|
|
|
<where>
|
|
|
|
@ -28,10 +29,12 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
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
|
|
|
|
|
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
|
|
|
|
@ -124,4 +127,22 @@
|
|
|
|
|
LIMIT 1
|
|
|
|
|
</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>
|
|
|
|
|