WangHan
2025-04-02 a8ba678a3fe5a39da2c732014cebbb66e408e97c
consum-base/src/main/java/com/consum/base/controller/BaseGoodsModelsController.java
@@ -18,14 +18,12 @@
import com.walker.infrastructure.utils.StringUtils;
import com.walker.web.ResponseValue;
import io.swagger.annotations.Api;
/**
 * @Description 规格型号
 * @Author 卢庆阳
 * @Date 2023/10/25
 */
@Api(value = "规格型号", tags = "规格型号")
// @Api(value = "规格型号", tags = "规格型号")
@RestController
@RequestMapping("/pc/base/goods/models")
public class BaseGoodsModelsController extends BaseController {
@@ -74,14 +72,15 @@
        }
        int result = this.baseGoodsModelsService.add(models);
        if (result > 0)
        if (result > 0) {
            return ResponseValue.success();
        }
        return ResponseValue.error("新增失败!");
    }
    /**
     * 修改状态
     *
     *
     * @author 卢庆阳
     * @date 2023/10/25
     */
@@ -92,7 +91,7 @@
        CommonUtil.copyProperties(models, param2);
        models = param2;
        if (models == null || models.getId() == null || models.getStates() == null) {
        if (models.getId() == null || models.getStates() == null) {
            return ResponseValue.error("参数错误");
        }