Commit c5bd567f authored by hongguangwu's avatar hongguangwu

projectStatus

parent bdf116c8
......@@ -63,10 +63,13 @@ public class TEmployeeProjectController {
* @Date: 2022/6/21 19:19
* @return: com.yifu.cloud.plus.v1.yifu.common.core.util.R<java.util.List < com.yifu.cloud.plus.v1.yifu.archives.entity.TEmployeeProject>>
**/
@Operation(summary = "根据人员档案id获取项目list", description = "根据人员档案id获取项目list")
@Operation(summary = "根据人员档案id获取项目list,projectStatus:1或不传,则查全部;0,查在项。", description = "根据人员档案id获取项目list")
@GetMapping("/getListByEmpId" )
public R<List<TEmployeeProject>> getListByEmpId(@RequestParam String empId) {
return R.ok(tEmployeeProjectService.getListByEmpId(empId, CommonConstants.ONE_INT));
public R<List<TEmployeeProject>> getListByEmpId(@RequestParam String empId, Integer projectStatus) {
if (projectStatus == null) {
projectStatus = CommonConstants.ONE_INT;
}
return R.ok(tEmployeeProjectService.getListByEmpId(empId, projectStatus));
}
/**
......
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