chenlu
12 小时以前 6db03250bcbf51193b8dd71a698ea2b202c6d6ad
north-glass-erp/src/main/java/com/example/erp/service/sd/CustomerService.java
@@ -55,6 +55,10 @@
        try {
            Customer customer = JSONObject.parseObject(JSONObject.toJSONString(object.get("customer")), Customer.class);
           if(customer!=null){
               Integer count = customerMapper.countByCustomerName(customer);
               if (count > 0) {
                   saveState = false;
               }else {
               if (customer.getId()!=null && customer.getId()!=0){
                   customerMapper.updateCustomer(customer);
                   log.setFunction("insertCustomer修改");
@@ -64,6 +68,7 @@
               }
               logService.saveLog(log);
           }
           }
        } catch (Exception e) {
            TransactionAspectSupport.currentTransactionStatus().rollbackToSavepoint(savePoint);
            //将异常传入数据库