五院需求
This commit is contained in:
parent
46f1c9fde1
commit
ec8421a610
|
|
@ -1,6 +1,6 @@
|
|||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="weaver-develop:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/weaver_develop_jar</output-path>
|
||||
<output-path>$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib</output-path>
|
||||
<root id="archive" name="weaver-develop.jar">
|
||||
<element id="module-output" name="weaver-develop" />
|
||||
</root>
|
||||
|
|
|
|||
|
|
@ -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 {
|
||||
}
|
||||
|
|
@ -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<String, Object> examineRanking(Map<String, Object> params);
|
||||
}
|
||||
|
|
@ -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<String, Object> examineRanking(Map<String, Object> params) {
|
||||
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
@ -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<String, Object> 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue