客户关系无法清空备注/转换关系/消费项目

This commit is contained in:
sk1551 2021-03-22 15:43:53 +08:00
parent 06397d7456
commit a3c0acfadb

View File

@ -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));
}