11.19超市
parent
1d650884f1
commit
952f713c9e
|
@ -88,5 +88,8 @@ public class AuthServiceImpl implements AuthService {
|
|||
String userKey = JwtUtils.getUserKey(token);
|
||||
redisTemplate.delete(TokenConstants.LOGIN_TOKEN_KEY+userKey);
|
||||
return Result.success();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -27,4 +27,5 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 6296b935-334a-42d6-84cf-508ca67756de
|
||||
|
||||
|
|
|
@ -2,6 +2,8 @@ package com.bwie.common.domain;
|
|||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @ClassName Vip
|
||||
* @Description 描述
|
||||
|
@ -10,16 +12,18 @@ import lombok.Data;
|
|||
*/
|
||||
@Data
|
||||
public class Vip {
|
||||
private Integer vipId;
|
||||
private String vipName;
|
||||
//性别
|
||||
private String vipGender;
|
||||
//VIP等级
|
||||
private Integer vipGrade;
|
||||
//年龄
|
||||
private Integer customerId;
|
||||
private String customerName;
|
||||
private Integer customerAge;
|
||||
//地址
|
||||
private String customerGender;
|
||||
private String customerAddress;
|
||||
//电话
|
||||
private String customerTel;
|
||||
private Integer vipId;
|
||||
|
||||
private String vipName;
|
||||
private String vipAge;
|
||||
private String vipGender;
|
||||
private Integer vipGrade;
|
||||
private Date vipRegDate;
|
||||
|
||||
}
|
||||
|
|
|
@ -27,3 +27,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 6296b935-334a-42d6-84cf-508ca67756de
|
||||
|
|
|
@ -131,8 +131,8 @@ public class SystemServiceImpl implements SystemService {
|
|||
|
||||
@Override
|
||||
public Result insertVip(VipDTO vipDTO) {
|
||||
systemMapper.insertCustomer(vipDTO);
|
||||
vipDTO.setVipRegDate(new Date());
|
||||
systemMapper.insertCustomer(vipDTO);
|
||||
systemMapper.insertVip(vipDTO);
|
||||
return Result.success();
|
||||
}
|
||||
|
|
|
@ -27,3 +27,4 @@ spring:
|
|||
# 共享配置
|
||||
shared-configs:
|
||||
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
|
||||
namespace: 6296b935-334a-42d6-84cf-508ca67756de
|
||||
|
|
Loading…
Reference in New Issue