5 changed files with 48 additions and 21 deletions
-
2archives/src/main/java/com/storeroom/modules/archives/controller/ExternalArchives1Controller.java
-
38archives/src/main/java/com/storeroom/modules/archives/controller/ExternalArchives2Controller.java
-
17archives/src/main/java/com/storeroom/modules/archives/controller/ExternalArchivesController.java
-
10archives/src/main/java/com/storeroom/modules/archives/repository/BorrowArchivesRepository.java
-
2archives/src/main/java/com/storeroom/modules/archives/service/impl/ArchivesCaseServiceImpl.java
@ -0,0 +1,38 @@ |
|||
package com.storeroom.modules.archives.controller; |
|||
|
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.storeroom.annotaion.rest.AnonymousPostMapping; |
|||
import com.storeroom.annotation.Log; |
|||
import com.storeroom.modules.archives.service.ArchivesCaseService; |
|||
import com.storeroom.modules.archives.service.ArchivesService; |
|||
import com.storeroom.modules.archives.service.dto.ArchivesExternalGetDTO; |
|||
import com.storeroom.utils.ApiResponse; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.RequiredArgsConstructor; |
|||
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.RestController; |
|||
|
|||
@RestController |
|||
@RequiredArgsConstructor |
|||
@Api(tags = "外部接口-档案") |
|||
@RequestMapping("/api/task") |
|||
public class ExternalArchives2Controller { |
|||
|
|||
private final ArchivesCaseService caseService; |
|||
|
|||
@ApiOperation("5.任务管理页面任务的使用") |
|||
@AnonymousPostMapping("/notice") |
|||
@Log(value = "第三方:任务管理页面任务的使用",apiAddress = "/api/task/notice") |
|||
public ApiResponse<Object> notice( |
|||
@Validated @RequestBody String json |
|||
){ |
|||
JSONObject jsonObject = JSONObject.parseObject(json); |
|||
String caseId = jsonObject.get("id") +""; |
|||
caseService.externalCallback(caseId); |
|||
return ApiResponse.success("{\"success\":\"0\"}"); |
|||
} |
|||
|
|||
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue