冀北重新发起,取消发起接口
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package com.njcn.process.controller;
|
||||
|
||||
import com.njcn.common.pojo.annotation.OperateInfo;
|
||||
import com.njcn.common.pojo.constant.OperateType;
|
||||
import com.njcn.common.pojo.enums.common.LogEnum;
|
||||
import com.njcn.common.pojo.enums.response.CommonResponseEnum;
|
||||
import com.njcn.common.pojo.response.HttpResult;
|
||||
import com.njcn.common.utils.HttpResultUtil;
|
||||
import com.njcn.process.mapper.SupvPlanReturnMapper;
|
||||
import com.njcn.process.pojo.po.SupvPlanReturn;
|
||||
import com.njcn.web.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiImplicitParam;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
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;
|
||||
|
||||
/**
|
||||
* pqs
|
||||
*
|
||||
* @author cdf
|
||||
* @date 2024/5/30
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/WMCenter/powerQuality/supervision")
|
||||
@Api(tags = "技术监督计划控制器")
|
||||
@RequiredArgsConstructor
|
||||
public class SupvPlanReturnController extends BaseController {
|
||||
|
||||
private final SupvPlanReturnMapper supvPlanReturnMapper;
|
||||
|
||||
@PostMapping("reject")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON, operateType = OperateType.ADD)
|
||||
@ApiOperation("新增技术监督计划")
|
||||
@ApiImplicitParam(name = "supvPlanParam",value = "请求体",required = true)
|
||||
public HttpResult<Object> reject(@RequestBody @Validated SupvPlanReturn supvPlanReturn){
|
||||
String methodDescribe = getMethodDescribe("reject");
|
||||
supvPlanReturnMapper.insert(supvPlanReturn);
|
||||
return HttpResultUtil.assembleCommonResponseResult(CommonResponseEnum.SUCCESS, null, methodDescribe);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.njcn.process.mapper;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.njcn.process.pojo.po.SupvPlan;
|
||||
import com.njcn.process.pojo.po.SupvPlanReturn;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author hongawen
|
||||
* @since 2023-06-21
|
||||
*/
|
||||
public interface SupvPlanReturnMapper extends BaseMapper<SupvPlanReturn> {
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user