|  | @@ -0,0 +1,66 @@
 | 
											
												
													
														|  | 
 |  | +package com.hwrj.cloud.admin.controller;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +import com.hwrj.cloud.admin.dto.PmsProductCategoryDto;
 | 
											
												
													
														|  | 
 |  | +import com.hwrj.cloud.admin.dto.UmsCompanyDto;
 | 
											
												
													
														|  | 
 |  | +import com.hwrj.cloud.admin.service.BigCompanyService;
 | 
											
												
													
														|  | 
 |  | +import com.hwrj.cloud.admin.service.UmsCompanyService;
 | 
											
												
													
														|  | 
 |  | +import com.hwrj.cloud.admin.service.UmsMemberOriginService;
 | 
											
												
													
														|  | 
 |  | +import com.hwrj.cloud.common.api.CommonResult;
 | 
											
												
													
														|  | 
 |  | +import io.swagger.annotations.Api;
 | 
											
												
													
														|  | 
 |  | +import io.swagger.annotations.ApiImplicitParam;
 | 
											
												
													
														|  | 
 |  | +import io.swagger.annotations.ApiImplicitParams;
 | 
											
												
													
														|  | 
 |  | +import io.swagger.annotations.ApiOperation;
 | 
											
												
													
														|  | 
 |  | +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.RequestParam;
 | 
											
												
													
														|  | 
 |  | +import org.springframework.web.bind.annotation.RestController;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +import java.util.List;
 | 
											
												
													
														|  | 
 |  | +import java.util.Map;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +@RestController
 | 
											
												
													
														|  | 
 |  | +@RequestMapping("/big/company")
 | 
											
												
													
														|  | 
 |  | +@Api(tags = "BigCompanyController",description ="涉林大屏数据")
 | 
											
												
													
														|  | 
 |  | +public class BigCompanyController {
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private BigCompanyService bigCompanyService;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private UmsCompanyService umsCompanyService;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @Autowired
 | 
											
												
													
														|  | 
 |  | +    private UmsMemberOriginService umsMemberOriginService;
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @GetMapping("/lis")
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation("涉林分布-供应商信息获取")
 | 
											
												
													
														|  | 
 |  | +    @ApiImplicitParams({
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "catId",value = "分类id",required = false,paramType = "Long"),
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "key",value = "关键字",required = false,paramType = "String")
 | 
											
												
													
														|  | 
 |  | +    })
 | 
											
												
													
														|  | 
 |  | +    public CommonResult compList(@RequestParam(value = "catId",required = false)Long catId, @RequestParam(value = "key",required = false)String key){
 | 
											
												
													
														|  | 
 |  | +        List<Map<String, Object>> companyList = bigCompanyService.getCompanyList(catId, key);
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        return CommonResult.success(companyList);
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @GetMapping("/detail")
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation("涉林分布-供应商信息获取")
 | 
											
												
													
														|  | 
 |  | +    @ApiImplicitParams({
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "catId",value = "分类id",required = false,paramType = "Long"),
 | 
											
												
													
														|  | 
 |  | +            @ApiImplicitParam(name = "key",value = "关键字",required = false,paramType = "String")
 | 
											
												
													
														|  | 
 |  | +    })
 | 
											
												
													
														|  | 
 |  | +    public CommonResult compDetail(@RequestParam(value = "id",required = true)Long id){
 | 
											
												
													
														|  | 
 |  | +        UmsCompanyDto detailCompany = umsCompanyService.getDetailCompany(id);
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +        return CommonResult.success();
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    @GetMapping("/cat")
 | 
											
												
													
														|  | 
 |  | +    @ApiOperation("涉林分布-产品分类信息(刺梨,竹子,竹笋)")
 | 
											
												
													
														|  | 
 |  | +    public CommonResult cat(){
 | 
											
												
													
														|  | 
 |  | +        List<PmsProductCategoryDto> dto = bigCompanyService.getCategoryDto();
 | 
											
												
													
														|  | 
 |  | +        return CommonResult.success(dto);
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +}
 |