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));
|
}
|
|
}
|