| | |
| | | import com.ltkj.hosp.service.*; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import com.ltkj.system.service.ISysDeptService; |
| | | import com.ltkj.web.controller.lis.LisApiMethod; |
| | | import com.ltkj.web.controller.pacs.PacsApiMethodService; |
| | | import com.ltkj.web.controller.service.TjSysAsyncServiceImpl; |
| | | import jdk.nashorn.internal.runtime.logging.Logger; |
| | |
| | | private ITjOrderDetailService tjOrderDetailService; |
| | | @Autowired |
| | | private TjSysAsyncServiceImpl tjSysAsyncService; |
| | | @Autowired |
| | | private LisApiMethod lisApiMethod; |
| | | |
| | | //将方法返回值解析成json格式 |
| | | public JSONObject getJSONObject(String builder) { |
| | |
| | | |
| | | List<String> cfhs = cfService.getCfhs(order.getCardId()); |
| | | |
| | | if (isUseLisAndPacsRegister){ |
| | | |
| | | AjaxResult ajaxResult = null; |
| | | String result2 = null; |
| | | JSONObject object1 = null; |
| | | String code1 = null; |
| | | |
| | | if (isUseLisAndPacsRegister){ |
| | | TjCustomer customer1 = customerService.getById(order.getUserId()); |
| | | // 作废检查申请 |
| | | if (jcsqdh != null && !jcsqdh.isEmpty()){ |
| | | for (String sqdh : jcsqdh) { |
| | | AjaxResult cancelPacsAjaxResult = pacsApiMethodService.updatePacsApply(sqdh, order.getCardId(), customer1.getCusName()); |
| | | String result = cancelPacsAjaxResult.get("data").toString(); |
| | | JSONObject object = JSONUtil.parseObj(result); |
| | | String code = object.getStr("ResultCode"); |
| | | if(code.equals("1")){ |
| | | orderService.delHuoQuJcsqdh(order.getCardId()); |
| | | } |
| | | } |
| | | } |
| | | // 作废检验申请 |
| | | if (jysqdh != null && !jysqdh.isEmpty()){ |
| | | for (String sqdh : jysqdh) { |
| | | AjaxResult cancelLisAjaxResult = lisApiMethod.cancel(sqdh, order.getCardId(), customer1.getCusName()); |
| | | String result = cancelLisAjaxResult.get("data").toString(); |
| | | JSONObject object = JSONUtil.parseObj(result); |
| | | String code= object.getStr("ResultCode"); |
| | | if(code.equals("1")){ |
| | | orderService.delHuoQuJysqdh(order.getCardId()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | }else { |
| | | //2.1.6.5 作废门诊检查申请 |
| | | if (null != jcsqdh && jcsqdh.size()>0) { |
| | | for (String s : jcsqdh) { |
| | |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | //2.1.6.3 作废门诊检验申请 |
| | | |
| | | AjaxResult ajaxResult = null; |
| | | String result2 = null; |
| | | JSONObject object1 = null; |
| | | String code1 = null; |
| | | |
| | | if (null != jysqdh && jysqdh.size()>0) { |
| | | for (String s : jysqdh) { |
| | | ajaxResult = controller.Outpindeltestapply(order.getCardId(), "00029", s); |
| | |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | |
| | | //2.1.6.9 作废门诊治疗处置申请 |
| | | if (null != zlsqdh && zlsqdh.size()>0) { |