| | |
| | | import com.kidgrow.ribbon.config.FeignHttpInterceptorConfig; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PathVariable; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestParam; |
| | | |
| | | import java.util.Map; |
| | |
| | | */ |
| | | @GetMapping(value = "/diagnostic/diagnosticitem") |
| | | ResultBody<PageResult> getDiagnosticItemList(@RequestParam Map<String, Object> params); |
| | | |
| | | /** |
| | | * feign rpc访问远程 接口 |
| | | */ |
| | | @PostMapping(value = "/ReportRecord/operation/pdfname/{diagnosticId}/{reportType}/{hospitalId}/{departId}") |
| | | ResultBody getPdfPathForOperation(@PathVariable("diagnosticId") String diagnosticId,@PathVariable("reportType") Integer reportType,@PathVariable("hospitalId") Long hospitalId,@PathVariable("departId") Long departId); |
| | | } |
| | |
| | | import com.kidgrow.common.constant.ServiceNameConstants; |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.feign.fallback.ProductOrderFallbackFactory; |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import com.kidgrow.ribbon.config.FeignHttpInterceptorConfig; |
| | | import org.springframework.cloud.openfeign.FeignClient; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | |
| | | */ |
| | | @PostMapping(value = "contract/saveTemp") |
| | | ResultBody saveProductDetail(@RequestBody Map<String,Object> params); |
| | | /** |
| | | * |
| | | * @param productOrder |
| | | * @return |
| | | */ |
| | | @PostMapping(value = "/contract/getStatus") |
| | | ResultBody getStatus(@RequestBody ProductOrder productOrder); |
| | | } |
| | |
| | | public ResultBody<PageResult> getDiagnosticItemList(Map<String, Object> params) { |
| | | return ResultBody.failed().msg("getDiagnosticItemList的FeignClient调用参数传递测试失败"); |
| | | } |
| | | |
| | | @Override |
| | | public ResultBody getPdfPathForOperation(String diagnosticId, Integer reportType, Long hospitalId, Long departId) { |
| | | return ResultBody.failed().msg("getPdfPathForOperation的FeignClient调用参数传递测试失败"); |
| | | } |
| | | }; |
| | | } |
| | | } |
| | |
| | | |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.feign.ProductOrderService; |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import feign.hystrix.FallbackFactory; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.stereotype.Component; |
| | |
| | | public ResultBody saveProductDetail(Map<String, Object> params) { |
| | | return ResultBody.failed().msg("saveProductDetail的FeignClient调用失败"); |
| | | } |
| | | |
| | | @Override |
| | | public ResultBody getStatus(ProductOrder productOrder) { |
| | | return ResultBody.failed().msg("获取正式和试用的的FeignClient接口失败"); |
| | | } |
| | | }; |
| | | } |
| | | } |
| | |
| | | * @return |
| | | */ |
| | | PageResult<GroupProductDetail> groupList(Map<String, Object> params); |
| | | |
| | | /** |
| | | * 查看报告 |
| | | */ |
| | | ResultBody getPdfPathForOperation(String diagnosticId, Integer reportType, Long hospitalId, Long departId); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 查看报告 |
| | | */ |
| | | @Override |
| | | public ResultBody getPdfPathForOperation(String diagnosticId, Integer reportType, Long hospitalId, Long departId) { |
| | | ResultBody pdfPathForOperation = diagnosticService.getPdfPathForOperation(diagnosticId, reportType, hospitalId, departId); |
| | | return pdfPathForOperation; |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | | * |
| | | * @param params |
| | |
| | | return PageResult.<ProductOrderJoinDetail>builder().data(null).code(0).count(0L).build(); |
| | | return productOrderRecordService.findAllDataList(params); |
| | | } |
| | | /** |
| | | * 查看报告 |
| | | */ |
| | | @ApiOperation(value = "查看报告") |
| | | @PostMapping("/pdfname/{diagnosticId}/{reportType}/{hospitalId}/{departId}") |
| | | public ResultBody getPdfPathForOperation(@PathVariable("diagnosticId") String diagnosticId,@PathVariable("reportType") Integer reportType,@PathVariable("hospitalId") Long hospitalId,@PathVariable("departId") Long departId) { |
| | | if (StringUtils.isBlank(diagnosticId)) { |
| | | return ResultBody.failed("请输入diagnosticId"); |
| | | } |
| | | return productOrderRecordService.getPdfPathForOperation(diagnosticId,reportType,hospitalId,departId); |
| | | } |
| | | |
| | | /** |
| | | * 列表 |
| | |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | private Boolean isDel; |
| | | /** |
| | | * 是否试用,true正式,false试用 |
| | | */ |
| | | private Boolean OrderType; |
| | | } |
| | |
| | | import com.kidgrow.common.model.SysUser; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | import com.kidgrow.common.utils.StringUtils; |
| | | import com.kidgrow.oprationcenter.feign.ProductOrderService; |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import com.kidgrow.usercenter.mapper.SysDepartmentMapper; |
| | | import com.kidgrow.usercenter.mapper.SysHospitalMapper; |
| | | import com.kidgrow.usercenter.mapper.SysOrganizationMapper; |
| | |
| | | private SysRoleOrganizationServiceImpl SysRoleOrganizationServiceImpl; |
| | | @Autowired |
| | | private SysOrganizationMapper sysOrganizationMapper; |
| | | @Autowired |
| | | private ProductOrderService productOrderService; |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | |
| | | return PageResult.<HospitalListVo>builder().data(null).code(0).count(page.getTotal()).build(); |
| | | } |
| | | List<HospitalListVo> list = baseMapper.findHospitalList(page, params); |
| | | for (HospitalListVo hospitalListVo : list) { |
| | | ProductOrder productOrder = new ProductOrder(); |
| | | productOrder.setHospitalId(hospitalListVo.getHospitalId()); |
| | | productOrder.setDepartmentId(hospitalListVo.getDepartmentId()); |
| | | ResultBody status = productOrderService.getStatus(productOrder); |
| | | if (status.getCode()==0) { |
| | | hospitalListVo.setOrderType(status.getData() instanceof Boolean ? ((Boolean) status.getData()) : null); |
| | | } |
| | | } |
| | | return PageResult.<HospitalListVo>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | |
| | | <!-- 表格操作列 --> |
| | | <script type="text/html" id="contract-table-bar"> |
| | | <!-- <a class="layui-btn layui-btn-danger layui-btn-xs permissions" permissions="contract-del" lay-event="del">删除</a> --> |
| | | <a class="layui-btn layui-btn-xs permissions" permissions="contract-edit" lay-event="edit"">修改</a> |
| | | <a class="layui-btn layui-btn-xs permissions" permissions="contract-edit" lay-event="edit">修改</a> |
| | | <a class=" layui-btn layui-btn-primary layui-btn-xs permissions" permissions="productorderdetail-save" |
| | | lay-event="detail">查看套餐</a> |
| | | </script> |
| | |
| | | return false; |
| | | } |
| | | }); |
| | | //获取软件的服务周期 |
| | | var getCycleTime = function (departmentId) { |
| | | |
| | | } |
| | | // 工具条点击事件 |
| | | table.on('tool(diagnostic-table)', function (obj) { |
| | | var data = obj.data; |
| | | var layEvent = obj.event; |
| | | if (layEvent === "select") { |
| | | //查看报告 报告列数据缓存起来 |
| | | // admin.putTempData("t_diagnosis", data); |
| | | // admin.popupCenter({ |
| | | // title: '查看报告', |
| | | // path: 'pages/opration/recordNote.html', |
| | | // area: '1200px', |
| | | // offset: '10px', |
| | | // finish: function () { |
| | | // admin.putTempData("t_diagnosis", ""); |
| | | // } |
| | | // }); |
| | | // console.log("vvvvvvvvvvvvv") |
| | | window.open(config.base_server + "ReportRecord/operation/pdfname") |
| | | console.log(data,"333333") |
| | | admin.req('api-opration/productorderrecord/pdfname/'+data.diagnosticId+"/0/"+data.diagnosticHospitalId+"/"+data.diagnosticDepartId, {}, |
| | | function (data) { |
| | | if (data.code == 0) { |
| | | //打开新的窗口 |
| | | window.open(data.data) |
| | | }else{ |
| | | layer.msg("查询报告失败") |
| | | } |
| | | |
| | | }, "post") |
| | | admin.re |
| | | } |
| | | }); |
| | | }); |
| | |
| | | width: "8%", |
| | | title: '联系方式' |
| | | }, |
| | | // { |
| | | // field: 'enabled', width: 80, title: '状态', templet: function (d) { |
| | | // return d.hospitalState == 0 ? "试用" : "正式" |
| | | // } |
| | | // }, |
| | | { |
| | | field: 'orderType', width: 80, title: '状态', templet: function (d) { |
| | | if(d.orderType==null){ |
| | | return ""; |
| | | } |
| | | return d.orderType ? "试用" : "正式" |
| | | } |
| | | }, |
| | | { |
| | | field: 'isScreen', |
| | | width: "4%", |