⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 resourcecollect.java

📁 自动导入文件到数据库,用于无法实时入库,需要在特定时间大批量入库的程序
💻 JAVA
字号:
package com.onet.autobill.bill.common;

import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import com.onet.autobill.db.DbService;
import com.onet.autobill.model.SettleProjectCmdInfo;

/**
 * 资源管理类
 * @author mengwei
 *
 */
public class ResourceCollect {
	
	private static Logger logger = Logger.getLogger(ResourceCollect.class);

	private Map<String, String> mobileSection = null;

	private Map<String, String> provNameMap = null;
	
	private List<SettleProjectCmdInfo> settleProjectCmdInfoList = null;


	public List<SettleProjectCmdInfo> getSettleProjectCmdInfoList() {
		return settleProjectCmdInfoList;
	}

	public Map<String, String> getMobileSection() {
		return mobileSection;
	}

	public Map<String, String> getProvNameMap() {
		return provNameMap;
	}

	/**
	 * 初始化数据集合
	 * @param dbService
	 * @return
	 */
	public boolean initResource(DbService dbService){
		if(dbService==null){
			return false;
		}
		this.mobileSection = dbService.getMobileSection();
		this.provNameMap = dbService.getProvNameMap();
		this.settleProjectCmdInfoList = dbService.getSettleProjectCmdInfoList();
		
		if(mobileSection==null||provNameMap==null||settleProjectCmdInfoList==null){
			logger.error("初始化资源失败");
			return false;
		}
		logger.debug("初始化路由信息 size:" 
				+ mobileSection.size() + "; 省份信息个数:" + provNameMap.size()+";合作Id个数:"+settleProjectCmdInfoList.size());	
		logger.debug(settleProjectCmdInfoList);
		return true;
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -