xieb
2023-10-19 1dd5d8f8a616f5cf3caa7828d46989c7d3dcafc4
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
package cn.gistack.sm.sjztods.controller;
 
import cn.gistack.sm.sjztods.entity.ZdxSkZh;
import cn.gistack.sm.sjztods.service.IZdxSkZhService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springblade.core.tool.api.R;
import org.springframework.web.bind.annotation.*;
 
import java.util.Date;
 
 
/**
 *
 * @ClassName ZdxSkZhController
 * @author zhongrj
 * @date 2023-10-09
 */
@Slf4j
@Api(tags = "中大型数据整合填报")
@RestController
@RequestMapping("/sjztmd/zdSkZh")
@AllArgsConstructor
public class ZdxSkZhController {
 
    private final IZdxSkZhService zdxSkZhService;
 
    /**
     * 新增
     * @param zdxSkZh
     * @return
     */
    @ApiOperation(value = "中大型数据整合-新增", notes = "中大型数据整合-新增")
    @PostMapping(value = "/save")
    public R save(@RequestBody ZdxSkZh zdxSkZh) {
        zdxSkZh.setCreateTime(new Date());
        zdxSkZh.setUpdateTime(new Date());
        zdxSkZh.setSysResource("zj");
        return R.status(zdxSkZhService.saveZdxSkZh(zdxSkZh));
    }
 
}