From c00d0d3bc399b6648145dfd955cedbea90f5f99d Mon Sep 17 00:00:00 2001
From: jiangqs <343695869@qq.com>
Date: 星期日, 18 六月 2023 17:38:22 +0800
Subject: [PATCH] 看板

---
 ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java |   52 ++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 50 insertions(+), 2 deletions(-)

diff --git a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java
index 41aa9b3..4a39190 100644
--- a/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java
+++ b/ruoyi-modules/ruoyi-shop/src/main/java/com/ruoyi/shop/service/impl/shop/ShopServiceImpl.java
@@ -5,6 +5,7 @@
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
 import com.ruoyi.common.core.exception.ServiceException;
+import com.ruoyi.common.core.utils.DateUtils;
 import com.ruoyi.common.core.utils.StringUtils;
 import com.ruoyi.common.core.utils.uuid.IdUtils;
 import com.ruoyi.common.security.utils.CodeFactoryUtil;
@@ -23,6 +24,7 @@
 import com.ruoyi.system.api.domain.poji.shop.Shop;
 import com.ruoyi.system.api.domain.poji.sys.SysUser;
 import com.ruoyi.system.api.domain.vo.MerHomeShopTotalVo;
+import com.ruoyi.system.api.domain.vo.MgtBulletinBoardVo;
 import com.ruoyi.system.api.domain.vo.MgtShopIdByCodeVo;
 import com.ruoyi.system.api.domain.vo.MgtSimpleShopVo;
 import com.ruoyi.system.api.service.RemoteConfigService;
@@ -34,6 +36,7 @@
 
 import javax.annotation.Resource;
 import java.math.BigDecimal;
+import java.text.ParseException;
 import java.util.Date;
 import java.util.List;
 import java.util.Objects;
@@ -274,8 +277,14 @@
     @Override
     public void changeCooperationTime(MgtChangeCoopDto mgtChangeCoopDto){
         Shop shop = this.getById(mgtChangeCoopDto.getShopId());
-        Date coopStartDate = mgtChangeCoopDto.getCoopStartTime();
-        Date coopEndDate = mgtChangeCoopDto.getCoopEndTime();
+        Date coopStartDate = null;
+        Date coopEndDate = null;
+        try {
+            coopStartDate = DateUtils.parseDate(mgtChangeCoopDto.getCoopStartTime(),"yyyy-MM-dd");
+            coopEndDate = DateUtils.parseDate(mgtChangeCoopDto.getCoopEndTime(),"yyyy-MM-dd");
+        } catch (ParseException e) {
+            throw new RuntimeException(e);
+        }
         Date nowTime = new Date();
         shop.setCooperationStartTime(coopStartDate);
         shop.setCooperationEndTime(coopEndDate);
@@ -566,4 +575,43 @@
     public List<MgtSimpleShopVo> listShopSimpleVoByIds(String shopIds){
         return shopMapper.listShopSimpleVoByIds(shopIds);
     }
+
+    /**
+     * @description pageMgtShopByCityCode
+     * @param page
+     * @param mgtShopByCodePageDto
+     * @return List<MgtSimpleShopVo>
+     * @author jqs34
+     * @date 2023/6/14 20:56
+     */
+    @Override
+    public List<MgtSimpleShopVo> pageMgtShopByCityCode(Page page, MgtShopByCodePageDto mgtShopByCodePageDto){
+        return shopMapper.pageMgtShopByCityCode(page, mgtShopByCodePageDto);
+    }
+
+    /**
+     * @description pageMgtShopAuth
+     * @param page
+     * @param mgtShopAuthPageDto
+     * @return List<MgtShopAuthPageVo>
+     * @author jqs34
+     * @date 2023/6/14 23:01
+     */
+    @Override
+    public List<MgtShopAuthPageVo> pageMgtShopAuth(Page page,  MgtShopAuthPageDto mgtShopAuthPageDto){
+        return shopMapper.pageMgtShopAuth(page, mgtShopAuthPageDto);
+    }
+
+    /**
+     * @description boardShopTotal
+     * @param
+     * @return MgtBulletinBoardVo
+     * @author jqs34
+     * @date 2023/6/18 16:59
+     */
+    @Override
+    public MgtBulletinBoardVo boardShopTotal(){
+        MgtBulletinBoardVo mgtBulletinBoardVoShop = shopMapper.shopTotal();
+        return mgtBulletinBoardVoShop;
+    }
 }

--
Gitblit v1.7.1