Commit 03333e0f authored by 全洪江's avatar 全洪江

客户模块前端

parent 6531b6c8
package com.huigou.topsun.customer.application;
import com.huigou.topsun.customer.domain.CustomerBankList;
import java.util.List;
public interface CustomerBankListApplication {
List<CustomerBankList> getCustomerBankList(String customerId);
}
package com.huigou.topsun.customer.application;
import com.huigou.topsun.customer.domain.CustomerBrand;
import com.huigou.topsun.customer.domain.CustomerPayInfo;
import java.util.List;
public interface CustomerBrandApplication {
List<CustomerBrand> getCustomerBrandList(String customerId);
}
package com.huigou.topsun.customer.application;
import com.huigou.topsun.customer.domain.CustomerCompanyCode;
import java.util.List;
public interface CustomerCompanyCodeApplication {
List<CustomerCompanyCode> getCustomerCompanyCodeList(String customerId);
}
package com.huigou.topsun.customer.application;
import com.huigou.topsun.customer.domain.CustomerBankList;
import com.huigou.topsun.customer.domain.CustomerSalesOrganization;
import java.util.List;
public interface CustomerSalesOrganizationApplication {
List<CustomerSalesOrganization> getCustomerSalesOrganizationList(String customerId);
}
package com.huigou.topsun.customer.application.Impl;
import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.topsun.customer.application.CustomerBankListApplication;
import com.huigou.topsun.customer.domain.CustomerBankList;
import com.huigou.topsun.customer.domain.CustomerBrand;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CustomerBankListApplicationImpl extends BaseApplication implements CustomerBankListApplication {
String QUERY_XML_FILE_PATH = "config/topsun/customer/customerMapper.xml";
@Override
public List<CustomerBankList> getCustomerBankList(String customerId) {
QueryDescriptor queryDescriptor = this.sqlExecutorDao.getQuery(QUERY_XML_FILE_PATH, "customerBankList");
List<CustomerBankList> customerBankList = this.sqlExecutorDao.queryToList(queryDescriptor.getSql(), CustomerBankList.class, customerId);
return customerBankList;
}
}
package com.huigou.topsun.customer.application.Impl;
import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.topsun.customer.application.CustomerBrandApplication;
import com.huigou.topsun.customer.domain.CustomerBrand;
import com.huigou.topsun.customer.domain.CustomerPayInfo;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CustomerBrandApplicationImpl extends BaseApplication implements CustomerBrandApplication {
String QUERY_XML_FILE_PATH = "config/topsun/customer/customerMapper.xml";
@Override
public List<CustomerBrand> getCustomerBrandList(String customerId) {
QueryDescriptor queryDescriptor = this.sqlExecutorDao.getQuery(QUERY_XML_FILE_PATH, "customerBrandList");
List<CustomerBrand> customerBrandList = this.sqlExecutorDao.queryToList(queryDescriptor.getSql(), CustomerBrand.class, customerId);
return customerBrandList;
}
}
package com.huigou.topsun.customer.application.Impl;
import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.topsun.customer.application.CustomerCompanyCodeApplication;
import com.huigou.topsun.customer.domain.CustomerBrand;
import com.huigou.topsun.customer.domain.CustomerCompanyCode;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CustomerCompanyApplicationImpl extends BaseApplication implements CustomerCompanyCodeApplication {
String QUERY_XML_FILE_PATH = "config/topsun/customer/customerMapper.xml";
@Override
public List<CustomerCompanyCode> getCustomerCompanyCodeList(String customerId) {
QueryDescriptor queryDescriptor = this.sqlExecutorDao.getQuery(QUERY_XML_FILE_PATH, "customerCompanyCodeList");
List<CustomerCompanyCode> customerCompanyCodeList = this.sqlExecutorDao.queryToList(queryDescriptor.getSql(), CustomerCompanyCode.class, customerId);
return customerCompanyCodeList;
}
}
package com.huigou.topsun.customer.application.Impl;
import com.huigou.data.query.model.QueryDescriptor;
import com.huigou.topsun.customer.application.CustomerSalesOrganizationApplication;
import com.huigou.topsun.customer.domain.CustomerSalesOrganization;
import com.huigou.uasp.bmp.common.application.BaseApplication;
import org.springframework.stereotype.Service;
import java.util.List;
@Service
public class CustomerSalesOrganizationApplicationImpl extends BaseApplication implements CustomerSalesOrganizationApplication {
String QUERY_XML_FILE_PATH = "config/topsun/customer/customerMapper.xml";
@Override
public List<CustomerSalesOrganization> getCustomerSalesOrganizationList(String customerId) {
QueryDescriptor queryDescriptor = this.sqlExecutorDao.getQuery(QUERY_XML_FILE_PATH, "customerSalesOrganizationList");
List<CustomerSalesOrganization> customerSalesOrganizationList = this.sqlExecutorDao.queryToList(queryDescriptor.getSql(), CustomerSalesOrganization.class, customerId);
return customerSalesOrganizationList;
}
}
package com.huigou.topsun.customer.controller;
import com.huigou.topsun.customer.application.CustomerApplication;
import com.huigou.topsun.customer.application.CustomerBankListApplication;
import com.huigou.topsun.customer.domain.CustomerBankList;
import com.huigou.topsun.customer.domain.CustomerBrand;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.client.CommonController;
import com.huigou.util.SDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import java.util.List;
@Controller
@ControllerMapping("/customerBankList")
public class CustomerBankListController extends CommonController {
@Autowired
private CustomerBankListApplication customerBankListApplication;
public String slicedCustomerBankList() {
SDO sdo = getSDO();
String customerId = sdo.getString("customerId");
List<CustomerBankList> customerBrandList = customerBankListApplication.getCustomerBankList(customerId);
return packGridDataAndResult(customerBrandList);
}
}
package com.huigou.topsun.customer.controller;
import com.huigou.topsun.customer.application.CustomerBrandApplication;
import com.huigou.topsun.customer.domain.CustomerBrand;
import com.huigou.topsun.customer.domain.CustomerPayInfo;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.client.CommonController;
import com.huigou.util.SDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import java.util.List;
@Controller
@ControllerMapping("/customerBrand")
public class CustomerBrandController extends CommonController {
@Autowired
private CustomerBrandApplication customerBrandApplication;
public String slicedCustomerBrandList() {
SDO sdo = this.getSDO();
String customerId = sdo.getString("customerId");
List<CustomerBrand> customerBrandList = customerBrandApplication.getCustomerBrandList(customerId);
return packGridDataAndResult(customerBrandList);
}
// public String deleteCustomerBrand() {
// SDO sdo = this.getSDO();
// List<String> ids = sdo.getIds();
// int result = customerBrandApplication.deleteCustomerBrandList(ids);
// if (result==1) {
// return success();
// }
// else {
// return error("品牌信息删除失败");
// }
// }
}
package com.huigou.topsun.customer.controller;
import com.huigou.topsun.customer.application.CustomerCompanyCodeApplication;
import com.huigou.topsun.customer.domain.CustomerBankList;
import com.huigou.topsun.customer.domain.CustomerCompanyCode;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.client.CommonController;
import com.huigou.util.SDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import java.util.List;
@Controller
@ControllerMapping("/customerCompanyCode")
public class CustomerCompanyCodeController extends CommonController {
@Autowired
private CustomerCompanyCodeApplication customerCompanyCodeApplication;
public String slicedCustomerCompanyCodeList() {
SDO sdo = getSDO();
String customerId = sdo.getString("customerId");
List<CustomerCompanyCode> customerCompanyCodeList = customerCompanyCodeApplication.getCustomerCompanyCodeList(customerId);
return packGridDataAndResult(customerCompanyCodeList);
}
}
package com.huigou.topsun.customer.controller;
import com.huigou.topsun.customer.application.CustomerSalesOrganizationApplication;
import com.huigou.topsun.customer.domain.CustomerBankList;
import com.huigou.topsun.customer.domain.CustomerSalesOrganization;
import com.huigou.uasp.annotation.ControllerMapping;
import com.huigou.uasp.client.CommonController;
import com.huigou.util.SDO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import java.util.List;
@Controller
@ControllerMapping("/customerSalesOrganization")
public class CustomerSalesOrganizationController extends CommonController {
@Autowired
private CustomerSalesOrganizationApplication customerSalesOrganizationApplication;
public String slicedCustomerSalesOrganizationList() {
SDO sdo = getSDO();
String customerId = sdo.getString("customerId");
List<CustomerSalesOrganization> customerSalesOrganizationList = customerSalesOrganizationApplication.getCustomerSalesOrganizationList(customerId);
return packGridDataAndResult(customerSalesOrganizationList);
}
}
......@@ -34,6 +34,11 @@ public class CustomerBrand implements Serializable {
*/
private String brand;
/**
* 职位
*/
private String position;
/**
* 联系人
*/
......
......@@ -93,4 +93,27 @@
select t.* from monthly_settlement_method t where 1=1 order by t.sequence
</sql-query>
</query>
<query name="customerBrandList" label="查询用户品牌" table="customer_brand">
<sql-query>
select cd.* from customer_brand cd where customer_id = ?
</sql-query>
</query>
<query name="customerBankList" label="查询客户银行列表" table="customer_bank_list">
<sql-query>
select cbl.* from customer_bank_list cbl where customer_id = ?
</sql-query>
</query>
<query name="customerCompanyCodeList" label="公司代码列表" table="customer_company_code">
<sql-query>
select c.* from customer_company_code c where customer_id = ?
</sql-query>
</query>
<query name="customerSalesOrganizationList" label="销售组织列表" table="customer_sales_organization">
<sql-query>
select c.* from customer_sales_organization c where customer_id = ?
</sql-query>
</query>
</query-mappings>
\ No newline at end of file
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