消息管理

This commit is contained in:
liupopo
2023-02-22 21:00:43 +08:00
parent 1704bcff51
commit c8a1957d79
11 changed files with 168 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
alter table sms_home_new_product add `original_price` decimal(10,2) DEFAULT NULL COMMENT '市场价';
alter table sms_home_recommend_product add `original_price` decimal(10,2) DEFAULT NULL COMMENT '市场价';
update sms_home_new_product shnp set
original_price=(select pp.original_price from pms_product pp where pp.id=shnp.product_id limit 1),
price=(select pp.price from pms_product pp where pp.id=shnp.product_id limit 1)
update sms_home_recommend_product shnp set
original_price=(select pp.original_price from pms_product pp where pp.id=shnp.product_id limit 1),
price=(select pp.price from pms_product pp where pp.id=shnp.product_id limit 1)
select * from sys_message
delete from sys_message where 1=1
insert into sys_message values
(1,340,'交易物流','您有新的物流信息','您的订单商品已经到取货点请在7日内取出。',now(),now(),0,1),
(2,340,'云链助手','该施肥了','春天已经至,已到施肥时间。。',now(),now(),0,1),
(3,341,'交易物流','您有新的物流信息','您的订单商品已经到取货点请在7日内取出。',now(),now(),0,1),
(4,341,'云链助手','该施肥了','春天已经至,已到施肥时间。。',now(),now(),0,1);
SELECT id,user_id,code,params,content,ctime,utime,status FROM sys_message WHERE user_id = 341 ORDER BY ctime desc