From a793ab76a94e55fd9cf9be3bd880ee751525fdd3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=BD=90=E5=A4=A9=E5=A4=A7=E5=9C=A3?= <17615834396@163.com>
Date: Fri, 1 Nov 2024 11:23:13 +0800
Subject: [PATCH] 1
---
fuintAdmin/src/api/allOrder.js | 10 +
.../reconciliation/tab/ref.vue | 82 +++-----
.../reconciliation/tab/trading.vue | 6 +-
.../controller/AllOrderInfoController.java | 16 +-
.../order/mapper/AllOrderInfoMapper.java | 6 +
.../order/mapper/xml/AllOrderInfoMapper.xml | 182 ++++++++++++++++--
.../order/service/AllOrderInfoService.java | 4 +-
.../service/impl/AllOrderInfoServiceImpl.java | 25 ++-
.../business/order/vo/AllOrderInfoVo.java | 14 ++
.../src/main/resources/application.properties | 2 +-
.../main/resources/mapper/MtStaffMapper.xml | 4 +-
11 files changed, 261 insertions(+), 90 deletions(-)
diff --git a/fuintAdmin/src/api/allOrder.js b/fuintAdmin/src/api/allOrder.js
index a2c8bc782..f248981c2 100644
--- a/fuintAdmin/src/api/allOrder.js
+++ b/fuintAdmin/src/api/allOrder.js
@@ -36,6 +36,16 @@ export function getTradingPageApi(query) {
})
}
+
+
+export function getTradingOnsPageApi(query) {
+ return request({
+ url: 'business/allOrderInfo/tradingList',
+ method: 'get',
+ params: query
+
+ })
+}
// 油站端 - 财务报表 -交易对账-交易明细 表格数据
export function transactionList(query) {
return request({
diff --git a/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue b/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue
index feeeb0bf1..fa68574fb 100644
--- a/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue
+++ b/fuintAdmin/src/views/financialStatement/reconciliation/tab/ref.vue
@@ -44,19 +44,6 @@
/>
-
-
-
-
-
-
-
-
-
@@ -101,7 +88,7 @@
- {{ orderStatistics.wechat?orderStatistics.wechat:0 }}/0
+ {{ orderStatistics.refBalance?orderStatistics.refBalance:0 }}/{{ orderStatistics.refBalanceCount?orderStatistics.refBalanceCount:0 }}
- {{ orderStatistics.alipay?orderStatistics.alipay:0 }}/0
+ {{ orderStatistics.oilOrder?orderStatistics.oilOrder:0 }}/{{ orderStatistics.oilOrderCount?orderStatistics.oilOrderCount:0 }}
@@ -120,7 +107,7 @@
- {{ orderStatistics.balance?orderStatistics.balance:0 }}/0
+ {{ orderStatistics.convenienceStore?orderStatistics.convenienceStore:0 }}/{{ orderStatistics.convenienceStoreCount?orderStatistics.convenienceStoreCount:0 }}
@@ -130,7 +117,7 @@
- {{orderStatistics.balanceCount?orderStatistics.balanceCount:0}}/0
+ {{orderStatistics.integral?orderStatistics.integral:0}}/{{orderStatistics.integralCount?orderStatistics.integralCount:0}}
@@ -147,25 +134,8 @@
-
- 收银台
- POS机
- 平台
- 小程序
- 其他
-
-
- 油品
- 商品
- 储值卡
- 积分
- 囤油卡
- 油品加商品(收银台订单)
- 挂账订单
- 其他
-
@@ -194,12 +164,12 @@
未支付
- 已支付
- 已退款
+ 退款中
+ 已退款
支付失败
-
+
@@ -280,8 +250,10 @@ import {
getTissueByDataApi,
getTradingPageApi,
getDicts,
- getStaffByStorId
+ getStaffByStorId,
+ getTradingOnsPageApi
} from "@/api/allOrder";
+import {getTradingOnPageApi} from "../../../../api/allOrder";
export default {
name: "reconciliation-trading",
@@ -331,6 +303,12 @@ export default {
balanceCount:"0",
refBalance:"0",
refBalanceCount:"0",
+ oilOrder:"0",
+ oilOrderCount:"0",
+ convenienceStore:"0",
+ convenienceStoreCount:"0",
+ integral:"0",
+ integralCount:"0",
},
total:0,
}
@@ -360,6 +338,7 @@ export default {
this.getList()
this.getDicts()
this.getStaffByStorId()
+ this.getOrderStatistics()
})
},
exportExcelCashier() {
@@ -376,34 +355,17 @@ export default {
// 获取订单统计信息
async getOrderStatistics() {
- // await this.getDeptList()
-
- let dateRange = []
- if (this.beginTime && this.endTime) {
- dateRange.push(this.beginTime.toLocaleDateString())
- dateRange.push(this.endTime.toLocaleDateString())
- }
- getTissueByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
+ getTissueByDataApi(this.queryParams).then(res=>{
this.orderStatistics = res.data
})
},
// 获取列表信息
async getList(val){
-
- // await this.getDeptList()
- let dateRange = []
- if (this.beginTime && this.endTime) {
- dateRange.push(this.beginTime.toLocaleDateString())
- dateRange.push(this.endTime.toLocaleDateString())
- }
- getTradingPageApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
+ getTradingOnsPageApi(this.queryParams).then( response => {
this.orderList = response.data.records;
this.total = response.data.total;
this.isSysDate = false
- // this.getDeptList()
- this.getOrderStatistics()
-
})
},
// 获取字典
diff --git a/fuintAdmin/src/views/financialStatement/reconciliation/tab/trading.vue b/fuintAdmin/src/views/financialStatement/reconciliation/tab/trading.vue
index 66176f758..0aa008dd2 100644
--- a/fuintAdmin/src/views/financialStatement/reconciliation/tab/trading.vue
+++ b/fuintAdmin/src/views/financialStatement/reconciliation/tab/trading.vue
@@ -95,9 +95,9 @@
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java
index 09f99e10b..826dd9390 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/controller/AllOrderInfoController.java
@@ -145,7 +145,18 @@ public class AllOrderInfoController extends BaseController {
IPage list = allOrderInfoService.getTradingPage(page, allOrderInfo);
return getSuccessResult(list);
}
-
+ /**
+ * 交易对账
+ * 交易明细分页查询
+ */
+ @GetMapping("tradingList")
+ public ResponseObject gettradingListPage(AllOrderInfoDto allOrderInfo,
+ @RequestParam(value = "page",defaultValue = "1") Integer pageNo,
+ @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
+ Page page =new Page(pageNo,pageSize);
+ IPage list = allOrderInfoService.gettradingListPage(page, allOrderInfo);
+ return getSuccessResult(list);
+ }
/**
*
@@ -175,8 +186,7 @@ public class AllOrderInfoController extends BaseController {
public ResponseObject getTradingData(AllOrderInfoDto allOrderInfo,
@RequestParam(value = "page",defaultValue = "1") Integer pageNo,
@RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){
- Page page =new Page(pageNo,pageSize);
- AllOrderInfoVo list = allOrderInfoService.getTradingData(allOrderInfo);
+ AllOrderInfoVo list = allOrderInfoService.getTradingsData(allOrderInfo);
return getSuccessResult(list);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java
index 134f032e5..5e0450671 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/AllOrderInfoMapper.java
@@ -44,6 +44,8 @@ public interface AllOrderInfoMapper extends BaseMapper {
BigDecimal allStream(@Param("list") List mtStoreList);
AllOrderInfoVo getTradingData(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo);
+ AllOrderInfoVo getTradingsData(@Param("allOrderInfo") AllOrderInfoDto allOrderInfo,
+ @Param("beginTime") String beginTime,@Param("endTime") String endTime);
IPage getTradingPage(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
@@ -115,4 +117,8 @@ public interface AllOrderInfoMapper extends BaseMapper {
List transactionAllList(@Param("obj") AllOrderInfoRes allOrderInfoRes,
@Param("beginTime") String beginTime,@Param("endTime") String endTime);
+
+
+ IPage gettradingListPage(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo,
+ @Param("beginTime") String beginTime,@Param("endTime") String endTime);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml
index 12109e4e7..085e5b390 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/AllOrderInfoMapper.xml
@@ -41,8 +41,7 @@
mu.mobile userMobile
from all_order_info aoi
left join mt_user mu ON aoi.user_id = mu.id
-
-
+ where (aoi.status='refund' or aoi.status='refunding') and aoi.store_id=#{allOrderInfo.storeId}
and aoi.type = #{allOrderInfo.type}
@@ -67,14 +66,6 @@
and date_format(pay_time,'%y%m%d') <= date_format(#{allOrderInfo.params.endTime},'%y%m%d')
-
- and aoi.store_id in
-
- #{item}
-
-
-
-
order by aoi.create_time desc
@@ -866,16 +857,14 @@
ai.*,
mu.NAME AS userName,
mc.merchant_name as merchantName,
- mt.real_name as createBy
+ mt.account_name as createBy
FROM
all_order_info ai
LEFT JOIN mt_user mu ON ai.user_id = mu.id
LEFT JOIN merchant_config mc on mc.id = ai.m_id
- left join mt_staff mt on ai.create_by=mt.id
+ left join t_account mt on ai.create_by=mt.acct_id
where 1=1
-
- and ai.store_id = #{obj.storeId}
-
+ and ai.store_id = #{obj.storeId}
and ai.payment_channel = #{obj.paymentChannel}
@@ -1006,12 +995,12 @@
ai.update_time,
mu.NAME AS userName,
mc.merchant_name as merchantName,
- mt.real_name as createBy
+ mt.account_name as createBy
FROM
all_order_info ai
LEFT JOIN mt_user mu ON ai.user_id = mu.id
LEFT JOIN merchant_config mc on mc.id = ai.m_id
- left join mt_staff mt on ai.create_by=mt.id
+ left join t_account mt on ai.create_by=mt.acct_id
where 1=1
and ai.store_id = #{obj.storeId}
@@ -1049,4 +1038,163 @@
ORDER BY ai.create_time DESC
+
+
+
+
+
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/AllOrderInfoService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/AllOrderInfoService.java
index 3bc78c7ba..d1dfedbaa 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/AllOrderInfoService.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/AllOrderInfoService.java
@@ -81,9 +81,9 @@ public interface AllOrderInfoService {
Map getOrderInfo(String orderNo, String type);
- AllOrderInfoVo getTradingData(AllOrderInfoDto allOrderInfo);
+ AllOrderInfoVo getTradingsData(AllOrderInfoDto allOrderInfo);
+ IPage gettradingListPage(Page page, AllOrderInfoDto allOrderInfo);
IPage getTradingPage(Page page, AllOrderInfoDto allOrderInfo);
-
IPage transactionList(Page page, AllOrderInfoRes allOrderInfoRes);
IPage runningWaterByInstituion(Page page, AllOrderInfoDto allOrderInfo);
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java
index ca31ac317..1606049fa 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/AllOrderInfoServiceImpl.java
@@ -70,6 +70,7 @@ import com.fuint.repository.mapper.MtStaffMapper;
import com.fuint.repository.mapper.MtUserMapper;
import com.fuint.repository.model.MtStaff;
import com.fuint.repository.model.MtUser;
+import com.fuint.repository.model.TAccount;
import com.fuint.system.dept.entity.SysDept;
import com.fuint.system.dept.mapper.SysDeptMapper;
import com.fuint.system.dept.service.ISysDeptService;
@@ -869,6 +870,15 @@ public class AllOrderInfoServiceImpl extends ServiceImpl gettradingListPage(Page page, AllOrderInfoDto allOrderInfo) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ allOrderInfo.setStoreId(nowAccountInfo.getStoreId());
+ IPage pageList = allOrderInfoMapper.gettradingListPage(page, allOrderInfo,
+ allOrderInfo.getDataRange()==null?"":allOrderInfo.getDataRange()[0],
+ allOrderInfo.getDataRange()==null?"":allOrderInfo.getDataRange()[1]);
+ return pageList;
+ }
+
+
+
@Override
public IPage transactionList(Page page, AllOrderInfoRes allOrderInfoRes) {
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
@@ -961,7 +983,6 @@ public class AllOrderInfoServiceImpl extends ServiceImpl allOrderInfoVoIPage = super.baseMapper.transactionList(page, allOrderInfoRes,
allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0],
allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]);
-
return allOrderInfoVoIPage;
}
@@ -2491,7 +2512,7 @@ public class AllOrderInfoServiceImpl extends ServiceImpl mtStaffs= mtStaffMapper.getStaffByStorId(nowAccountInfo.getStoreId());
+ List mtStaffs= mtStaffMapper.getStaffByStorId(nowAccountInfo.getStoreId());
return mtStaffs;
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java
index 105483947..f21f561d3 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/AllOrderInfoVo.java
@@ -92,4 +92,18 @@ public class AllOrderInfoVo extends AllOrderInfo {
@TableField(exist = false)
private Double laKaLaCount;
+ @TableField(exist = false)
+ private String oilOrder;
+ @TableField(exist = false)
+ private String oilOrderCount;
+ @TableField(exist = false)
+ private String convenienceStore;
+ @TableField(exist = false)
+ private String convenienceStoreCount;
+ @TableField(exist = false)
+ private String integral;
+ @TableField(exist = false)
+ private String integralCount;
+
+
}
diff --git a/fuintBackend/fuint-application/src/main/resources/application.properties b/fuintBackend/fuint-application/src/main/resources/application.properties
index 98477af52..27f4e4d47 100644
--- a/fuintBackend/fuint-application/src/main/resources/application.properties
+++ b/fuintBackend/fuint-application/src/main/resources/application.properties
@@ -1,7 +1,7 @@
# \u57FA\u672C\u914D\u7F6E
server.port=8080
env.profile=dev
-env.properties.path=C:/Users/qq244432/Desktop/project/oil-station/fuintBackend/configure/
+env.properties.path=D:/work/sw/fuintBackend/configure/
#env.properties.path=F:/work/oilSystem/fuintBackend/configure/
#env.properties.path=D:/oil/new-oil/oilSystem/fuintBackend/configure/
#env.properties.path=D:/code/bulidmap/oil-station/fuintBackend/configure
diff --git a/fuintBackend/fuint-repository/src/main/resources/mapper/MtStaffMapper.xml b/fuintBackend/fuint-repository/src/main/resources/mapper/MtStaffMapper.xml
index c1a61e97d..598d112f1 100644
--- a/fuintBackend/fuint-repository/src/main/resources/mapper/MtStaffMapper.xml
+++ b/fuintBackend/fuint-repository/src/main/resources/mapper/MtStaffMapper.xml
@@ -16,7 +16,7 @@
-