From e04441da5005ca573f590f78b70c45d739a744dc Mon Sep 17 00:00:00 2001
From: jyy <jyy>
Date: Sat, 10 Jul 2021 13:44:50 +0800
Subject: [PATCH] 新增美度正式环境配置

---
 zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml b/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml
index d0ff42f..1277ab1 100644
--- a/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml
+++ b/zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsDao.xml
@@ -1255,6 +1255,10 @@
 </foreach>
 
 	</update>
+	<update id="updateInvalidProduct">
+		update shopping_goods set staus = '下架'
+		where    date_format(now(), '%Y-%m-%d') > date_format(sale_off_time, '%Y-%m-%d') and staus='上架'
+	</update>
 
 
 	<!-- 根据code查询 -->

--
Gitblit v1.9.1