Pārlūkot izejas kodu

更新获取档案的实现

longht 4 gadi atpakaļ
vecāks
revīzija
f195dbcb25

+ 9 - 2
src/private/nc/impl/pubdev/pubtool/BDTool/BDDatasGainToolimpl.java

@@ -2,9 +2,10 @@ package nc.impl.pubdev.pubtool.BDTool;
 
 import java.util.List;
 
-import nc.impl.pubdev.pubtool.execmethod.GainDefdocUtil;
+import nc.impl.pubdev.pubtool.execmethod.GainBDDataUtil;
 import nc.itf.pubdev.pubtool.BDTool.IBDDatasGainTool;
 import nc.vo.bd.defdoc.DefdocVO;
+import nc.vo.pf.pub.BusitypeVO;
 import nc.vo.pub.BusinessException;
 
 public class BDDatasGainToolimpl implements IBDDatasGainTool{
@@ -12,7 +13,13 @@ public class BDDatasGainToolimpl implements IBDDatasGainTool{
 	@Override
 	public List<DefdocVO> GainDefDocByListcode(String doclistname, String conditon) throws BusinessException {
 		// TODO Auto-generated method stub
-		return new GainDefdocUtil().gainDefdoc(doclistname,conditon);
+		return new GainBDDataUtil().gainDefdoc(doclistname,conditon);
+	}
+
+	@Override
+	public List<BusitypeVO> GainActiveBusitype(String busitypecode, String conditon) throws BusinessException {
+		// TODO Auto-generated method stub
+		return new GainBDDataUtil().gainActiveBusityp(busitypecode,conditon);
 	}
 
 }

+ 22 - 2
src/private/nc/impl/pubdev/pubtool/execmethod/GainDefdocUtil.java

@@ -7,10 +7,11 @@ import nc.bs.dao.DAOException;
 import nc.bs.logging.Logger;
 import nc.jdbc.framework.processor.BeanListProcessor;
 import nc.vo.bd.defdoc.DefdocVO;
+import nc.vo.pf.pub.BusitypeVO;
 import nc.vo.pub.BusinessException;
 import nc.vo.pubapp.pattern.pub.PubAppTool;
 
-public class GainDefdocUtil {
+public class GainBDDataUtil {
 
 	public List<DefdocVO> gainDefdoc(String doclistname, String conditon) throws BusinessException {
 		// TODO Auto-generated method stub
@@ -37,7 +38,26 @@ public class GainDefdocUtil {
 	}
 	
 	
-	
+	public List<BusitypeVO> gainActiveBusityp(String busitypecode, String conditon) throws BusinessException {
+		// TODO Auto-generated method stub
+		Logger.info("查询业务流程【"+busitypecode+"】start");
+		String querysql = " SELECT * FROM bd_busitype "
+				+ "where busicode  = '"+busitypecode+"' and validity = '1' ";
+        if(!PubAppTool.isNull(conditon))
+        	querysql =querysql+conditon;
+		List<BusitypeVO> resultList =null;
+		try {
+			resultList = (List<BusitypeVO>) getBaseDAO().executeQuery(querysql,
+					new BeanListProcessor(DefdocVO.class));
+			Logger.info("查询业务流程【"+busitypecode+"】end");
+		} catch (DAOException e1) {
+			// TODO Auto-generated catch block
+			Logger.error("查询业务流程【"+busitypecode+"】出错:" + e1.getMessage());
+			throw new BusinessException("查询业务流程【"+busitypecode+"】出错:" + e1.getMessage());
+		}
+		
+		return resultList;
+	}
 	
 	private BaseDAO baseDAO;
 	

+ 4 - 0
src/public/nc/itf/pubdev/pubtool/BDTool/IBDDatasGainTool.java

@@ -3,6 +3,7 @@ package nc.itf.pubdev.pubtool.BDTool;
 import java.util.List;
 
 import nc.vo.bd.defdoc.DefdocVO;
+import nc.vo.pf.pub.BusitypeVO;
 import nc.vo.pub.BusinessException;
 
 public interface IBDDatasGainTool {
@@ -18,5 +19,8 @@ public interface IBDDatasGainTool {
 	 * @throws BusinessException
 	 */
 	public List<DefdocVO> GainDefDocByListcode(String doclistname,String conditon) throws BusinessException;
+	
+	
+	public List<BusitypeVO> GainActiveBusitype(String busitypename,String conditon) throws BusinessException;
 
 }