代码优化,修复订单投诉问题
This commit is contained in:
@@ -36,7 +36,7 @@ public class StoreCollectionServiceImpl extends ServiceImpl<StoreCollectionMappe
|
||||
|
||||
@Override
|
||||
public IPage<StoreCollectionVO> storeCollection(PageVO pageVo) {
|
||||
QueryWrapper<StoreCollectionVO> queryWrapper = new QueryWrapper();
|
||||
QueryWrapper<StoreCollectionVO> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("sc.member_id", UserContext.getCurrentUser().getId());
|
||||
queryWrapper.orderByDesc("sc.create_time");
|
||||
return this.baseMapper.storeCollectionVOList(PageUtil.initPage(pageVo), queryWrapper);
|
||||
@@ -44,10 +44,10 @@ public class StoreCollectionServiceImpl extends ServiceImpl<StoreCollectionMappe
|
||||
|
||||
@Override
|
||||
public boolean isCollection(String storeId) {
|
||||
QueryWrapper<StoreCollection> queryWrapper = new QueryWrapper();
|
||||
QueryWrapper<StoreCollection> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("member_id", UserContext.getCurrentUser().getId());
|
||||
queryWrapper.eq("store_id", storeId);
|
||||
return Optional.ofNullable(this.getOne(queryWrapper)).isPresent();
|
||||
return Optional.ofNullable(this.getOne(queryWrapper, false)).isPresent();
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -67,7 +67,7 @@ public class StoreCollectionServiceImpl extends ServiceImpl<StoreCollectionMappe
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public boolean deleteStoreCollection(String storeId) {
|
||||
QueryWrapper<StoreCollection> queryWrapper = new QueryWrapper();
|
||||
QueryWrapper<StoreCollection> queryWrapper = new QueryWrapper<>();
|
||||
queryWrapper.eq("member_id", UserContext.getCurrentUser().getId());
|
||||
queryWrapper.eq("store_id", storeId);
|
||||
storeService.updateStoreCollectionNum(new CollectionDTO(storeId, -1));
|
||||
|
||||
@@ -8,6 +8,7 @@ import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
|
||||
@@ -23,8 +24,11 @@ import java.util.Date;
|
||||
@Data
|
||||
@TableName("li_sms_reach")
|
||||
@ApiModel(value = "短信任务")
|
||||
@EqualsAndHashCode(callSuper = true)
|
||||
public class SmsReach extends BaseIdEntity {
|
||||
|
||||
private static final long serialVersionUID = -8106666482841131277L;
|
||||
|
||||
@ApiModelProperty(value = "签名名称", required = true)
|
||||
private String signName;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user