修改用户等级bug
This commit is contained in:
@ -5,32 +5,35 @@
|
||||
*/
|
||||
package co.yixiang.modules.shop.service.impl;
|
||||
|
||||
import co.yixiang.modules.shop.domain.YxSystemUserTask;
|
||||
import co.yixiang.common.service.impl.BaseServiceImpl;
|
||||
import lombok.AllArgsConstructor;
|
||||
import co.yixiang.dozer.service.IGenerator;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import co.yixiang.common.utils.QueryHelpPlus;
|
||||
import co.yixiang.utils.FileUtil;
|
||||
import co.yixiang.dozer.service.IGenerator;
|
||||
import co.yixiang.modules.shop.domain.YxSystemUserLevel;
|
||||
import co.yixiang.modules.shop.domain.YxSystemUserTask;
|
||||
import co.yixiang.modules.shop.service.YxSystemUserLevelService;
|
||||
import co.yixiang.modules.shop.service.YxSystemUserTaskService;
|
||||
import co.yixiang.modules.shop.service.dto.YxSystemUserTaskDto;
|
||||
import co.yixiang.modules.shop.service.dto.YxSystemUserTaskQueryCriteria;
|
||||
import co.yixiang.modules.shop.service.mapper.SystemUserTaskMapper;
|
||||
import co.yixiang.utils.FileUtil;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import lombok.AllArgsConstructor;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Propagation;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
// 默认不使用缓存
|
||||
//import org.springframework.cache.annotation.CacheConfig;
|
||||
//import org.springframework.cache.annotation.CacheEvict;
|
||||
//import org.springframework.cache.annotation.Cacheable;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.io.IOException;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.util.ArrayList;
|
||||
import java.util.LinkedHashMap;
|
||||
|
||||
/**
|
||||
* @author hupeng
|
||||
@ -43,6 +46,7 @@ import java.util.LinkedHashMap;
|
||||
public class YxSystemUserTaskServiceImpl extends BaseServiceImpl<SystemUserTaskMapper, YxSystemUserTask> implements YxSystemUserTaskService {
|
||||
|
||||
private final IGenerator generator;
|
||||
private final YxSystemUserLevelService systemUserLevelService;
|
||||
|
||||
@Override
|
||||
//@Cacheable
|
||||
@ -51,8 +55,8 @@ public class YxSystemUserTaskServiceImpl extends BaseServiceImpl<SystemUserTaskM
|
||||
PageInfo<YxSystemUserTask> page = new PageInfo<>(queryAll(criteria));
|
||||
List<YxSystemUserTaskDto> systemUserTaskDTOS = generator.convert(page.getList(),YxSystemUserTaskDto.class);
|
||||
for (YxSystemUserTaskDto systemUserTaskDTO : systemUserTaskDTOS) {
|
||||
systemUserTaskDTO.setLevalName(this
|
||||
.getById(systemUserTaskDTO.getLevelId()).getName());
|
||||
YxSystemUserLevel userLevel=systemUserLevelService.getById(systemUserTaskDTO.getLevelId());
|
||||
systemUserTaskDTO.setLevalName(userLevel.getName());
|
||||
}
|
||||
Map<String, Object> map = new LinkedHashMap<>(2);
|
||||
map.put("content", systemUserTaskDTOS);
|
||||
|
Reference in New Issue
Block a user