diff --git a/ruoyi-admin/src/main/resources/mapper/AssetCurrentMapper.xml b/ruoyi-admin/src/main/resources/mapper/AssetCurrentMapper.xml index 28febe6..ae0b590 100644 --- a/ruoyi-admin/src/main/resources/mapper/AssetCurrentMapper.xml +++ b/ruoyi-admin/src/main/resources/mapper/AssetCurrentMapper.xml @@ -41,7 +41,7 @@ l.* FROM 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 ( SELECT asset_id, @@ -56,7 +56,13 @@ WHERE type = 7 GROUP BY - asset_id + asset_id, + NAME, + tyshxydm, + lxr, + lxdh, + gyszcdz, + sfwtc ) c ON a.id = c.asset_id LEFT JOIN ( SELECT @@ -76,7 +82,11 @@ WHERE type = 1 GROUP BY - asset_id + asset_id, + sblx, + pp, + sb_ip, + czxt,czxtbb,yjxh,yjxlh,yjbbxx,yjyt,yjbsxx ) d ON a.id = d.asset_id LEFT JOIN ( SELECT @@ -94,11 +104,13 @@ WHERE type = 2 GROUP BY - asset_id + asset_id, + sblx, + pp,sb_ip,yjxh,yjxlh,yjbbxx,yjyt,yjbsxx ) e ON a.id = e.asset_id LEFT JOIN ( SELECT 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 a.del_flag = '0' and a.isbf = '0'