bug修改

dev_unify
yewj 8 months ago
parent 4acc72064f
commit 81622f8fcf

@ -87,4 +87,9 @@ public class SysWorkplaceQueueResponse {
private String cpmctymc; private String cpmctymc;
private String relId; private String relId;
/**
*
*/
private String workplaceName;
} }

@ -16,11 +16,20 @@
</resultMap> </resultMap>
<sql id="Base_Column_List"> <sql id="Base_Column_List">
<!--@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>
<if test="freightCode != null and freightCode != ''"> <if test="freightCode != null and freightCode != ''">
AND freightCode = #{freightCode} AND freightCode = #{freightCode}
@ -29,15 +38,19 @@
</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, select swq.*,
bp.nameCode,
COALESCE(bp.ggxh, bp.bzgg) AS ggxh, COALESCE(bp.ggxh, bp.bzgg) AS ggxh,
bp.cpmctymc bp.cpmctymc,sys_workplace.workplaceName
from sys_workplace_queue swq from sys_workplace_queue swq
left join left join
(select bu.id, bp.nameCode, bp.ggxh, bp.cpmctymc, bp.bzgg (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
left join sys_workplace on swq.workPlaceIdFk = sys_workplace.workplaceId
<where> <where>
<if test="key != null and key != ''"> <if test="key != null and key != ''">
AND ( AND (
@ -125,7 +138,8 @@
</where> </where>
</select> </select>
<select id="selectMaxGrid" resultType="java.lang.Integer"> <select id="selectMaxGrid" resultType="java.lang.Integer">
select max(grid) as grid from sys_workplace_queue select max(grid) as grid
from sys_workplace_queue
<where> <where>
<if test="freightCode != null and freightCode != ''"> <if test="freightCode != null and freightCode != ''">
AND freightCode = #{freightCode} AND freightCode = #{freightCode}
@ -136,7 +150,8 @@
</where> </where>
</select> </select>
<select id="selectMaxCode" resultType="java.lang.String"> <select id="selectMaxCode" resultType="java.lang.String">
select max(code) as code from sys_workplace_queue select max(code) as code
from sys_workplace_queue
<where> <where>
<if test="layerCode != null and layerCode != ''"> <if test="layerCode != null and layerCode != ''">
AND layerCode = #{layerCode} AND layerCode = #{layerCode}
@ -144,7 +159,8 @@
</where> </where>
</select> </select>
<select id="selectByLayerCode" resultType="com.glxp.api.entity.basic.SysWorkplaceQueue"> <select id="selectByLayerCode" resultType="com.glxp.api.entity.basic.SysWorkplaceQueue">
select * from sys_workplace_queue select *
from sys_workplace_queue
<where> <where>
<if test="layerCode != null and layerCode != ''"> <if test="layerCode != null and layerCode != ''">
AND layerCode = #{layerCode} AND layerCode = #{layerCode}
@ -171,5 +187,4 @@
</set> </set>
WHERE code = #{code} WHERE code = #{code}
</update> </update>
</mapper> </mapper>

Loading…
Cancel
Save