zhitong.yu
2024-12-27 21e0b93688de2a98abe3b7b9c0cfed6efdc21183
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.hxzk.controller;
 
import com.hxzk.deo.PersonDto;
import com.hxzk.deo.PersonPostion;
import com.hxzk.deo.TbPerson;
import com.hxzk.deo.WarningPostion;
import com.hxzk.pojo.TbZypHandel;
import com.hxzk.service.ZypHandelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
 
import java.util.List;
 
@RestController
@RequestMapping("/")
public class ZypHandelController {
    @Autowired
    ZypHandelService zypHandelService;
    @GetMapping("UpXuanZe")
    public void XuanZeJieShouRen(TbZypHandel zypHandel){
            zypHandelService.XuanZeJieShouRen(zypHandel);
    }
 
 
 
    @GetMapping("findCodeHandel")
    public List<TbZypHandel> findCodeHandel(TbZypHandel zypHandel){
        return zypHandelService.findCodeHandel(zypHandel);
    }
    @PostMapping("PersonPostion")
    public String PersonPostion(@RequestBody PersonPostion person){
        System.out.println(person);
        return "success123456";
    }
 
    @PostMapping("WarningPostion")
    public String WarningPostion(@RequestBody WarningPostion warningPostion){
        System.out.println(warningPostion);
        return "success123456";
    }
    @PostMapping("Person")
    public String Person(@RequestBody PersonDto personDto){
        System.out.println(personDto);
        return "success123456";
    }
}