| | |
| | | |
| | | import com.consum.base.BaseController; |
| | | import com.consum.base.core.utils.CommonUtil; |
| | | import com.consum.base.service.BaseGoodsModelsServiceImpl; |
| | | import com.consum.base.service.BaseGoodsModelsService; |
| | | import com.consum.model.po.BaseGoodsModels; |
| | | 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.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.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | /** |
| | | * @Description 规格型号 |
| | |
| | | public class BaseGoodsModelsController extends BaseController { |
| | | |
| | | @Autowired |
| | | private BaseGoodsModelsServiceImpl baseGoodsModelsService; |
| | | private BaseGoodsModelsService baseGoodsModelsService; |
| | | |
| | | /** |
| | | * @Description 规格列表查询(根据物品id查询规格型号) |
| | |
| | | |
| | | @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); |