From a3c0acfadb2a1fc81e163202fb95aadd6bf82461 Mon Sep 17 00:00:00 2001 From: sk1551 <15175617877@163.com> Date: Mon, 22 Mar 2021 15:43:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E5=85=B3=E7=B3=BB=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E6=B8=85=E7=A9=BA=E5=A4=87=E6=B3=A8/=E8=BD=AC?= =?UTF-8?q?=E6=8D=A2=E5=85=B3=E7=B3=BB/=E6=B6=88=E8=B4=B9=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../project/benyi/controller/ByCustomerController.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByCustomerController.java b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByCustomerController.java index 5388722d5..4947c66b3 100644 --- a/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByCustomerController.java +++ b/ruoyi/src/main/java/com/ruoyi/project/benyi/controller/ByCustomerController.java @@ -112,6 +112,15 @@ public class ByCustomerController extends BaseController { @Log(title = "本一-客户关系管理", businessType = BusinessType.UPDATE) @PutMapping public AjaxResult edit(@RequestBody ByCustomer byCustomer) { + if (byCustomer.getZhgj().equals("") || byCustomer.getZhgj().equals(null)) { + byCustomer.setZhgj("无"); + } + if (byCustomer.getBz().equals("") || byCustomer.getBz().equals(null)) { + byCustomer.setBz("无"); + } + if (byCustomer.getXfxm().equals("") || byCustomer.getXfxm().equals(null)) { + byCustomer.setXfxm("无"); + } return toAjax(byCustomerService.updateByCustomer(byCustomer)); }