perryhsu
2020-10-14 f803c2a9296bcf3d2dba97b32f40276aa8b83d56
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
package com.fgkj.controller;
 
import com.fgkj.dto.ServiceModel;
import com.fgkj.dto.User_jiejiari;
import com.fgkj.services.User_jiejiariService;
import com.opensymphony.xwork2.ActionSupport;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
@RequestMapping("holiday")
@RestController
@Api
public class User_jiejiariController{
    @Autowired
    private User_jiejiariService service;
 
    //4.3节假日管理(增加)
    @PostMapping("/")
    public ServiceModel add(@RequestBody User_jiejiari ujjr) {
        ServiceModel model=service.add(ujjr);
        
        return model;
    }
    //4.3节假日管理(修改)
    @PutMapping("/")
    public ServiceModel update(@RequestBody User_jiejiari ujjr) {
        ServiceModel model=service.update(ujjr);
        
        return model;
    }
    
    //4.3节假日管理(删除)
    @DeleteMapping("/")
    public ServiceModel delete(@RequestBody User_jiejiari ujjr) {
        ServiceModel model=service.delete(ujjr);
        
        return model;
    }
    
    //查询所有节假日
    @GetMapping("all")
    public ServiceModel serchAll(){
        ServiceModel model=service.serchAll();
                
        return model;
    }
    
    //根据公历和农历以及全部查询节假日
    @GetMapping("byCondition")
    public ServiceModel serchByCondition(@RequestBody User_jiejiari ujjr){
        ServiceModel model=service.serchByCondition(ujjr);
        
        return model;
    }
    
}