|
|
|
@ -12,6 +12,7 @@ import com.hfkj.entity.BsOrderSettle; |
|
|
|
|
import com.hfkj.model.ResponseData; |
|
|
|
|
import com.hfkj.model.SecUserSessionObject; |
|
|
|
|
import com.hfkj.model.UserSessionObject; |
|
|
|
|
import com.hfkj.service.BsDeviceService; |
|
|
|
|
import com.hfkj.service.gas.BsGasOrderService; |
|
|
|
|
import com.hfkj.service.order.BsOrderService; |
|
|
|
|
import com.hfkj.sysenum.SecUserObjectTypeEnum; |
|
|
|
@ -40,6 +41,8 @@ public class BsGasOrderController { |
|
|
|
|
private BsGasOrderService gasOrderService; |
|
|
|
|
@Resource |
|
|
|
|
private BsOrderService orderService; |
|
|
|
|
@Resource |
|
|
|
|
private BsDeviceService deviceService; |
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/queryUserOilOrder",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
@ -110,5 +113,25 @@ public class BsGasOrderController { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@RequestMapping(value="/printOrder",method = RequestMethod.GET) |
|
|
|
|
@ResponseBody |
|
|
|
|
@ApiOperation(value = "打印订单") |
|
|
|
|
public ResponseData printOrder(@RequestParam(name = "orderNo", required = true) String orderNo) { |
|
|
|
|
try { |
|
|
|
|
// 查询加油订单
|
|
|
|
|
BsGasOrder gasOrder = gasOrderService.getDetailByOrderNo(orderNo); |
|
|
|
|
if (gasOrder == null) { |
|
|
|
|
throw ErrorHelp.genException(SysCode.System, ErrorCode.COMMON_ERROR, "未知的加油的订单"); |
|
|
|
|
} |
|
|
|
|
deviceService.printGasOrder(gasOrder.getMerId(), gasOrder, true); |
|
|
|
|
return ResponseMsgUtil.success("操作成功"); |
|
|
|
|
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
log.error("error!",e); |
|
|
|
|
return ResponseMsgUtil.exception(e); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|