From ec8421a6106ee533d8898acdb8c0f53cc293e7a8 Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Sun, 27 Apr 2025 17:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=94=E9=99=A2=E9=9C=80=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/artifacts/weaver_develop_jar.xml | 2 +- .../web/ExamineRankingAction.java | 13 +++++ .../service/ExamineRankingService.java | 14 +++++ .../impl/ExamineRankingServiceImpl.java | 22 ++++++++ .../web/ExamineRankingAction.java | 51 +++++++++++++++++++ 5 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 src/com/api/forstarsecond/web/ExamineRankingAction.java create mode 100644 src/com/engine/forstarsecond/service/ExamineRankingService.java create mode 100644 src/com/engine/forstarsecond/service/impl/ExamineRankingServiceImpl.java create mode 100644 src/com/engine/forstarsecond/web/ExamineRankingAction.java diff --git a/.idea/artifacts/weaver_develop_jar.xml b/.idea/artifacts/weaver_develop_jar.xml index 6258dfe..2aff103 100644 --- a/.idea/artifacts/weaver_develop_jar.xml +++ b/.idea/artifacts/weaver_develop_jar.xml @@ -1,6 +1,6 @@ - $PROJECT_DIR$/out/artifacts/weaver_develop_jar + $PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib diff --git a/src/com/api/forstarsecond/web/ExamineRankingAction.java b/src/com/api/forstarsecond/web/ExamineRankingAction.java new file mode 100644 index 0000000..4214b3a --- /dev/null +++ b/src/com/api/forstarsecond/web/ExamineRankingAction.java @@ -0,0 +1,13 @@ +package com.api.forstarsecond.web; + +import javax.ws.rs.Path; + +/** + * @Author liang.cheng + * @Date 2025/4/27 10:03 + * @Description: + * @Version 1.0 + */ +@Path("/for/cube") +public class ExamineRankingAction extends com.engine.forstarsecond.web.ExamineRankingAction { +} diff --git a/src/com/engine/forstarsecond/service/ExamineRankingService.java b/src/com/engine/forstarsecond/service/ExamineRankingService.java new file mode 100644 index 0000000..ec23ce2 --- /dev/null +++ b/src/com/engine/forstarsecond/service/ExamineRankingService.java @@ -0,0 +1,14 @@ +package com.engine.forstarsecond.service; + +import java.util.Map; + +/** + * @Author liang.cheng + * @Date 2025/4/27 10:04 + * @Description: TODO + * @Version 1.0 + */ +public interface ExamineRankingService { + + Map examineRanking(Map params); +} diff --git a/src/com/engine/forstarsecond/service/impl/ExamineRankingServiceImpl.java b/src/com/engine/forstarsecond/service/impl/ExamineRankingServiceImpl.java new file mode 100644 index 0000000..e7ecd37 --- /dev/null +++ b/src/com/engine/forstarsecond/service/impl/ExamineRankingServiceImpl.java @@ -0,0 +1,22 @@ +package com.engine.forstarsecond.service.impl; + +import com.engine.core.impl.Service; +import com.engine.forstarsecond.service.ExamineRankingService; + +import java.util.Map; + +/** + * @Author liang.cheng + * @Date 2025/4/27 10:04 + * @Description: TODO + * @Version 1.0 + */ +public class ExamineRankingServiceImpl extends Service implements ExamineRankingService { + + @Override + public Map examineRanking(Map params) { + + + return null; + } +} diff --git a/src/com/engine/forstarsecond/web/ExamineRankingAction.java b/src/com/engine/forstarsecond/web/ExamineRankingAction.java new file mode 100644 index 0000000..2f1e271 --- /dev/null +++ b/src/com/engine/forstarsecond/web/ExamineRankingAction.java @@ -0,0 +1,51 @@ +package com.engine.forstarsecond.web; + +import com.alibaba.fastjson.JSONObject; +import com.alibaba.fastjson.serializer.SerializerFeature; +import com.engine.common.util.ParamUtil; +import com.engine.common.util.ServiceUtil; +import com.engine.forstarsecond.service.ExamineRankingService; +import com.engine.forstarsecond.service.impl.ExamineRankingServiceImpl; +import weaver.hrm.HrmUserVarify; +import weaver.hrm.User; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import javax.ws.rs.GET; +import javax.ws.rs.Path; +import javax.ws.rs.Produces; +import javax.ws.rs.core.Context; +import javax.ws.rs.core.MediaType; +import java.util.HashMap; +import java.util.Map; + +/** + * @Author liang.cheng + * @Date 2025/4/27 10:04 + * @Description: TODO + * @Version 1.0 + */ +public class ExamineRankingAction { + + private ExamineRankingService getService(User user) { + return ServiceUtil.getService(ExamineRankingServiceImpl.class, user); + } + + @GET + @Path("/workflowDetail") + @Produces(MediaType.TEXT_PLAIN) + public String examineRanking(@Context HttpServletRequest request, @Context HttpServletResponse response) { + Map data = new HashMap<>(8); + try { + User user = HrmUserVarify.getUser(request, response); + data.put("datas", getService(user).examineRanking(ParamUtil.request2Map(request))); + data.put("code", 200); + } catch (Exception e) { + data.put("code", 500); + data.put("msg", "catch exception : " + e.getMessage()); + } + return JSONObject.toJSONString(data, SerializerFeature.DisableCircularReferenceDetect); + } +} + +