中航富士达人事需求
This commit is contained in:
parent
5ee756a4a1
commit
9db67591a0
|
|
@ -42,4 +42,12 @@ public interface ExamineRankingService {
|
|||
*/
|
||||
List<ExamineRanking> calculateWorkersByYear(String khqj,String yglb);
|
||||
|
||||
/**
|
||||
* @Description: 获取人员图像
|
||||
* @Author: liang.cheng
|
||||
* @Date: 2025/4/30 14:35
|
||||
* @param: [resourceId]
|
||||
* @return: java.lang.String
|
||||
*/
|
||||
String resourceImage(String billid);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,8 +3,10 @@ package com.engine.forstarsecond.service.impl;
|
|||
import com.engine.core.impl.Service;
|
||||
import com.engine.forstarsecond.entity.ExamineRanking;
|
||||
import com.engine.forstarsecond.service.ExamineRankingService;
|
||||
import lombok.SneakyThrows;
|
||||
import weaver.conn.RecordSet;
|
||||
import weaver.general.Util;
|
||||
import weaver.hrm.resource.ResourceComInfo;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
|
@ -85,6 +87,16 @@ public class ExamineRankingServiceImpl extends Service implements ExamineRanking
|
|||
return examineRankings;
|
||||
}
|
||||
|
||||
@SneakyThrows
|
||||
@Override
|
||||
public String resourceImage(String billid) {
|
||||
RecordSet rs = new RecordSet();
|
||||
rs.executeQuery("select ryid from uf_hr_employee where id = ?",billid);
|
||||
rs.next();
|
||||
String ryid = Util.null2String(rs.getString("ryid"));
|
||||
return new ResourceComInfo().getMessagerUrls(ryid);
|
||||
}
|
||||
|
||||
/**
|
||||
* 通用排名计算方法
|
||||
* @param dataList
|
||||
|
|
|
|||
|
|
@ -11,9 +11,7 @@ import weaver.hrm.User;
|
|||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import javax.ws.rs.POST;
|
||||
import javax.ws.rs.Path;
|
||||
import javax.ws.rs.Produces;
|
||||
import javax.ws.rs.*;
|
||||
import javax.ws.rs.core.Context;
|
||||
import javax.ws.rs.core.MediaType;
|
||||
import java.util.HashMap;
|
||||
|
|
@ -46,6 +44,25 @@ public class ExamineRankingAction {
|
|||
}
|
||||
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.put("url", 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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue