generated from dxfeng/secondev-wugang-dxfeng
驾驶舱-人工成本接口
This commit is contained in:
parent
eb5c93cb81
commit
6d7a9177f1
|
|
@ -31,7 +31,7 @@ public class LeaderCockpitController {
|
|||
}
|
||||
|
||||
@PostMapping("/getLaborCost")
|
||||
private WeaResult<List<PortalPO>> getLaborCost(@RequestBody Map<String, String> params) {
|
||||
private WeaResult<Map<String, Object>> getLaborCost(@RequestBody Map<String, String> params) {
|
||||
return leaderCockpitService.getLaborCost(params);
|
||||
}
|
||||
|
||||
|
|
@ -46,8 +46,8 @@ public class LeaderCockpitController {
|
|||
}
|
||||
|
||||
@PostMapping("/getFullStaffingRate")
|
||||
private WeaResult<List<PortalPO>> getFullStaffingRate(@RequestHeader Map<String, String> header,@RequestBody Map<String, String> params) {
|
||||
return leaderCockpitService.getFullStaffingRate(header,params);
|
||||
private WeaResult<List<PortalPO>> getFullStaffingRate(@RequestHeader Map<String, String> header, @RequestBody Map<String, String> params) {
|
||||
return leaderCockpitService.getFullStaffingRate(header, params);
|
||||
}
|
||||
|
||||
@PostMapping("/getEmploymentStatus")
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import org.apache.ibatis.annotations.Param;
|
|||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
/**
|
||||
|
|
@ -112,4 +113,9 @@ public interface LeaderCockpitMapper {
|
|||
*/
|
||||
Set<Long> getTopDepartmentIds(@Param("param") SearchConditionParam param);
|
||||
|
||||
/**
|
||||
* 人力成本
|
||||
*/
|
||||
Map<String,Object> getLaborCost(SearchConditionParam param);
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ public interface LeaderCockpitService {
|
|||
* @param params
|
||||
* @return
|
||||
*/
|
||||
WeaResult<List<PortalPO>> getLaborCost(Map<String, String> params);
|
||||
WeaResult<Map<String, Object>> getLaborCost(Map<String, String> params);
|
||||
|
||||
/**
|
||||
* 获取离职率
|
||||
|
|
|
|||
|
|
@ -57,8 +57,13 @@ public class LeaderCockpitServiceImpl implements LeaderCockpitService {
|
|||
}
|
||||
|
||||
@Override
|
||||
public WeaResult<List<PortalPO>> getLaborCost(Map<String, String> params) {
|
||||
return null;
|
||||
public WeaResult<Map<String, Object> > getLaborCost(Map<String, String> params) {
|
||||
SearchConditionParam searchConditionParam = new SearchConditionParam();
|
||||
initSearchConditionParam(searchConditionParam, params, null);
|
||||
log.error("searchConditionParam===" + JSON.toJSONString(searchConditionParam));
|
||||
|
||||
Map<String, Object> laborCost = leaderCockpitMapper.getLaborCost(searchConditionParam);
|
||||
return WeaResult.success(laborCost);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
|
|
@ -146,4 +146,10 @@
|
|||
and t1.status = 1
|
||||
and t1.tenant_key = #{param.tenantKey}
|
||||
</select>
|
||||
|
||||
<select id="getLaborCost" resultType="java.util.Map">
|
||||
select t.yscb,t.sjcb from ${e10_common}.uf_rlcb t
|
||||
where t.delete_type = 0 and t.tenant_key = #{tenantKey}
|
||||
and t.ny = DATE_FORMAT(#{endDate}, '%Y-%m')
|
||||
</select>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue