2
13693261870
2022-09-16 653761a31dfeb50dd3d007e892d69c90bf0cdafc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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);
    }
}