From fea7131248e0014173db485d2b237f9dcf40dfdb Mon Sep 17 00:00:00 2001 From: zzk Date: Sat, 7 May 2022 15:15:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E5=89=8D=E9=83=A8=E5=88=86=E7=BB=93?= =?UTF-8?q?=E6=B8=85=E5=8F=91=E8=B5=B7=E6=97=B6=E6=AF=8F=E6=AC=A1=E4=BB=8E?= =?UTF-8?q?=E6=96=B0=E8=AE=A1=E7=AE=97=E7=A7=9F=E8=B5=81=E7=89=A9=E5=8D=A0?= =?UTF-8?q?=E6=AF=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/commbusiness/LBEquipmentFormalToTempBusiness.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java index da0fd23c9..9e71ba45c 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBEquipmentFormalToTempBusiness.java @@ -40,7 +40,7 @@ public class LBEquipmentFormalToTempBusiness extends BaseBussiness { String id01; String id02; String flowUnid=this.getAttribute("ObjectNo").toString(); - String sql="select ifnull(round(round(lect.EQUIP_PRICE / ifnull(t.num, 1), 4), 4),0) as PROPROTION_NUMBER,f.id as id01,lect.id as id02 from lb_equipment_car_temp lect left join (select CONTRACT_ID,sum(ifnull(EQUIP_PRICE, 0)) as num from apzl.lb_equipment_car group by CONTRACT_ID ) t on t.CONTRACT_ID = lect.CONTRACT_ID left join (select id from apzl.lb_equipment_car_temp a where FLOWUNID = '"+flowUnid+"'order by id desc limit 1) f on 1=1 where lect.FLOWUNID = '"+flowUnid+"' order by lect.id"; + String sql="select ifnull(round(round(lect.EQUIP_PRICE / ifnull(t.num, 1), 4), 4),0) as PROPROTION_NUMBER,f.id as id01,lect.id as id02 from lb_equipment_car_temp lect left join (select CONTRACT_ID,sum(ifnull(EQUIP_PRICE, 0)) as num from apzl.lb_equipment_car where TERMINATE_TYPE <> 2 group by CONTRACT_ID ) t on t.CONTRACT_ID = lect.CONTRACT_ID left join (select id from apzl.lb_equipment_car_temp a where FLOWUNID = '"+flowUnid+"' and TERMINATE_TYPE <> 2 order by id desc limit 1) f on 1=1 where TERMINATE_TYPE <> 2 and lect.FLOWUNID = '"+flowUnid+"' order by lect.id"; List> list=DataOperatorUtil.getDataBySql(Sqlca, sql, null); for (Map let : list) { PROPROTION_NUMBER = let.get("PROPROTION_NUMBER");