| | |
| | | package com.consum.base.controller; |
| | | |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.pojo.BaseCategoryParam; |
| | | import com.consum.base.service.BaseCategoryServiceImpl; |
| | | import com.consum.base.service.BaseGoodsModelsServiceImpl; |
| | | import com.consum.base.service.BaseGoodsTemplateServiceImpl; |
| | | import com.consum.model.po.BaseCategory; |
| | | import com.consum.model.po.BaseGoodsModels; |
| | | import com.consum.model.po.BaseGoodsTemplate; |
| | | import com.iplatform.model.po.S_user_core; |
| | | import com.walker.db.page.GenericPager; |
| | | import com.walker.infrastructure.utils.StringUtils; |
| | | import com.walker.web.ResponseValue; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.util.CollectionUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | 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; |
| | | |
| | | /** |
| | | * @Description 规格型号 |
| | |
| | | return ResponseValue.success(list); |
| | | } |
| | | |
| | | |
| | | @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); |
| | | return ResponseValue.success(result); |
| | | } |
| | | } |
| | | |