|
@@ -344,24 +344,24 @@ public class CustomerManagementService implements BaseService<CustomerManagement
|
|
|
|
|
|
int result = updateByPrimaryKeySelective(model);
|
|
|
|
|
|
- try {
|
|
|
-
|
|
|
- // 修改客户数据
|
|
|
- JSONObject json = new JSONObject();
|
|
|
- json.put("ncid", oldCustomer.getBuyerIdentityCard());// 客户统一信用代码,必选
|
|
|
- json.put("name", builder.toString());
|
|
|
- json.put("pk_custclass", "02"); //客户基本分类 ,,(默认是02),必选,01内部客户,02外部客户
|
|
|
- json.put("custprop", "0");//财务组织客户类型,必选,默认0
|
|
|
- json.put("taxpayerid", identityCardBuilder.toString()); //统一社会信用代码,必选
|
|
|
- log.info("推送客户修改详情:{}", json.toJSONString());
|
|
|
- String resultJson = InvoiceUtil.customerUpdate(json);
|
|
|
- JSONObject jsonObject = JSONObject.parseObject(resultJson);
|
|
|
- String success = jsonObject.getString("success");
|
|
|
- if (success.equals("true")) {
|
|
|
- }
|
|
|
- }catch (Exception e){
|
|
|
- log.error("修改客户失败",e);
|
|
|
- }
|
|
|
+// try {
|
|
|
+//
|
|
|
+// // 修改客户数据
|
|
|
+// JSONObject json = new JSONObject();
|
|
|
+// json.put("ncid", oldCustomer.getBuyerIdentityCard());// 客户统一信用代码,必选
|
|
|
+// json.put("name", builder.toString());
|
|
|
+// json.put("pk_custclass", "02"); //客户基本分类 ,,(默认是02),必选,01内部客户,02外部客户
|
|
|
+// json.put("custprop", "0");//财务组织客户类型,必选,默认0
|
|
|
+// json.put("taxpayerid", identityCardBuilder.toString()); //统一社会信用代码,必选
|
|
|
+// log.info("推送客户修改详情:{}", json.toJSONString());
|
|
|
+// String resultJson = InvoiceUtil.customerUpdate(json);
|
|
|
+// JSONObject jsonObject = JSONObject.parseObject(resultJson);
|
|
|
+// String success = jsonObject.getString("success");
|
|
|
+// if (success.equals("true")) {
|
|
|
+// }
|
|
|
+// }catch (Exception e){
|
|
|
+// log.error("修改客户失败",e);
|
|
|
+// }
|
|
|
|
|
|
return result;
|
|
|
|