退单接口修改 购物车查询逻辑修改
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
|
||||
package cn.ysk.cashier.exception;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import lombok.Getter;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import static org.springframework.http.HttpStatus.BAD_REQUEST;
|
||||
@@ -23,4 +24,8 @@ public class BadRequestException extends RuntimeException{
|
||||
super(msg);
|
||||
this.status = status.value();
|
||||
}
|
||||
|
||||
public BadRequestException(String template ,Object... args){
|
||||
super(StrUtil.format(template, args));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user