Commit 53594d82 authored by 韩桐桐's avatar 韩桐桐

需求:3309

parent 0a0688a2
package com.yeejoin.amos.boot.module.tcm.api.service;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.amos.boot.biz.common.bo.ReginParams;
......@@ -40,6 +41,10 @@ public interface ITzsUserInfoService extends IService<TzsUserInfo> {
Boolean personnelTransferOut(String userSeqNbrs);
JSONObject statisticsOfPersonnelTypes(String type);
JSONObject statisticsOfPersonnelTypesByPatentCode(String parentId);
Map<String,Integer> getArrangementStatistic(String companyCode);
Map<String,Object> getCompanyType();
......
......@@ -377,8 +377,22 @@ public class TzsUserInfoController extends BaseController {
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/statisticsOfPersonnelTypes")
@ApiOperation(httpMethod = "GET", value = "人员类型统计", notes = "人员类型统计")
public ResponseModel<JSONObject> statisticsOfPersonnelTypes(@RequestParam(value = "type") String type) {
return ResponseHelper.buildResponse(tzsUserInfoService.statisticsOfPersonnelTypes(type));
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/statisticsOfPersonnelTypesByPatentCode")
@ApiOperation(httpMethod = "GET", value = "人员类型统计", notes = "人员类型统计")
public ResponseModel<JSONObject> statisticsOfPersonnelTypesByPatentCode(@RequestParam(value = "parentId") String parentId) {
return ResponseHelper.buildResponse(tzsUserInfoService.statisticsOfPersonnelTypesByPatentCode(parentId));
}
@TycloudOperation(ApiLevel = UserType.AGENCY)
@GetMapping(value = "/historicalOperatorHandling")
@ApiOperation(httpMethod = "GET", value = "需求3309 人员管理调整后:历史的维保人员(作业人员含电梯维修资质的刷入子类型:持证人员)", notes = "需求3309 人员管理调整后:历史的维保人员(作业人员含电梯维修资质的刷入子类型:持证人员)")
@ApiOperation(httpMethod = "GET", value = "【调用一次即可】需求3309 人员管理调整后:历史的维保人员(作业人员含电梯维修资质的刷入子类型:持证人员)", notes = "【调用一次即可】需求3309 人员管理调整后:历史的维保人员(作业人员含电梯维修资质的刷入子类型:持证人员)")
public ResponseModel<Object> historicalOperatorHandling() {
// userinfo表中旧的post字段保存了旧字典值6618(维保人员)
List<Long> sesqNbrs = tzsUserInfoService.getBaseMapper()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment