haoyahui
2023-11-27 0ec6c7ee0b8236cbc6f49a8cc0e466099a09e08d
consum-base/src/main/java/com/consum/base/controller/BaseGoodsModelsController.java
@@ -7,14 +7,10 @@
import com.walker.db.page.GenericPager;
import com.walker.infrastructure.utils.StringUtils;
import com.walker.web.ResponseValue;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import java.util.List;
/**
 * @Description 规格型号
@@ -122,5 +118,13 @@
        List<BaseGoodsModels> result = this.baseGoodsModelsService.select(baseGoodsModels);
        return ResponseValue.success(result);
    }
    @GetMapping("queryGoodsModelInfo")
    public ResponseValue queryGoodsModelInfo(Long baseGoodsModelsId) {
        if (baseGoodsModelsId== null){
            return ResponseValue.error("参数不能为空!");
        }
        return ResponseValue.success(baseGoodsModelsService.queryGoodsModelInfo(baseGoodsModelsId));
    }
}