客户绑定支行

This commit is contained in:
dimengzhe
2024-01-28 11:55:38 +08:00
parent 06eb868ad4
commit 658776fe1a
3 changed files with 17 additions and 0 deletions

View File

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

View File

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

View File

@@ -51,4 +51,11 @@ public class LpkCustomerBankService extends MybatisBaseService<LpkCustomerBankMa
list.removeAll(Collections.singleton(null));
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;
}
}