-
-
-
-
-
-
-
+
+
+
+ {{item}}
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
-
- 搜索
- 重置
-
累计交易金额(万元)
-
{{orderStatistics.payAmount}}
+
{{orderStatistics.payAmount || 0}}
累计交易笔数
-
{{orderStatistics.count}}
+
{{orderStatistics.count || 0}}
累计销售商品数量
-
{{orderStatistics.goodsNum}}
+
{{orderStatistics.goodsNum || 0}}
热销品类数量
-
{{orderStatistics.cvg}}
+
{{orderStatistics.cvg || 0}}
@@ -93,6 +109,7 @@ import {
getTradingPageApi
} from "@/api/allOrder";
import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStatement/yunyingfenxi";
+import {parseTime} from "@/utils/fuint";
export default {
name: "yunyingfenxi-store",
@@ -104,6 +121,15 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
// 员工列表
staffList:[],
ordersInfo:{},
+
+ timeList:[
+ "今日",
+ "近一周",
+ "近一月",
+ "近一年",
+ ],
+ timeIndex:0,
+ value2: [],
// 日期范围
dateRange: [],
beginTime:"",
@@ -147,11 +173,41 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
this.beginTime = start
this.endTime = new Date()
this.isSysDate = true
+ let start1 = new Date();
+ start1.setHours(0)
+ start1.setMinutes(0)
+ start1.setSeconds(0)
+ start1.setMilliseconds(0)
+ this.value2 = [parseTime(start1),parseTime(new Date())];
this.getList();
this.getDeptList();
},
methods:{
+ editColor(index){
+ this.timeIndex = index
+ if (this.timeList[index]=='今日'){
+ let start = new Date();
+ start.setHours(0)
+ start.setMinutes(0)
+ start.setSeconds(0)
+ start.setMilliseconds(0)
+ this.value2 = [start,new Date()];
+ } else if (this.timeList[index]=='近一周'){
+ let nowDate = new Date();
+ let oneWeekAgo = new Date(nowDate.getTime() - 6 * 24 * 60 * 60 * 1000)
+ this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
+ } else if (this.timeList[index]=='近一月'){
+ let nowDate = new Date();
+ let oneWeekAgo = new Date(nowDate.getTime() - 30 * 24 * 60 * 60 * 1000)
+ this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
+ } else if (this.timeList[index]=='近一年'){
+ let nowDate = new Date();
+ let oneWeekAgo = new Date(nowDate.getFullYear() - 1, nowDate.getMonth(), nowDate.getDate())
+ this.value2 = [parseTime(oneWeekAgo),parseTime(nowDate)]
+ }
+ this.handleQuery()
+ },
getDeptList() {
getRunningWaterByTissueApi(this.addDateRange(this.queryParams)).then( response => {
this.deptList = response.data.records;
@@ -176,7 +232,7 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
dateRange.push(this.beginTime.toLocaleDateString())
dateRange.push(this.endTime.toLocaleDateString())
}
- getFenXiStoreDataApi(this.addDateRange(this.queryParams, dateRange)).then(res=>{
+ getFenXiStoreDataApi(this.addDateRange(this.queryParams, this.value2)).then(res=>{
this.orderStatistics = res.data
console.log("res.data1111",res.data)
})
@@ -189,7 +245,7 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
dateRange.push(this.beginTime.toLocaleDateString())
dateRange.push(this.endTime.toLocaleDateString())
}
- getFenXiStoreListApi(this.addDateRange(this.queryParams,dateRange)).then( response => {
+ getFenXiStoreListApi(this.addDateRange(this.queryParams,this.value2)).then( response => {
this.orderList = response.data.records;
this.total = response.data.total;
this.isSysDate = false
@@ -214,6 +270,13 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
}
this.beginTime = ""
this.endTime = ""
+ let start1 = new Date();
+ start1.setHours(0)
+ start1.setMinutes(0)
+ start1.setSeconds(0)
+ start1.setMilliseconds(0)
+ this.value2 = [parseTime(start1),parseTime(new Date())];
+ this.timeIndex = 0
this.handleQuery();
},
}
@@ -294,4 +357,27 @@ import {getFenXiStoreDataApi, getFenXiStoreListApi} from "@/api/financialStateme
background-repeat: no-repeat; /* 禁止背景图片重复 */
}
+.d-s{
+ display: flex;
+ align-items: center;
+}
+.anniu-h{
+ width: 80px;
+ height: 26px;
+ background: #FAFAFA;
+ border-radius: 4px 4px 4px 4px;
+ border: 1px solid #DDDDDD;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: #777777;
+ margin-right: 20px;
+}
+.anniu-act{
+ background: #FF9655 !important;
+ border: 1px solid #FF9655 !important;
+ color: #fff;
+
+}
+
diff --git a/fuintAdmin_zt/src/views/homeComponents/agent.vue b/fuintAdmin_zt/src/views/homeComponents/agent.vue
index 85403c8fa..81c9832a8 100644
--- a/fuintAdmin_zt/src/views/homeComponents/agent.vue
+++ b/fuintAdmin_zt/src/views/homeComponents/agent.vue
@@ -237,7 +237,7 @@ export default {
},
methods:{
getNoticeList(){
- getNotificationlogList({pageNo: 1, pageSize: 3,sentTo:this.accountId}).then(res => {
+ getNotificationlogList({pageNo: 1, pageSize: 4,sentTo:this.accountId}).then(res => {
this.noticeList = res.data.records
})
},
diff --git a/fuintAdmin_zt/src/views/homeComponents/manage.vue b/fuintAdmin_zt/src/views/homeComponents/manage.vue
index bfc70892e..16fc8076f 100644
--- a/fuintAdmin_zt/src/views/homeComponents/manage.vue
+++ b/fuintAdmin_zt/src/views/homeComponents/manage.vue
@@ -243,7 +243,7 @@ export default {
},
methods:{
getNoticeList(){
- getNotificationlogList({pageNo: 1, pageSize: 3,sentTo:this.accountId}).then(res => {
+ getNotificationlogList({pageNo: 1, pageSize: 4,sentTo:this.accountId}).then(res => {
this.noticeList = res.data.records
})
},
diff --git a/fuintAdmin_zt/src/views/homeComponents/shopowner.vue b/fuintAdmin_zt/src/views/homeComponents/shopowner.vue
index 2e15a7075..089a8f9a4 100644
--- a/fuintAdmin_zt/src/views/homeComponents/shopowner.vue
+++ b/fuintAdmin_zt/src/views/homeComponents/shopowner.vue
@@ -241,7 +241,7 @@ export default {
},
methods:{
getNoticeList(){
- getNotificationlogList({pageNo: 1, pageSize: 3,sentTo:this.accountId}).then(res => {
+ getNotificationlogList({pageNo: 1, pageSize: 4,sentTo:this.accountId}).then(res => {
this.noticeList = res.data.records
})
},
diff --git a/fuintAdmin_zt/src/views/setting/app/index.vue b/fuintAdmin_zt/src/views/setting/app/index.vue
index fbeb358e8..b3786a6df 100644
--- a/fuintAdmin_zt/src/views/setting/app/index.vue
+++ b/fuintAdmin_zt/src/views/setting/app/index.vue
@@ -30,6 +30,7 @@
新增小程序配置
@@ -65,12 +66,14 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['setting:app:edit']"
>编辑
删除
diff --git a/fuintAdmin_zt/src/views/setting/banner/index.vue b/fuintAdmin_zt/src/views/setting/banner/index.vue
index 6055546d1..52fa797d0 100644
--- a/fuintAdmin_zt/src/views/setting/banner/index.vue
+++ b/fuintAdmin_zt/src/views/setting/banner/index.vue
@@ -44,6 +44,7 @@
type="primary"
icon="el-icon-plus"
@click="handleAdd"
+ v-hasPermi="['setting:banner:add']"
>新增banner图
@@ -90,12 +91,14 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['setting:banner:edit']"
>编辑
删除
diff --git a/fuintAdmin_zt/src/views/setting/hardware.vue b/fuintAdmin_zt/src/views/setting/hardware.vue
index 43d352c88..0b9147e53 100644
--- a/fuintAdmin_zt/src/views/setting/hardware.vue
+++ b/fuintAdmin_zt/src/views/setting/hardware.vue
@@ -41,6 +41,7 @@
type="primary"
icon="el-icon-plus"
@click="handleAdd"
+ v-hasPermi="['setting:hardware:add']"
>新增商品
@@ -75,6 +76,7 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['setting:hardware:edit']"
>编辑
上架
下架
删除
diff --git a/fuintAdmin_zt/src/views/setting/message.vue b/fuintAdmin_zt/src/views/setting/message.vue
index 690b5aa11..86fb18fed 100644
--- a/fuintAdmin_zt/src/views/setting/message.vue
+++ b/fuintAdmin_zt/src/views/setting/message.vue
@@ -32,6 +32,7 @@
type="primary"
icon="el-icon-plus"
@click="handleAdd"
+ v-hasPermi="['setting:message:add']"
>新增短信模板
@@ -68,12 +69,14 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['setting:message:edit']"
>编辑
删除
diff --git a/fuintAdmin_zt/src/views/setting/pay/index.vue b/fuintAdmin_zt/src/views/setting/pay/index.vue
index 960ca1dae..c3eba09f4 100644
--- a/fuintAdmin_zt/src/views/setting/pay/index.vue
+++ b/fuintAdmin_zt/src/views/setting/pay/index.vue
@@ -53,6 +53,7 @@
新增支付参数
@@ -73,6 +74,7 @@
+
{{scope.row.publicKey}}
@@ -107,12 +109,14 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['setting:pay:edit']"
>编辑
删除
@@ -158,6 +162,9 @@
/>
+
+
+
@@ -239,6 +246,9 @@ export default {
paymentChannel: [
{required: true, message: '请选择支付通道', trigger: 'blur'},
],
+ insCd: [
+ {required: true, message: '请填写机构号', trigger: 'blur'},
+ ],
publicKey: [
{required: true, message: '请填写公钥信息', trigger: 'blur'},
],
@@ -288,14 +298,15 @@ export default {
});
},
submitDeviceInfo() {
- // 在这里调用接口提交设备信息数据
- console.log('提交设备信息数据:', this.deviceInfo);
+ // 在这里调用接口提交支付参数信息数据
if (this.deviceInfo.id) {
editPaymentParameter(this.deviceInfo).then(res => {
if (res.data === 1) {
this.$modal.msgSuccess("修改成功")
this.getList()
this.open = false
+ } else {
+ this.$modal.msgError("修改失败,当前机构的支付通道已存在!")
}
})
}else {
@@ -304,10 +315,8 @@ export default {
this.$modal.msgSuccess("添加成功");
this.getList()
this.open = false
- } else if (res.data == 0) {
- this.$modal.msgError("添加失败,当前通道未配置")
- }else {
- this.$modal.msgError("商户编号不可重复")
+ } else {
+ this.$modal.msgError("添加失败,当前机构的支付通道已存在!")
}
})
}
@@ -326,17 +335,17 @@ export default {
handleAdd(e) {
this.clean()
this.open = true;
- this.title = "增加设备"
+ this.title = "增加支付参数"
// this.selectChildByDeptIdApi();
},
edit(e) {
this.clean()
// this.open = true;
- // this.title = "编辑设备"
+ // this.title = "编辑支付参数"
// this.deviceInfo = e
getPaymentParameter(e.id).then(res => {
this.open = true;
- this.title = "编辑设备"
+ this.title = "编辑支付参数"
this.deviceInfo = res.data
})
},
@@ -348,7 +357,7 @@ export default {
del(e) {
- this.$confirm('此操作将永久删除该设备, 是否继续?', '提示', {
+ this.$confirm('此操作将永久删除该支付参数, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
diff --git a/fuintAdmin_zt/src/views/system/menu/index.vue b/fuintAdmin_zt/src/views/system/menu/index.vue
index e560ee545..e397a4cbe 100644
--- a/fuintAdmin_zt/src/views/system/menu/index.vue
+++ b/fuintAdmin_zt/src/views/system/menu/index.vue
@@ -8,7 +8,6 @@
icon="el-icon-plus"
size="mini"
@click="handleAdd"
- v-hasPermi="['system:menu:add']"
>新增
@@ -56,21 +55,18 @@
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
- v-hasPermi="['system:menu:edit']"
>修改
新增
删除
@@ -323,6 +319,7 @@ export default {
this.getList();
});
} else {
+ if(!this.form.merchantId) this.form.merchantId = "0"
addMenu(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
diff --git a/fuintAdmin_zt/src/views/system/notify/page/mode.vue b/fuintAdmin_zt/src/views/system/notify/page/mode.vue
index 83074152c..f070232f1 100644
--- a/fuintAdmin_zt/src/views/system/notify/page/mode.vue
+++ b/fuintAdmin_zt/src/views/system/notify/page/mode.vue
@@ -41,6 +41,7 @@
新增通知模板
@@ -69,12 +70,14 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['system:notify:editTemplate']"
>编辑
删除
diff --git a/fuintAdmin_zt/src/views/system/notify/page/record.vue b/fuintAdmin_zt/src/views/system/notify/page/record.vue
index 8dbebbb6a..a7766c453 100644
--- a/fuintAdmin_zt/src/views/system/notify/page/record.vue
+++ b/fuintAdmin_zt/src/views/system/notify/page/record.vue
@@ -41,6 +41,7 @@
新增通知
@@ -66,18 +67,21 @@
type="text"
icon="el-icon-view"
@click="edit(scope.row)"
+ v-hasPermi="['system:notify:editRecord']"
>编辑
删除
发送通知
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/entity/PaymentParameterConfig.java b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/entity/PaymentParameterConfig.java
index 81a2088db..fdf90ac85 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/entity/PaymentParameterConfig.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/entity/PaymentParameterConfig.java
@@ -37,6 +37,10 @@ public class PaymentParameterConfig extends BaseEntity implements Serializable {
* 支付通道:数据字典
*/
private String paymentChannel;
+ /**
+ * 机构号
+ */
+ private String insCd;
/**
* 公钥
*/
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/PaymentParameterConfigMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/PaymentParameterConfigMapper.xml
index 1ccbc7136..19b464c74 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/PaymentParameterConfigMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/api/fuyou/mapper/xml/PaymentParameterConfigMapper.xml
@@ -23,6 +23,7 @@
and ppc.status = #{entity.status}
+ order by ppc.dept_id,ppc.create_time desc
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralOrdersServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralOrdersServiceImpl.java
index 6919aebef..05eacc737 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralOrdersServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/integral/service/impl/IntegralOrdersServiceImpl.java
@@ -135,6 +135,14 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
@Override
public IPage
queryByPageFenxiByZtDz(Page page, IntegralOrdersDTO integralOrders) {
+ if (ObjectUtil.isEmpty(integralOrders.getDeptId())) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ integralOrders.setDeptId(nowAccountInfo.getDeptId());
+ }
+
+ List strings = sysDeptMapper.selectChildByDeptIdR(integralOrders.getDeptId());
+ List longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
+ integralOrders.setStoreIds(longs);
IPage integralOrdersVOIPage = integralOrdersDao.queryByPageFenxiByZtDz(page, integralOrders);
for (IntegralOrdersVO record : integralOrdersVOIPage.getRecords()) {
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
@@ -157,6 +165,14 @@ public class IntegralOrdersServiceImpl implements IntegralOrdersService {
@Override
public Map getIntFenxiDataByZtDz(IntegralOrdersDTO integralOrders) {
+ if (ObjectUtil.isEmpty(integralOrders.getDeptId())) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ integralOrders.setDeptId(nowAccountInfo.getDeptId());
+ }
+
+ List strings = sysDeptMapper.selectChildByDeptIdR(integralOrders.getDeptId());
+ List longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
+ integralOrders.setStoreIds(longs);
return integralOrdersDao.getIntFenxiDataByZtDz(integralOrders);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/AllOrderInfo.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/AllOrderInfo.java
index 21e6be12e..d939c645b 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/AllOrderInfo.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/entity/AllOrderInfo.java
@@ -95,5 +95,9 @@ public class AllOrderInfo extends BaseEntity implements Serializable {
private String refBy;
@TableField(exist = false)
List fenxiByDaili2;
+ @TableField(exist = false)
+ private Long deptId;
+ @TableField(exist = false)
+ private List storeIds;
}
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 29b8604a7..fcfa712da 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
@@ -22,11 +22,11 @@ import java.util.Map;
public interface AllOrderInfoMapper extends BaseMapper {
IPage getPageList(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
- IPage getFenxiByDaili(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
- IPage getFenxiByDailiType(@Param("page") Page page, @Param("allOrderInfo") AllOrderInfo allOrderInfo);
+ IPage getFenxiByDaili(@Param("page") Page page, @Param("order") AllOrderInfo allOrderInfo);
+ IPage getFenxiByDailiType(@Param("page") Page page, @Param("order") AllOrderInfo allOrderInfo);
List getFenxiByDaili2(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
- Map getFenxiByDailiBydata(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
- List getFenxiByDaili2ByData(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
+ Map getFenxiByDailiBydata(@Param("order") AllOrderInfo allOrderInfo);
+ List getFenxiByDaili2ByData(@Param("order") AllOrderInfo allOrderInfo);
String sumPayMoney(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
// 根据storeId List查询总流水
@@ -80,5 +80,5 @@ public interface AllOrderInfoMapper extends BaseMapper {
Double selectAllAmount(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
Map getLeiJiInfo(UserBalanceVo record);
- Map getShuJuVipInfo(UserBalanceVo record);
+ Map getShuJuVipInfo(@Param("order") UserBalanceVo record);
}
\ No newline at end of file
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/LJOrderMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/LJOrderMapper.java
index bea579808..506a4fd7e 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/LJOrderMapper.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/LJOrderMapper.java
@@ -39,8 +39,8 @@ public interface LJOrderMapper extends BaseMapper {
LJOrder getStatisticsByTime(@Param("time") Date time,@Param("goodsId") Integer goodsId,@Param("payType") String payType);
- IPage selectOrderFenxiListByZtDz(Page page, LJOrderVo order);
+ IPage selectOrderFenxiListByZtDz(Page page, @Param("order") LJOrderVo order);
- Map selectOrderFenxiDataByZtDz(LJOrderVo order);
- Map selectOrderFenxiDataByZtDz2(LJOrderVo order);
+ Map selectOrderFenxiDataByZtDz(@Param("order") LJOrderVo order);
+ Map selectOrderFenxiDataByZtDz2(@Param("order") LJOrderVo order);
}
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 9abbfef2c..34b749fec 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
@@ -484,6 +484,20 @@
SUM(CASE WHEN content = "储值卡充值" THEN pay_money ELSE 0 END) AS tongjMoney, -- 累计充值金额
SUM(CASE WHEN type = 3 THEN pay_money ELSE 0 END) AS tongjXfMoney -- 累计消费金额
from all_order_info
+
+
+ store_id in
+
+ #{item}
+
+
+
+ and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
+
+
+ and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
+
+
@@ -269,6 +283,20 @@
count(*) count,
sum(goods_num) goodsNum
from mt_order
+
+
+ store_id in
+
+ #{item}
+
+
+
+ and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
+
+
+ and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
+
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml
index 713e63c14..9467daf49 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/xml/OilOrderMapper.xml
@@ -724,6 +724,13 @@
#{item}
+
+
+ and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
+
+
+ and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
+
group by store_id
@@ -744,6 +751,12 @@
#{item}
+
+ and date_format(create_time,'%y%m%d') >= date_format(#{order.params.beginTime},'%y%m%d')
+
+
+ and date_format(create_time,'%y%m%d') <= date_format(#{order.params.endTime},'%y%m%d')
+
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 e6fc1aad8..81561f29c 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
@@ -144,6 +144,15 @@ public class AllOrderInfoServiceImpl extends ServiceImpl getFenxiByDaili(Page page, AllOrderInfo allOrderInfo) {
+ if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ allOrderInfo.setDeptId(nowAccountInfo.getDeptId());
+ }
+
+ List strings = sysDeptMapper.selectChildByDeptIdR(allOrderInfo.getDeptId());
+ List longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
+ allOrderInfo.setStoreIds(longs);
+
IPage fenxiByDaili = allOrderInfoMapper.getFenxiByDaili(page, allOrderInfo);
for (AllOrderInfoVo record : fenxiByDaili.getRecords()) {
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
@@ -152,6 +161,13 @@ public class AllOrderInfoServiceImpl extends ServiceImpl storeIds = new ArrayList<>();
+ storeIds.add(mtStore.getId());
+ Double fuYouAmount = merchantConfigService.selectAllAmount("富友", storeIds);
+ Double laKaLaAmount = merchantConfigService.selectAllAmount("拉卡拉", storeIds);
+ record.setFuYouAmount(ObjectUtil.isNotEmpty(fuYouAmount) ? fuYouAmount : 0.0);
+ record.setLaKaLaAmount(ObjectUtil.isNotEmpty(laKaLaAmount) ? laKaLaAmount : 0.0);
}
List fenxiByDaili2 = allOrderInfoMapper.getFenxiByDaili2(allOrderInfo);
@@ -162,6 +178,14 @@ public class AllOrderInfoServiceImpl extends ServiceImpl getFenxiByDailiBydata(AllOrderInfo allOrderInfo) {
+ if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ allOrderInfo.setDeptId(nowAccountInfo.getDeptId());
+ }
+
+ List strings = sysDeptMapper.selectChildByDeptIdR(allOrderInfo.getDeptId());
+ List longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
+ allOrderInfo.setStoreIds(longs);
Map fenxiByDailiBydata = allOrderInfoMapper.getFenxiByDailiBydata(allOrderInfo);
List fenxiByDaili2ByData = allOrderInfoMapper.getFenxiByDaili2ByData(allOrderInfo);
fenxiByDailiBydata.put("fenxiByDaili2ByData",fenxiByDaili2ByData);
@@ -169,6 +193,14 @@ public class AllOrderInfoServiceImpl extends ServiceImpl getFenxiByDailiType(Page page, AllOrderInfo allOrderInfo) {
+ if (ObjectUtil.isEmpty(allOrderInfo.getDeptId())) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ allOrderInfo.setDeptId(nowAccountInfo.getDeptId());
+ }
+
+ List strings = sysDeptMapper.selectChildByDeptIdR(allOrderInfo.getDeptId());
+ List longs = mtStoreMapper.queryStoresByDeptIdsR(strings);
+ allOrderInfo.setStoreIds(longs);
IPage fenxiByDaili = allOrderInfoMapper.getFenxiByDailiType(page, allOrderInfo);
for (AllOrderInfoVo record : fenxiByDaili.getRecords()) {
MtStore mtStore = mtStoreMapper.selectById(record.getStoreId());
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 15b09defc..9e4ef2410 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
@@ -76,5 +76,9 @@ public class AllOrderInfoVo extends AllOrderInfo {
private String count;
private String refCount;
+ @TableField(exist = false)
+ private Double fuYouAmount;
+ @TableField(exist = false)
+ private Double laKaLaAmount;
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java
index 51cb12613..f3c822826 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/module/backendApi/controller/BackendSourceController.java
@@ -120,11 +120,13 @@ public class BackendSourceController extends BaseController {
String icon = param.get("icon").toString();
String path = param.get("path").toString();
String sort = param.get("sort").toString();
+ String merchantId = param.get("merchantId").toString();
Integer isMenu = param.get("isMenu") == null ? 1 : Integer.parseInt(param.get("isMenu").toString());
TSource addSource = new TSource();
addSource.setSourceName(name);
- addSource.setMerchantId(accountInfo.getMerchantId());
+// addSource.setMerchantId(accountInfo.getMerchantId());
+ addSource.setMerchantId(Integer.valueOf(merchantId));
addSource.setStatus(status);
addSource.setNewIcon(icon);
addSource.setIsLog(1);