
11 changed files with 168 additions and 3 deletions
@ -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 |
After Width: | Height: | Size: 136 KiB |
@ -0,0 +1,17 @@ |
|||
云链需要修改和完善的内容: |
|||
1。消息通知功能需要实现; |
|||
2。后台管理的菜单需要调整,顺序、菜单名称、需要隐藏的都需要调整; |
|||
3。收货地址(提货点)功能需要实现; |
|||
4。定时任务功能,可发送定时消息通知。 |
|||
|
|||
问题(2023-02-21) |
|||
1. APP升级功能 |
|||
2. 后台管理,去掉商户入住,绑定社区 |
|||
3. APP上新增收货地址,新增完后显示错误。 |
|||
4. APP上收藏功能不可用 |
|||
5. APP上注册成功后,需要有提示 |
|||
6. APP注册成功后,直接登录,登录后跳转到登录之前的页面。 |
|||
7. 优惠券领取后,应该不再显示该优惠券 |
|||
8. 优惠券是否可针对某个商品或针对会员可领取 |
|||
9. APP短信验证(注册、登录) |
|||
10.支付宝付款、微信付款功能 |
@ -0,0 +1,66 @@ |
|||
package com.zscat.mallplus.apirest; |
|||
|
|||
import com.zscat.mallplus.oms.entity.OmsCartItem; |
|||
import com.zscat.mallplus.ums.entity.SysMessage; |
|||
import com.zscat.mallplus.ums.entity.UmsMember; |
|||
import com.zscat.mallplus.ums.service.ISysMessageService; |
|||
import com.zscat.mallplus.ums.service.IUmsMemberService; |
|||
import com.zscat.mallplus.utils.CommonResult; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.*; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.ArrayList; |
|||
import java.util.HashMap; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
@RestController |
|||
@Api(tags = "SysMessageRest", description = "系统消息") |
|||
@RequestMapping("/api/sys/message") |
|||
public class SysMessageRest { |
|||
|
|||
@Autowired |
|||
private IUmsMemberService memberService; |
|||
|
|||
@Autowired |
|||
private ISysMessageService messageService; |
|||
|
|||
@ApiOperation("获取某个会员的消息列表") |
|||
@RequestMapping(value = "/list", method = RequestMethod.GET) |
|||
@ResponseBody |
|||
public Object list() { |
|||
UmsMember umsMember = memberService.getNewCurrentMember(); |
|||
List<SysMessage> list = new ArrayList<>(); |
|||
if (umsMember != null && umsMember.getId() != null) { |
|||
list = messageService.listByUserId(umsMember.getId()); |
|||
return new CommonResult().success(list); |
|||
} |
|||
return new CommonResult().success(list); |
|||
} |
|||
|
|||
@ApiOperation("获取消息内容") |
|||
@RequestMapping(value = "/info", method = RequestMethod.GET) |
|||
@ResponseBody |
|||
public Object info(@RequestParam(value = "id", required = false, defaultValue = "0") Long id) { |
|||
SysMessage mes = messageService.getById(id); |
|||
if (mes != null && !mes.getStatus()) { |
|||
mes.setStatus(true); |
|||
messageService.updateStatus(mes); |
|||
} |
|||
return new CommonResult().success(mes); |
|||
} |
|||
|
|||
@ApiOperation("更新") |
|||
@RequestMapping(value = "/updateStatus", method = RequestMethod.POST) |
|||
@ResponseBody |
|||
public Object updateStatus(@RequestBody SysMessage sysMessage) { |
|||
int count = messageService.updateStatus(sysMessage); |
|||
if (count > 0) { |
|||
return new CommonResult().success(count); |
|||
} |
|||
return new CommonResult().failed(); |
|||
} |
|||
} |
Loading…
Reference in new issue