perryhsu
2020-10-17 a543f4de1c91ef6f43aace92975c6cf28de23618
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
package com.fgkj.controller.Ld9;
 
import com.fgkj.dto.BadLd9_mon_flag;
import com.fgkj.dto.ServiceModel;
import com.fgkj.services.Ld9.BadLd9_mon_flagService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
 
@RequestMapping("BadLd9MonFlag")
@RestController
@Api
public class BadLd9_mon_flagController{
 
    @Autowired
    private BadLd9_mon_flagService service;
 
    //往标识表中插入一笔数据
    @PostMapping("/")
    public ServiceModel add(@RequestBody BadLd9_mon_flag monflag) {
        // BadLd9_mon_flag monflag = getGson().fromJson(json, BadLd9_mon_flag.class);
        ServiceModel model = service.add(monflag);
        return model;
    }
 
}