|
|
|
@ -6,6 +6,7 @@ import com.docus.bgts.entity.CommonResult;
|
|
|
|
|
import com.docus.bgts.facade.IAfCollectTaskService;
|
|
|
|
|
import com.docus.bgts.facade.IBgtsService;
|
|
|
|
|
import com.docus.bgts.facade.IMzSyncService;
|
|
|
|
|
import com.docus.bgts.service.CheckIntegrityService;
|
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
|
@ -25,7 +26,7 @@ public class BgtsController {
|
|
|
|
|
private final Logger logger = LoggerFactory.getLogger(getClass());
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
IMzSyncService mzSyncService;
|
|
|
|
|
CheckIntegrityService checkIntegrityService;
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
IBgtsService bgtsService;
|
|
|
|
@ -44,12 +45,15 @@ public class BgtsController {
|
|
|
|
|
checkIntegrityService.addSyncIntegrality(startDate,endDate);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@GetMapping("/syncIntegrality")
|
|
|
|
|
public void syncIntegrality(){
|
|
|
|
|
mzSyncService.syncIntegrality();
|
|
|
|
|
@GetMapping("/addSyncIntegralityByJzhs")
|
|
|
|
|
public CommonResult<String> addSyncIntegrality(@RequestParam("jzhs")String jzhs){
|
|
|
|
|
if(jzhs.split(",").length > 100){
|
|
|
|
|
return CommonResult.failed("jzh个数不能超过100个");
|
|
|
|
|
}
|
|
|
|
|
checkIntegrityService.addSyncIntegralityByJzhs(jzhs);
|
|
|
|
|
return CommonResult.success("完成");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation("采集接口")
|
|
|
|
|
@ApiImplicitParams({
|
|
|
|
|
@ApiImplicitParam(name = "empId",value = "患者主索引号",required = true,dataTypeClass = String.class),
|
|
|
|
|