json转换fix
This commit is contained in:
@@ -81,13 +81,13 @@ public class ListingMallServiceImpl extends ServiceImpl<ListingMallMapper, Listi
|
||||
String cat = dto.getCategories().get(i);
|
||||
if (i == 0) {
|
||||
wrapper.apply(
|
||||
"JSON_CONTAINS(product_category, {0}, '$')",
|
||||
"\"" + cat + "\""
|
||||
"JSON_CONTAINS(product_category, JSON_QUOTE({0}), '$')",
|
||||
cat
|
||||
);
|
||||
} else {
|
||||
wrapper.or().apply(
|
||||
"JSON_CONTAINS(product_category, {0}, '$')",
|
||||
"\"" + cat + "\""
|
||||
"JSON_CONTAINS(product_category, JSON_QUOTE({0}), '$')",
|
||||
cat
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user