|  |  |  | 
|---|
|  |  |  | import org.springframework.core.env.Environment; | 
|---|
|  |  |  | import org.springframework.stereotype.Service; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.time.format.DateTimeFormatter; | 
|---|
|  |  |  | import java.util.ArrayList; | 
|---|
|  |  |  | import java.util.HashMap; | 
|---|
|  |  |  | import java.util.List; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public Long insert(RmCommandHistory po) { | 
|---|
|  |  |  | rmCommandHistoryMapper.insert(po); | 
|---|
|  |  |  | return po.getId(); | 
|---|
|  |  |  | return po.getComId(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | * @return | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | public QueryResultVo<List<VoCommand>> getCommandHistories(QoCommand query) { | 
|---|
|  |  |  | DateTimeFormatter dtf = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"); | 
|---|
|  |  |  | // 完善查询起止时间 | 
|---|
|  |  |  | String timeStart = query.getTimeStart(); | 
|---|
|  |  |  | String timeStop = query.getTimeStop(); | 
|---|