🎨 规范代码.
This commit is contained in:
@@ -56,8 +56,8 @@ public interface ExecLogDAO extends IMapper<ExecLogDO> {
|
||||
* @param limit limit
|
||||
* @return rows
|
||||
*/
|
||||
List<ExecLogDO> getExecHistory(@Param("source") String source,
|
||||
@Param("userId") Long userId,
|
||||
@Param("limit") Integer limit);
|
||||
List<ExecLogDO> selectExecHistory(@Param("source") String source,
|
||||
@Param("userId") Long userId,
|
||||
@Param("limit") Integer limit);
|
||||
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ public class ExecLogServiceImpl implements ExecLogService {
|
||||
@Override
|
||||
public List<ExecLogVO> getExecHistory(ExecLogQueryRequest request) {
|
||||
// 查询执行记录
|
||||
List<ExecLogDO> rows = execLogDAO.getExecHistory(request.getSource(), request.getUserId(), request.getLimit());
|
||||
List<ExecLogDO> rows = execLogDAO.selectExecHistory(request.getSource(), request.getUserId(), request.getLimit());
|
||||
if (rows.isEmpty()) {
|
||||
return Lists.empty();
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
id, user_id, username, source, source_id, exec_mode, description, exec_seq, command, parameter_schema, timeout, script_exec, status, start_time, finish_time, create_time, update_time, creator, updater, deleted
|
||||
</sql>
|
||||
|
||||
<select id="getExecHistory" resultMap="BaseResultMap">
|
||||
<select id="selectExecHistory" resultMap="BaseResultMap">
|
||||
SELECT
|
||||
<include refid="Base_Column_List"/>
|
||||
FROM exec_log e
|
||||
|
||||
Reference in New Issue
Block a user