jhprjv2/ruoyi-wechat/src/main/java/com/ruoyi/web/project/ProjectCheckingController.java

58 lines
1.7 KiB
Java
Raw Normal View History

2023-08-21 18:56:31 +08:00
package com.ruoyi.web.project;
2023-08-22 14:02:51 +08:00
import com.ruoyi.common.annotation.Log;
2023-08-21 18:56:31 +08:00
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
2023-08-22 14:02:51 +08:00
import com.ruoyi.common.enums.BusinessType;
2023-08-21 18:56:31 +08:00
import com.yanzhu.jh.project.domain.SurProjectChecking;
import com.yanzhu.jh.project.service.ISurProjectCheckingService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* @version : V1.0
* @ClassName: ProjectCheckingController
* @Description:
* @Auther: JiangYuQi
* @Date: 2020/7/7 18:03
*/
@RestController
2023-08-24 18:42:44 +08:00
@RequestMapping("/wechat/projectchecking")
2023-08-21 18:56:31 +08:00
public class ProjectCheckingController extends BaseController {
@Autowired
ISurProjectCheckingService surProjectCheckingService;
/**
2023-08-24 18:42:44 +08:00
*
2023-08-21 18:56:31 +08:00
* @param surProjectChecking
* @return
*/
@GetMapping("/list")
public AjaxResult list(SurProjectChecking surProjectChecking){
return success(surProjectCheckingService.selectSurProjectCheckingList(surProjectChecking));
}
/**
2023-08-24 18:42:44 +08:00
*
2023-08-21 18:56:31 +08:00
* @param id
* @return
*/
@GetMapping("/info")
public AjaxResult info(Long id){
return success(surProjectCheckingService.selectSurProjectCheckingById(id));
}
/**
*
* @param surProjectChecking
* @return
*/
@PostMapping("/add")
2023-08-22 14:02:51 +08:00
@Log(title = "举牌验收", businessType = BusinessType.INSERT)
2023-08-21 18:56:31 +08:00
public AjaxResult add(@RequestBody SurProjectChecking surProjectChecking){
return success(surProjectCheckingService.insertSurProjectChecking(surProjectChecking));
}
}