|
@ -71,17 +71,9 @@ public class PointsLogsServiceImpl extends BaseServiceImpl<PointsLogsDao, Points |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public PageData<PointsLogsDTO> page(Map<String, Object> params) { |
|
|
public PageData<PointsLogsDTO> page(Map<String, Object> params) { |
|
|
String volunteerId = (String) params.get("volunteerId"); |
|
|
IPage<PointsLogsDTO> page = getPage(params); |
|
|
String behaviorCode = (String) params.get("behaviorCode"); |
|
|
List<PointsLogsDTO> list = baseDao.selectListVolunteerPointsLog(params); |
|
|
QueryWrapper<PointsLogsEntity> wrapper = new QueryWrapper<>(); |
|
|
return new PageData<>(list, page.getTotal()); |
|
|
wrapper.eq(StringUtils.isNotBlank(volunteerId), "VOLUNTEER_ID", volunteerId) |
|
|
|
|
|
.eq(StringUtils.isNotBlank(behaviorCode), "BEHAVIOR_CODE", behaviorCode); |
|
|
|
|
|
|
|
|
|
|
|
IPage<PointsLogsEntity> page = baseDao.selectPage( |
|
|
|
|
|
getPage(params, FieldConstant.CREATED_TIME, false), |
|
|
|
|
|
wrapper |
|
|
|
|
|
); |
|
|
|
|
|
return getPageData(page, PointsLogsDTO.class); |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|