package com.landtool.lanbase.modules.api.controller;
|
|
import java.util.HashMap;
|
import java.util.List;
|
import java.util.Map;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Controller;
|
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.ResponseBody;
|
|
import com.landtool.lanbase.common.utils.Result;
|
import com.landtool.lanbase.modules.res.entity.Res_MainInfo;
|
import com.landtool.lanbase.modules.res.service.ResApplyRecommendService;
|
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiParam;
|
|
@Controller
|
@RequestMapping("/api/applyrecommend")
|
@Api(value = "", tags = { "应用程序资源申请相关接口" })
|
public class ApplyRecommendApiController {
|
|
@Autowired
|
private ResApplyRecommendService resApplyRecommendService;
|
|
/**
|
* @Description:
|
* @author ykm
|
* @param sysid
|
* @return Result
|
* @date 2019/03/26 9:21
|
*/
|
@ResponseBody
|
@GetMapping("/getResourceApplyList")
|
@ApiOperation(value = "应用程序ID获取申请资源列表", notes = "")
|
public Result GetResourceApplyList(@ApiParam(name = "sysid" , value = "系统ID", required = true) @RequestParam(name="sysid") Integer sysid) {
|
Map<String, Object> params = new HashMap<>();
|
params.put("sysid", sysid);
|
List<Res_MainInfo> list = resApplyRecommendService.getResourceList(params);
|
return Result.ok().put("result", list);
|
}
|
}
|