Browse Source

20210810测试

tall3
zy_Java 4 years ago
parent
commit
32e5614345
  1. 1
      pom.xml
  2. 17
      tcm/src/main/java/com/ccsens/tcm/api/DebugController.java

1
pom.xml

@ -17,6 +17,7 @@
<!-- <module>beneficiation</module>-->
<!-- <module>form</module>-->
<!-- <module>ct</module>-->
<module>tcm</module>
<module>signin</module>
<module>common</module>

17
tcm/src/main/java/com/ccsens/tcm/api/DebugController.java

@ -1,12 +1,20 @@
package com.ccsens.tcm.api;
import com.ccsens.cloudutil.annotation.MustLogin;
import com.ccsens.cloudutil.bean.tall.dto.ProjectDto;
import com.ccsens.cloudutil.feign.Tall3FeignClient;
import com.ccsens.tcm.bean.dto.QuestionOcrDto;
import com.ccsens.tcm.bean.vo.QuestionVo;
import com.ccsens.tcm.service.IImportService;
import com.ccsens.util.JsonResponse;
import com.ccsens.util.bean.dto.QueryDto;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
@ -22,12 +30,17 @@ import java.util.List;
public class DebugController {
@Resource
private IImportService importService;
@Resource
private Tall3FeignClient tall3FeignClient;
@MustLogin
@ApiOperation(value = "/测试",notes = "")
@ApiImplicitParams({
})
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
public JsonResponse debug(HttpServletRequest request) throws Exception {
@RequestMapping(value="",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
public JsonResponse debug(@ApiParam @Validated @RequestBody QueryDto params) throws Exception {
ProjectDto.SaveProjectDto saveProjectDto = new ProjectDto.SaveProjectDto();
tall3FeignClient.saveProjectList(saveProjectDto);
return JsonResponse.newInstance().ok("测试");
}

Loading…
Cancel
Save