严格模式修改

main
杜函宇 2 months ago
parent b114257ec6
commit b1e962ae02

@ -41,7 +41,7 @@
l.* l.*
FROM FROM
asset_current a asset_current a
LEFT JOIN ( SELECT asset_id, NAME, tyshxydm, lxr, lxdh, gyszcdz, sfwtc FROM asset_supply_chain WHERE type = 5 GROUP BY asset_id ) b ON a.id = b.asset_id LEFT JOIN ( SELECT asset_id, NAME, tyshxydm, lxr, lxdh, gyszcdz, sfwtc FROM asset_supply_chain WHERE type = 5 GROUP BY asset_id,NAME, tyshxydm, lxr, lxdh, gyszcdz, sfwtc ) b ON a.id = b.asset_id
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
asset_id, asset_id,
@ -56,7 +56,13 @@
WHERE WHERE
type = 7 type = 7
GROUP BY GROUP BY
asset_id asset_id,
NAME,
tyshxydm,
lxr,
lxdh,
gyszcdz,
sfwtc
) c ON a.id = c.asset_id ) c ON a.id = c.asset_id
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
@ -76,7 +82,11 @@
WHERE WHERE
type = 1 type = 1
GROUP BY GROUP BY
asset_id asset_id,
sblx,
pp,
sb_ip,
czxt,czxtbb,yjxh,yjxlh,yjbbxx,yjyt,yjbsxx
) d ON a.id = d.asset_id ) d ON a.id = d.asset_id
LEFT JOIN ( LEFT JOIN (
SELECT SELECT
@ -94,11 +104,13 @@
WHERE WHERE
type = 2 type = 2
GROUP BY GROUP BY
asset_id asset_id,
sblx,
pp,sb_ip,yjxh,yjxlh,yjbbxx,yjyt,yjbsxx
) e ON a.id = e.asset_id ) e ON a.id = e.asset_id
LEFT JOIN ( SELECT LEFT JOIN ( SELECT
asset_id, sblx AS aqwlsblx, pp AS aqwlpp, sb_ip AS aqwlsbIp asset_id, sblx AS aqwlsblx, pp AS aqwlpp, sb_ip AS aqwlsbIp
FROM asset_basic_network WHERE type = 3 GROUP BY asset_id ) l ON a.id = l.asset_id FROM asset_basic_network WHERE type = 3 GROUP BY asset_id,sblx,pp,sb_ip ) l ON a.id = l.asset_id
<where> <where>
a.del_flag = '0' and a.isbf = '0' a.del_flag = '0' and a.isbf = '0'
<if test="req.xtmc!=null and req.xtmc!='' "> <if test="req.xtmc!=null and req.xtmc!='' ">

Loading…
Cancel
Save