|  |  | 
 |  |  | import com.mzl.flower.mapper.point.CustomerPointDetailMapper; | 
 |  |  | import com.mzl.flower.mapper.point.CustomerPointMapper; | 
 |  |  | import com.mzl.flower.service.BaseService; | 
 |  |  | import com.mzl.flower.utils.DateUtils; | 
 |  |  | import org.apache.commons.lang3.StringUtils; | 
 |  |  | import org.springframework.beans.BeanUtils; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  | import org.springframework.transaction.annotation.Transactional; | 
 |  |  | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public  Page<CustomerPointDetailDTO> queryCustomerDetails(QueryPointDetailDTO dto, Page page) { | 
 |  |  |         if(StringUtils.isNotBlank(dto.getCreateTimeStartStr())){ | 
 |  |  |             dto.setCreateTimeStart(DateUtils.dateTimeStringToLocalDateTime(dto.getCreateTimeStartStr())); | 
 |  |  |         } | 
 |  |  |         if(StringUtils.isNotBlank(dto.getCreateTimeEndStr())){ | 
 |  |  |             dto.setCreateTimeEnd(DateUtils.dateTimeStringToLocalDateTime(dto.getCreateTimeEndStr())); | 
 |  |  |         } | 
 |  |  |         List<CustomerPointDetailDTO> list = customerPointMapper.queryCustomerDetails(dto, page); | 
 |  |  |         page.setRecords(list); | 
 |  |  |  | 
 |  |  | 
 |  |  |                 .eq(CustomerPointDetail::getUserId, SecurityUtils.getUserId()) | 
 |  |  |                 .eq(CustomerPointDetail::getChangeType, POINT_CHANGE_TYPE.add.name()) | 
 |  |  |                 .eq(CustomerPointDetail::getType, POINT_TYPE.sign.name()); | 
 |  |  |         lambdaQueryWrapper.orderByDesc(CustomerPointDetail::getRecordDate); | 
 |  |  |         if(startDate!=null){ | 
 |  |  |             lambdaQueryWrapper.ge(CustomerPointDetail::getRecordDate,startDate); | 
 |  |  |         } |