From 5aa43002fd8a3765dd7ef7315d9e5646262ea183 Mon Sep 17 00:00:00 2001 From: wangh <9483> Date: Tue, 23 Jan 2024 14:19:35 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/IntegralOrdersController.java | 13 ----- .../mapper/xml/IntegralOrdersMapper.xml | 2 +- .../impl/IntegralOrdersServiceImpl.java | 9 +--- .../impl/CardValueRecordServiceImpl.java | 16 +++++++ .../order/mapper/xml/AllOrderInfoMapper.xml | 2 +- .../impl/HandoverRecordServiceImpl.java | 8 +++- .../business/store/mapper/MtStoreMapper.java | 2 + .../store/mapper/xml/ExportExcelService.xml | 19 ++------ .../store/mapper/xml/MtStoreMapper.xml | 21 +++++++++ .../store/service/impl/StoreServiceImpl.java | 9 ++-- .../business/store/task/QuartzConfig.java | 13 ++--- .../business/store/task/storeConfigTask.java | 30 ++++++++++++ .../fuint/business/store/task/streamTask.java | 15 +++--- .../userManager/mapper/UserBalanceMapper.java | 2 + .../mapper/xml/UserBalanceMapper.xml | 20 ++++++++ .../service/impl/UserBalanceServiceImpl.java | 45 ++++++++++++++++++ .../userManager/vo/UserBalanceVo.java | 21 +++++++++ .../system/dept/mapper/SysDeptMapper.java | 6 +-- .../system/dept/mapper/xml/SysDeptMapper.xml | 10 ++-- .../views/cashier/NewComponents/Handover.vue | 47 +++++++++++++++++-- .../PointsGoodsDetails/PointsGoodsDetails.vue | 12 +++-- .../pagesHome/PointsMall/PointsMall.vue | 13 ++--- .../pagesHome/myPointsOrder/myPointsOrder.vue | 4 +- gasStation-uni/pagesHome/order/order.vue | 40 ++++++++++------ 24 files changed, 285 insertions(+), 94 deletions(-) create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/xml/MtStoreMapper.xml create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/store/task/storeConfigTask.java create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/mapper/xml/UserBalanceMapper.xml create mode 100644 fuintBackend/fuint-application/src/main/java/com/fuint/business/userManager/vo/UserBalanceVo.java diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralOrdersController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralOrdersController.java index 0b5f99da2..bb61ec102 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralOrdersController.java +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/controller/IntegralOrdersController.java @@ -139,19 +139,6 @@ public class IntegralOrdersController extends BaseController { /** * - * 礼品订单 - * - * 判断积分是否足够 - * - * 增加订单之前首先判断是否还存在 库存 - * - * 增加积分订单 - * - * 减去积分商城库存 - * - * 减去商品库存 - * - * 减去用户积分 * */ @PostMapping("integralOrdersProcessing") diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralOrdersMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralOrdersMapper.xml index 399989456..4fa430cce 100644 --- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralOrdersMapper.xml +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/mapper/xml/IntegralOrdersMapper.xml @@ -443,7 +443,7 @@ - update integral_orders set status = '1' where order_number = #{orderNumber} + update integral_orders set processing_status = '1' where order_number = #{orderNumber} - select * from sys_dept where turnover_time > NOW() and turnoverType = 2 and status = 'qy' + select * from sys_dept where turnover_time > NOW() and turnover_type = 2 and status = 'qy' - dept_id = #{deptId} + and dept_id = #{deptId} @@ -108,12 +108,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" update sys_dept set status = 'jy' where turnover_time > NOW() and turnoverType = 2 - update sys_dept set status = 'jy' where deptId = #{deptId} + update sys_dept set status = 'jy' where dept_id = #{deptId} - + - update sys_dept set status = 'jy' where deptId = #{deptId} + update sys_dept set status = 'jy' dept_id IN diff --git a/fuintCashierWeb/src/views/cashier/NewComponents/Handover.vue b/fuintCashierWeb/src/views/cashier/NewComponents/Handover.vue index 7f9237ef4..463e8e73f 100644 --- a/fuintCashierWeb/src/views/cashier/NewComponents/Handover.vue +++ b/fuintCashierWeb/src/views/cashier/NewComponents/Handover.vue @@ -1,7 +1,7 @@ @@ -496,11 +495,18 @@ import {removeUserId} from "@/utils/auth"; } }); }, - printLocally() { - printLocallyApi(this.handoverList).then(res=>{ + async printLocally() { + const printHTML = document.querySelector('#report').innerHTML + // 将打印的区域赋值,进行打印 + window.document.body.innerHTML = printHTML + window.print() // 调用window打印方法 + window.location.reload() // 打印完成后重新加载页面 - }) }, + + + + // 交班 async shift() { let msg = '交班并退出系统, 是否继续?' @@ -699,6 +705,37 @@ import {removeUserId} from "@/utils/auth";