|
|
@@ -36,6 +36,35 @@ public class STKServiceImpl implements STKService {
|
|
|
@Autowired
|
|
|
private RequestSTKService requestSTKService;
|
|
|
|
|
|
+ @Override
|
|
|
+ public Result getJobList(ProductPageDTO productPageDTO) {
|
|
|
+ int pageNum = 1;
|
|
|
+ int pageSize = 20;
|
|
|
+ if (productPageDTO !=null){
|
|
|
+ pageNum = Integer.valueOf(productPageDTO.getPageNum());
|
|
|
+ pageSize = Integer.valueOf(productPageDTO.getPageSize());
|
|
|
+ }else{
|
|
|
+ return Result.error("参数错误!");
|
|
|
+ }
|
|
|
+ int start = ((pageNum - 1) * pageSize + 1);
|
|
|
+ int end = pageNum * pageSize;
|
|
|
+
|
|
|
+ List<JobDTO> jobDTOS = baseDao.query("select * from (select rownum rn,AA.* from (select jo_id,jo_code,jo_name,jo_headmancode,jo_headmanname,jo_orgid,jo_orgcode,jo_orgname,jo_subof,jo_pcode,jo_parentname,jo_level,jo_status,jo_statuscode,isagent from job order by jo_id desc) AA ) where rn>="+start+" and rn<="+end , JobDTO.class);
|
|
|
+
|
|
|
+ if (jobDTOS.size() == 0 ){
|
|
|
+ return Result.error("岗位资料无数据!");
|
|
|
+ }
|
|
|
+ int count = baseDao.getCount("select count(1) from job");
|
|
|
+
|
|
|
+ List<JobResp> JobResps = JobConvertor.toJobRespListByJobDTOS(jobDTOS);
|
|
|
+ Map<String,Object> map = new HashMap<>();
|
|
|
+ map.put("pageNum", pageNum);
|
|
|
+ map.put("pageSize", pageSize);
|
|
|
+ map.put("size", count);
|
|
|
+ map.put("list", JobResps);
|
|
|
+ return Result.success(map);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public Result getDepartmentList(ProductPageDTO productPageDTO) {
|
|
|
int pageNum = 1;
|