Browse Source

客户绑定支行

master
dimengzhe 1 year ago
parent
commit
658776fe1a
  1. 7
      src/main/java/com/yxt/yythmall/api/lpkcustomer/CustomerInfoVo.java
  2. 3
      src/main/java/com/yxt/yythmall/biz/lpkcustomer/LpkCustomerService.java
  3. 7
      src/main/java/com/yxt/yythmall/biz/lpkcustomerbank/LpkCustomerBankService.java

7
src/main/java/com/yxt/yythmall/api/lpkcustomer/CustomerInfoVo.java

@ -1,8 +1,12 @@
package com.yxt.yythmall.api.lpkcustomer; package com.yxt.yythmall.api.lpkcustomer;
import com.yxt.yythmall.api.lpkcustomerbank.LpkCustomerBankVo;
import io.swagger.annotations.ApiModelProperty; import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import java.util.ArrayList;
import java.util.List;
/** /**
* @description: * @description:
* @author: dimengzhe * @author: dimengzhe
@ -23,5 +27,8 @@ public class CustomerInfoVo {
@ApiModelProperty("客户绑定的支行名称") @ApiModelProperty("客户绑定的支行名称")
private String customerBankName; private String customerBankName;
@ApiModelProperty("支行信息")
private List<LpkCustomerBankVo> customerBankList = new ArrayList<>();
} }

3
src/main/java/com/yxt/yythmall/biz/lpkcustomer/LpkCustomerService.java

@ -17,6 +17,7 @@ import com.yxt.common.core.result.ResultBean;
import com.yxt.common.core.vo.PagerVo; import com.yxt.common.core.vo.PagerVo;
import com.yxt.yythmall.api.lpkcustomer.*; import com.yxt.yythmall.api.lpkcustomer.*;
import com.yxt.yythmall.api.lpkcustomerbank.LpkCustomerBank; import com.yxt.yythmall.api.lpkcustomerbank.LpkCustomerBank;
import com.yxt.yythmall.api.lpkcustomerbank.LpkCustomerBankVo;
import com.yxt.yythmall.biz.lpkcustomerbank.LpkCustomerBankService; import com.yxt.yythmall.biz.lpkcustomerbank.LpkCustomerBankService;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
@ -246,6 +247,8 @@ public class LpkCustomerService extends MybatisBaseService<LpkCustomerMapper, Lp
customerInfoVo.setCustomerBankName(lpkCustomerBank.getName()); customerInfoVo.setCustomerBankName(lpkCustomerBank.getName());
} }
} }
List<LpkCustomerBankVo> customerBankList = lpkCustomerBankService.selectLists();
customerInfoVo.setCustomerBankList(customerBankList);
return rb.success().setData(customerInfoVo); return rb.success().setData(customerInfoVo);
} }

7
src/main/java/com/yxt/yythmall/biz/lpkcustomerbank/LpkCustomerBankService.java

@ -51,4 +51,11 @@ public class LpkCustomerBankService extends MybatisBaseService<LpkCustomerBankMa
list.removeAll(Collections.singleton(null)); list.removeAll(Collections.singleton(null));
return rb.success().setData(list); return rb.success().setData(list);
} }
public List<LpkCustomerBankVo> selectLists() {
QueryWrapper<LpkCustomerBank> qw = new QueryWrapper<>();
List<LpkCustomerBankVo> list = baseMapper.getBankList(qw);
list.removeAll(Collections.singleton(null));
return list;
}
} }

Loading…
Cancel
Save