|
@@ -7,10 +7,11 @@ import nc.bs.dao.DAOException;
|
|
import nc.bs.logging.Logger;
|
|
import nc.bs.logging.Logger;
|
|
import nc.jdbc.framework.processor.BeanListProcessor;
|
|
import nc.jdbc.framework.processor.BeanListProcessor;
|
|
import nc.vo.bd.defdoc.DefdocVO;
|
|
import nc.vo.bd.defdoc.DefdocVO;
|
|
|
|
+import nc.vo.pf.pub.BusitypeVO;
|
|
import nc.vo.pub.BusinessException;
|
|
import nc.vo.pub.BusinessException;
|
|
import nc.vo.pubapp.pattern.pub.PubAppTool;
|
|
import nc.vo.pubapp.pattern.pub.PubAppTool;
|
|
|
|
|
|
-public class GainDefdocUtil {
|
|
|
|
|
|
+public class GainBDDataUtil {
|
|
|
|
|
|
public List<DefdocVO> gainDefdoc(String doclistname, String conditon) throws BusinessException {
|
|
public List<DefdocVO> gainDefdoc(String doclistname, String conditon) throws BusinessException {
|
|
// TODO Auto-generated method stub
|
|
// 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;
|
|
private BaseDAO baseDAO;
|
|
|
|
|