Commit 2dbfb7d7 authored by 全洪江's avatar 全洪江

重构客户模块

parent 827d32b7
......@@ -35,10 +35,10 @@
<li id="customerBaseInfo" divid="customerBaseInfoDiv">客户基本信息</li>
<li id="customerDebtContact" divid="customerDebtContactDiv">催货款通知邮箱</li>
<li id="customerOtherInfo" divid="customerOtherInfoDiv">其他信息</li>
<li id="customerBrand" divid="customerBrandDiv">品牌信息字段</li>
<li id="customerBank" divid="customerBankDiv">银行数据表字段</li>
<li id="customerCompany" divid="customerCompanyDiv">公司代码字段</li>
<li id="customerSale" divid="customerSaleDiv">销售组织字段</li>
<li id="customerBrand" divid="customerBrandDiv">品牌信息</li>
<li id="customerBank" divid="customerBankDiv">银行数据表</li>
<li id="customerCompany" divid="customerCompanyDiv">公司代码</li>
<li id="customerSale" divid="customerSaleDiv">销售组织</li>
</ul>
</div>
......@@ -116,17 +116,8 @@
<x:inputC name="customerCollectionDeadline" label="客户收账截止日" required="true" labelCol="1" fieldCol="2"/><%--sap、金库--%>
<x:inputC name="orderAbnormalDeadline" label="订单统计异常期限" required="true" labelCol="1" fieldCol="2"/><%--sap、金库--%>
<x:inputC name="deduction" label="扣款百分比" maxLength="32" labelCol="1" fieldCol="2"/><%--金库--%>
<x:selectC name="quotationCurrency" label="币别" dictionary="currency" labelCol="1" fieldCol="2"/><%--金库、sap销售组织字段--%>
......@@ -137,54 +128,17 @@
<x:inputC name="customerFactoryCode" label="工厂代号" labelCol="1" fieldCol="2" maxLength="50"/><%--sap品牌--%>
<x:inputC name="BANKL" label="开户银行代码" labelCol="1" fieldCol="2"/>
<x:inputC name="customerBankDeposit" label="开户银行" labelCol="1" fieldCol="2"/>
<x:inputC name="customerAccountNo" label="银行账户" labelCol="1" fieldCol="2"/>
<x:inputC name="customerAccountName" label="户名" labelCol="1" fieldCol="2"/>
<x:inputC name="customerCorporation" label="公司法人" labelCol="1" fieldCol="2"/>
<x:inputC name="businessRegistrationNumber" label="工商注册号" labelCol="1" fieldCol="2"/>
<x:inputC name="nationalTaxRegistrationNumber" label="国税注册号" labelCol="1" fieldCol="2"/>
<x:selectC name="orderKind" label="订单性质" dictionary="orderKind" labelCol="1" fieldCol="2"/>
<x:inputC name="customerBrand" label="品牌" labelCol="1" fieldCol="2"/>
<x:inputC name="customerAddress" label="收货地址" labelCol="1" fieldCol="2" required="true"/>
<x:inputC name="remark" label="备注" labelCol="1" fieldCol="2"/>
<%--sap--%>
<%-- <x:inputC name="BUKRS" label="公司代码" labelCol="1" fieldCol="2"/>--%>
......
package com.huigou.topsun.customer.application;
import com.huigou.topsun.customer.domain.*;
import com.huigou.topsun.customer.domain.dto.CustomerDto;
import com.huigou.topsun.customer.domain.query.CustomerQueryRequest;
import com.huigou.topsun.customer.domain.vo.CustomerListVo;
import com.huigou.topsun.customer.domain.vo.CustomerVo;
......@@ -20,7 +21,7 @@ public interface CustomerApplication {
void deleteContactByIds(List<String> ids);
CustomerVo saveCustomer(CustomerVo customerVo, List<CustomerContact> customerContactList, List<CustomerDebtContact> baoshenEmailList, List<CustomerDebtContact> customerEmailList, List<CustomerRelated> customerRelatedList, List<CustomerPayInfo> customerPayInfoList);
CustomerDto saveCustomer(CustomerDto customerDto, List<CustomerContact> customerContactList, List<CustomerDebtContact> baoshenEmailList, List<CustomerDebtContact> customerEmailList, List<CustomerRelated> customerRelatedList, List<CustomerPayInfo> customerPayInfoList);
void deleteCustomerAndAffiliatedInfoByCustomerId(List<String> customerIds);
......
......@@ -6,6 +6,7 @@ import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.data.query.model.QueryModel;
import com.huigou.topsun.customer.application.*;
import com.huigou.topsun.customer.domain.*;
import com.huigou.topsun.customer.domain.dto.CustomerDto;
import com.huigou.topsun.customer.domain.query.CustomerQueryRequest;
import com.huigou.topsun.customer.domain.vo.CustomerContactVo;
import com.huigou.topsun.customer.domain.vo.CustomerListVo;
......@@ -118,10 +119,10 @@ public class CustomerApplicationImpl extends BaseApplication implements Customer
*/
@Override
public CustomerVo saveCustomer(CustomerVo customerVo, List<CustomerContact> customerContactList, List<CustomerDebtContact> baoshenEmailList, List<CustomerDebtContact> customerEmailList, List<CustomerRelated> customerRelatedList, List<CustomerPayInfo> customerPayInfoList) {
Customer customer = getCustomer(customerVo);
CustomerBank customerBank = getCustomerBank(customerVo);
CustomerOrder customerOrder = getCustomerOrder(customerVo);
public CustomerDto saveCustomer(CustomerDto customerDto, List<CustomerContact> customerContactList, List<CustomerDebtContact> baoshenEmailList, List<CustomerDebtContact> customerEmailList, List<CustomerRelated> customerRelatedList, List<CustomerPayInfo> customerPayInfoList) {
Customer customer = getCustomer(customerDto);
CustomerBank customerBank = getCustomerBank(customerDto);
CustomerOrder customerOrder = getCustomerOrder(customerDto);
Customer saveCustomer = customerRepository.saveAndFlush(customer);
String customerId = saveCustomer.getCustomerId();
customerBank.setCustomerId(customerId);
......@@ -154,11 +155,11 @@ public class CustomerApplicationImpl extends BaseApplication implements Customer
customerPayInfo.setCustomerId(customerId);
customerPayInfoRepository.saveAndFlush(customerPayInfo);
});
CustomerVo saveCustomerVo = new CustomerVo();
BeanUtils.copyProperties(saveCustomer, saveCustomerVo);
BeanUtils.copyProperties(saveCustomerBank, saveCustomerVo);
BeanUtils.copyProperties(saveCustomerOrder, saveCustomerVo);
return saveCustomerVo;
CustomerDto saveCustomerDto = new CustomerDto();
BeanUtils.copyProperties(saveCustomer, saveCustomerDto);
BeanUtils.copyProperties(saveCustomerBank, saveCustomerDto);
BeanUtils.copyProperties(saveCustomerOrder, saveCustomerDto);
return saveCustomerDto;
}
@Override
......@@ -233,21 +234,21 @@ public class CustomerApplicationImpl extends BaseApplication implements Customer
}
public Customer getCustomer(CustomerVo customerVo) {
public Customer getCustomer(CustomerDto customerDto) {
Customer customer = new Customer();
BeanUtils.copyProperties(customerVo, customer);
BeanUtils.copyProperties(customerDto, customer);
return customer;
}
public CustomerBank getCustomerBank(CustomerVo customerVo) {
public CustomerBank getCustomerBank(CustomerDto customerDto) {
CustomerBank customerBank = new CustomerBank();
BeanUtils.copyProperties(customerVo, customerBank);
BeanUtils.copyProperties(customerDto, customerBank);
return customerBank;
}
public CustomerOrder getCustomerOrder(CustomerVo customerVo) {
public CustomerOrder getCustomerOrder(CustomerDto customerDto) {
CustomerOrder customerOrder = new CustomerOrder();
BeanUtils.copyProperties(customerVo, customerOrder);
BeanUtils.copyProperties(customerDto, customerOrder);
return customerOrder;
}
}
......@@ -2,7 +2,7 @@ package com.huigou.topsun.customer.application.Impl;
import com.huigou.topsun.customer.application.SapCustomerApplication;
import com.huigou.topsun.customer.domain.CustomerContact;
import com.huigou.topsun.customer.domain.sap.CustomerDto;
import com.huigou.topsun.customer.domain.dto.SapCustomerDto;
import com.huigou.topsun.customer.domain.vo.CustomerVo;
import com.huigou.uasp.bmp.common.application.AbstractApplication;
import org.springframework.stereotype.Service;
......@@ -13,8 +13,8 @@ import java.util.Date;
public class SapCustomerApplicationImpl extends AbstractApplication implements SapCustomerApplication {
@Override
public CustomerDto submitCustomerToSAP(CustomerVo customerVo, CustomerContact customerContact) {
CustomerDto customerDto = new CustomerDto();
public SapCustomerDto submitCustomerToSAP(CustomerVo customerVo, CustomerContact customerContact) {
SapCustomerDto sapCustomerDto = new SapCustomerDto();
//账目组
// customerDto.setBU_GROUP();
......@@ -27,22 +27,22 @@ public class SapCustomerApplicationImpl extends AbstractApplication implements S
//客户名称
String customerName = customerVo.getCustomerName();
customerDto.setNAME1(customerName);
sapCustomerDto.setNAME1(customerName);
//客户简称
String customerShortName = customerVo.getCustomerShortName();
customerDto.setBU_SORT(customerShortName);
sapCustomerDto.setBU_SORT(customerShortName);
//收货地址
String customerAddress = customerVo.getCustomerAddress();
customerDto.setSTRAS(customerAddress);
sapCustomerDto.setSTRAS(customerAddress);
//客户送货地址(固定)
// customerDto.setSTR_SUPPL3();
//城市
String city = customerVo.getCity();
customerDto.setCITY1(city);
sapCustomerDto.setCITY1(city);
//国家
// customerDto.setLAND1();
......@@ -50,14 +50,14 @@ public class SapCustomerApplicationImpl extends AbstractApplication implements S
//地区
String province = customerVo.getProvince();
String region = province + city;
customerDto.setREGIO(region);
sapCustomerDto.setREGIO(region);
//语言
// customerDto.setSPRAS();
//邮政编码
String customerZipCode = customerVo.getCustomerZipCode();
customerDto.setPOST_CODE1(customerZipCode);
sapCustomerDto.setPOST_CODE1(customerZipCode);
//公司电话号码
// customerDto.setTELF1();
......@@ -73,145 +73,145 @@ public class SapCustomerApplicationImpl extends AbstractApplication implements S
//开户银行代码(?)
String customerBankId = customerVo.getCustomerBankId();
customerDto.setBANKL(customerBankId);
sapCustomerDto.setBANKL(customerBankId);
//银行账号
String customerAccountNo = customerVo.getCustomerAccountNo();
customerDto.setBANKN(customerAccountNo);
sapCustomerDto.setBANKN(customerAccountNo);
//做账难度等级
String accountDifficultLevel = customerVo.getAccountDifficultLevel();
customerDto.setKUKLA(accountDifficultLevel);
sapCustomerDto.setKUKLA(accountDifficultLevel);
//要求用客户系统货单(是、否)
String customerSysOrder = customerVo.getCustomerSysOrder();
customerDto.setKATR1(customerSysOrder);
sapCustomerDto.setKATR1(customerSysOrder);
//盖章方式(传key)
String stampMethod = customerVo.getStampMethod();
customerDto.setKATR2(stampMethod);
sapCustomerDto.setKATR2(stampMethod);
//请款联(传key,key是sap字典的数字编码)
String paymentRequestForm = customerVo.getPaymentRequestForm();
customerDto.setKATR3(paymentRequestForm);
sapCustomerDto.setKATR3(paymentRequestForm);
//客户联(传key,key是sap字典的数字编码)
String customerReceipt = customerVo.getCustomerReceipt();
customerDto.setKATR4(customerReceipt);
sapCustomerDto.setKATR4(customerReceipt);
//订单要求(sap数据字典)
String orderRequire = customerVo.getOrderRequire();
customerDto.setKATR5(orderRequire);
sapCustomerDto.setKATR5(orderRequire);
//验收单要求(sap数据字典)
String acceptanceRequire = customerVo.getAcceptanceRequire();
customerDto.setKATR6(acceptanceRequire);
sapCustomerDto.setKATR6(acceptanceRequire);
//客户系统验收要求()
String customerSysAcceptanceRequire = customerVo.getCustomerSysAcceptanceRequire();
customerDto.setKATR7(customerSysAcceptanceRequire);
sapCustomerDto.setKATR7(customerSysAcceptanceRequire);
//要求签回货单
String signedBack = customerVo.getSignedBack();
customerDto.setKATR8(signedBack);
sapCustomerDto.setKATR8(signedBack);
//货单是否打印送货日期
String isPrintDeliveryDate = customerVo.getIsPrintDeliveryDate();
customerDto.setKATR9(isPrintDeliveryDate);
sapCustomerDto.setKATR9(isPrintDeliveryDate);
//不开发票
String needInvoice = customerVo.getNeedInvoice();
customerDto.setKATR10(needInvoice);
sapCustomerDto.setKATR10(needInvoice);
//请款要求
String paymentRequest = customerVo.getPaymentRequest();
customerDto.setZT01(paymentRequest);
sapCustomerDto.setZT01(paymentRequest);
//客户工作时间
Date customerWorkTime = customerVo.getCustomerWorkTime();
customerDto.setZT02(String.valueOf(customerWorkTime));
sapCustomerDto.setZT02(String.valueOf(customerWorkTime));
//收货方签字要求
String receiverSignatureRequire = customerVo.getReceiverSignatureRequire();
customerDto.setZT03(receiverSignatureRequire);
sapCustomerDto.setZT03(receiverSignatureRequire);
//货单打印要求
String shipPrintRequire = customerVo.getShipPrintRequire();
customerDto.setZT04(shipPrintRequire);
sapCustomerDto.setZT04(shipPrintRequire);
//品牌
String customerBrand = customerVo.getCustomerBrand();
customerDto.setZF01(customerBrand);
sapCustomerDto.setZF01(customerBrand);
//职位
String contactPosition = customerContact.getContactPosition();
customerDto.setZF02(contactPosition);
sapCustomerDto.setZF02(contactPosition);
//联系人
String contactName = customerContact.getContactName();
customerDto.setZF03(contactName);
sapCustomerDto.setZF03(contactName);
//电话号码
String contactPhone = customerContact.getContactPhone();
customerDto.setZF04(contactPhone);
sapCustomerDto.setZF04(contactPhone);
//e_Mail
String contactEmail = customerContact.getContactEmail();
customerDto.setZF05(contactEmail);
sapCustomerDto.setZF05(contactEmail);
//经营类型
// customerDto.setZF06();
//工厂代号
String customerFactoryCode = customerVo.getCustomerFactoryCode();
customerDto.setZF07(customerFactoryCode);
sapCustomerDto.setZF07(customerFactoryCode);
//产品检验报告类型
String productInspectionReportType = customerVo.getProductInspectionReportType();
customerDto.setZF08(productInspectionReportType);
sapCustomerDto.setZF08(productInspectionReportType);
//货单签回方式
String signedStyle = customerVo.getSignedStyle();
customerDto.setZF09(signedStyle);
sapCustomerDto.setZF09(signedStyle);
//出货方式
String shipMethod = customerVo.getShipMethod();
customerDto.setZF10(shipMethod);
sapCustomerDto.setZF10(shipMethod);
//路线
String route = customerVo.getRoute();
customerDto.setZF11(route);
sapCustomerDto.setZF11(route);
//送货单打印默认设置
// customerDto.setZF12();
//送货单统计异常期限
Integer shipAbnormalDeadline = customerVo.getShipAbnormalDeadline();
customerDto.setZF13(String.valueOf(shipAbnormalDeadline));
sapCustomerDto.setZF13(String.valueOf(shipAbnormalDeadline));
//生产发货方式
String productionDeliveryMethod = customerVo.getProductionDeliveryMethod();
customerDto.setZF14(productionDeliveryMethod);
sapCustomerDto.setZF14(productionDeliveryMethod);
//月结方式
String monthlySettlementMethod = customerVo.getMonthlySettlementMethod();
customerDto.setZF15(monthlySettlementMethod);
sapCustomerDto.setZF15(monthlySettlementMethod);
//请款期限
Integer paymentDeadline = customerVo.getPaymentDeadline();
customerDto.setZF16(String.valueOf(paymentDeadline));
sapCustomerDto.setZF16(String.valueOf(paymentDeadline));
//做账截止日
Integer accountDeadline = customerVo.getAccountDeadline();
customerDto.setZF17(String.valueOf(accountDeadline));
sapCustomerDto.setZF17(String.valueOf(accountDeadline));
//客户收账截止日
Integer customerCollectionDeadline = customerVo.getCustomerCollectionDeadline();
customerDto.setZF18(String.valueOf(customerCollectionDeadline));
sapCustomerDto.setZF18(String.valueOf(customerCollectionDeadline));
//订单统计异常期限
Integer orderAbnormalDeadline = customerVo.getOrderAbnormalDeadline();
customerDto.setZF19(String.valueOf(orderAbnormalDeadline));
sapCustomerDto.setZF19(String.valueOf(orderAbnormalDeadline));
//公司代码
// customerDto.setBUKRS();
......@@ -242,7 +242,7 @@ public class SapCustomerApplicationImpl extends AbstractApplication implements S
//币别
String quotationCurrency = customerVo.getQuotationCurrency();
customerDto.setWAERS(quotationCurrency);
sapCustomerDto.setWAERS(quotationCurrency);
//汇率类型
// customerDto.setKURST();
......@@ -267,6 +267,6 @@ public class SapCustomerApplicationImpl extends AbstractApplication implements S
//客户税分类
// customerDto.setTAXKD();
return customerDto;
return sapCustomerDto;
}
}
package com.huigou.topsun.customer.application;
import com.huigou.topsun.customer.domain.CustomerContact;
import com.huigou.topsun.customer.domain.sap.CustomerDto;
import com.huigou.topsun.customer.domain.dto.SapCustomerDto;
import com.huigou.topsun.customer.domain.vo.CustomerVo;
public interface SapCustomerApplication {
CustomerDto submitCustomerToSAP(CustomerVo customerVo, CustomerContact customerContact);
SapCustomerDto submitCustomerToSAP(CustomerVo customerVo, CustomerContact customerContact);
}
......@@ -4,8 +4,9 @@ import com.huigou.topsun.customer.application.CustomerBaseInfoApplication;
import com.huigou.topsun.customer.application.CustomerApplication;
import com.huigou.topsun.customer.application.SapCustomerApplication;
import com.huigou.topsun.customer.domain.*;
import com.huigou.topsun.customer.domain.dto.CustomerDto;
import com.huigou.topsun.customer.domain.query.CustomerQueryRequest;
import com.huigou.topsun.customer.domain.sap.CustomerDto;
import com.huigou.topsun.customer.domain.dto.SapCustomerDto;
import com.huigou.topsun.customer.domain.vo.CustomerListVo;
import com.huigou.topsun.customer.domain.vo.CustomerVo;
import com.huigou.topsun.customer.domain.vo.ReturnCustomerListVo;
......@@ -129,15 +130,14 @@ public class CustomerController extends CommonController {
*/
public String saveCustomer() {
SDO sdo = getSDO();
CustomerVo customerVo = sdo.toObject(CustomerVo.class);
CustomerDto customerDto = sdo.toObject(CustomerDto.class);
List<CustomerContact> customerContactList = sdo.getList("contactList", CustomerContact.class);
List<CustomerDebtContact> baoshenEmailList = sdo.getList("baoshenEmailList", CustomerDebtContact.class);
List<CustomerDebtContact> customerEmailList = sdo.getList("customerEmailList", CustomerDebtContact.class);
List<CustomerRelated> customerRelatedList = sdo.getList("customerRelatedList", CustomerRelated.class);
List<CustomerPayInfo> customerPayInfoList = sdo.getList("customerPayInfoList", CustomerPayInfo.class);
customerVo = customerApplication.saveCustomer(customerVo, customerContactList, baoshenEmailList, customerEmailList, customerRelatedList, customerPayInfoList);
return success(customerVo);
customerDto = customerApplication.saveCustomer(customerDto, customerContactList, baoshenEmailList, customerEmailList, customerRelatedList, customerPayInfoList);
return success(customerDto);
}
......@@ -147,8 +147,8 @@ public class CustomerController extends CommonController {
CustomerVo customerVo = sdo.toObject(CustomerVo.class);
List<CustomerContact> customerContactList = sdo.getList("contactList", CustomerContact.class);
CustomerContact customerContact = customerContactList.get(0);
CustomerDto customerDto = sapCustomerApplication.submitCustomerToSAP(customerVo, customerContact);
return JSONUtil.toString(customerDto);
SapCustomerDto sapCustomerDto = sapCustomerApplication.submitCustomerToSAP(customerVo, customerContact);
return JSONUtil.toString(sapCustomerDto);
}
// /**
......
package com.huigou.topsun.customer.domain.dto;
import com.alibaba.fastjson.JSON;
import com.huigou.topsun.customer.domain.Customer;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class CustomerDto implements Serializable {
/**
* 客户id
*/
private String customerId;
/**
* 客户编码
*/
private String customerCode;
/**
* 客户全称
*/
private String customerName;
/**
* 客户简称
*/
private String customerShortName;
/**
* 客户工作时间
*/
private Date customerWorkTime;
/**
* 客户英文名称
*/
private String customerEnName;
/**
* 客户英文名称简称
*/
private String customerEnShortName;
/**
* 省份编码
*/
private String provinceCode;
/**
* 一级省份编码
*/
private String primaryProvinceCode;
/**
* 二级省份编码
*/
private String secondProvinceCode;
/**
* 省份
*/
private String province;
/**
* 地级市
*/
private String city;
/**
* 区县
*/
private String county;
// /**
// * 省份信息
// */
// private String provinceInfo;
/**
* 客户等级
*/
private String customerLevel;
/**
* 工厂代号
*/
private String customerFactoryCode;
/**
* 地址
*/
private String customerAddress;
/**
* 所属集团
*/
private String customerGroup;
/**
* 邮编
*/
private String customerZipCode;
/**
* 开户银行id
*/
private String customerBankId;
/**
* 开户银行
*/
private String customerBankDeposit;
/**
* 银行账号
*/
private String customerAccountNo;
/**
* 户名
*/
private String customerAccountName;
/**
* 公司法人
*/
private String customerCorporation;
/**
* 工商注册号
*/
private String businessRegistrationNumber;
/**
* 国税注册号
*/
private String nationalTaxRegistrationNumber;
/**
* 客户订单信息id
*/
private String customerOrderId;
/**
* 请款要求
*/
private String paymentRequest;
/**
* 扣款百分比
*/
private Integer deduction;
/**
* 是否要求签回货单
*/
private String signedBack;
/**
* 是否用客户系统货单
*/
private String customerSysOrder;
/**
* 报价币别(currency)
*/
private String quotationCurrency;
/**
* 金额小数位数
*/
private Integer decimalPlaces;
/**
* 签回方式(signedStyle)
*/
private String signedStyle;
/**
* 月结方式(monthlySettlementMethod)
*/
private String monthlySettlementMethod;
/**
* 做账难度等级(accountDifficultLevel)
*/
private String accountDifficultLevel;
/**
* 盖章方式(stampMethod)
*/
private String stampMethod;
/**
* 请款联(paymentRequestForm)
*/
private String paymentRequestForm;
/**
* 客户联(customerReceipt)
*/
private String customerReceipt;
/**
* 订单性质(orderKind)
*/
private String orderKind;
/**
* 品牌
*/
private String customerBrand;
/**
* 收货方签字要求
*/
private String receiverSignatureRequire;
/**
* 出货方式(shipMethod)
*/
private String shipMethod;
/**
* 路线(route)
*/
private String route;
/**
* 备注
*/
private String remark;
/**
* 订单要求(orderRequire)
*/
private String orderRequire;
/**
* 验收要求
*/
private String acceptanceRequire;
/**
* 客户系统验收要求
*/
private String customerSysAcceptanceRequire;
/**
* 做账截止日期
*/
private Integer accountDeadline;
/**
* 客户收账单截止日
*/
private Integer customerCollectionDeadline;
/**
* 订单统计异常期限
*/
private Integer orderAbnormalDeadline;
/**
* 送货单统计异常期限
*/
private Integer shipAbnormalDeadline;
/**
* 请款期限
*/
private Integer paymentDeadline;
/**
* 产品检验报告类型(productInspectionReportType)
*/
private String productInspectionReportType;
/**
* 货单打印要求(shipPrintRequire)
*/
private String shipPrintRequire;
/**
* 货单是否打印送货日期
*/
private String isPrintDeliveryDate;
/**
* 是否开发票
*/
private String needInvoice;
/**
* 生产发货方式(productionDeliveryMethod)
*/
private String productionDeliveryMethod;
public String getCustomerId() {
return customerId;
}
public static CustomerDto getCustomerDto(Customer customer){
return JSON.parseObject(JSON.toJSONString(customer), CustomerDto.class);
}
public static Customer getCustomer(CustomerDto customerDto){
return JSON.parseObject(JSON.toJSONString(customerDto),Customer.class);
}
}
package com.huigou.topsun.customer.domain.sap;
package com.huigou.topsun.customer.domain.dto;
import lombok.Data;
@Data
public class CustomerDto {
public class SapCustomerDto {
/**
* 账目组
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment