🎨 规范代码.

This commit is contained in:
lijiahangmax
2024-12-23 23:23:42 +08:00
parent 79f14632bb
commit 41a9bebe06
6 changed files with 15 additions and 21 deletions

View File

@@ -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);
}

View File

@@ -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();
}

View File

@@ -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