客户绑定支行
This commit is contained in:
@@ -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<>();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user