初始化-提交12.02
parent
1f1da077cf
commit
10d4db2163
|
@ -35,7 +35,7 @@ spring:
|
||||||
datasource:
|
datasource:
|
||||||
ds1:
|
ds1:
|
||||||
nacos:
|
nacos:
|
||||||
server-addr: 127.0.0.1:8848
|
server-addr: 60.204.152.212:8848
|
||||||
dataId: sentinel-muyu-gateway
|
dataId: sentinel-muyu-gateway
|
||||||
groupId: DEFAULT_GROUP
|
groupId: DEFAULT_GROUP
|
||||||
data-type: json
|
data-type: json
|
||||||
|
|
|
@ -35,7 +35,8 @@ public class ActivityTeamInfoServiceImpl extends ServiceImpl<ActivityTeamInfoMap
|
||||||
ActivityTeamInfo::getName,
|
ActivityTeamInfo::getName,
|
||||||
activityTeamInfoQueryModel.getKeyWord()
|
activityTeamInfoQueryModel.getKeyWord()
|
||||||
);
|
);
|
||||||
queryWrapper.like(StringUtils.isNotEmpty(activityTeamInfoQueryModel.getStatus()),
|
queryWrapper.like(StringUtils.isNotEmpty(
|
||||||
|
activityTeamInfoQueryModel.getStatus()),
|
||||||
ActivityTeamInfo::getStatus,
|
ActivityTeamInfo::getStatus,
|
||||||
activityTeamInfoQueryModel.getStatus()
|
activityTeamInfoQueryModel.getStatus()
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
package com.muyu.service.impl;
|
package com.muyu.service.impl;
|
||||||
|
|
||||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
import com.muyu.active.domain.ActivityTeamProductSkuInfo;
|
import com.muyu.active.domain.ActivityTeamProductSkuInfo;
|
||||||
|
@ -13,7 +12,6 @@ import com.muyu.service.ActivityTeamProductSkuInfoService;
|
||||||
import lombok.extern.slf4j.Slf4j;
|
import lombok.extern.slf4j.Slf4j;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import java.math.BigDecimal;
|
import java.math.BigDecimal;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
|
@ -37,7 +37,6 @@ public class TemplateAttributeGroupModel extends BaseEntity {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 是否有效
|
* 是否有效
|
||||||
* @return
|
|
||||||
*/
|
*/
|
||||||
public boolean isEffective(){
|
public boolean isEffective(){
|
||||||
return StringUtils.isNotEmpty(groupName) && attributeList != null && !attributeList.isEmpty();
|
return StringUtils.isNotEmpty(groupName) && attributeList != null && !attributeList.isEmpty();
|
||||||
|
|
|
@ -118,6 +118,7 @@ public class AttributeGroupServiceImpl extends ServiceImpl<AttributeGroupMapper,
|
||||||
queryWrapper.eq(AsAttributeGroup::getGroupId, id);
|
queryWrapper.eq(AsAttributeGroup::getGroupId, id);
|
||||||
|
|
||||||
List<AsAttributeGroup> asAttributeGroupList = asAttributeGroupService.list(queryWrapper);
|
List<AsAttributeGroup> asAttributeGroupList = asAttributeGroupService.list(queryWrapper);
|
||||||
|
|
||||||
List<Long> attributeIdList = asAttributeGroupList.stream()
|
List<Long> attributeIdList = asAttributeGroupList.stream()
|
||||||
.map(AsAttributeGroup::getAttributeId)
|
.map(AsAttributeGroup::getAttributeId)
|
||||||
.toList();
|
.toList();
|
||||||
|
|
|
@ -73,27 +73,21 @@ public class CartInfoServiceImpl extends ServiceImpl<CartInfoMapper, CartInfo>
|
||||||
public List<CartInfo> list(CartInfo cartInfo) {
|
public List<CartInfo> list(CartInfo cartInfo) {
|
||||||
LambdaQueryWrapper<CartInfo> queryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<CartInfo> queryWrapper = new LambdaQueryWrapper<>();
|
||||||
|
|
||||||
|
|
||||||
if (ObjUtils.notNull(cartInfo.getProjectId())){
|
if (ObjUtils.notNull(cartInfo.getProjectId())){
|
||||||
queryWrapper.eq(CartInfo::getProjectId, cartInfo.getProjectId());
|
queryWrapper.eq(CartInfo::getProjectId, cartInfo.getProjectId());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ObjUtils.notNull(cartInfo.getProjectSku())){
|
if (ObjUtils.notNull(cartInfo.getProjectSku())){
|
||||||
queryWrapper.eq(CartInfo::getProjectSku, cartInfo.getProjectSku());
|
queryWrapper.eq(CartInfo::getProjectSku, cartInfo.getProjectSku());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ObjUtils.notNull(cartInfo.getUserId())){
|
if (ObjUtils.notNull(cartInfo.getUserId())){
|
||||||
queryWrapper.eq(CartInfo::getUserId, cartInfo.getUserId());
|
queryWrapper.eq(CartInfo::getUserId, cartInfo.getUserId());
|
||||||
}
|
}
|
||||||
|
if (ObjUtils.notNull(cartInfo.getNum())) {
|
||||||
if (ObjUtils.notNull(cartInfo.getNum())){
|
|
||||||
queryWrapper.eq(CartInfo::getNum, cartInfo.getNum());
|
queryWrapper.eq(CartInfo::getNum, cartInfo.getNum());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ObjUtils.notNull(cartInfo.getIsSelected())){
|
if (ObjUtils.notNull(cartInfo.getIsSelected())){
|
||||||
queryWrapper.eq(CartInfo::getIsSelected, cartInfo.getIsSelected());
|
queryWrapper.eq(CartInfo::getIsSelected, cartInfo.getIsSelected());
|
||||||
}
|
}
|
||||||
|
|
||||||
return list(queryWrapper);
|
return list(queryWrapper);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -145,7 +139,6 @@ public class CartInfoServiceImpl extends ServiceImpl<CartInfoMapper, CartInfo>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 获取购物车详情
|
* 获取购物车详情
|
||||||
*
|
|
||||||
* @return 购物车详情
|
* @return 购物车详情
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue