|
|
|
@ -17,6 +17,7 @@ import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDate;
|
|
|
|
|
import java.time.temporal.TemporalAdjusters;
|
|
|
|
|
import java.util.Collections;
|
|
|
|
|
|
|
|
|
|
@Api(value = "数据同步接口", tags = "数据同步接口")
|
|
|
|
|
@RestController("/sync")
|
|
|
|
@ -43,6 +44,19 @@ public class SyncBasicDataController {
|
|
|
|
|
public CommonResult<?> syncBasicData(@RequestBody SyncBasicDataDto syncBasicDataDto){
|
|
|
|
|
return syncBasicDataService.syncBasicData(syncBasicDataDto);
|
|
|
|
|
}
|
|
|
|
|
@ApiOperation("省厅-同步单个患者基础数据")
|
|
|
|
|
@GetMapping("/syncSingleBasicData")
|
|
|
|
|
public CommonResult<?> syncSingleBasicData(@RequestParam(name = "disDate") String disDate,@RequestParam(name = "inpatientNo") String inpatientNo){
|
|
|
|
|
LocalDate localDate = LocalDate.parse(disDate);
|
|
|
|
|
SyncBasicDataDto dto = new SyncBasicDataDto();
|
|
|
|
|
dto.setStartDate(localDate.toString());
|
|
|
|
|
dto.setEndDate(localDate.toString());
|
|
|
|
|
dto.setInpatientNoList(Collections.singletonList(inpatientNo));
|
|
|
|
|
dto.setLimit(100);
|
|
|
|
|
return syncBasicDataService.syncBasicData(dto);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("省厅-同步上个月基础数据")
|
|
|
|
|
@GetMapping("/syncLastMonthBasicData")
|
|
|
|
|
public CommonResult<?> syncLastMonthBasicData(){
|
|
|
|
|