diff --git a/fuintAdmin/src/api/allOrder.js b/fuintAdmin/src/api/allOrder.js index 56511285e..106ad5190 100644 --- a/fuintAdmin/src/api/allOrder.js +++ b/fuintAdmin/src/api/allOrder.js @@ -376,5 +376,61 @@ export function getRunningWaterByDataApi17(query) { }) } +export function getInstituionListApi19(query) { + return request({ + url: 'business/allOrderInfo/getInstituionListApi19', + method: 'get', + params: query + + }) +} +export function getRunningWaterByDataApi21(query) { + return request({ + url: 'business/allOrderInfo/getRunningWaterByDataApi21', + method: 'get', + params: query + + }) +} +export function getInstituionListApi23(query) { + return request({ + url: 'business/allOrderInfo/getInstituionListApi23', + method: 'get', + params: query + + }) +} + +export function getRunningWaterByDataApi25(query) { + return request({ + url: 'business/allOrderInfo/getRunningWaterByDataApi25', + method: 'get', + params: query + + }) +} +export function getInstituionListApi27(query) { + return request({ + url: 'business/allOrderInfo/getInstituionListApi27', + method: 'get', + params: query + + }) +} + +export function getRunningWaterByDataApi29(query) { + return request({ + url: 'business/allOrderInfo/getRunningWaterByDataApi29', + method: 'get', + params: query + + }) +} + + + + + + diff --git a/fuintAdmin/src/views/financialStatement/buy/tab/em.vue b/fuintAdmin/src/views/financialStatement/buy/tab/em.vue index 7c0b8729f..c7d7908ea 100644 --- a/fuintAdmin/src/views/financialStatement/buy/tab/em.vue +++ b/fuintAdmin/src/views/financialStatement/buy/tab/em.vue @@ -28,7 +28,7 @@
-
0
+
{{orderStatistics.addOilMl}}
@@ -37,7 +37,7 @@
-
0
+
{{orderStatistics.addOilNum}}
@@ -47,7 +47,7 @@
-
0
+
{{orderStatistics.orderNum}}
@@ -57,7 +57,7 @@
-
0
+
{{orderStatistics.discountAmount}}
@@ -68,7 +68,7 @@
-
0
+
{{orderStatistics.payAmount}}
@@ -77,7 +77,7 @@
-
0
+
{{orderStatistics.refMoney}}
@@ -89,35 +89,30 @@
- - - - - - - - + + + + + + + +
-
- - -
- +
@@ -129,7 +124,9 @@ import { getRunningWaterByDataApi, exportExcelOilDeptApi, getmyDataApi, - getInstituionListApi2 + getInstituionListApi2, + getInstituionListApi19, + getRunningWaterByDataApi21 } from "@/api/allOrder"; export default { @@ -158,12 +155,22 @@ export default { }, orderStatistics:{ - numberOfStrokes:'0', - theTotalAmountOfTheOrder:'0', - theTotalAmountPaid:'0', - oilDiscounts:'0', - theTotalAmountOfOil:'0', - theTotalAmountOfTheItem:'0', + addOilMl:'0', + addOilNum:'0', + orderNum:'0', + discountAmount:'0', + refMoney:'0', + payAmount:'0', + }, + orderStatisticsAllMsg:{ + days:'', + userName:'', + addOilMl:'0', + addOilNum:'0', + orderNum:'0', + discountAmount:'0', + refMoney:'0', + payAmount:'0', }, total:0, timeDifference:1, @@ -175,17 +182,14 @@ export default { start.setMinutes(0) start.setSeconds(0) start.setMilliseconds(0) - this.dateRange = [start,new Date()]; - this.beginTime = start - this.endTime = new Date() - - this.timeDifferenceMilliseconds = this.endTime - this.beginTime; - this.timeDifference = timeDifferenceMilliseconds / (1000 * 60 * 60 * 24); - - console.log("timeDifference",this.timeDifference) + let year = start.getFullYear(); // 获取年份 + let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1 + let date = String(start.getDate()).padStart(2, '0'); // 获取日期 + this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date]; this.isSysDate = true await this.getDeptList(); this.getList(); + this.getOrderStatistics() }, methods:{ @@ -215,7 +219,7 @@ export default { dateRange.push(this.beginTime.toLocaleDateString()) dateRange.push(this.endTime.toLocaleDateString()) } - getRunningWaterByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{ + getRunningWaterByDataApi21(this.addDateRange(this.queryParams, dateRange)).then(res=>{ this.orderStatistics = res.data }) }, @@ -227,17 +231,12 @@ export default { // 获取列表信息 getList(val){ - let dateRange = [] - if (this.beginTime && this.endTime) { - dateRange.push(this.beginTime.toLocaleDateString()) - dateRange.push(this.endTime.toLocaleDateString()) - } - getInstituionListApi2(this.addDateRange(this.queryParams,dateRange)).then( response => { - this.orderList = response.data.records; + getInstituionListApi19(this.queryParams).then( response => { + this.orderStatisticsAllMsg = response.data.records; this.total = response.data.total; this.isSysDate = false }) - this.getOrderStatistics() + }, // 搜索按钮操作 @@ -256,8 +255,16 @@ export default { deptType:"3", } - this.beginTime = "" - this.endTime = "" + let start = new Date(); + start.setHours(0) + start.setMinutes(0) + start.setSeconds(0) + start.setMilliseconds(0) + let year = start.getFullYear(); // 获取年份 + let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1 + let date = String(start.getDate()).padStart(2, '0'); // 获取日期 + this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date]; + this.isSysDate = true await this.getDeptList() this.handleQuery(); }, diff --git a/fuintAdmin/src/views/financialStatement/buy/tab/goods.vue b/fuintAdmin/src/views/financialStatement/buy/tab/goods.vue index 00d8fa339..787b887c9 100644 --- a/fuintAdmin/src/views/financialStatement/buy/tab/goods.vue +++ b/fuintAdmin/src/views/financialStatement/buy/tab/goods.vue @@ -6,21 +6,15 @@
- - - 至 - + v-model="queryParams.dataRange" + type="daterange" + range-separator="至" + start-placeholder="开始日期" + end-placeholder="结束日期" + format="yyyy-MM-dd" + value-format="yyyy-MM-dd" + > @@ -33,8 +27,8 @@
- -
0
+ +
{{orderStatistics.salesNum}}
@@ -42,8 +36,8 @@
- -
0
+ +
{{orderStatistics.buyingPrice}}
@@ -52,8 +46,8 @@
- -
0
+ +
{{orderStatistics.orderNum}}
@@ -62,8 +56,8 @@
- -
0
+ +
{{orderStatistics.discountAmount}}
@@ -73,8 +67,8 @@
- -
0
+ +
{{orderStatistics.payAmount}}
@@ -82,8 +76,8 @@
- -
0
+ +
{{orderStatistics.refMoney}}
@@ -99,31 +93,28 @@ border style="width: 100%;margin-top: 15px"> - - - - - - - - - - - + + + + + + + + + + +
-
- + - + @pagination="getList" + />
-
@@ -135,7 +126,9 @@ import { getRunningWaterByDataApi, exportExcelOilDeptApi, getmyDataApi, - getInstituionListApi2 + getInstituionListApi2, + getInstituionListApi23, + getRunningWaterByDataApi25 } from "@/api/allOrder"; export default { @@ -160,15 +153,15 @@ export default { beginTime:"", endTime:"", deptType:"3", - + dataRange:[] }, orderStatistics:{ - numberOfStrokes:'0', - theTotalAmountOfTheOrder:'0', - theTotalAmountPaid:'0', - oilDiscounts:'0', - theTotalAmountOfOil:'0', - theTotalAmountOfTheItem:'0', + salesNum:'0', + buyingPrice:'0', + orderNum:'0', + discountAmount:'0', + refMoney:'0', + payAmount:'0', }, total:0, timeDifference:1, @@ -180,18 +173,14 @@ export default { start.setMinutes(0) start.setSeconds(0) start.setMilliseconds(0) - this.dateRange = [start,new Date()]; - this.beginTime = start - this.endTime = new Date() - - this.timeDifferenceMilliseconds = this.endTime - this.beginTime; - this.timeDifference = timeDifferenceMilliseconds / (1000 * 60 * 60 * 24); - - console.log("timeDifference",this.timeDifference) + let year = start.getFullYear(); // 获取年份 + let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1 + let date = String(start.getDate()).padStart(2, '0'); // 获取日期 + this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date]; this.isSysDate = true await this.getDeptList(); this.getList(); - + this.getOrderStatistics() }, methods:{ getDays(){ @@ -215,12 +204,7 @@ export default { // 获取订单统计信息 getOrderStatistics() { - let dateRange = [] - if (this.beginTime && this.endTime) { - dateRange.push(this.beginTime.toLocaleDateString()) - dateRange.push(this.endTime.toLocaleDateString()) - } - getRunningWaterByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{ + getRunningWaterByDataApi25(this.queryParams).then(res=>{ this.orderStatistics = res.data }) }, @@ -232,17 +216,12 @@ export default { // 获取列表信息 getList(val){ - let dateRange = [] - if (this.beginTime && this.endTime) { - dateRange.push(this.beginTime.toLocaleDateString()) - dateRange.push(this.endTime.toLocaleDateString()) - } - getInstituionListApi2(this.addDateRange(this.queryParams,dateRange)).then( response => { + getInstituionListApi23(this.queryParams).then( response => { this.orderList = response.data.records; this.total = response.data.total; this.isSysDate = false }) - this.getOrderStatistics() + }, // 搜索按钮操作 @@ -261,8 +240,16 @@ export default { deptType:"3", } - this.beginTime = "" - this.endTime = "" + let start = new Date(); + start.setHours(0) + start.setMinutes(0) + start.setSeconds(0) + start.setMilliseconds(0) + let year = start.getFullYear(); // 获取年份 + let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1 + let date = String(start.getDate()).padStart(2, '0'); // 获取日期 + this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date]; + this.isSysDate = true await this.getDeptList() this.handleQuery(); }, diff --git a/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue b/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue index 16f7001e4..c450f612b 100644 --- a/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue +++ b/fuintAdmin/src/views/financialStatement/buy/tab/inter.vue @@ -6,19 +6,14 @@ - - 至 - + v-model="queryParams.dataRange" + type="daterange" + range-separator="至" + start-placeholder="开始日期" + end-placeholder="结束日期" + format="yyyy-MM-dd" + value-format="yyyy-MM-dd" + > @@ -31,26 +26,26 @@
- -
0/0
+ +
{{orderStatistics.exchangeNum}}
-
总加油升数
+
总兑换数量
- -
0/0
+ +
{{orderStatistics.consumeInter}}
-
总加油笔数(元)
+
总消耗积分
- -
0/0
+ +
{{orderStatistics.orderNum}}
@@ -58,8 +53,8 @@
- -
0/0
+ +
{{orderStatistics.payAmount}}
@@ -73,27 +68,22 @@ border style="width: 100%;margin-top: 15px"> - - - - - - - + + + + + + +
-
- - -
- + @pagination="getList" + />
@@ -105,7 +95,9 @@ import { getRunningWaterByDataApi, exportExcelOilDeptApi, getmyDataApi, - getInstituionListApi2 + getInstituionListApi2, + getInstituionListApi27, + getRunningWaterByDataApi29 } from "@/api/allOrder"; export default { name: "runningWater-oilDepot", @@ -129,15 +121,13 @@ export default { beginTime:"", endTime:"", deptType:"3", - + dataRange:[] }, orderStatistics:{ - numberOfStrokes:'0', - theTotalAmountOfTheOrder:'0', - theTotalAmountPaid:'0', - oilDiscounts:'0', - theTotalAmountOfOil:'0', - theTotalAmountOfTheItem:'0', + exchangeNum:'0', + consumeInter:'0', + orderNum:'0', + payAmount:'0', }, total:0, timeDifference:1, @@ -149,18 +139,14 @@ export default { start.setMinutes(0) start.setSeconds(0) start.setMilliseconds(0) - this.dateRange = [start,new Date()]; - this.beginTime = start - this.endTime = new Date() - - this.timeDifferenceMilliseconds = this.endTime - this.beginTime; - this.timeDifference = timeDifferenceMilliseconds / (1000 * 60 * 60 * 24); - - console.log("timeDifference",this.timeDifference) + let year = start.getFullYear(); // 获取年份 + let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1 + let date = String(start.getDate()).padStart(2, '0'); // 获取日期 + this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date]; this.isSysDate = true await this.getDeptList(); this.getList(); - + this.getOrderStatistics() }, methods:{ getDays(){ @@ -184,13 +170,10 @@ export default { // 获取订单统计信息 getOrderStatistics() { - let dateRange = [] - if (this.beginTime && this.endTime) { - dateRange.push(this.beginTime.toLocaleDateString()) - dateRange.push(this.endTime.toLocaleDateString()) - } - getRunningWaterByDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{ + console.log(11111111) + getRunningWaterByDataApi29(this.queryParams).then(res=>{ this.orderStatistics = res.data + console.log(this.orderStatistics) }) }, async getDeptList() { @@ -201,17 +184,12 @@ export default { // 获取列表信息 getList(val){ - let dateRange = [] - if (this.beginTime && this.endTime) { - dateRange.push(this.beginTime.toLocaleDateString()) - dateRange.push(this.endTime.toLocaleDateString()) - } - getInstituionListApi2(this.addDateRange(this.queryParams,dateRange)).then( response => { + getInstituionListApi27(this.queryParams).then( response => { this.orderList = response.data.records; this.total = response.data.total; this.isSysDate = false }) - this.getOrderStatistics() + }, // 搜索按钮操作 @@ -219,6 +197,7 @@ export default { this.queryParams.page = 1; await this.getDeptList(); this.getList(); + this.getOrderStatistics() }, // 重置按钮操作 @@ -230,8 +209,16 @@ export default { deptType:"3", } - this.beginTime = "" - this.endTime = "" + let start = new Date(); + start.setHours(0) + start.setMinutes(0) + start.setSeconds(0) + start.setMilliseconds(0) + let year = start.getFullYear(); // 获取年份 + let month = String(start.getMonth() + 1).padStart(2, '0'); // 获取月份,月份从0开始所以要+1 + let date = String(start.getDate()).padStart(2, '0'); // 获取日期 + this.queryParams.dataRange = [ year+'-'+month+'-'+date, year+'-'+month+'-'+date]; + this.isSysDate = true await this.getDeptList() this.handleQuery(); }, diff --git a/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue b/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue index 6c37da914..73d64fe19 100644 --- a/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue +++ b/fuintAdmin/src/views/financialStatement/buy/tab/oil.vue @@ -104,16 +104,14 @@
-
- + - + @pagination="getList" + />
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 536341fa5..0774f487b 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 @@ -618,4 +618,78 @@ public class AllOrderInfoController extends BaseController { StatisticsSaleOilOrderByGunDto map = allOrderInfoService.getRunningWaterByDataApi17(allOrderInfoRes); return getSuccessResult(map); } + + /** + * 销售员统计 + * @param allOrderInfoRes + * @return + */ + @GetMapping("/getInstituionListApi19") + public ResponseObject getInstituionListApi19(AllOrderInfoRes allOrderInfoRes, + @RequestParam(value = "page",defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){ + Page page =new Page(pageNo,pageSize); + IPage map = allOrderInfoService.getInstituionListApi19(page,allOrderInfoRes); + return getSuccessResult(map); + } + /** + * 油枪销售统计 + * @param allOrderInfoRes + * @return + */ + @GetMapping("/getRunningWaterByDataApi21") + public ResponseObject getRunningWaterByDataApi21(AllOrderInfoRes allOrderInfoRes){ + StatisticsSaleUserOrderDto map = allOrderInfoService.getRunningWaterByDataApi21(allOrderInfoRes); + return getSuccessResult(map); + } + /** + * 销售员统计 + * @param allOrderInfoRes + * @return + */ + @GetMapping("/getInstituionListApi23") + public ResponseObject getInstituionListApi23(AllOrderInfoRes allOrderInfoRes, + @RequestParam(value = "page",defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){ + Page page =new Page(pageNo,pageSize); + IPage map = allOrderInfoService.getInstituionListApi23(page,allOrderInfoRes); + return getSuccessResult(map); + } + + /** + * 商品销售统计 + * @param allOrderInfoRes + * @return + */ + @GetMapping("/getRunningWaterByDataApi25") + public ResponseObject getRunningWaterByDataApi25(AllOrderInfoRes allOrderInfoRes){ + StatisticsSaleGoodOrderDto map = allOrderInfoService.getRunningWaterByDataApi25(allOrderInfoRes); + return getSuccessResult(map); + } + + /** + * 积分兑换商品统计 + * @param allOrderInfoRes + * @return + */ + @GetMapping("/getInstituionListApi27") + public ResponseObject getInstituionListApi27(AllOrderInfoRes allOrderInfoRes, + @RequestParam(value = "page",defaultValue = "1") Integer pageNo, + @RequestParam(value = "pageSize",defaultValue = "10") Integer pageSize){ + Page page =new Page(pageNo,pageSize); + IPage map = allOrderInfoService.getInstituionListApi27(page,allOrderInfoRes); + return getSuccessResult(map); + } + + + /** + * 积分兑换商品统计 + * @param allOrderInfoRes + * @return + */ + @GetMapping("/getRunningWaterByDataApi29") + public ResponseObject getRunningWaterByDataApi29(AllOrderInfoRes allOrderInfoRes){ + StatisticsGoodInterOrderDto map = allOrderInfoService.getRunningWaterByDataApi29(allOrderInfoRes); + return getSuccessResult(map); + } } diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsGoodInterOrderDto.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsGoodInterOrderDto.java new file mode 100644 index 000000000..37cb080b1 --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsGoodInterOrderDto.java @@ -0,0 +1,25 @@ +package com.fuint.business.order.dto; + +import lombok.Data; + +import java.io.Serializable; + +@Data +public class StatisticsGoodInterOrderDto implements Serializable { + + private static final long serialVersionUID = 1L; + //商品名称 + private String goodName; + //商品编号 + private String goodNum; + //兑换数量 + private String exchangeNum; + //消耗积分 + private String consumeInter; + //订单金额 + private String orderNum; + //实收金额 + private String payAmount; + //统计周期 + private String days; +} diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsSaleGoodOrderDto.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsSaleGoodOrderDto.java new file mode 100644 index 000000000..53d19088e --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsSaleGoodOrderDto.java @@ -0,0 +1,33 @@ +package com.fuint.business.order.dto; + +import lombok.Data; + +import java.io.Serializable; + +@Data +public class StatisticsSaleGoodOrderDto implements Serializable { + + private static final long serialVersionUID = 1L; + //商品名称 + private String goodName; + //商品编号 + private String goodNum; + //拼音码 + private String pinYin; + //商品的规格 + private String goodSpecs; + //销量 + private String salesNum; + //成本金额 + private String buyingPrice; + //订单金额 + private String orderNum; + //优惠金额 + private String discountAmount; + //退款金额 + private String refMoney; + //实收金额 + private String payAmount; + //统计周期 + private String days; +} diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsSaleUserOrderDto.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsSaleUserOrderDto.java new file mode 100644 index 000000000..b0bf4cf1f --- /dev/null +++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/dto/StatisticsSaleUserOrderDto.java @@ -0,0 +1,26 @@ +package com.fuint.business.order.dto; + +import lombok.Data; + +import java.io.Serializable; + +@Data +public class StatisticsSaleUserOrderDto implements Serializable { + private static final long serialVersionUID = 1L; + //统计周期 + private String days; + //加油油号 + private String userName; + //加油升数 + private String addOilMl; + //加油笔数 + private String addOilNum; + //订单金额 + private String orderNum; + //优惠金额 + private String discountAmount; + //退款金额 + private String refMoney; + //实收金额 + private String payAmount; +} 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 02b116e1b..c716adb4d 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 @@ -155,5 +155,21 @@ public interface AllOrderInfoMapper extends BaseMapper { StatisticsSaleOilOrderByGunDto getRunningWaterByDataApi17(@Param("obj") AllOrderInfoRes allOrderInfoRes, @Param("beginTime") String beginTime, @Param("endTime") String endTime); + IPage getInstituionListApi19(@Param("page") Page page, @Param("obj") AllOrderInfoRes allOrderInfoRes, + @Param("beginTime") String beginTime, @Param("endTime") String endTime); + StatisticsSaleUserOrderDto getRunningWaterByDataApi21(@Param("obj") AllOrderInfoRes allOrderInfoRes, + @Param("beginTime") String beginTime, @Param("endTime") String endTime); + + IPage getInstituionListApi23(@Param("page") Page page, @Param("obj") AllOrderInfoRes allOrderInfoRes, + @Param("beginTime") String beginTime, @Param("endTime") String endTime); + + StatisticsSaleGoodOrderDto getRunningWaterByDataApi25(@Param("obj") AllOrderInfoRes allOrderInfoRes, + @Param("beginTime") String beginTime, @Param("endTime") String endTime); + + IPage getInstituionListApi27(@Param("page") Page page, @Param("obj") AllOrderInfoRes allOrderInfoRes, + @Param("beginTime") String beginTime, @Param("endTime") String endTime); + + StatisticsGoodInterOrderDto getRunningWaterByDataApi29(@Param("obj") AllOrderInfoRes allOrderInfoRes, + @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 9cb8273da..71cddb122 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 @@ -1688,4 +1688,144 @@ where og.store_id=#{obj.storeId} + + + + + + + + + + + + + + + + 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 c79571644..73fcaa8f3 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 @@ -230,4 +230,12 @@ AllOrderActivityVo getOneByOrderId(Integer orderId); IPage getInstituionListApi15(Page page, AllOrderInfoRes allOrderInfoRes); StatisticsSaleOilOrderByGunDto getRunningWaterByDataApi17(AllOrderInfoRes allOrderInfoRes); + + IPage getInstituionListApi19(Page page, AllOrderInfoRes allOrderInfoRes); + StatisticsSaleUserOrderDto getRunningWaterByDataApi21(AllOrderInfoRes allOrderInfoRes); + IPage getInstituionListApi23(Page page, AllOrderInfoRes allOrderInfoRes); + + StatisticsSaleGoodOrderDto getRunningWaterByDataApi25(AllOrderInfoRes allOrderInfoRes); + IPage getInstituionListApi27(Page page, AllOrderInfoRes allOrderInfoRes); + StatisticsGoodInterOrderDto getRunningWaterByDataApi29(AllOrderInfoRes allOrderInfoRes); } 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 5110683ec..418c26d29 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 @@ -2771,4 +2771,57 @@ public class AllOrderInfoServiceImpl extends ServiceImpl getInstituionListApi19(Page page, AllOrderInfoRes allOrderInfoRes) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + allOrderInfoRes.setStoreId(nowAccountInfo.getStoreId()); + return allOrderInfoMapper.getInstituionListApi19(page,allOrderInfoRes, + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0], + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]); + } + @Override + public StatisticsSaleUserOrderDto getRunningWaterByDataApi21(AllOrderInfoRes allOrderInfoRes) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + allOrderInfoRes.setStoreId(nowAccountInfo.getStoreId()); + return allOrderInfoMapper.getRunningWaterByDataApi21(allOrderInfoRes, + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0], + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]); + } + + @Override + public IPage getInstituionListApi23(Page page, AllOrderInfoRes allOrderInfoRes) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + allOrderInfoRes.setStoreId(nowAccountInfo.getStoreId()); + return allOrderInfoMapper.getInstituionListApi23(page,allOrderInfoRes, + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0], + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]); + } + @Override + public StatisticsSaleGoodOrderDto getRunningWaterByDataApi25(AllOrderInfoRes allOrderInfoRes) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + allOrderInfoRes.setStoreId(nowAccountInfo.getStoreId()); + return allOrderInfoMapper.getRunningWaterByDataApi25(allOrderInfoRes, + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0], + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]); + } + + @Override + public IPage getInstituionListApi27(Page page, AllOrderInfoRes allOrderInfoRes) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + allOrderInfoRes.setStoreId(nowAccountInfo.getStoreId()); + return allOrderInfoMapper.getInstituionListApi27(page,allOrderInfoRes, + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0], + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]); + } + + @Override + public StatisticsGoodInterOrderDto getRunningWaterByDataApi29(AllOrderInfoRes allOrderInfoRes) { + AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo(); + allOrderInfoRes.setStoreId(nowAccountInfo.getStoreId()); + return allOrderInfoMapper.getRunningWaterByDataApi29(allOrderInfoRes, + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[0], + allOrderInfoRes.getDataRange()==null?"":allOrderInfoRes.getDataRange()[1]); + } }