List<Integer> certTypeList=new ArrayList<>();
if(certType!=null){
String[] certTypeArr=certType.split(",");
for (int i = 0; i < certTypeArr.length; i++) {
certTypeList.add(Integer.parseInt(certTypeArr[i]));
}
}
Map<String,Object> map=new HashMap<>();
map.put("entName",entity.getEntName());
map.put("businessType",entity.getBusinessType());
map.put("entScale",entity.getEntScale());
map.put("checkStatus",entity.getCheckStatus());
map.put("isEnabled",entity.getIsEnabled());
map.put("certType",certTypeList);
Page page=new Page(pageDTO.getPage(),pageDTO.getLimit());
List<BsEnterprise> records=this.baseMapper.listPage(page,map);
Mapper
<if test="map.certType != null">
<foreach collection="map.certType" item="id">
and ec.cert_type=#{id}
</foreach>
</if>
请输入代码