From 375237a59434d61567161131d85229d45c792366 Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Fri, 23 Jul 2021 10:17:26 +0800
Subject: [PATCH] Merge branch 'score-shop' of http://120.27.238.55:7000/r/xzx into score-shop

---
 gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml                     |    2 +-
 gc-sys/src/main/resources/mapper/system/BannerMapper.xml                      |    1 +
 gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java                 |    5 ++---
 gc-shop/src/main/java/com/xzx/gc/shop/controller/AdminJhyOrderController.java |    2 +-
 gc-sys/src/main/resources/mapper/system/SysNewsMapper.xml                     |    1 +
 5 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/gc-shop/src/main/java/com/xzx/gc/shop/controller/AdminJhyOrderController.java b/gc-shop/src/main/java/com/xzx/gc/shop/controller/AdminJhyOrderController.java
index c9513c7..e4ee667 100644
--- a/gc-shop/src/main/java/com/xzx/gc/shop/controller/AdminJhyOrderController.java
+++ b/gc-shop/src/main/java/com/xzx/gc/shop/controller/AdminJhyOrderController.java
@@ -103,7 +103,7 @@
         if (jhyInfo == null || !JhyInfo.CHECK_PASS.equals(jhyInfo.getStatus())) {
             return JsonResult.failMessage("不是集货员!");
         }
-        jhyService.assignJhyOrder(model);
+        jhyService.assignJhyOrder(model,jhyInfo.getUserId());
         OperationAppLog build = OperationAppLog.builder().appPrograme(CommonEnum.后台.getValue()).opreateName(getAdminName(request))
                 .methodName(Constants.SCORESHOP_MODUL_NAME).operateAction("集物员管理-指派订单-" + orderId).build();
         mqUtil.sendApp(build);
diff --git a/gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java b/gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java
index c6060c4..61f23c9 100644
--- a/gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java
+++ b/gc-shop/src/main/java/com/xzx/gc/shop/service/JhyService.java
@@ -163,11 +163,10 @@
         return total;
     }
 
-    public void assignJhyOrder(AssignJhyOrderDto model) {
+    public void assignJhyOrder(AssignJhyOrderDto model,String userId) {
         Long orderId = model.getOrderId();
-        Long jhyId = model.getJhyId();
         JhyOrder order = jhyOrderMapper.selectByPrimaryKey(orderId);
-        order.setJhyId(jhyId.toString());
+        order.setJhyId(userId);
         order.setStatus(JhyOrder.ORDER_STATUS_IMG);
         jhyOrderMapper.updateByPrimaryKey(order);
     }
diff --git a/gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml b/gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml
index 6842569..63f30d0 100644
--- a/gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml
+++ b/gc-shop/src/main/resources/mapper/shop/JhyOrderMapper.xml
@@ -101,6 +101,6 @@
     </select>
 
     <select id="selectJhyInfoByUserId" resultType="com.xzx.gc.entity.JhyInfo">
-        select * from xzx_jhy_order where id = #{jhyId}
+        select * from xzx_jhy_info where id = #{jhyId}
     </select>
 </mapper>
diff --git a/gc-sys/src/main/resources/mapper/system/BannerMapper.xml b/gc-sys/src/main/resources/mapper/system/BannerMapper.xml
index 339e9c6..26e2b90 100644
--- a/gc-sys/src/main/resources/mapper/system/BannerMapper.xml
+++ b/gc-sys/src/main/resources/mapper/system/BannerMapper.xml
@@ -92,6 +92,7 @@
 
     <select id="selectSysBanner" resultType="com.xzx.gc.system.vo.SysBannerListVo">
         select * from xzx_sys_banner
+        where del_flag = 0
         order by sort ASC
     </select>
 
diff --git a/gc-sys/src/main/resources/mapper/system/SysNewsMapper.xml b/gc-sys/src/main/resources/mapper/system/SysNewsMapper.xml
index 1bb4a94..b72ea15 100644
--- a/gc-sys/src/main/resources/mapper/system/SysNewsMapper.xml
+++ b/gc-sys/src/main/resources/mapper/system/SysNewsMapper.xml
@@ -4,6 +4,7 @@
 
     <select id="selectSysNewsListVo" resultType="com.xzx.gc.system.vo.SysNewsListVo">
         select * from xzx_sys_news
+        where del_flag=0
         order by sort ASC
     </select>
 

--
Gitblit v1.9.1