新增factoryId字段,支持在创建薪资申请时关联工厂信息
This commit is contained in:
parent
d84effdc62
commit
21d5133171
@ -42,6 +42,10 @@ public class BpmOASalaryController {
|
||||
@Operation(summary = "创建请求申请")
|
||||
public CommonResult<Long> createSalary(@Valid @RequestBody BpmOASalaryCreateReqVO createReqVO) {
|
||||
|
||||
if (createReqVO.getFactoryId() != null) {
|
||||
DeptRespDTO dto = deptApi.getDeptByFactoryId(createReqVO.getFactoryId()).getCheckedData();
|
||||
createReqVO.setCompanyDeptId(dto.getId());
|
||||
}
|
||||
return success(salaryService.createSalary(getLoginUserId(), createReqVO));
|
||||
}
|
||||
|
||||
|
@ -29,10 +29,12 @@ public class BpmOASalaryCreateReqVO {
|
||||
@NotNull(message = "申请原因不能为空")
|
||||
private String reason;
|
||||
|
||||
@Schema(description = "付款公司", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
|
||||
@NotNull(message = "付款公司不能为空")
|
||||
@Schema(description = "付款公司")
|
||||
private Long companyDeptId;
|
||||
|
||||
@Schema(description = "付款工厂编号")
|
||||
private Long factoryId;
|
||||
|
||||
@Schema(description = "付款总额", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotNull(message = "付款总额不能为空")
|
||||
private BigDecimal paymentTotal;
|
||||
|
Loading…
Reference in New Issue
Block a user