whycxzp
2025-03-27 fe09517300727fd547e9926c9ba407386715435d
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
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.pojo.Fbs9100SetParamTemp;
import com.whyc.pojo.UserInf;
import com.whyc.service.Fbs9100SetParamTempService;
import com.whyc.util.ActionUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@Api(tags = "二次放电参数")
@RestController
@RequestMapping("paramTemp")
public class Fbs9100SetParamTempController extends BaseController{
    @Autowired
    public Fbs9100SetParamTempService service;
 
    @ApiOperation(value = "查询设备的参数和审核")
    @GetMapping("searchTemp")
    public Response searchTemp(@RequestParam int battGroupId) {
        return service.searchTemp(battGroupId);
    }
 
    @ApiOperation(value = "二次放电发起申请")
    @PostMapping("addTmpWorkMain")
    public Response addTmpWorkMain(@RequestBody Fbs9100SetParamTemp tmp) {
        UserInf uinf = ActionUtil.getUser();
        return service.addTmpWorkMain(tmp, uinf);
    }
}