You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
1.3 KiB
24 lines
1.3 KiB
|
|
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
|