From d8d57f2f81f10235c9a17aeb0287b9f16f7c41a1 Mon Sep 17 00:00:00 2001 From: zengweihai Date: Wed, 27 Nov 2024 14:09:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BE=9B=E5=BA=94=E5=95=86=E8=AF=84=E4=BC=B0?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E8=A1=A8=C2=B7=E6=A0=B9=E6=8D=AE=E5=AE=9E?= =?UTF-8?q?=E9=99=85=E8=AF=84=E5=88=86=E5=88=92=E5=88=86=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resm/report/data/SupEvalRecordReportListPlugin.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/main/java/shkd/repc/resm/report/data/SupEvalRecordReportListPlugin.java b/main/java/shkd/repc/resm/report/data/SupEvalRecordReportListPlugin.java index 5be6e1e..5866da7 100644 --- a/main/java/shkd/repc/resm/report/data/SupEvalRecordReportListPlugin.java +++ b/main/java/shkd/repc/resm/report/data/SupEvalRecordReportListPlugin.java @@ -30,11 +30,14 @@ public class SupEvalRecordReportListPlugin extends SupEvalRecReportNewList { // DataSet finish_avg = finish.groupBy(new String[]{"listsupplier"}).avg("listevalscore").finish(); - DataSet select = finish_avg.select("listsupplier as listsupplier1", "listevalscore as qeug_avgscore"); + DataSet select = finish_avg.executeSql("select listsupplier as listsupplier1, listevalscore as qeug_avgscore,(case when listevalscore < 60 then '待淘汰供应商' when listevalscore >= 60 and listevalscore < 80 then '合格供应商' when listevalscore >= 80 and listevalscore < 90 then '优秀供应商' else '战略供应商' end) as qeug_level"); + System.out.println("tesT"); + //(case when qeug_avgscore < 60 then '待淘汰供应商' when qeug_avgscore >= 60 and qeug_avgscore < 80 then '合格供应商' when qeug_avgscore >= 80 and qeug_avgscore < 90 then '优秀供应商' else '战略供应商' end) as qeug_level DataSet evalTaskSetEntry = QueryServiceHelper.queryDataSet("resm_evaltask_new", "resm_evaltask_new", selectFieldInResm, evalTaskEntryFilterS, (String)null); JoinDataSet join = evalTaskSetEntry.join(select, JoinType.LEFT); - DataSet result = join.on("listsupplier", "listsupplier1").select("listsuppliergroup", "listsupplier", "listevalorg", "listproject_category", "listproject", "listevaltask", "listevaltype", "listcontract", "listevalmodel", "listyear", "listduringeval", "listevaldate", "listevalscore", "qeug_avgscore", "listevalgrade", "description", "evaldetailid","evaltaskid").finish(); + DataSet result = join.on("listsupplier", "listsupplier1").select("listsuppliergroup", "listsupplier", "listevalorg", "listproject_category", "listproject", "listevaltask", "listevaltype", "listcontract", "listevalmodel", "listyear", "listduringeval", "listevaldate", "listevalscore", "listevalgrade", "qeug_avgscore","qeug_level","description", "evaldetailid","evaltaskid").finish(); + return result.orderBy(new String[]{"listsupplier desc"}); }