|
@@ -123,6 +123,9 @@ public class BizEntrustPriceController extends BaseController {
|
|
|
} else if (list.size() == 1) {
|
|
|
//如果存在一条数据且id一致
|
|
|
if (list.get(0).getId().equals(bizEntrustPrice.getId())) {
|
|
|
+ if (bizEntrustPrice.getIsZero() == 1) {
|
|
|
+ bizEntrustPrice.setAnnualIncome(null);
|
|
|
+ }
|
|
|
return toAjax(bizEntrustPriceService.updateById(bizEntrustPrice));
|
|
|
} else {
|
|
|
return AjaxResult.error("该价目已存在");
|