¶Ô±ÈÐÂÎļþ |
| | |
| | | package org.jeecg.modules.dnc.controller; |
| | | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.jeecg.common.api.vo.Result; |
| | | import org.jeecg.common.aspect.annotation.AutoLog; |
| | | import org.jeecg.modules.dnc.entity.ProductMix; |
| | | import org.jeecg.modules.dnc.service.IProductInfoService; |
| | | import org.jeecg.modules.dnc.service.IProductMixService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.List; |
| | | |
| | | @Slf4j |
| | | @Api(tags = "ç»ææ ") |
| | | @RestController |
| | | @RequestMapping("/nc/product") |
| | | public class ProductMixController { |
| | | @Autowired |
| | | private IProductMixService iProductMixService; |
| | | |
| | | @Autowired |
| | | private IProductInfoService iProductInfoService; |
| | | /** |
| | | * è·å产åç»ææ |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "è·å产åç»ææ ") |
| | | @ApiOperation(value = "è·å产åç»ææ ", notes = "è·å产åç»ææ ") |
| | | @GetMapping(value = "/getTree") |
| | | public Result<?> getTree() { |
| | | List<ProductMix> productMixList = iProductMixService.getTree(); |
| | | return Result.OK(productMixList); |
| | | } |
| | | |
| | | /** |
| | | * è·åå
·ä½å±çº§å®ä½ |
| | | * @param id,type |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "è·åå
·ä½å±çº§å®ä½") |
| | | @ApiOperation(value = "è·åå
·ä½å±çº§å®ä½", notes = "è·åå
·ä½å±çº§å®ä½") |
| | | @GetMapping(value = "/getTreeById") |
| | | public Result<?> getTreeById(String id, Integer type) { |
| | | return iProductInfoService.getTreeById(id, type); |
| | | } |
| | | } |