@@ -158,6 +158,7 @@ import echarts from "echarts";
import {storeAmountIndex, storeTotalIndex} from "@/api/indexBanner";
import {selectChildByDeptId} from "@/api/system/Site/site";
import {parseTime} from "@/utils/fuint";
+import {getBannerListApi} from "@/api/sys/banner";
export default {
data(){
@@ -195,6 +196,8 @@ export default {
storeTotal:{},
// 店铺金额
storeAmount:{},
+ // banner图列表
+ bannerList:{},
}
},
created() {
@@ -204,11 +207,22 @@ export default {
this.getStoreTotal()
this.selectChildByDeptIdApi()
this.getStoreAmount()
+ this.selectBannerList()
},
mounted() {
this.initChart()
},
methods:{
+ selectBannerList(){
+ let queryParams = {
+ pageNo:1,
+ pageSize:10,
+ system_position:"系统首页"
+ }
+ getBannerListApi(queryParams).then(res=>{
+ this.bannerList = res.data.records
+ })
+ },
// 查询
selectChildByDeptIdApi() {
selectChildByDeptId().then(res => {
@@ -229,12 +243,13 @@ export default {
const chart = echarts.init(document.getElementById('ccc'))
const chart1 = echarts.init(document.getElementById('cccc'))
const chart2= echarts.init(document.getElementById('ccct'))
+ const chart4= echarts.init(document.getElementById('cttt'))
const chart3= echarts.init(document.getElementById('ctct'))
const option = {
color: [
- '#0DC291',
+ '#179726',
'#FFB519',
],
tooltip: {
@@ -431,11 +446,45 @@ export default {
}
};
+ const option4 ={
+ color: ['#f82f2f', '#179627'],
+ tooltip: {
+ trigger: 'item'
+ },
+ series: [
+ {
+ name: 'Access From',
+ type: 'pie',
+ radius: ['40%', '70%'],
+ avoidLabelOverlap: false,
+ itemStyle: {
+ borderRadius: 10,
+ borderColor: '#fff',
+ borderWidth: 10
+ },
+
+ emphasis: {
+ label: {
+ show: true,
+ fontSize: 40,
+ fontWeight: 'bold'
+ }
+ },
+
+ data: [
+ { value: 225, name: '富友占比' },
+ { value: 735, name: '拉卡拉占比' }
+ ]
+ }
+ ]
+ };
chart.setOption(option)
chart1.setOption(option1)
chart2.setOption(option2)
chart3.setOption(option3)
+ chart4.setOption(option4)
+
}
diff --git a/fuintAdmin_zt/src/views/homeComponents/manage.vue b/fuintAdmin_zt/src/views/homeComponents/manage.vue
index edf549339..f24b4af01 100644
--- a/fuintAdmin_zt/src/views/homeComponents/manage.vue
+++ b/fuintAdmin_zt/src/views/homeComponents/manage.vue
@@ -1,10 +1,11 @@
-
+
-

+
+
@@ -64,7 +65,7 @@
-
+
数据统计
-
+
{{item}}
+ end-placeholder="结束日期"
+ @change="getStoreList()">
@@ -161,9 +163,10 @@
+
+
diff --git a/fuintAdmin_zt/src/views/setting/message.vue b/fuintAdmin_zt/src/views/setting/message.vue
new file mode 100644
index 000000000..9f8d04624
--- /dev/null
+++ b/fuintAdmin_zt/src/views/setting/message.vue
@@ -0,0 +1,365 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+ 新增短信模板
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 停用
+
+
+ 启用
+
+
+
+
+
+
+
+ 编辑
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 提交
+
+
+
+
+
+
+
+
+
+
+
diff --git a/fuintAdmin_zt/src/views/setting/sysLog.vue b/fuintAdmin_zt/src/views/setting/sysLog.vue
new file mode 100644
index 000000000..e69de29bb
diff --git a/fuintAdmin_zt/src/views/system/notify/index.vue b/fuintAdmin_zt/src/views/system/notify/index.vue
index 7a0894c32..746f585b4 100644
--- a/fuintAdmin_zt/src/views/system/notify/index.vue
+++ b/fuintAdmin_zt/src/views/system/notify/index.vue
@@ -27,6 +27,7 @@ export default {
+
@@ -54,5 +55,10 @@ export default {
.container{
background: #F4F5F9;
height: 100vh;
+ box-sizing: border-box;
+ padding: 20px;
+}
+.tabder-box{
+ width: 85%;
}
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 601e49032..4354e1771 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
@@ -70,7 +70,7 @@ public interface AllOrderInfoMapper extends BaseMapper
{
* @param allOrderInfo
* @return
*/
- Integer selectTotal(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
+ Integer selectTotal(@Param("allOrderInfo") AllOrderInfo allOrderInfo,@Param("storeIds") List storeIds);
Double selectAllAmount(@Param("allOrderInfo") AllOrderInfo allOrderInfo);
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java
index 7abe5c977..c3bfb8819 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/mapper/OilOrderMapper.java
@@ -134,4 +134,6 @@ public interface OilOrderMapper extends BaseMapper {
List getInfoByOilType(@Param("allOrderInfo") OilOrder oilOrder);
List getInfoByOilGun(@Param("allOrderInfo") OilOrder oilOrder);
List getInfoByEm(@Param("allOrderInfo") OilOrder oilOrder);
+
+ List selectOilsCount(@Param("oilOrderVo") OilOrderVo oilOrderVo,@Param("storeIds") List storeIds);
}
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 3798ac62e..976d29da4 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
@@ -145,6 +145,9 @@
and aoi.pay_type = #{allOrderInfo.payType}
+
+ and aoi.status = #{allOrderInfo.status}
+
and date_format(pay_time,'%y%m%d') >= date_format(#{allOrderInfo.params.beginTime},'%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 6ffc7490f..e831f3009 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
@@ -728,4 +728,23 @@
from oil_order;
+
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 77fb72a46..a7c10a8b7 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
@@ -14,6 +14,7 @@ import com.fuint.system.dept.vo.SysDeptVo;
import org.springframework.transaction.annotation.Transactional;
import javax.servlet.http.HttpServletResponse;
+import java.util.List;
import java.util.Map;
@Transactional
public interface AllOrderInfoService {
@@ -102,11 +103,20 @@ public interface AllOrderInfoService {
* @param map
* @return
*/
- Integer selectStoreTotal(Map map);
+ Integer selectStoreTotal(Map map, List storeIds);
+
+ /**
+ * 查询某个时间段内油品交易笔数占比
+ * @param map
+ * @return
+ */
+ Integer selectProportion(Map map, List storeIds,List types);
/**
*
* @return
*/
Map getAmount(AllOrderInfoVo allOrderInfoVo);
+
+ Double selectAmount(Map map, Integer storeId,List types);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/CardBalanceChangeService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/CardBalanceChangeService.java
index 9d2b85b56..1ef7cf63e 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/CardBalanceChangeService.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/CardBalanceChangeService.java
@@ -8,6 +8,8 @@ import com.fuint.business.order.entity.CashierOrder;
import com.fuint.business.order.vo.CardBalanceChangeVo;
import org.springframework.transaction.annotation.Transactional;
+import java.util.Map;
+
@Transactional
public interface CardBalanceChangeService extends IService {
/**
@@ -29,4 +31,12 @@ public interface CardBalanceChangeService extends IService {
* @return
*/
IPage getStoreOrdersList(Page page, CardBalanceChange cardBalanceChange);
+
+ /**
+ * 根据店铺id和余额变化类型查询订单总额
+ * @param storeId
+ * @param type 0:-减少 1:增加
+ * @return
+ */
+ Double selectAllAmount(Map map, Integer storeId, String type);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/OilOrderService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/OilOrderService.java
index 89543dd4d..8d390334c 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/OilOrderService.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/OilOrderService.java
@@ -226,4 +226,6 @@ public interface OilOrderService extends IService {
* @return
*/
Map addOrderPosScan(OilOrderVo oilOrderVo) throws Exception;
+
+ List selectProportion(Map map,List storeIds);
}
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 3bf6285cc..04f143ee9 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
@@ -24,6 +24,7 @@ import com.fuint.business.order.vo.Excel.DayExcel;
import com.fuint.business.order.vo.Excel.InstituionExcel;
import com.fuint.business.order.vo.Excel.OilDepotExcel;
import com.fuint.business.order.vo.Excel.TradingExcel;
+import com.fuint.business.order.vo.OilOrderVo;
import com.fuint.business.order.vo.OrderGoodsVo;
import com.fuint.business.petrolStationManagement.entity.OilGun;
import com.fuint.business.petrolStationManagement.entity.OilName;
@@ -1083,14 +1084,38 @@ public class AllOrderInfoServiceImpl extends ServiceImpl map) {
+ public Integer selectStoreTotal(Map map,List storeIds) {
String startTime = map.get("startTime");
String endTime = map.get("endTime");
QueryWrapper queryWrapper = new QueryWrapper<>();
if (ObjectUtil.isNotEmpty(startTime) && ObjectUtil.isNotEmpty(endTime)){
queryWrapper.apply(true,"create_time BETWEEN '" + startTime + "' and '" + endTime + "'");
}
+ if (ObjectUtil.isNotEmpty(storeIds)){
+ queryWrapper.in("store_id",storeIds);
+ }
queryWrapper.groupBy("store_id");
+ queryWrapper.orderByDesc("create_time");
+ List allOrderInfos = baseMapper.selectList(queryWrapper);
+ Integer row = 0;
+ if (ObjectUtil.isNotEmpty(allOrderInfos)) row = allOrderInfos.size();
+ return row;
+ }
+
+ @Override
+ public Integer selectProportion(Map map,List storeIds,List types) {
+ String startTime = map.get("startTime");
+ String endTime = map.get("endTime");
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ if (ObjectUtil.isNotEmpty(startTime) && ObjectUtil.isNotEmpty(endTime)){
+ queryWrapper.apply(true,"create_time BETWEEN '" + startTime + "' and '" + endTime + "'");
+ }
+ if (ObjectUtil.isNotEmpty(storeIds)){
+ queryWrapper.in("store_id",storeIds);
+ }
+ if (ObjectUtil.isNotEmpty(types)){
+ queryWrapper.in("type",types);
+ }
List allOrderInfos = baseMapper.selectList(queryWrapper);
Integer row = 0;
if (ObjectUtil.isNotEmpty(allOrderInfos)) row = allOrderInfos.size();
@@ -1102,15 +1127,57 @@ public class AllOrderInfoServiceImpl extends ServiceImpl map = new HashMap<>();
AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
- List sysDeptVos = deptService.selectChildByDeptId(nowAccountInfo.getDeptId());
- List ids = new ArrayList<>();
+ SysDept sysDept = deptService.getById(nowAccountInfo.getDeptId());
+ String ancestors = sysDept.getAncestors();
+ if (!"0".equals(sysDept.getAncestors())) {
+ ancestors = sysDept.getAncestors()+ "," +sysDept.getDeptId();
+ }
+ if (ObjectUtil.isNotEmpty(allOrderInfoVo.getAncestors())){
+ ancestors = allOrderInfoVo.getAncestors();
+ }
+ MtStore store = new MtStore();
+ List mtStores = mtStoreMapper.selectStoreList(store, ancestors);
+ List storeIds = new ArrayList<>();
+ for (MtStore mtStore : mtStores) {
+ storeIds.add(mtStore.getId());
+ }
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ if (ObjectUtil.isNotEmpty(storeIds)){
+ queryWrapper.in("store_id",storeIds);
+ }
+ if (ObjectUtil.isNotEmpty(allOrderInfoVo.getParams())
+ && ObjectUtil.isNotEmpty(allOrderInfoVo.getParams().get("beginTime"))
+ && ObjectUtil.isNotEmpty(allOrderInfoVo.getParams().get("endTime"))){
+ queryWrapper.apply(true,"create_time BETWEEN '" + allOrderInfoVo.getParams().get("beginTime") + "' and '" + allOrderInfoVo.getParams().get("endTime") + "'");
+ }
- Integer tradeTotal = ObjectUtil.isNotEmpty(baseMapper.selectTotal(allOrderInfoVo)) ? baseMapper.selectTotal(allOrderInfoVo) : 0;
- Double tradeAmount = ObjectUtil.isNotEmpty(baseMapper.selectAllAmount(allOrderInfoVo)) ? baseMapper.selectAllAmount(allOrderInfoVo) : 0;
+ Integer tradeTotal = ObjectUtil.isNotEmpty(baseMapper.selectCount(queryWrapper)) ? baseMapper.selectCount(queryWrapper) : 0;
+ List list = this.listObjs(queryWrapper.select("pay_money"));
+ Double tradeAmount = 0.0;
+ if (!list.isEmpty()) {
+ for (Object payMoney: list) {
+ tradeAmount += Double.valueOf(payMoney.toString());
+ }
+ }
allOrderInfoVo.setStatus("refund");
- Integer refundTotal = ObjectUtil.isNotEmpty(baseMapper.selectTotal(allOrderInfoVo)) ? baseMapper.selectTotal(allOrderInfoVo) : 0;
- Double refundAmount = ObjectUtil.isNotEmpty(baseMapper.selectAllAmount(allOrderInfoVo)) ? baseMapper.selectAllAmount(allOrderInfoVo) : 0;
+ if (ObjectUtil.isNotEmpty(allOrderInfoVo.getStatus())){
+ queryWrapper.eq("status",allOrderInfoVo.getStatus());
+ }
+ Integer refundTotal = ObjectUtil.isNotEmpty(baseMapper.selectCount(queryWrapper)) ? baseMapper.selectCount(queryWrapper) : 0;
+ List list1 = this.listObjs(queryWrapper.select("pay_money"));
+ Double refundAmount = 0.0;
+ if (!list1.isEmpty()) {
+ for (Object payMoney: list1) {
+ refundAmount += Double.valueOf(payMoney.toString());
+ }
+ }
+
+// Integer tradeTotal = ObjectUtil.isNotEmpty(baseMapper.selectTotal(allOrderInfoVo,storeIds)) ? baseMapper.selectTotal(allOrderInfoVo,storeIds) : 0;
+// Double tradeAmount = ObjectUtil.isNotEmpty(baseMapper.selectAllAmount(allOrderInfoVo)) ? baseMapper.selectAllAmount(allOrderInfoVo) : 0;
+// allOrderInfoVo.setStatus("refund");
+// Integer refundTotal = ObjectUtil.isNotEmpty(baseMapper.selectTotal(allOrderInfoVo,storeIds)) ? baseMapper.selectTotal(allOrderInfoVo,storeIds) : 0;
+// Double refundAmount = ObjectUtil.isNotEmpty(baseMapper.selectAllAmount(allOrderInfoVo)) ? baseMapper.selectAllAmount(allOrderInfoVo) : 0;
Double averagePrice = tradeAmount/tradeTotal;
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
@@ -1122,17 +1189,50 @@ public class AllOrderInfoServiceImpl extends ServiceImpl types = new ArrayList<>();
+// 油品笔数
+ types.add("1");
+ types.add("6");
+ types.add("7");
+ types.add("8");
+ Integer oilNum = selectProportion(map1, storeIds, types);
+ types = new ArrayList<>();
+// 非油品笔数
+ types.add("2");
+ types.add("3");
+ types.add("4");
+ types.add("5");
+ Integer noOilNum = selectProportion(map1, storeIds, types);
+ types = new ArrayList<>();
+// 会员充值
+ types.add("3");
+ types.add("5");
+ Integer userNum = selectProportion(map1, storeIds, types);
+ types = new ArrayList<>();
+// 积分商城
+ types.add("4");
+ Integer integralNum = selectProportion(map1, storeIds, types);
+ types = new ArrayList<>();
+// 便利店
+ types.add("2");
+ Integer goodNum = selectProportion(map1, storeIds, types);
+
+// 油品油号信息
+ List oilOrderVos = orderService.selectProportion(map1, storeIds);
+
map.put("tradeTotal",tradeTotal);
map.put("tradeAmount",tradeAmount > 0 ? df.format(tradeAmount) : 0);
map.put("refundTotal",refundTotal);
@@ -1141,9 +1241,38 @@ public class AllOrderInfoServiceImpl extends ServiceImpl 0 ? df.format(dayTradeAmount) : 0);
map.put("dayTradeTotal",dayTradeTotal);
map.put("storeTotal",storeTotal);
+ map.put("oilNum",oilNum);
+ map.put("noOilNum",noOilNum);
+ map.put("userNum",userNum);
+ map.put("integralNum",integralNum);
+ map.put("goodNum",goodNum);
+ map.put("oilNameList",oilOrderVos);
return map;
}
+ @Override
+ public Double selectAmount(Map map, Integer storeId, List types) {
+ String startTime = map.get("startTime");
+ String endTime = map.get("endTime");
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ if (ObjectUtil.isNotEmpty(startTime) && ObjectUtil.isNotEmpty(endTime)){
+ queryWrapper.apply(true,"create_time BETWEEN '" + startTime + "' and '" + endTime + "'");
+ }
+ if (ObjectUtil.isNotEmpty(storeId)){
+ queryWrapper.eq("store_id",storeId);
+ }
+ if (ObjectUtil.isNotEmpty(types)){
+ queryWrapper.in("type",types);
+ }
+ queryWrapper.select("SUM(pay_money) as payMoney");
+ AllOrderInfo allOrderInfo = baseMapper.selectOne(queryWrapper);
+ Double payMoney = 0.0;
+ if (ObjectUtil.isNotEmpty(allOrderInfo) && ObjectUtil.isNotEmpty(allOrderInfo.getPayMoney())){
+ payMoney = allOrderInfo.getPayMoney();
+ }
+ return payMoney;
+ }
+
private long dayCount(String beginTimeStr, String endTimeStr ) {
// 将字符串表示的时间转换成 LocalDate 对象
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/CardBalanceChangeServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/CardBalanceChangeServiceImpl.java
index 89f191b74..e42c082a3 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/CardBalanceChangeServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/CardBalanceChangeServiceImpl.java
@@ -1,6 +1,8 @@
package com.fuint.business.order.service.impl;
+import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@@ -19,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
+import java.util.Map;
@Service
public class CardBalanceChangeServiceImpl extends ServiceImpl implements CardBalanceChangeService {
@@ -82,4 +85,30 @@ public class CardBalanceChangeServiceImpl extends ServiceImpl map, Integer storeId, String type) {
+ String startTime = map.get("startTime");
+ String endTime = map.get("endTime");
+ QueryWrapper queryWrapper = new QueryWrapper<>();
+ if (ObjectUtil.isNotEmpty(startTime) && ObjectUtil.isNotEmpty(endTime)){
+ queryWrapper.apply(true,"create_time BETWEEN '" + startTime + "' and '" + endTime + "'");
+ }
+ if (type.equals("1")){
+ queryWrapper.eq("change_type",type);
+ queryWrapper.eq("from_type","余额充值");
+ }else if (type.equals("0")){
+ queryWrapper.eq("change_type",type);
+ }
+ if (ObjectUtil.isNotEmpty(storeId)){
+ queryWrapper.eq("store_id",storeId);
+ }
+ queryWrapper.select("SUM(balance) as balance");
+ CardBalanceChange cardBalanceChange = baseMapper.selectOne(queryWrapper);
+ Double balance = 0.0;
+ if (ObjectUtil.isNotEmpty(cardBalanceChange) && ObjectUtil.isNotEmpty(cardBalanceChange.getBalance())){
+ balance = cardBalanceChange.getBalance();
+ }
+ return balance;
+ }
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
index 4218dec04..03e9aa024 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/service/impl/OilOrderServiceImpl.java
@@ -2576,4 +2576,16 @@ public class OilOrderServiceImpl extends ServiceImpl i
res.put("scanCode",mainScan);
return res;
}
+
+ @Override
+ public List selectProportion(Map map,List storeIds) {
+ String startTime = map.get("startTime");
+ String endTime = map.get("endTime");
+ OilOrderVo oilOrderVo = new OilOrderVo();
+ Map map1 = new HashMap<>();
+ map1.put("beginTime",startTime);
+ map1.put("endTime",endTime);
+ oilOrderVo.setParams(map1);
+ return baseMapper.selectOilsCount(oilOrderVo,storeIds);
+ }
}
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 db47b8ef9..45021bfb6 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
@@ -1,5 +1,6 @@
package com.fuint.business.order.vo;
+import com.baomidou.mybatisplus.annotation.TableField;
import com.fuint.business.order.entity.AllOrderInfo;
import lombok.Data;
@@ -61,7 +62,8 @@ public class AllOrderInfoVo extends AllOrderInfo {
private String userBalanceByAli;
private String userBalanceCountByali;
-
+ @TableField(exist = false)
+ private String ancestors;
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/OilOrderVo.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/OilOrderVo.java
index 1c22c6396..618d8212a 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/OilOrderVo.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/order/vo/OilOrderVo.java
@@ -12,6 +12,7 @@ public class OilOrderVo extends OilOrder {
private String storeName;
private String description;
private String oilName;
+ private String oilType;
private String gunName;
private String realName;
private Double sumOilNum;
@@ -33,6 +34,11 @@ public class OilOrderVo extends OilOrder {
private String authCode;
@TableField(exist = false)
private Double oilCardAmount1;
+ /**
+ * 数量信息
+ */
+ @TableField(exist = false)
+ private Integer countNum;
private String sum;
private String amount92;
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/HardwareStoreController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/HardwareStoreController.java
new file mode 100644
index 000000000..301c232b7
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/HardwareStoreController.java
@@ -0,0 +1,105 @@
+package com.fuint.business.setting.controller;
+
+
+
+import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.setting.entity.HardwareStore;
+import com.fuint.business.setting.service.HardwareStoreService;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.StringUtils;
+import com.fuint.common.util.TokenUtil;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * 硬件商城(HardwareStore)表控制层
+ *
+ * @author makejava
+ * @since 2024-07-18 17:30:38
+ */
+@RestController
+@RequestMapping("hardwareStore")
+public class HardwareStoreController extends BaseController {
+ /**
+ * 服务对象
+ */
+ @Resource
+ private HardwareStoreService hardwareStoreService;
+
+ /**
+ * 分页查询所有数据
+ *
+ * @param page 分页对象
+ * @param hardwareStore 查询实体
+ * @return 所有数据
+ */
+ @GetMapping
+ public ResponseObject selectAll(Page page, HardwareStore hardwareStore) {
+ LambdaQueryWrapper hardwareStoreQueryWrapper = new LambdaQueryWrapper();
+ if (!StringUtils.isEmpty(hardwareStore.getName())){
+ hardwareStoreQueryWrapper.like(HardwareStore::getName,hardwareStore.getName());
+ }
+ if (!StringUtils.isEmpty(hardwareStore.getStatus())){
+ hardwareStoreQueryWrapper.eq(HardwareStore::getStatus,hardwareStore.getStatus());
+ }
+ if (!StringUtils.isEmpty(hardwareStore.getCategoryName())){
+ hardwareStoreQueryWrapper.eq(HardwareStore::getCategoryName,hardwareStore.getCategoryName());
+ }
+ return getSuccessResult(this.hardwareStoreService.page(page, hardwareStoreQueryWrapper));
+ }
+
+ /**
+ * 通过主键查询单条数据
+ *
+ * @param id 主键
+ * @return 单条数据
+ */
+ @GetMapping("{id}")
+ public ResponseObject selectOne(@PathVariable Serializable id) {
+ return getSuccessResult(this.hardwareStoreService.getById(id));
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param hardwareStore 实体对象
+ * @return 新增结果
+ */
+ @PostMapping
+ public ResponseObject insert(@RequestBody HardwareStore hardwareStore) {
+ //获取当前登录用户
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ hardwareStore.setCreateName(nowAccountInfo.getRealName());
+ return getSuccessResult(this.hardwareStoreService.save(hardwareStore));
+ }
+
+ /**
+ * 修改数据
+ *
+ * @param hardwareStore 实体对象
+ * @return 修改结果
+ */
+ @PutMapping
+ public ResponseObject update(@RequestBody HardwareStore hardwareStore) {
+ return getSuccessResult(this.hardwareStoreService.updateById(hardwareStore));
+ }
+
+ /**
+ * 删除数据
+ *
+ * @param idList 主键结合
+ * @return 删除结果
+ */
+ @DeleteMapping
+ public ResponseObject delete(@RequestParam("idList") List idList) {
+ return getSuccessResult(this.hardwareStoreService.removeByIds(idList));
+ }
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/MessageTemplateController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/MessageTemplateController.java
new file mode 100644
index 000000000..f0aaec1b4
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/MessageTemplateController.java
@@ -0,0 +1,92 @@
+package com.fuint.business.setting.controller;
+
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.setting.entity.MessageTemplate;
+import com.fuint.business.setting.service.MessageTemplateService;
+import com.fuint.common.dto.AccountInfo;
+import com.fuint.common.util.TokenUtil;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * (MessageTemplate)表控制层
+ *
+ * @author makejava
+ * @since 2024-07-18 14:58:50
+ */
+@RestController
+@RequestMapping("messageTemplate")
+public class MessageTemplateController extends BaseController {
+ /**
+ * 服务对象
+ */
+ @Resource
+ private MessageTemplateService messageTemplateService;
+
+ /**
+ * 分页查询所有数据
+ *
+ * @param page 分页对象
+ * @param messageTemplate 查询实体
+ * @return 所有数据
+ */
+ @GetMapping
+ public ResponseObject selectAll(Page page, MessageTemplate messageTemplate) {
+ return getSuccessResult(this.messageTemplateService.page(page, new QueryWrapper<>(messageTemplate)));
+ }
+
+ /**
+ * 通过主键查询单条数据
+ *
+ * @param id 主键
+ * @return 单条数据
+ */
+ @GetMapping("{id}")
+ public ResponseObject selectOne(@PathVariable Serializable id) {
+ return getSuccessResult(this.messageTemplateService.getById(id));
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param messageTemplate 实体对象
+ * @return 新增结果
+ */
+ @PostMapping
+ public ResponseObject insert(@RequestBody MessageTemplate messageTemplate) {
+ AccountInfo nowAccountInfo = TokenUtil.getNowAccountInfo();
+ messageTemplate.setCreateName(nowAccountInfo.getRealName());
+ return getSuccessResult(this.messageTemplateService.save(messageTemplate));
+ }
+
+ /**
+ * 修改数据
+ *
+ * @param messageTemplate 实体对象
+ * @return 修改结果
+ */
+ @PutMapping
+ public ResponseObject update(@RequestBody MessageTemplate messageTemplate) {
+ return getSuccessResult(this.messageTemplateService.updateById(messageTemplate));
+ }
+
+ /**
+ * 删除数据
+ *
+ * @param idList 主键结合
+ * @return 删除结果
+ */
+ @DeleteMapping
+ public ResponseObject delete(@RequestParam("idList") List idList) {
+ return getSuccessResult(this.messageTemplateService.removeByIds(idList));
+ }
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/SysLogController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/SysLogController.java
new file mode 100644
index 000000000..ecfdc5a4d
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/controller/SysLogController.java
@@ -0,0 +1,88 @@
+package com.fuint.business.setting.controller;
+
+
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.fuint.business.setting.entity.SysLog;
+import com.fuint.business.setting.service.SysLogService;
+import com.fuint.framework.web.BaseController;
+import com.fuint.framework.web.ResponseObject;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import java.io.Serializable;
+import java.util.List;
+
+/**
+ * (SysLog)表控制层
+ *
+ * @author makejava
+ * @since 2024-07-18 15:37:16
+ */
+@RestController
+@RequestMapping("sysLog")
+public class SysLogController extends BaseController {
+ /**
+ * 服务对象
+ */
+ @Resource
+ private SysLogService sysLogService;
+
+ /**
+ * 分页查询所有数据
+ *
+ * @param page 分页对象
+ * @param sysLog 查询实体
+ * @return 所有数据
+ */
+ @GetMapping
+ public ResponseObject selectAll(Page page, SysLog sysLog) {
+ return getSuccessResult(this.sysLogService.page(page, new QueryWrapper<>(sysLog)));
+ }
+
+ /**
+ * 通过主键查询单条数据
+ *
+ * @param id 主键
+ * @return 单条数据
+ */
+ @GetMapping("{id}")
+ public ResponseObject selectOne(@PathVariable Serializable id) {
+ return getSuccessResult(this.sysLogService.getById(id));
+ }
+
+ /**
+ * 新增数据
+ *
+ * @param sysLog 实体对象
+ * @return 新增结果
+ */
+ @PostMapping
+ public ResponseObject insert(@RequestBody SysLog sysLog) {
+ return getSuccessResult(this.sysLogService.save(sysLog));
+ }
+
+ /**
+ * 修改数据
+ *
+ * @param sysLog 实体对象
+ * @return 修改结果
+ */
+ @PutMapping
+ public ResponseObject update(@RequestBody SysLog sysLog) {
+ return getSuccessResult(this.sysLogService.updateById(sysLog));
+ }
+
+ /**
+ * 删除数据
+ *
+ * @param idList 主键结合
+ * @return 删除结果
+ */
+ @DeleteMapping
+ public ResponseObject delete(@RequestParam("idList") List idList) {
+ return getSuccessResult(this.sysLogService.removeByIds(idList));
+ }
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/HardwareStore.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/HardwareStore.java
new file mode 100644
index 000000000..f74f1429b
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/HardwareStore.java
@@ -0,0 +1,49 @@
+package com.fuint.business.setting.entity;
+
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * 硬件商城(HardwareStore)表实体类
+ *
+ * @author makejava
+ * @since 2024-07-18 17:30:38
+ */
+@Data
+public class HardwareStore extends Model {
+ @TableId(type = IdType.AUTO)
+ private Integer id;
+ //商品名称
+ private String name;
+ //分类
+ private String categoryName;
+ //图片
+ private String image;
+ //采购商家
+ private String formStore;
+ //商品介绍
+ private String content;
+ //状态0未上架1已上架
+ private String status;
+ //创建时间
+ @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
+ private Date createTime;
+ //创建人
+ private String createBy;
+ //更新时间
+ private Date updateTime;
+ //更新人
+ private String updateBy;
+ //创建人名称
+ private String createName;
+
+
+ }
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/MessageTemplate.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/MessageTemplate.java
new file mode 100644
index 000000000..514b12da3
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/MessageTemplate.java
@@ -0,0 +1,47 @@
+package com.fuint.business.setting.entity;
+
+import java.util.Date;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import lombok.Data;
+
+import java.io.Serializable;
+
+/**
+ * (MessageTemplate)表实体类
+ *
+ * @author makejava
+ * @since 2024-07-18 14:58:56
+ */
+@Data
+public class MessageTemplate extends Model {
+ //主键
+ @TableId(type = IdType.AUTO)
+ private Integer id;
+ //短信名称
+ private String name;
+ //短信内容
+ private String content;
+ //适用范围
+ private String deptIds;
+ //适用角色
+ private String roleIds;
+ //状态0停用1启用
+ private String status;
+ //创建者名称
+ private String createName;
+ //创建时间
+ private Date createTime;
+ //创建人
+ private String createBy;
+ //更新时间
+ private Date updateTime;
+ //更新人
+ private String updateBy;
+ //短信模板id
+ private Integer messageId;
+
+ }
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/SysLog.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/SysLog.java
new file mode 100644
index 000000000..c85953385
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/entity/SysLog.java
@@ -0,0 +1,147 @@
+package com.fuint.business.setting.entity;
+
+import java.util.Date;
+import com.baomidou.mybatisplus.extension.activerecord.Model;
+import java.io.Serializable;
+
+/**
+ * (SysLog)表实体类
+ *
+ * @author makejava
+ * @since 2024-07-18 15:37:16
+ */
+@SuppressWarnings("serial")
+public class SysLog extends Model {
+
+ private Integer id;
+ //ip地址
+ private String ipAddr;
+ //操作内容
+ private String content;
+ //操作模块
+ private String moudle;
+ //1中台端2油站端
+ private String systemName;
+ //机构名称
+ private String deptName;
+ //登录账户
+ private String createAccount;
+ //创建人名称
+ private String createName;
+ //创建时间
+ private Date createTime;
+ //创建人
+ private String createBy;
+ //更新时间
+ private Date updateTime;
+ //更新人
+ private String updateBy;
+
+
+ public Integer getId() {
+ return id;
+ }
+
+ public void setId(Integer id) {
+ this.id = id;
+ }
+
+ public String getIpAddr() {
+ return ipAddr;
+ }
+
+ public void setIpAddr(String ipAddr) {
+ this.ipAddr = ipAddr;
+ }
+
+ public String getContent() {
+ return content;
+ }
+
+ public void setContent(String content) {
+ this.content = content;
+ }
+
+ public String getMoudle() {
+ return moudle;
+ }
+
+ public void setMoudle(String moudle) {
+ this.moudle = moudle;
+ }
+
+ public String getSystemName() {
+ return systemName;
+ }
+
+ public void setSystemName(String systemName) {
+ this.systemName = systemName;
+ }
+
+ public String getDeptName() {
+ return deptName;
+ }
+
+ public void setDeptName(String deptName) {
+ this.deptName = deptName;
+ }
+
+ public String getCreateAccount() {
+ return createAccount;
+ }
+
+ public void setCreateAccount(String createAccount) {
+ this.createAccount = createAccount;
+ }
+
+ public String getCreateName() {
+ return createName;
+ }
+
+ public void setCreateName(String createName) {
+ this.createName = createName;
+ }
+
+ public Date getCreateTime() {
+ return createTime;
+ }
+
+ public void setCreateTime(Date createTime) {
+ this.createTime = createTime;
+ }
+
+ public String getCreateBy() {
+ return createBy;
+ }
+
+ public void setCreateBy(String createBy) {
+ this.createBy = createBy;
+ }
+
+ public Date getUpdateTime() {
+ return updateTime;
+ }
+
+ public void setUpdateTime(Date updateTime) {
+ this.updateTime = updateTime;
+ }
+
+ public String getUpdateBy() {
+ return updateBy;
+ }
+
+ public void setUpdateBy(String updateBy) {
+ this.updateBy = updateBy;
+ }
+
+ /**
+ * 获取主键值
+ *
+ * @return 主键值
+ */
+ @Override
+ protected Serializable pkVal() {
+ return this.id;
+ }
+ }
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/HardwareStoreMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/HardwareStoreMapper.java
new file mode 100644
index 000000000..54e5c6861
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/HardwareStoreMapper.java
@@ -0,0 +1,17 @@
+package com.fuint.business.setting.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fuint.business.setting.entity.HardwareStore;
+import org.mapstruct.Mapper;
+
+/**
+ * 硬件商城(HardwareStore)表数据库访问层
+ *
+ * @author makejava
+ * @since 2024-07-18 17:30:38
+ */
+@Mapper
+public interface HardwareStoreMapper extends BaseMapper {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/MessageTemplateMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/MessageTemplateMapper.java
new file mode 100644
index 000000000..1c17f4b5d
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/MessageTemplateMapper.java
@@ -0,0 +1,17 @@
+package com.fuint.business.setting.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fuint.business.setting.entity.MessageTemplate;
+import org.mapstruct.Mapper;
+
+/**
+ * (MessageTemplate)表数据库访问层
+ *
+ * @author makejava
+ * @since 2024-07-18 14:58:51
+ */
+@Mapper
+public interface MessageTemplateMapper extends BaseMapper {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/SysLogMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/SysLogMapper.java
new file mode 100644
index 000000000..5d6baabea
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/mapper/SysLogMapper.java
@@ -0,0 +1,17 @@
+package com.fuint.business.setting.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.fuint.business.setting.entity.SysLog;
+import org.mapstruct.Mapper;
+
+/**
+ * (SysLog)表数据库访问层
+ *
+ * @author makejava
+ * @since 2024-07-18 15:37:16
+ */
+@Mapper
+public interface SysLogMapper extends BaseMapper {
+ //插入数据库日志
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/HardwareStoreService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/HardwareStoreService.java
new file mode 100644
index 000000000..035f74eb4
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/HardwareStoreService.java
@@ -0,0 +1,15 @@
+package com.fuint.business.setting.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.business.setting.entity.HardwareStore;
+
+/**
+ * 硬件商城(HardwareStore)表服务接口
+ *
+ * @author makejava
+ * @since 2024-07-18 17:30:39
+ */
+public interface HardwareStoreService extends IService {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/MessageTemplateService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/MessageTemplateService.java
new file mode 100644
index 000000000..4cbdbb75c
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/MessageTemplateService.java
@@ -0,0 +1,15 @@
+package com.fuint.business.setting.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.business.setting.entity.MessageTemplate;
+
+/**
+ * (MessageTemplate)表服务接口
+ *
+ * @author makejava
+ * @since 2024-07-18 14:58:57
+ */
+public interface MessageTemplateService extends IService {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/SysLogService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/SysLogService.java
new file mode 100644
index 000000000..aa7f62b58
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/SysLogService.java
@@ -0,0 +1,15 @@
+package com.fuint.business.setting.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.business.setting.entity.SysLog;
+
+/**
+ * (SysLog)表服务接口
+ *
+ * @author makejava
+ * @since 2024-07-18 15:37:16
+ */
+public interface SysLogService extends IService {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/HardwareStoreServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/HardwareStoreServiceImpl.java
new file mode 100644
index 000000000..b0e954e39
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/HardwareStoreServiceImpl.java
@@ -0,0 +1,19 @@
+package com.fuint.business.setting.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.setting.mapper.HardwareStoreMapper;
+import com.fuint.business.setting.entity.HardwareStore;
+import com.fuint.business.setting.service.HardwareStoreService;
+import org.springframework.stereotype.Service;
+
+/**
+ * 硬件商城(HardwareStore)表服务实现类
+ *
+ * @author makejava
+ * @since 2024-07-18 17:30:39
+ */
+@Service("hardwareStoreService")
+public class HardwareStoreServiceImpl extends ServiceImpl implements HardwareStoreService {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/MessageTemplateServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/MessageTemplateServiceImpl.java
new file mode 100644
index 000000000..51722a1c2
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/MessageTemplateServiceImpl.java
@@ -0,0 +1,19 @@
+package com.fuint.business.setting.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.setting.mapper.MessageTemplateMapper;
+import com.fuint.business.setting.entity.MessageTemplate;
+import com.fuint.business.setting.service.MessageTemplateService;
+import org.springframework.stereotype.Service;
+
+/**
+ * (MessageTemplate)表服务实现类
+ *
+ * @author makejava
+ * @since 2024-07-18 14:58:57
+ */
+@Service("messageTemplateService")
+public class MessageTemplateServiceImpl extends ServiceImpl implements MessageTemplateService {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/SysLogServiceImpl.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/SysLogServiceImpl.java
new file mode 100644
index 000000000..30478f7a1
--- /dev/null
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/setting/service/impl/SysLogServiceImpl.java
@@ -0,0 +1,19 @@
+package com.fuint.business.setting.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.fuint.business.setting.mapper.SysLogMapper;
+import com.fuint.business.setting.entity.SysLog;
+import com.fuint.business.setting.service.SysLogService;
+import org.springframework.stereotype.Service;
+
+/**
+ * (SysLog)表服务实现类
+ *
+ * @author makejava
+ * @since 2024-07-18 15:37:16
+ */
+@Service("sysLogService")
+public class SysLogServiceImpl extends ServiceImpl implements SysLogService {
+
+}
+
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/controller/BackendStoreController.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/controller/BackendStoreController.java
index 1f29e5881..38957f7e0 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/controller/BackendStoreController.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/controller/BackendStoreController.java
@@ -351,7 +351,17 @@ public class BackendStoreController extends BaseController {
// 中台首页店铺数量查询
@GetMapping("/getStoreTotal")
- public ResponseObject getStoreTotal(LJStore store){
+ public ResponseObject getStoreTotal(MtStore store){
return getSuccessResult(storeService.getStoreTotal(store));
}
+
+ /**
+ * 中台首页多个店铺信息查询
+ * @param store
+ * @return
+ */
+ @GetMapping("/selectStoreAmount")
+ public ResponseObject selectStoreAmount(MtStore store){
+ return getSuccessResult(storeService.selectStoreAmount(store));
+ }
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/MtStoreMapper.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/MtStoreMapper.java
index c63b01858..e98e9e521 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/MtStoreMapper.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/MtStoreMapper.java
@@ -50,5 +50,5 @@ public interface MtStoreMapper extends BaseMapper {
List queryStoresByDeptIds(@Param("list") List deptIds);
List queryStoresByDeptIdsR(@Param("list") List deptIds);
-
+ List selectStoreList(@Param("storeVo") MtStore store,@Param("ownDeptStr") String ownDeptStr);
}
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/xml/MtStoreMapper.xml b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/xml/MtStoreMapper.xml
index 23b1b2ba1..11f684207 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/xml/MtStoreMapper.xml
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/mapper/xml/MtStoreMapper.xml
@@ -52,4 +52,29 @@
+
\ No newline at end of file
diff --git a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/service/StoreService.java b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/service/StoreService.java
index efbe93881..a53b8a4ad 100644
--- a/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/service/StoreService.java
+++ b/fuintBackend/fuint-application/src/main/java/com/fuint/business/store/service/StoreService.java
@@ -1,6 +1,7 @@
package com.fuint.business.store.service;
import com.baomidou.mybatisplus.extension.service.IService;
+import com.fuint.business.store.vo.StoreAmount;
import com.fuint.business.storeInformation.entity.LJStore;
import com.fuint.common.dto.StoreDto;
import com.fuint.framework.exception.BusinessCheckException;
@@ -117,7 +118,16 @@ public interface StoreService extends IService {
List