|  |  | 
 |  |  | import org.springframework.beans.factory.annotation.Autowired; | 
 |  |  | import org.springframework.stereotype.Service; | 
 |  |  |  | 
 |  |  | import java.time.format.DateTimeFormatter; | 
 |  |  | import java.util.List; | 
 |  |  | import java.util.Map; | 
 |  |  |  | 
 |  |  | 
 |  |  |  | 
 |  |  |     public QueryResultVo<List<VoCancel>> getCancels(QueryVo queryVo) { | 
 |  |  |         //完善查询注销记录的起止时间 | 
 |  |  |         DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd"); | 
 |  |  |  | 
 |  |  |         String cancelTimeStart = queryVo.cancelTimeStart; | 
 |  |  |         String cancelTimeStop = queryVo.cancelTimeStop; | 
 |  |  |         if(cancelTimeStart != null) { | 
 |  |  |             cancelTimeStart = cancelTimeStart + " 00:00:00"; | 
 |  |  |             queryVo.setCancelTimeStart(cancelTimeStart); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         if(cancelTimeStop != null) { | 
 |  |  |             cancelTimeStop = cancelTimeStop + " 23:59:59"; | 
 |  |  |             queryVo.setCancelTimeStop(cancelTimeStop); | 
 |  |  | 
 |  |  |  | 
 |  |  |         QueryResultVo<List<VoCancel>> rsVo = new QueryResultVo<>() ; | 
 |  |  |         rsVo.pageSize = queryVo.pageSize ; | 
 |  |  |         //rsVo.pageCurr = queryVo.pageCurr ; | 
 |  |  |         Integer pageCurr = (Integer.parseInt(params.get("pageCurr").toString()) - 1) * Integer.parseInt(params.get("pageSize").toString()); | 
 |  |  |         params.put("pageCurr", pageCurr); | 
 |  |  |         rsVo.pageCurr = pageCurr; | 
 |  |  |         rsVo.pageCurr = queryVo.pageCurr ; | 
 |  |  |  | 
 |  |  |         rsVo.calculateAndSet(itemTotal, params); | 
 |  |  |         rsVo.obj = seCancelMapper.getCancels(params); |