com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand Java Examples

The following examples show how to use com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DmsDiseDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "deleteFallbackInfo")
@ApiOperation(value = "根据ids删除诊断")
@RequestMapping(value = "/delete", method = RequestMethod.POST)
@ResponseBody
public CommonResult delete(@RequestParam("ids") List<Long> ids){
    return apiPcDmsDiseDistributionService.delete(ids);
}
 
Example #2
Source File: AppHistoryController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listFeeFallbackInfo")
@ApiOperation("查询某次挂号费用(大项)")
@RequestMapping(value = "/listFee", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<AppHistoryRegResult>> listFee(@RequestParam("registrationId") Long registrationId){
    return bmsFeeQueryService.listFee(registrationId);
}
 
Example #3
Source File: AppHistoryController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getResultFallbackInfo")
@ApiOperation("查询检查检验结果")
@RequestMapping(value = "/getResult", method = RequestMethod.POST)
@ResponseBody
public CommonResult<AppCheckTestResult> getResult(@RequestParam("id") Long id){
   return dmsNonDrugItemRecordService.getResult(id);
}
 
Example #4
Source File: DmsCaseModelDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getModelDetailFallbackInfo")
@ApiOperation(value = "根据模板id查询模板详细信息")
@RequestMapping(value = "/getModelDetail/{id}", method = RequestMethod.GET)
@ResponseBody
public CommonResult<DmsCaseModel> getModelDetail(@PathVariable("id") Long id){
    return apiPcDmsCaseModelDistributionService.getModelDetail(id);
}
 
Example #5
Source File: DmsDiseDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "deleteFallbackInfo")
@ApiOperation(value = "根据ids删除诊断")
@RequestMapping(value = "/delete", method = RequestMethod.POST)
@ResponseBody
public CommonResult delete(@RequestParam("ids") List<Long> ids){
    return apiPcDmsDiseDistributionService.delete(ids);
}
 
Example #6
Source File: DmsNonDrugDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "updateFallbackInfo")
@ApiOperation(value = "更新非药品信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody DmsNonDrugParam dmsNonDrugParam , BindingResult result){
   return apiPcDmsNonDrugDistributionService.update(id,dmsNonDrugParam);
}
 
Example #7
Source File: DmsRedisSaveDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getCasePageFallbackInfo")
@ApiOperation(value = "取出病历首页(根据挂号号)")
@RequestMapping(value = "/getCasePage", method = RequestMethod.POST)
@ResponseBody
public CommonResult<DmsCaseHistoryParam> getCasePage(@RequestParam("registrationId") Long registrationId){

    return apiPcDmsRedisSaveDistributionService.getCasePage(registrationId);
}
 
Example #8
Source File: DmsMedicinePrescriptionRecordDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listByRegFallbackInfo")
@ApiOperation(value = "根据挂号Id查询处方")
@RequestMapping(value = "/listByReg", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<DmsMedicinePrescriptionRecordResult>> listByReg(@RequestParam("registrationId") Long registrationId){
   return apiPcDmsMedicinePrescriptionRecordDistributionService.listByReg(registrationId);
}
 
Example #9
Source File: DmsDiseCatalogDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listAllFallbackInfo")
@ApiOperation(value = "查询所有诊断目录")
@RequestMapping(value = "/listAll", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<DmsDiseCatalogResult>> listAll(){
    return apiPcDmsDiseCatalogDistributionService.listAll();
}
 
Example #10
Source File: DmsDiseDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "updateFallbackInfo")
@ApiOperation(value = "更新诊断信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody DmsDiseParam dmsDiseParam , BindingResult result){
   return apiPcDmsDiseDistributionService.update(id,dmsDiseParam);
}
 
Example #11
Source File: AppHistoryController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getDeptDescriptionFallbackInfo")
@ApiOperation("查询所有科室描述")
@RequestMapping(value = "/getDeptDescription", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<AppDeptDescriptionResult>> getDeptDescription(){
    return smsDescriptionService.getDeptDescription();
}
 
Example #12
Source File: SmsSkdDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getRuleDetailFallbackInfo")
@ApiOperation("根据规则id查询一条规则详情")
@RequestMapping(value = "/getRuleDetail", method = RequestMethod.POST)
@ResponseBody
public CommonResult<SmsSkdRuleResult> getRuleDetail(@RequestParam("ruleId") Long ruleId){
   return apiPcSmsSkdDistributionService.getRuleDetail(ruleId);
}
 
Example #13
Source File: DmsDrugModelDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "deleteModelFallbackInfo")
@ApiOperation(value = "删除药品模版")
@RequestMapping(value = "/deleteModel", method = RequestMethod.POST)
@ResponseBody
public CommonResult deleteModel(@RequestParam("ids") List<Long> ids){
   return apiPcDmsDrugModelDistributionService.deleteModel(ids);
}
 
Example #14
Source File: AppHistoryController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getDeptDescriptionFallbackInfo")
@ApiOperation("查询所有科室描述")
@RequestMapping(value = "/getDeptDescription", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<AppDeptDescriptionResult>> getDeptDescription(){
    return smsDescriptionService.getDeptDescription();
}
 
Example #15
Source File: DmsDiseDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "updateFallbackInfo")
@ApiOperation(value = "更新诊断信息")
@RequestMapping(value = "/update/{id}", method = RequestMethod.POST)
@ResponseBody
public CommonResult update(@PathVariable Long id, @RequestBody DmsDiseParam dmsDiseParam , BindingResult result){
   return apiPcDmsDiseDistributionService.update(id,dmsDiseParam);
}
 
Example #16
Source File: DmsDrugModelDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listModelFallbackInfo")
@ApiOperation(value = "模糊查询药品模版、且分页")
@RequestMapping(value = "/listModel", method = RequestMethod.GET)
@ResponseBody
public CommonResult<CommonPage<DmsDrugModelResult>> listModel(DmsDrugModelParam queryParam,
                                                              @RequestParam(value = "pageSize", defaultValue = "5") Integer pageSize,
                                                              @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum, @RequestParam(value = "isAdmin") Integer isAdmin){
   return apiPcDmsDrugModelDistributionService.listModel(queryParam, pageSize, pageNum,isAdmin);
}
 
Example #17
Source File: DmsRedisSaveDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getDrugPrescriptionFallbackInfo")
@ApiOperation(value = "取出药方(根据挂号号和类型(4成药、5草药))")
@RequestMapping(value = "/getDrugPrescription", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<DmsDrugRedisParam>> getDrugPrescription(@RequestParam("registrationId") Long registrationId,
                                                                 @RequestParam("type") int type){
    return apiPcDmsRedisSaveDistributionService.getDrugPrescription(registrationId,type);
}
 
Example #18
Source File: DmsRedisSaveDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "saveDrugPrescriptionFallbackInfo")
@ApiOperation(value = "暂存药方(根据挂号号和类型(4成药、5草药))")
@RequestMapping(value = "/saveDrugPrescription", method = RequestMethod.POST)
@ResponseBody
public CommonResult saveDrugPrescription(@RequestBody List<DmsDrugRedisParam> dmsDrugRedisParam,
                                         @RequestParam("registrationId") Long registrationId,
                                         @RequestParam("type") int type){
    return apiPcDmsRedisSaveDistributionService.saveDrugPrescription(dmsDrugRedisParam,registrationId,type);
}
 
Example #19
Source File: DmsRedisSaveDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "getCasePageFallbackInfo")
@ApiOperation(value = "取出病历首页(根据挂号号)")
@RequestMapping(value = "/getCasePage", method = RequestMethod.POST)
@ResponseBody
public CommonResult<DmsCaseHistoryParam> getCasePage(@RequestParam("registrationId") Long registrationId){

    return apiPcDmsRedisSaveDistributionService.getCasePage(registrationId);
}
 
Example #20
Source File: DmsMechanicItemRecordDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "logFallbackInfo")
@ApiOperation(value = "登记")
@RequestMapping(value = "/log", method = RequestMethod.POST)
@ResponseBody
public CommonResult log(@RequestParam("itemRecordId") Long itemRecordId, @RequestParam("logStaffId") Long logStaffId){
    System.err.println("itemRecordId:"+itemRecordId);
    System.err.println("logStaffId:"+logStaffId);

    return apiPcDmsMechanicItemRecordDistributionService.log(itemRecordId,logStaffId);
}
 
Example #21
Source File: SmsStaffDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listAllFallbackInfo")
@ApiOperation("查询所有用户")
@RequestMapping(value = "/selectAll", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsStaffResult>> listAll(){
    return  apiPcSmsStaffDistributionService.listAll();
}
 
Example #22
Source File: DmsHerbalPrescriptionRecordDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listByRegFallbackInfo")
@ApiOperation(value = "根据挂号Id查询处方")
@RequestMapping(value = "/listByReg", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<DmsHerbalPrescriptionRecordResult>>  listByReg(@RequestParam("registrationId") Long registrationId){
    return apiPcDmsHerbalPrescriptionRecordDistributionService.listByReg(registrationId);
}
 
Example #23
Source File: SmsRegistrationRankDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "createFallbackInfo")
@ApiOperation("新增挂号级别")
@RequestMapping(value = "/create", method = RequestMethod.POST)
@ResponseBody
public CommonResult create(@RequestBody SmsRegistrationRankParam smsRegistrationRankParam, BindingResult result){
   return apiPcSmsRegistrationRankDistributionService.create(smsRegistrationRankParam);
}
 
Example #24
Source File: DmsHerbalPrescriptionRecordDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "applyFallbackInfo")
@ApiOperation(value = "开立处方")
@RequestMapping(value = "/apply", method = RequestMethod.POST)
@ResponseBody
public CommonResult apply(@RequestBody DmsHerbalPrescriptionRecordParam dmsHerbalPrescriptionRecordParam, BindingResult result){
  return apiPcDmsHerbalPrescriptionRecordDistributionService.apply(dmsHerbalPrescriptionRecordParam);
}
 
Example #25
Source File: DmsHerbalPrescriptionRecordDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listByRegFallbackInfo")
@ApiOperation(value = "根据挂号Id查询处方")
@RequestMapping(value = "/listByReg", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<DmsHerbalPrescriptionRecordResult>>  listByReg(@RequestParam("registrationId") Long registrationId){
    return apiPcDmsHerbalPrescriptionRecordDistributionService.listByReg(registrationId);
}
 
Example #26
Source File: SmsRegistrationRankDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listAllFallbackInfo")
@ApiOperation("查询所有挂号级别")
@RequestMapping(value = "/selectAll", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<SmsRegistrationRankResult>> listAll(){
   return apiPcSmsRegistrationRankDistributionService.listAll();
}
 
Example #27
Source File: DmsNonDrugItemRecordDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "applyFallbackInfo")
@ApiOperation(value = "开立项目")
@RequestMapping(value = "/apply", method = RequestMethod.POST)
@ResponseBody
public CommonResult apply(@RequestBody DmsNonDrugItemRecordListParam dmsNonDrugItemRecordListParam, BindingResult result){
    return apiPcDmsNonDrugItemRecordDistributionService.apply(dmsNonDrugItemRecordListParam);
}
 
Example #28
Source File: DmsCaseModelDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "updateModelFallbackInfo")
@ApiOperation(value = "更新病历模版信息")
@RequestMapping(value = "/updateModel", method = RequestMethod.POST)
@ResponseBody
public CommonResult updateModel(@RequestParam("modelId") Long modelId, @RequestBody DmsCaseModel dmsCaseModel, BindingResult result){
   return apiPcDmsCaseModelDistributionService.updateModel(modelId,dmsCaseModel);
}
 
Example #29
Source File: BmsFeeDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listChargeByRegistrationIdFallbackInfo")
@ApiOperation(value = "根据挂号Id查询所有未交费项目")
@RequestMapping(value = "/listChargeByRegistrationId", method = RequestMethod.GET)
@ResponseBody
public CommonResult<List<BmsChargeResult>>  listChargeByRegistrationId(@RequestParam("registrationId") Long registrationId){
    return apiPcBmsFeeDistributionService.listChargeByRegistrationId(registrationId);
}
 
Example #30
Source File: DmsCaseModelDistributionController.java    From HIS with Apache License 2.0 5 votes vote down vote up
@HystrixCommand(fallbackMethod = "listModelCatTreeFallbackInfo")
@ApiOperation(value = "显示病历模板目录树")
@RequestMapping(value = "/listModelCatTree", method = RequestMethod.POST)
@ResponseBody
public CommonResult<List<DmsCaseModelCatalogNode>> listModelCatTree(@RequestParam Long ownId, @RequestParam Integer scope) {
    return apiPcDmsCaseModelDistributionService.listModelCatTree(ownId,scope);
}