Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
|
5cc09af89b | 5 days ago |
|
06fb749a7c | 3 months ago |
|
91ebd93f5a | 3 months ago |
|
9db67591a0 | 3 months ago |
|
5ee756a4a1 | 3 months ago |
|
ce9a9954a4 | 3 months ago |
|
ec8421a610 | 3 months ago |
@ -1,15 +1,11 @@
|
||||
/weaver-develop.iml
|
||||
/out/
|
||||
.idea/
|
||||
|
||||
HELP.md
|
||||
target/
|
||||
|
||||
.idea
|
||||
|
||||
/target/
|
||||
/test
|
||||
/src/rebel.xml
|
||||
/src/META-INF
|
||||
/WEB-INF/config
|
||||
|
||||
/log
|
||||
/log
|
||||
/src/META-INF/
|
||||
/src/test/
|
@ -1,8 +0,0 @@
|
||||
<component name="ArtifactManager">
|
||||
<artifact type="jar" name="weaver-develop:jar">
|
||||
<output-path>$PROJECT_DIR$/out/artifacts/weaver_develop_jar</output-path>
|
||||
<root id="archive" name="weaver-develop.jar">
|
||||
<element id="module-output" name="weaver-develop" />
|
||||
</root>
|
||||
</artifact>
|
||||
</component>
|
@ -1,8 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CompilerConfiguration">
|
||||
<annotationProcessing>
|
||||
<profile default="true" name="Default" enabled="true" />
|
||||
</annotationProcessing>
|
||||
</component>
|
||||
</project>
|
@ -1,9 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="classbean">
|
||||
<CLASSES>
|
||||
<root url="file://$PROJECT_DIR$/../../../../weaver/ecology/classbean" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES />
|
||||
</library>
|
||||
</component>
|
@ -1,13 +0,0 @@
|
||||
<component name="libraryTable">
|
||||
<library name="lib">
|
||||
<CLASSES>
|
||||
<root url="file://$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib" />
|
||||
</CLASSES>
|
||||
<JAVADOC />
|
||||
<SOURCES>
|
||||
<root url="file://$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib" />
|
||||
</SOURCES>
|
||||
<jarDirectory url="file://$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib" recursive="false" />
|
||||
<jarDirectory url="file://$PROJECT_DIR$/../../../../weaver/ecology/WEB-INF/lib" recursive="false" type="SOURCES" />
|
||||
</library>
|
||||
</component>
|
@ -1,3 +0,0 @@
|
||||
Manifest-Version: 1.0
|
||||
Main-Class: test.MainTest
|
||||
|
@ -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("/forstar/second/cube")
|
||||
public class ExamineRankingAction extends com.engine.forstarsecond.web.ExamineRankingAction {
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.engine.forstarsecond.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2025/4/29 10:05
|
||||
* @Description: TODO
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class ExamineRanking {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private double df;
|
||||
|
||||
private Integer ssks;
|
||||
|
||||
private Integer bmmc;
|
||||
|
||||
private String bmpm;
|
||||
|
||||
private String kspm;
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.engine.forstarsecond.entity;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2025/5/8 09:29
|
||||
* @Description: TODO
|
||||
* @Version 1.0
|
||||
*/
|
||||
|
||||
@Data
|
||||
@Builder
|
||||
@AllArgsConstructor
|
||||
@NoArgsConstructor
|
||||
public class FamilyWorkUnit {
|
||||
|
||||
private String id;
|
||||
|
||||
private String unit;
|
||||
}
|
@ -0,0 +1,71 @@
|
||||
package com.engine.forstarsecond.service;
|
||||
|
||||
import com.engine.forstarsecond.entity.ExamineRanking;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @Author liang.cheng
|
||||
* @Date 2025/4/27 10:04
|
||||
* @Description: TODO
|
||||
* @Version 1.0
|
||||
*/
|
||||
public interface ExamineRankingService {
|
||||
|
||||
/**
|
||||
* @Description: 计算排名
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/4/29 09:54
|
||||
* @param: [params]
|
||||
* @return: java.util.Map<java.lang.String,java.lang.Object>
|
||||
*/
|
||||
int examineRanking(Map<String, Object> params);
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 员工月/季绩效评价
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/4/29 09:58
|
||||
* @param: [khqj]
|
||||
* @return: List<ExamineRanking>
|
||||
*/
|
||||
List<ExamineRanking> calculateWorkers(String khqj,String yglb);
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 年度综合评价
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/4/29 09:58
|
||||
* @param: [khqj]
|
||||
* @return: List<ExamineRanking>
|
||||
*/
|
||||
List<ExamineRanking> calculateWorkersByYear(String khqj,String yglb);
|
||||
|
||||
/**
|
||||
* @Description: 获取人员图像
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/4/30 14:35
|
||||
* @param: [resourceId]
|
||||
* @return: java.lang.String
|
||||
*/
|
||||
Map<String,Object> resourceImage(String billid);
|
||||
|
||||
/**
|
||||
* @Description: 获取普实供应商列表
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/5/7 15:47
|
||||
* @param: [billid]
|
||||
* @return: java.util.List<java.lang.String>
|
||||
*/
|
||||
List<String> workUnits();
|
||||
|
||||
/**
|
||||
* @Description: 家庭成员工作单位
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/5/7 16:03
|
||||
* @param: [params]
|
||||
* @return: java.util.List<java.lang.String>
|
||||
*/
|
||||
Map<String,List<String>> familyWorkUnit(Map<String, Object> params);
|
||||
}
|
@ -0,0 +1,101 @@
|
||||
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.*;
|
||||
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);
|
||||
}
|
||||
|
||||
@POST
|
||||
@Path("/examineRanking")
|
||||
@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("size", 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);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/resourceImage")
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public String resourceImage(@Context HttpServletRequest request, @Context HttpServletResponse response, @QueryParam("billid") String billid) {
|
||||
Map<String, Object> data = new HashMap<>(8);
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
data.putAll(getService(user).resourceImage(billid));
|
||||
data.put("code", 200);
|
||||
} catch (Exception e) {
|
||||
data.put("code", 500);
|
||||
data.put("msg", "catch exception : " + e.getMessage());
|
||||
}
|
||||
return JSONObject.toJSONString(data, SerializerFeature.DisableCircularReferenceDetect);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/workUnits")
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public String workUnits(@Context HttpServletRequest request, @Context HttpServletResponse response) {
|
||||
Map<String, Object> data = new HashMap<>(8);
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
data.put("units",getService(user).workUnits());
|
||||
data.put("code", 200);
|
||||
} catch (Exception e) {
|
||||
data.put("code", 500);
|
||||
data.put("msg", "catch exception : " + e.getMessage());
|
||||
}
|
||||
return JSONObject.toJSONString(data, SerializerFeature.DisableCircularReferenceDetect);
|
||||
}
|
||||
|
||||
@GET
|
||||
@Path("/familyWorkUnit")
|
||||
@Produces(MediaType.TEXT_PLAIN)
|
||||
public String familyWorkUnit(@Context HttpServletRequest request, @Context HttpServletResponse response) {
|
||||
Map<String, Object> data = new HashMap<>(8);
|
||||
try {
|
||||
User user = HrmUserVarify.getUser(request, response);
|
||||
data.put("unitList", getService(user).familyWorkUnit(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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
@ -1,14 +0,0 @@
|
||||
package test;
|
||||
|
||||
/**
|
||||
* @Author weaver_cl
|
||||
* @Description:
|
||||
* @Date 2022/10/9
|
||||
* @Version V1.0
|
||||
**/
|
||||
public class MainTest {
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue