更新提交代码步骤

实现一个简单的查询操作,返回list

文件名为PushMsgBuilder,代码如下

public static List<WarnInfoDTO> buildWarnInfo(int taskType, Connection connection, ZjLogger logger) throws Exception {
        List<WarnInfoDTO> warnList = new ArrayList<>(0);
        String qrySql = "select task_no,warn_msg,task_type from delivery_warn_info where valid_flag = 0 and task_type="+taskType;
        CachedRowSet rowSet = DbOperate.executeQuery(qrySql, connection, logger);
        while (rowSet.next()) {
            int task_no = rowSet.getInt("task_no");
            String warn_msg = rowSet.getString("warn_msg");
            int task_type = rowSet.getInt("task_type");
            WarnInfoDTO warnInfo = new WarnInfoDTO(task_no, task_type,warn_msg);
            warnList.add(warnInfo);
        }
        if (rowSet != null) {
            rowSet.close();
        }
        return warnList;
    }

选中项目右击,Term-Fetch from Upstream(更新代码)

点击pull是从服务器下载代码。

点击commit提交代码:

选中要提交的代码,右击add到下方,在commit message说明更新的信息,点击commit提交

点击show in history可查看提交记录

猜你喜欢

转载自blog.csdn.net/weixin_43163261/article/details/88640745