需求说明
概述:前端页面查询列表中有个“二级类目”的多选下拉框,用户选择二级类目后,需要从后台数据库查询条件内的数据。
目标:将前端页面传入后端的字符串例如"女性护理,美妆工具,口腔护理" 拼接为 ('女性护理','美妆工具','口腔护理')。
xxVo.java
/** * 添加二级类目字段以及Getter和Setter方法 */ private String secondCateNames; public String getSecondCateNames() { return secondCateNames; } public void setSecondCateNames(String secondCateNames) { this.secondCateNames = secondCateNames; }
Mapper.java
//二级类目查询 //