| | |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.web.ResponseValue; |
| | | import io.swagger.annotations.Api; |
| | | import java.util.List; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.DeleteMapping; |
| | |
| | | * @Author 卢庆阳 |
| | | * @Date 2023/10/25 |
| | | */ |
| | | @Api(value = "规格型号", tags = "规格型号") |
| | | @RestController |
| | | @RequestMapping("/pc/base/goods/models") |
| | | public class BaseGoodsModelsController extends BaseController { |
| | |
| | | |
| | | @GetMapping("query/goodsModel") |
| | | public ResponseValue queryGoodsModelByGoodsTemplatesId(Long goodsTemplatesId) { |
| | | // S_user_core currentUser = this.getCurrentUser(); |
| | | // if (currentUser == null) { |
| | | // return ResponseValue.error("登录用户信息不存在"); |
| | | // } |
| | | // if (goodsTemplatesId == null) { |
| | | // return ResponseValue.error("物品id不存在"); |
| | | // } |
| | | BaseGoodsModels baseGoodsModels = new BaseGoodsModels(); |
| | | baseGoodsModels.setGoodsTemplatesId(goodsTemplatesId); |
| | | List<BaseGoodsModels> result = this.baseGoodsModelsService.select(baseGoodsModels); |