Authored by mali

上下架操作

... ... @@ -524,7 +524,7 @@ public static void main(String[] args) {
@Override
public ApiResponse<Void> changeProductStatus(ProductRequestBo bo) {
if (bo.getStatus() == null || (bo.getStatus() != 1 && bo.getStatus() != 0)) {
if (bo.getStatus() == null || (bo.getStatus() != 1 && bo.getStatus() != 2)) {
return new ApiResponse<>(400, "上下架状态错误");
}
Product product = productMapper.selectByPrimaryKey(bo.getId());
... ...