一、mapper.xml文件
二、mapper
/**
*微服务接口-查询雇员银行卡信息
* @param list
* @return
*/
List
三、service层和impl
//根据客户id和雇员证件号码
List> getEmpBankInfo(List> list);
@Override
public List> getEmpBankInfo(List> list) {
List> retMap = baseMapper.queryEmpBankInfoList(list);
return retMap;
}
四、controller层
@PostMapping("/get-empbank-by-idcard")
@ApiOperation("接口-根据客户id和雇员证件号码查询雇员银行卡信息")
@ResponseBody
public R getEmpBankByCusIdAndIdCard(@RequestBody List> list){
return new R(iEmpBankCardService.getEmpBankInfo(list));
}
五、前端json格式参数:
[
{"identityNum":"110108196606228528", "cusId":"1248138531219668994"},
{"identityNum":"510521198202231882", "cusId":"1248138531219668994"},
{"identityNum":"110109198512310024", "cusId":"1248138531219668994"},
{"identityNum":"130323198611172650", "cusId":"1248138531219668994"}
]
六、postMan测试