| | |
| | | business.put("bId", orderItemDto.getbId()); |
| | | centerServiceDAOImpl.saveBusiness(business); |
| | | |
| | | //通知子服务生成 business 数据 |
| | | //通知子服务生成 business 数据,如果配置NO 不通知生成 business 数据 |
| | | if (BusinessTableHisDto.ACTION_OBJ_HIS_NO.equals(businessTableHisDto.getActionObjHis())) { |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, ResultVo.MSG_OK); |
| | | } |
| | | |
| | | doNoticeServiceGeneratorBusiness(orderItemDto, businessTableHisDto); |
| | | |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, ResultVo.MSG_OK); |
| | | } |
| | | |
| | | private void doNoticeServiceGeneratorBusiness(OrderItemDto orderItemDto, BusinessTableHisDto businessTableHisDto) { |
| | | asynNotifySubServiceImpl.notifySubService(orderItemDto,businessTableHisDto); |
| | | asynNotifySubServiceImpl.notifySubService(orderItemDto, businessTableHisDto); |
| | | } |
| | | |
| | | /** |
| | |
| | | info.put("oId", orderDto.getoId()); |
| | | centerServiceDAOImpl.updateOrderItem(info); |
| | | |
| | | //删除 事务日志 |
| | | //centerServiceDAOImpl.deleteUnItemLog(info); |
| | | |
| | | //完成订单 |
| | | info = new HashMap(); |
| | | info.put("finishTime", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | |
| | | info.put("oId", orderDto.getoId()); |
| | | centerServiceDAOImpl.updateOrder(info); |
| | | |
| | | //将c_business 修改为完成 |
| | | //完成订单项 |
| | | info = new HashMap(); |
| | | info.put("finishTime", DateUtil.getNow(DateUtil.DATE_FORMATE_STRING_A)); |
| | | info.put("statusCd", "C"); |
| | | info.put("oId", orderDto.getoId()); |
| | | centerServiceDAOImpl.updateBusiness(info); |
| | | |
| | | //触发databug |
| | | //查询 事务项 |
| | | Map orderItem = new HashMap(); |
| | | orderItem.put("oId", orderDto.getoId()); |
| | | List<Map> orderItemMaps = centerServiceDAOImpl.getOrderItems(orderItem); |
| | | |
| | | //删除 事务日志 |
| | | //centerServiceDAOImpl.deleteUnItemLog(info); |
| | | |
| | | asynNotifySubServiceImpl.notifyDatabus(orderItemMaps, orderDto); |
| | | |
| | | return ResultVo.createResponseEntity(ResultVo.CODE_OK, ResultVo.MSG_OK); |
| | | } |
| | | |
| | | |
| | | } |