| New file | 
 |  |  | 
 |  |  | package com.dy.pipIrrRemote.common; | 
 |  |  |  | 
 |  |  | import com.dy.common.aop.SsoAop; | 
 |  |  | import com.dy.common.webUtil.BaseResponse; | 
 |  |  | import com.dy.common.webUtil.BaseResponseUtils; | 
 |  |  | import com.dy.common.webUtil.QueryResultVo; | 
 |  |  | import com.dy.pipIrrGlobal.voRm.VoCommand; | 
 |  |  | import com.dy.pipIrrRemote.common.qo.QoCommand; | 
 |  |  | import lombok.RequiredArgsConstructor; | 
 |  |  | import lombok.extern.slf4j.Slf4j; | 
 |  |  | import org.springframework.web.bind.annotation.GetMapping; | 
 |  |  | import org.springframework.web.bind.annotation.RequestMapping; | 
 |  |  | import org.springframework.web.bind.annotation.RestController; | 
 |  |  |  | 
 |  |  | import java.util.List; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * @author ZhuBaoMin | 
 |  |  |  * @date 2024-07-03 9:48 | 
 |  |  |  * @LastEditTime 2024-07-03 9:48 | 
 |  |  |  * @Description | 
 |  |  |  */ | 
 |  |  |  | 
 |  |  | @Slf4j | 
 |  |  | @RestController | 
 |  |  | @RequestMapping(path="get") | 
 |  |  | @RequiredArgsConstructor | 
 |  |  | public class CommandCtrl { | 
 |  |  |     private final CommandSv commandSv; | 
 |  |  |  | 
 |  |  |     @GetMapping(path = "/command_history") | 
 |  |  |     @SsoAop() | 
 |  |  |     public BaseResponse<QueryResultVo<List<VoCommand>>> get(QoCommand vo){ | 
 |  |  |         try { | 
 |  |  |             QueryResultVo<List<VoCommand>> res = commandSv.getCommandHistories(vo); | 
 |  |  |             return BaseResponseUtils.buildSuccess(res); | 
 |  |  |         } catch (Exception e) { | 
 |  |  |             log.error("获取充值记录异常", e); | 
 |  |  |             return BaseResponseUtils.buildException(e.getMessage()) ; | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |