|
|
@@ -187,6 +187,9 @@ public class AppApiController {
|
|
|
if(productEntity==null){
|
|
|
return R.fail("NG的产品不存在");
|
|
|
}
|
|
|
+ if(productEntity.getStatus()!=-1){
|
|
|
+ return R.fail("当前产品状态无法操作");
|
|
|
+ }
|
|
|
if("0".equals(isNg)){
|
|
|
productEntity.setStatus(2);
|
|
|
productService.updateById(productEntity);
|