123
This commit is contained in:
parent
7bf5215b90
commit
e4f78a7f66
|
@ -237,6 +237,11 @@ public class CustomerController extends BaseController
|
||||||
@PostMapping("/commitSAPCustomer")
|
@PostMapping("/commitSAPCustomer")
|
||||||
public AjaxResult commitSAPCustomer(@RequestBody Customer customer)
|
public AjaxResult commitSAPCustomer(@RequestBody Customer customer)
|
||||||
{
|
{
|
||||||
|
//校验客户名-税号 SAP是否存在
|
||||||
|
Boolean isExist = SapHanaUtils.isExist(customer.getCusName(),customer.getCusVatNo());
|
||||||
|
if(isExist){
|
||||||
|
return error("已存在该客户,请勿重复提交");
|
||||||
|
}
|
||||||
|
|
||||||
if(StringUtils.isNotEmpty(customer.getCusId())){// 数据组 提交业务员创建的客户数据提交SAP
|
if(StringUtils.isNotEmpty(customer.getCusId())){// 数据组 提交业务员创建的客户数据提交SAP
|
||||||
customer.setUpdateBy(getUsername());
|
customer.setUpdateBy(getUsername());
|
||||||
|
|
Loading…
Reference in New Issue