Compare commits

...

10 Commits

Author SHA1 Message Date
macro
dd6569c355 后台删除用户时先删除缓存中的用户信息 2025-10-17 14:27:04 +08:00
macro
2616ba4289 Update FlashPromotionProduct.java 2025-09-28 09:17:22 +08:00
macro
97f630e5b7 Update CartPromotionItem.java 2025-09-01 16:41:08 +08:00
macro
5eb68b8112 Update CartProduct.java 2025-08-11 16:27:35 +08:00
macro
54b11fc32d Update OmsOrderReturnApplyResult.java 2025-07-21 17:08:06 +08:00
macro
7a1ca5d112 Update GlobalCorsConfig.java 2025-07-01 14:52:05 +08:00
macro
2066a55212 Update UmsMenuServiceImpl.java 2025-06-16 10:51:44 +08:00
macro
83fe3e707b Update UmsAdminServiceImpl.java 2025-06-09 17:03:19 +08:00
macro
bbd593e869 Update UmsAdminCacheService.java 2025-05-23 10:16:53 +08:00
macro
8a6579db7f Update SmsHomeBrandService.java 2025-05-12 15:06:27 +08:00
9 changed files with 10 additions and 10 deletions

View File

@@ -7,7 +7,7 @@ import lombok.Getter;
import lombok.Setter; import lombok.Setter;
/** /**
* 申请信息封装 * 订单退货申请结果封装
* Created by macro on 2018/10/18. * Created by macro on 2018/10/18.
*/ */
public class OmsOrderReturnApplyResult extends OmsOrderReturnApply { public class OmsOrderReturnApplyResult extends OmsOrderReturnApply {

View File

@@ -27,7 +27,7 @@ public interface SmsHomeBrandService {
int delete(List<Long> ids); int delete(List<Long> ids);
/** /**
* 批量更新推荐状态 * 批量更新品牌推荐状态
*/ */
int updateRecommendStatus(List<Long> ids, Integer recommendStatus); int updateRecommendStatus(List<Long> ids, Integer recommendStatus);

View File

@@ -31,7 +31,7 @@ public interface UmsAdminCacheService {
void delResourceListByRoleIds(List<Long> roleIds); void delResourceListByRoleIds(List<Long> roleIds);
/** /**
* 当资源信息改变时,删除资源项目后台用户缓存 * 当资源信息改变时,删除资源相关后台用户缓存
*/ */
void delResourceListByResource(Long resourceId); void delResourceListByResource(Long resourceId);

View File

@@ -62,7 +62,7 @@ public class UmsAdminServiceImpl implements UmsAdminService {
//先从缓存中获取数据 //先从缓存中获取数据
UmsAdmin admin = getCacheService().getAdmin(username); UmsAdmin admin = getCacheService().getAdmin(username);
if (admin != null) return admin; if (admin != null) return admin;
//缓存中没有从数据库中获取 //缓存中没有从数据库中获取
UmsAdminExample example = new UmsAdminExample(); UmsAdminExample example = new UmsAdminExample();
example.createCriteria().andUsernameEqualTo(username); example.createCriteria().andUsernameEqualTo(username);
List<UmsAdmin> adminList = adminMapper.selectByExample(example); List<UmsAdmin> adminList = adminMapper.selectByExample(example);
@@ -189,8 +189,8 @@ public class UmsAdminServiceImpl implements UmsAdminService {
@Override @Override
public int delete(Long id) { public int delete(Long id) {
int count = adminMapper.deleteByPrimaryKey(id);
getCacheService().delAdmin(id); getCacheService().delAdmin(id);
int count = adminMapper.deleteByPrimaryKey(id);
getCacheService().delResourceList(id); getCacheService().delResourceList(id);
return count; return count;
} }

View File

@@ -37,7 +37,7 @@ public class UmsMenuServiceImpl implements UmsMenuService {
//没有父菜单时为一级菜单 //没有父菜单时为一级菜单
umsMenu.setLevel(0); umsMenu.setLevel(0);
} else { } else {
//有父菜单时选择根据父菜单level设置 //有父菜单时父菜单level+1
UmsMenu parentMenu = menuMapper.selectByPrimaryKey(umsMenu.getParentId()); UmsMenu parentMenu = menuMapper.selectByPrimaryKey(umsMenu.getParentId());
if (parentMenu != null) { if (parentMenu != null) {
umsMenu.setLevel(parentMenu.getLevel() + 1); umsMenu.setLevel(parentMenu.getLevel() + 1);

View File

@@ -21,7 +21,7 @@ public class GlobalCorsConfig {
CorsConfiguration config = new CorsConfiguration(); CorsConfiguration config = new CorsConfiguration();
//允许所有域名进行跨域调用 //允许所有域名进行跨域调用
config.addAllowedOriginPattern("*"); config.addAllowedOriginPattern("*");
//允许跨发送cookie //允许跨发送cookie
config.setAllowCredentials(true); config.setAllowCredentials(true);
//放行全部原始头信息 //放行全部原始头信息
config.addAllowedHeader("*"); config.addAllowedHeader("*");

View File

@@ -10,7 +10,7 @@ import lombok.Setter;
import java.util.List; import java.util.List;
/** /**
* 购物车中带规格和SKU的商品信息 * 购物车中带商品属性和SKU库存的商品对象
* Created by macro on 2018/8/2. * Created by macro on 2018/8/2.
*/ */
@Getter @Getter

View File

@@ -8,7 +8,7 @@ import lombok.Setter;
import java.math.BigDecimal; import java.math.BigDecimal;
/** /**
* 购物车中促销信息的封装 * 促销信息的购物车商品封装
* Created by macro on 2018/8/27. * Created by macro on 2018/8/27.
*/ */
@Getter @Getter

View File

@@ -16,7 +16,7 @@ import java.math.BigDecimal;
public class FlashPromotionProduct extends PmsProduct{ public class FlashPromotionProduct extends PmsProduct{
@ApiModelProperty("秒杀价格") @ApiModelProperty("秒杀价格")
private BigDecimal flashPromotionPrice; private BigDecimal flashPromotionPrice;
@ApiModelProperty("用于秒杀数量") @ApiModelProperty("用于秒杀数量")
private Integer flashPromotionCount; private Integer flashPromotionCount;
@ApiModelProperty("秒杀限购数量") @ApiModelProperty("秒杀限购数量")
private Integer flashPromotionLimit; private Integer flashPromotionLimit;