public CustomerDTO createCustomerDTO(CustomerDTO customer, Long shopId) { customer.setName("MRS.SHAO"); customer.setShopId(shopId); customer.setId(2343545L); customer.setArea("苏州"); customer.setBankAccountName("test"); customer.setShortName("test"); customer.setCustomerKind("s"); customer.setMobile("15151774444"); customer.setAddress("shanghai"); customer.setContact("MR.SHAO"); customer.setFax("test"); customer.setBank("test"); customer.setQq("test"); customer.setAccount("test"); customer.setEmail("test"); ContactDTO[] contactDTOs = new ContactDTO[3]; ContactDTO contactDTO = new ContactDTO(); contactDTO.setIsMainContact(1); contactDTO.setMobile(customer.getMobile()); contactDTO.setDisabled(1); contactDTO.setName(customer.getContact()); contactDTO.setEmail(customer.getEmail()); contactDTO.setQq(customer.getQq()); contactDTO.setLevel(0); contactDTO.setCustomerId(customer.getId()); contactDTOs[0] = contactDTO; customer.setContacts(contactDTOs); return customer; }
public SupplierDTO createSupplierDTO(SupplierDTO supplierDTO, Long shopId) { supplierDTO.setName("zhangjuntao"); supplierDTO.setShopId(shopId); supplierDTO.setMobile("15862936076"); supplierDTO.setAddress("苏州"); ContactDTO[] contactDTOs = new ContactDTO[3]; ContactDTO contactDTO = new ContactDTO(); contactDTO.setMobile(supplierDTO.getMobile()); contactDTO.setIsMainContact(1); contactDTO.setDisabled(1); contactDTOs[0] = contactDTO; supplierDTO.setContacts(contactDTOs); return supplierDTO; }