|
@@ -71,33 +71,29 @@ public class CustomerBasicServiceImpl implements CustomerBasicService{
|
|
|
|
|
|
private Logger logger = LoggerFactory.getLogger(CustomerBasicServiceImpl.class);
|
|
|
|
|
|
- @Autowired
|
|
|
- private CustomerBasicMapper customerBasicInfoSaveMapper;
|
|
|
-
|
|
|
-
|
|
|
@Override
|
|
|
public CustomerBasicInfo queryCustomerBasicInfoByCustomerId(int queryCustomerId) {
|
|
|
- return customerBasicInfoSaveMapper.queryCustomerBasicInfoByCustomerId(queryCustomerId);
|
|
|
+ return customerBasicMapper.queryCustomerBasicInfoByCustomerId(queryCustomerId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<DockedContactInfo> queryDockedContactInfoListByCustomerId(int queryCustomerId) {
|
|
|
- return customerBasicInfoSaveMapper.queryDockedContactInfoListByCustomerId(queryCustomerId);
|
|
|
+ return customerBasicMapper.queryDockedContactInfoListByCustomerId(queryCustomerId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public List<ChannelSaleInfo> queryChannelSaleInfoListByCustomerId(int queryCustomerId) {
|
|
|
- return customerBasicInfoSaveMapper.queryChannelSaleInfoListByCustomerId(queryCustomerId);
|
|
|
+ return customerBasicMapper.queryChannelSaleInfoListByCustomerId(queryCustomerId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public BillingInfo queryBillingInfoByCustomerId(int queryCustomerId) {
|
|
|
- return customerBasicInfoSaveMapper.queryBillingInfoByCustomerId(queryCustomerId);
|
|
|
+ return customerBasicMapper.queryBillingInfoByCustomerId(queryCustomerId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public TicketOpeningInfo queryTicketOpeningInfoByCustomerId(int queryCustomerId) {
|
|
|
- return customerBasicInfoSaveMapper.queryTicketOpeningInfoByCustomerId(queryCustomerId);
|
|
|
+ return customerBasicMapper.queryTicketOpeningInfoByCustomerId(queryCustomerId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -107,26 +103,26 @@ public class CustomerBasicServiceImpl implements CustomerBasicService{
|
|
|
logger.info("saveCustomerBasicInfo start...");
|
|
|
int customerId = -1;
|
|
|
try {
|
|
|
- customerBasicInfo = customerBasicInfoSaveMapper.saveCustomerBasicInfo(customerBasicInfo);
|
|
|
+ customerBasicInfo = customerBasicMapper.saveCustomerBasicInfo(customerBasicInfo);
|
|
|
if(customerBasicInfo != null){
|
|
|
customerId = customerBasicInfo.getCustomerId();
|
|
|
if(customerId != -1){
|
|
|
if(dockedContactInfoList != null && dockedContactInfoList.size()>0){
|
|
|
for (DockedContactInfo dockedContactInfo: dockedContactInfoList) {
|
|
|
dockedContactInfo.setCustomerId(customerId);
|
|
|
- customerBasicInfoSaveMapper.saveDockedContactInfo(dockedContactInfo);
|
|
|
+ customerBasicMapper.saveDockedContactInfo(dockedContactInfo);
|
|
|
}
|
|
|
}
|
|
|
if(channelSaleInfoList != null && channelSaleInfoList.size()>0){
|
|
|
for (ChannelSaleInfo channelSaleInfo: channelSaleInfoList) {
|
|
|
channelSaleInfo.setCustomerId(customerId);
|
|
|
- customerBasicInfoSaveMapper.saveChannelSaleInfo(channelSaleInfo);
|
|
|
+ customerBasicMapper.saveChannelSaleInfo(channelSaleInfo);
|
|
|
}
|
|
|
}
|
|
|
billingInfo.setCustomerId(customerId);
|
|
|
ticketOpeningInfo.setCustomerId(customerId);
|
|
|
- customerBasicInfoSaveMapper.saveBillingInfo(billingInfo);
|
|
|
- customerBasicInfoSaveMapper.saveTicketOpeningInfo(ticketOpeningInfo);
|
|
|
+ customerBasicMapper.saveBillingInfo(billingInfo);
|
|
|
+ customerBasicMapper.saveTicketOpeningInfo(ticketOpeningInfo);
|
|
|
}
|
|
|
}
|
|
|
logger.info("saveCustomerBasicInfo end...");
|
|
@@ -137,27 +133,57 @@ public class CustomerBasicServiceImpl implements CustomerBasicService{
|
|
|
}
|
|
|
|
|
|
public List<Province> queryProvinceList(String provinceId){
|
|
|
- return (List<Province>)customerBasicInfoSaveMapper.queryProvinceList(provinceId);
|
|
|
+ return (List<Province>)customerBasicMapper.queryProvinceList(provinceId);
|
|
|
}
|
|
|
|
|
|
public List<City> queryCityList(String provinceId){
|
|
|
- return (List<City>)customerBasicInfoSaveMapper.queryCityList(provinceId);
|
|
|
+ return (List<City>)customerBasicMapper.queryCityList(provinceId);
|
|
|
}
|
|
|
|
|
|
public List<ChannelDivisionInfo> queryChannelCategoryList(String channelCategoryId){
|
|
|
- return (List<ChannelDivisionInfo>)customerBasicInfoSaveMapper.queryChannelCategoryList(channelCategoryId);
|
|
|
+ return (List<ChannelDivisionInfo>)customerBasicMapper.queryChannelCategoryList(channelCategoryId);
|
|
|
}
|
|
|
|
|
|
public List<ChannelDivisionInfo> queryChannelTypeList(String channelCategoryId){
|
|
|
- return (List<ChannelDivisionInfo>)customerBasicInfoSaveMapper.queryChannelTypeList(channelCategoryId);
|
|
|
+ return (List<ChannelDivisionInfo>)customerBasicMapper.queryChannelTypeList(channelCategoryId);
|
|
|
}
|
|
|
|
|
|
public List<Product> queryPromotingProductsList(String promotingProductsInfo){
|
|
|
- return (List<Product>)customerBasicInfoSaveMapper.queryPromotingProductsList(promotingProductsInfo);
|
|
|
+ return (List<Product>)customerBasicMapper.queryPromotingProductsList(promotingProductsInfo);
|
|
|
}
|
|
|
|
|
|
public List<ProductColor> querySupplyPriceList(String promotingProductsId){
|
|
|
- return (List<ProductColor>)customerBasicInfoSaveMapper.querySupplyPriceList(promotingProductsId);
|
|
|
+ return (List<ProductColor>)customerBasicMapper.querySupplyPriceList(promotingProductsId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer updateCustomerBasic(CustomerBasicInfo customerBasicInfo) {
|
|
|
+ return customerBasicMapper.updateCustomerBasic(customerBasicInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer updateBillingInfo(BillingInfo billingInfo) {
|
|
|
+ return customerBasicMapper.updateBillingInfo(billingInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer updateOpeningInfo(TicketOpeningInfo ticketOpeningInfo) {
|
|
|
+ return customerBasicMapper.updateOpeningInfo(ticketOpeningInfo);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer deleteContactInfo(Integer customerId) {
|
|
|
+ return customerBasicMapper.deleteContactInfo(customerId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer deleteSaleInfo(Integer customerId) {
|
|
|
+ return customerBasicMapper.deleteSaleInfo(customerId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public Integer deleteDivisionInfo(Integer channelDivisionId) {
|
|
|
+ return customerBasicMapper.deleteDivisionInfo(channelDivisionId);
|
|
|
}
|
|
|
/*@Override
|
|
|
public void saveDockedContactInfo(DockedContactInfo dockedContactInfo) {
|