| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; |
| | | import com.ltkj.common.core.domain.AjaxResult; |
| | | import com.ltkj.common.core.domain.entity.SysUser; |
| | | import com.ltkj.hosp.domain.*; |
| | | import com.ltkj.hosp.mapper.TjProjectMapper; |
| | | import com.ltkj.hosp.mapper.TjSamplingMapper; |
| | | import com.ltkj.hosp.service.*; |
| | | import com.ltkj.system.service.ISysConfigService; |
| | | import com.ltkj.system.service.ISysUserService; |
| | | import com.ltkj.web.controller.system.TjOrderController; |
| | | import com.ltkj.web.wxUtils.HttpClientUtils; |
| | | import jodd.util.StringUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | |
| | | private TjProjectMapper tjProjectMapper; |
| | | @Autowired |
| | | private ISysConfigService sysConfigService; |
| | | @Autowired |
| | | private TjOrderController tjOrderController; |
| | | @Autowired |
| | | private ISysUserService userService; |
| | | |
| | | /** |
| | | * 收退费回调接口 |
| | |
| | | // wrapper1.set(TjSampling::getIsPay,1); |
| | | // tjSamplingService.update(wrapper1); |
| | | } |
| | | SysUser user = null; |
| | | if (water.getCreateId()!= null) |
| | | user = userService.getById(water.getCreateId()); |
| | | else user = userService.getById(1L); |
| | | TjOrder tjOrder = orderService.getById(water.getOrderId()); |
| | | List<TjOrderDetail> detailList = tjOrderDetailService.getCaiYangDengJi(water.getOrderId()); |
| | | tjOrderController.addCaiYangDengJi(detailList, !detailList.isEmpty(), tjOrder, user, null); |
| | | } |
| | | }else { |
| | | return AjaxResult.error("查不到流水号: "+feiYongId); |
| | |
| | | private TjFlowingWaterHisService tjFlowingWaterHisService; |
| | | @Autowired |
| | | private ITjSamplingService tjSamplingService; |
| | | @Autowired |
| | | private TjOrderController tjOrderController; |
| | | |
| | | /** |
| | | * 查询该体检号对应的订单流水列表 |
| | |
| | | if (null != tbTransitionList && !tbTransitionList.isEmpty()) { |
| | | // extracted(order, list2, tbTransitionList); |
| | | //异步添加收费明细 |
| | | asyncService.collectFees(order, list2, tbTransitionList, sysUser, tjFlowingWater.getDiscount()); |
| | | // asyncService.collectFees(order, list2, tbTransitionList, sysUser, tjFlowingWater.getDiscount()); |
| | | Map<String, Object> map = new HashMap<>(); |
| | | map.put("waterId", tjFlowingWater.getWaterId()); |
| | | map.put("mobanId", reportService.getMoBanIds()); |
| | | |
| | | SysUser user = null; |
| | | if (flowingWater.getCreateId()!= null) |
| | | user = userService.getById(flowingWater.getCreateId()); |
| | | else user = userService.getById(1L); |
| | | TjOrder tjOrder = orderService.getById(flowingWater.getOrderId()); |
| | | List<TjOrderDetail> detailList1 = detailService.getCaiYangDengJi(flowingWater.getOrderId()); |
| | | tjOrderController.addCaiYangDengJi(detailList1, !detailList1.isEmpty(), tjOrder, user, null); |
| | | return AjaxResult.success("收费成功", map); |
| | | } |
| | | } |
| | |
| | | return AjaxResult.success(tjNumber); |
| | | }else { |
| | | newSaveextracted(tjOrder, tjCustomer, discount, sysUser, tjReservation, tjFlowingWater); |
| | | List<TjOrderDetail> detailList = tjOrderDetailService.getCaiYangDengJi(tjOrder.getOrderId()); |
| | | addCaiYangDengJi(detailList, !detailList.isEmpty(), tjOrder, sysUser, null); |
| | | // List<TjOrderDetail> detailList = tjOrderDetailService.getCaiYangDengJi(tjOrder.getOrderId()); |
| | | // addCaiYangDengJi(detailList, !detailList.isEmpty(), tjOrder, sysUser, null); |
| | | } |
| | | |
| | | String s = configService.selectConfigByKey("is_request_common_his_api"); |