|
|
@ -15,6 +15,8 @@ import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
import javax.validation.Valid; |
|
|
|
|
|
|
|
import static com.yxt.common.core.result.ResultBean.fireFail; |
|
|
|
|
|
|
|
/** |
|
|
|
* @description: |
|
|
|
* @author: dimengzhe |
|
|
@ -27,7 +29,7 @@ public class HrHireApplyRest { |
|
|
|
@Autowired |
|
|
|
private HrHireApplyService hrHireApplyService; |
|
|
|
|
|
|
|
@ApiOperation("新增初始化") |
|
|
|
/* @ApiOperation("新增初始化") |
|
|
|
@GetMapping("/getInit") |
|
|
|
ResultBean<HrHireApplyVo> getSaveInit(@RequestParam("userSid") String userSid, @RequestParam("orgPath") String orgPath) { |
|
|
|
return hrHireApplyService.getSaveInit(userSid, orgPath); |
|
|
@ -37,6 +39,25 @@ public class HrHireApplyRest { |
|
|
|
@GetMapping("/getInit/{sid}") |
|
|
|
ResultBean<HrHireApplyVo> getUpdateInit(@PathVariable("sid") String sid) { |
|
|
|
return hrHireApplyService.getUpdateInit(sid); |
|
|
|
}*/ |
|
|
|
|
|
|
|
@ApiOperation("初始化(新增或修改)") |
|
|
|
@GetMapping({"/getInit", "/getInit/{sid}"}) |
|
|
|
public ResultBean<HrHireApplyVo> getInit( |
|
|
|
@PathVariable(value = "sid", required = false) String sid, |
|
|
|
@RequestParam(value = "userSid", required = false) String userSid, |
|
|
|
@RequestParam(value = "orgPath", required = false) String orgPath) { |
|
|
|
ResultBean<HrHireApplyVo> rb = ResultBean.fireFail(); |
|
|
|
if (sid == null || sid.isEmpty()) { |
|
|
|
// 执行新增初始化
|
|
|
|
if (userSid == null || orgPath == null) { |
|
|
|
return rb.setMsg("userSid和orgPath不能为空"); |
|
|
|
} |
|
|
|
return hrHireApplyService.getSaveInit(userSid, orgPath); |
|
|
|
} else { |
|
|
|
// 执行修改初始化
|
|
|
|
return hrHireApplyService.getUpdateInit(sid); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation("新增或修改") |
|
|
|