fix 工作组成员-添加 时 预估到账日期不能为空 判断错误
This commit is contained in:
-9
@@ -408,9 +408,6 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
public Result<?> add(@RequestBody PayWorkingGroupSubItem payWorkingGroupSubItem) {
|
||||
// 找到工作组 看是否收费,如果不收费则填入默认字段
|
||||
payWorkingGroupService.validAndSetDefaultValue(payWorkingGroupSubItem);
|
||||
if (Objects.isNull(payWorkingGroupSubItem.getEstimatedArrivalDate())) {
|
||||
return Result.error("预估到账日期不能为空");
|
||||
}
|
||||
StringBuilder msg = ValidUtil.validateAll(payWorkingGroupSubItem);
|
||||
if (!StringUtils.isBlank(msg)) {
|
||||
return Result.error(msg.toString());
|
||||
@@ -475,9 +472,6 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
@ApiOperation(value = "工作组成员-编辑", notes = "工作组成员-编辑")
|
||||
@PostMapping(value = "/edit")
|
||||
public Result<?> edit(@RequestBody PayWorkingGroupSubItem payWorkingGroupSubItem) {
|
||||
if (Objects.isNull(payWorkingGroupSubItem.getEstimatedArrivalDate())) {
|
||||
return Result.error("预估到账日期不能为空");
|
||||
}
|
||||
StringBuilder msg = ValidUtil.validateAll(payWorkingGroupSubItem);
|
||||
if (!StringUtils.isBlank(msg)) {
|
||||
return Result.error(msg.toString());
|
||||
@@ -496,9 +490,6 @@ public class PayWorkingGroupSubItemController extends JeroController<PayWorkingG
|
||||
@ApiOperation(value = "企业端-工作组成员-修改", notes = "企业端-工作组成员-修改")
|
||||
@PostMapping(value = "/editCompany")
|
||||
public Result<?> editCompany(@RequestBody PayWorkingGroupSubItem payWorkingGroupSubItem) {
|
||||
if (Objects.isNull(payWorkingGroupSubItem.getEstimatedArrivalDate())) {
|
||||
return Result.error("预估到账日期不能为空");
|
||||
}
|
||||
StringBuilder msg = ValidUtil.validateAll(payWorkingGroupSubItem);
|
||||
if (!StringUtils.isBlank(msg)) {
|
||||
return Result.error(msg.toString());
|
||||
|
||||
Reference in New Issue
Block a user