刘力
3 years ago
6 changed files with 167 additions and 2 deletions
-
38archives/src/main/java/com/storeroom/modules/archives/controller/ExternalArchivesController.java
-
23archives/src/main/java/com/storeroom/modules/archives/repository/ArchivesSummaryRepository.java
-
8archives/src/main/java/com/storeroom/modules/archives/service/ArchivesService.java
-
26archives/src/main/java/com/storeroom/modules/archives/service/dto/ArchivesExternalGetDTO.java
-
70archives/src/main/java/com/storeroom/modules/archives/service/impl/ArchivesServiceImpl.java
-
4archives/src/main/java/com/storeroom/modules/common/ExcelUtil.java
@ -0,0 +1,38 @@ |
|||||
|
package com.storeroom.modules.archives.controller; |
||||
|
|
||||
|
import com.storeroom.annotaion.rest.AnonymousPostMapping; |
||||
|
import com.storeroom.modules.archives.service.ArchivesService; |
||||
|
import com.storeroom.modules.archives.service.dto.ArchivesDTO; |
||||
|
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.PostMapping; |
||||
|
import org.springframework.web.bind.annotation.RequestBody; |
||||
|
import org.springframework.web.bind.annotation.RequestMapping; |
||||
|
import org.springframework.web.bind.annotation.RestController; |
||||
|
|
||||
|
import java.util.HashMap; |
||||
|
import java.util.Map; |
||||
|
|
||||
|
@RestController |
||||
|
@RequiredArgsConstructor |
||||
|
@Api(tags = "外部接口-档案") |
||||
|
@RequestMapping("/api/Archives") |
||||
|
public class ExternalArchivesController { |
||||
|
|
||||
|
private final ArchivesService archivesService; |
||||
|
|
||||
|
@ApiOperation("1.从系统服务获取档案信息") |
||||
|
@AnonymousPostMapping("/get") |
||||
|
public Object externalGet( |
||||
|
@Validated @RequestBody ArchivesExternalGetDTO dto |
||||
|
){ |
||||
|
return archivesService.externalGet(dto); |
||||
|
} |
||||
|
|
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,26 @@ |
|||||
|
package com.storeroom.modules.archives.service.dto; |
||||
|
|
||||
|
import io.swagger.annotations.ApiModelProperty; |
||||
|
import lombok.Getter; |
||||
|
import lombok.Setter; |
||||
|
|
||||
|
@Getter |
||||
|
@Setter |
||||
|
public class ArchivesExternalGetDTO { |
||||
|
|
||||
|
@ApiModelProperty("页码") |
||||
|
private Integer pn; |
||||
|
@ApiModelProperty("每页数量") |
||||
|
private Integer ps; |
||||
|
@ApiModelProperty("库房编号") |
||||
|
private String storeCode; |
||||
|
@ApiModelProperty("区编号") |
||||
|
private Integer quNo; |
||||
|
@ApiModelProperty("列编号") |
||||
|
private Integer colNo; |
||||
|
@ApiModelProperty("模糊查询档案(名称、档案号)") |
||||
|
private String data; |
||||
|
@ApiModelProperty("当模糊查询时赋值为 0") |
||||
|
private Integer datatype; |
||||
|
|
||||
|
} |
Write
Preview
Loading…
Cancel
Save
Reference in new issue