Compare commits
No commits in common. '中航富士达人力项目' and 'master' have entirely different histories.
@ -1,13 +0,0 @@
|
|||||||
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 {
|
|
||||||
}
|
|
@ -1,32 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
@ -1,24 +0,0 @@
|
|||||||
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;
|
|
||||||
}
|
|
@ -1,71 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
@ -1,101 +0,0 @@
|
|||||||
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);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue