whycrzg
2021-02-02 086b0d677e761bb5d528e6f29232d663af6e83c7
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.fgkj.controller;
 
import com.fgkj.util.*;
 
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.Task_Batt_Test;
import com.fgkj.dto.User_task_change;
import com.fgkj.services.User_task_changeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import javax.annotation.Resource;
 
@RequestMapping("userTaskChange")
@RestController
@Api(tags = "userTaskChange接口")
public class User_task_changeController{
 
    @Resource
    private User_task_changeService service;
 
    //4.1作业变更申请
    @PostMapping("/")
    @ApiOperation(notes = "",value="作业变更申请")
    public ServiceModel add(@RequestBody User_task_change utc) {
        ServiceModel model=service.add(utc);
        
        return model;
    }
    //4.5作业变更查询(审批)
    @PutMapping("/")
    @ApiOperation(notes = "",value="作业变更查询(审批)")
    public ServiceModel update(@RequestBody User_task_change utc) {
        ServiceModel model=service.update(utc);
        
        return model;
    }
    //4.5作业变更查询(删除记录)
    @DeleteMapping("/")
    @ApiOperation(notes = "",value="作业变更查询(删除记录)")
    public ServiceModel delete(@RequestParam Integer num) {
        User_task_change utc = new User_task_change();
        utc.setNum(num);
        ServiceModel model=service.delete(utc);
        
        return model;
    }
 
    //4.5作业变更查询
    @PostMapping("byCondition")
    @ApiOperation(notes = "{ \"binf\": { \"stationName\": \"湖北省-武汉市-东西湖区-61850机房-2G-2G-2\", \"stationName1\": \"湖北省\", \"battGroupId\": 0, \"battGroupName\": \"tt\", \"battGroupName1\": \"t\", \"monCapStd\": 150, \"monVolStd\": 2, \"battProducer\": \"理士\" },\"uchange\": { \"usr_id\": 0, \"change_type_id\": 0, \"task_type_id\": 0, \"task_change_approve_res\": 0, \"change_ask_time\": \"2001-01-23 08:14:23\", \"change_ask_time1\": \"2021-01-23 08:14:23\" },\"pageBean\": { \"pageSize\": 11, \"pageNum\": 0 } }",value="作业变更查询")
    public ServiceModel serchByCondition(@RequestBody Task_Batt_Test tbt){
        ServiceModel model=service.serchByCondition(tbt);
        
        return model;
    } 
    
    //查询所有
    @GetMapping("all")
    @ApiOperation(notes = "未实现",value="查询所有")
    public ServiceModel searchAll(){
//        ServiceModel model=service.searchAll();
        
        return new ServiceModel();
    }
 
}