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"}); }