diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/controller/CustomerController.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/controller/CustomerController.java index d6d021c4..82833dbf 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/controller/CustomerController.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/controller/CustomerController.java @@ -2,6 +2,8 @@ package com.daqing.financial.crms.controller; import com.daqing.financial.crms.CustomerControllerApi; import com.daqing.financial.crms.service.CustomerService; +import com.daqing.framework.domain.crms.CompanyCustomerEntity; +import com.daqing.framework.domain.crms.CustomerEntity; import com.daqing.framework.domain.crms.ext.CustomerCompanyTOI; import com.daqing.framework.domain.crms.ext.CustomerCompanyTOU; import com.daqing.framework.domain.crms.ext.CustomerPersonalTOI; @@ -153,4 +155,14 @@ public class CustomerController implements CustomerControllerApi { return customerService.queryCustomerInfoById(applyAmountInfo); } + + /** + * 查询所有客户编号/客户名称 + */ + @GetMapping("/queryCompanyCodeAndName") + public ResponseResult queryCompanyCodeAndName(){ + + Listlist = customerService.queryCompanyCodeAndName(); + return ResponseResult.SUCCESS(list); + } } diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CompanyCustomerDao.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CompanyCustomerDao.java index cc2e41d0..5628e1ba 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CompanyCustomerDao.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CompanyCustomerDao.java @@ -2,6 +2,7 @@ package com.daqing.financial.crms.dao; import com.daqing.framework.domain.crms.CompanyCustomerEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.daqing.framework.domain.crms.CustomerEntity; import com.daqing.framework.domain.crms.request.DgApplyAmountInfoRequest; import com.daqing.framework.domain.crms.response.CompanyCustomerResponse; import org.apache.ibatis.annotations.Mapper; @@ -27,6 +28,4 @@ public interface CompanyCustomerDao extends BaseMapper { CompanyCustomerResponse queryCompanyInfo(@Param("applyAmountInfo") DgApplyAmountInfoRequest applyAmountInfo); - List queryCompanyCodeAndName(); - } diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CustomerDao.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CustomerDao.java index f8e8585f..41ced049 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CustomerDao.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/dao/CustomerDao.java @@ -34,4 +34,6 @@ public interface CustomerDao extends BaseMapper { boolean updateCustomer(CustomerEntity customerEntity); List listCustomerId(); + + List queryCompanyCodeAndName(); } diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/CustomerService.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/CustomerService.java index c2e7cf89..3bccb734 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/CustomerService.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/CustomerService.java @@ -1,6 +1,7 @@ package com.daqing.financial.crms.service; import com.baomidou.mybatisplus.extension.service.IService; +import com.daqing.framework.domain.crms.CompanyCustomerEntity; import com.daqing.framework.domain.crms.ext.CustomerCompanyTOI; import com.daqing.framework.domain.crms.ext.CustomerCompanyTOU; import com.daqing.framework.domain.crms.ext.CustomerPersonalTOI; @@ -45,5 +46,7 @@ public interface CustomerService extends IService { void excelTemplate(HttpServletResponse response); ResponseResult queryCustomerInfoById(DgApplyAmountInfoRequest applyAmountInfo); + + List queryCompanyCodeAndName(); } diff --git a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java index 185182ab..3a37c89e 100644 --- a/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java +++ b/dq-financial-crms/src/main/java/com/daqing/financial/crms/service/impl/CustomerServiceImpl.java @@ -533,9 +533,8 @@ public class CustomerServiceImpl extends ServiceImpl().SUCCESS(companyCustomerResponse); } -/* @Override - public List queryCustomerCodeAndName() { - Listlist = companyCustomerDao.queryCustomerCodeAndName(); + public List queryCompanyCodeAndName() { + Listlist = customerDao.queryCompanyCodeAndName(); return list; - }*/ + } } \ No newline at end of file diff --git a/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml b/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml index c48c5667..2d05cc87 100644 --- a/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml +++ b/dq-financial-crms/src/main/resources/mapper/crms/CompanyCustomerDao.xml @@ -5,18 +5,18 @@ - - - - - - - - - - - - + + + + + + + + + + + + - - + \ No newline at end of file diff --git a/dq-financial-crms/src/main/resources/mapper/crms/CustomerDao.xml b/dq-financial-crms/src/main/resources/mapper/crms/CustomerDao.xml index 7b4db4b2..dcc1cd71 100644 --- a/dq-financial-crms/src/main/resources/mapper/crms/CustomerDao.xml +++ b/dq-financial-crms/src/main/resources/mapper/crms/CustomerDao.xml @@ -90,6 +90,10 @@ WHERE del_or_not = 0; + + \ No newline at end of file