mirror of https://github.com/jeecgboot/jeecg-boot
parent
b2517f6a38
commit
3188347bec
|
@ -588,12 +588,12 @@ public class SkuController {
|
||||||
String parsedColumn = CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, column.replace("_dictText", ""));
|
String parsedColumn = CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, column.replace("_dictText", ""));
|
||||||
String parsedOrder = order.toUpperCase();
|
String parsedOrder = order.toUpperCase();
|
||||||
if(!parsedOrder.equals("ASC") && !parsedOrder.equals("DESC")) {
|
if(!parsedOrder.equals("ASC") && !parsedOrder.equals("DESC")) {
|
||||||
return Result.error("Error 400 Bad Request");
|
return Result.error(400, "Bad Request");
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
specialFilterContentForDictSql(parsedColumn);
|
specialFilterContentForDictSql(parsedColumn);
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
return Result.error("Error 400 Bad Request");
|
return Result.error(400, "Bad Request");
|
||||||
}
|
}
|
||||||
String shopId = shopService.getIdByCode(shopCode);
|
String shopId = shopService.getIdByCode(shopCode);
|
||||||
if (shopId == null) return Result.error(404, "Shop not found");
|
if (shopId == null) return Result.error(404, "Shop not found");
|
||||||
|
|
Loading…
Reference in New Issue