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

📄 contractstatistic.java

📁 sso呵呵
💻 JAVA
字号:
package com.mdcl.mocha.jlcmcc.contract.serviceimp;

import java.util.List;

import com.mdcl.mocha.bpm.sdk.ServiceManager;
import com.mdcl.mocha.bpm.sdk.osm.IOrgMgmtService;
import com.mdcl.mocha.bpm.sdk.osm.entity.OrgBean;
import com.mdcl.mocha.jlcmcc.contract.bean.ContractQueryBean;
import com.mdcl.mocha.jlcmcc.contract.bean.QueryCondition;
import com.mdcl.mocha.jlcmcc.contract.dao.ContractStatisticDAL;
import com.mdcl.mocha.jlcmcc.contract.interfaces.IContractStatistic;

/**
 *
 * <strong>Title : ContractStatistic<br></strong>
 * <strong>Description :实现IContractStatistic接口 的合同统计查询 和 合同查询 </strong><br>
 * <strong>Create on : 2007-9-17<br></strong>
 * <p>
 * <strong>Copyright (C) Mocha Software Co.,Ltd.<br></strong>
 * <p>
 * @author wangchl wangchl@mochasoft.com.cn<br>
 * @version <strong>吉林移动BPM一期</strong><br>
 * <br>
 * <strong>修改历史:</strong><br>
 * 修改人		修改日期		修改描述<br>
 * -------------------------------------------<br>
 * <br>
 * <br>
 */
public class ContractStatistic implements IContractStatistic {

	/**
	 *
	 * 方法描述 根据查询条件进行合同<b>统计查询</b>
	 * @param QueryCondition cond 统计查询的条件
	 * @return 结果集List:(ContractStatisticBean)
	 */
	public List statisticQuery(QueryCondition cond) {
//		System.out.println(">>>> ContractStatistic.statisticQuery()");
		List reList = this.getDAL().retrieveStatisticList(cond);
//		System.out.println("<<<< ContractStatistic.statisticQuery()");
		return reList;
	}

	/**
	 *
	 * 方法描述 根据查询条件进行合同查询
	 * @param QueryCondition cond 统计查询的条件
	 * @return 结果集List:(ContractQueryBean)
	 */
	public List query(QueryCondition cond) {
		List result = this.getDAL().retrieveContractQueryList(cond);
		//把部门 ID 转化为 部门名称
		if(result != null){
			for(int i=0; i<result.size(); i++){
				ContractQueryBean bean = (ContractQueryBean) result.get(i);
				//得到到部门服务
				IOrgMgmtService IOService;
				try {
					IOService = (IOrgMgmtService)ServiceManager.getInstance().getService(IOrgMgmtService.class);
					//得到 部门信息
					OrgBean orBean=IOService.getOrgById(bean.getUndertakeDept());
					//完成 部门 ID 转化为 部门名称 的转化
					bean.setUndertakeDept(orBean.getOrgname());
				} catch (Exception e) {
					// TODO Auto-generated catch block
					e.printStackTrace();
				}
			}
		}
		return result;
	}

	/**
	 *
	 * 方法描述 根据印花税类型和查询条件进行合同查询
	 * @param QueryCondition cond 统计查询的条件
	 * @return 结果集List:(ContractQueryBean)
	 */
	public List stampStatistic(String[] stamps, QueryCondition cond) {
//		System.out.println(">>>> ContractStatistic.stampStatistic()");
		List reList = this.getDAL().retrieveStatisticByStamp(stamps, cond);
//		System.out.println("<<<< ContractStatistic.stampStatistic()");
		return reList;
	}

	private ContractStatisticDAL getDAL(){
		return new ContractStatisticDAL();
	}
}

⌨️ 快捷键说明

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