Explorar el Código

修改请求方式

tags/24080901
WendyYang hace 1 año
padre
commit
0c739bda5d
Se han modificado 1 ficheros con 4 adiciones y 4 borrados
  1. +4
    -4
      pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java

+ 4
- 4
pmapi/src/main/java/com/ningdatech/pmapi/projectlib/controller/AnnualPlanController.java Ver fichero

@@ -11,7 +11,6 @@ import com.ningdatech.pmapi.projectlib.model.req.StartProjectDeclareReq;
import com.ningdatech.pmapi.projectlib.model.vo.AnnualPlanListItemVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
@@ -69,16 +68,17 @@ public class AnnualPlanController {
annualPlanLibManage.importAnnualPlan(file);
}

@GetMapping("/modify")
@PostMapping("/modify")
@ApiOperation("年度计划编辑")
@WebLog("年度计划编辑")
public void modify(@RequestBody ProjectDTO req) {
annualPlanLibManage.updateAnnualPlan(req);
}

@PostMapping("/exportList")
@ApiOperation("项目库【列表|编辑表】导出")
public void exportList(@Valid @RequestBody ProjectListReq param, HttpServletResponse response){
annualPlanLibManage.exportList(param,response);
public void exportList(@Valid @RequestBody ProjectListReq param, HttpServletResponse response) {
annualPlanLibManage.exportList(param, response);
}

}

Cargando…
Cancelar
Guardar