예제 #1
0
 public List<CompanyPrincipal> getCompanyPrincipalByCompanyID(
     String companyPrincipalText, int companyId) {
   CompanyPrincipalDao companyPrincipalDao =
       AppContextUtil.getAppContext().getBean("companyPrincipalDao", CompanyPrincipalDao.class);
   Map<String, Object> param = new HashMap<String, Object>();
   if (!StringUtil.isEmpty(companyPrincipalText)) {
     param.put("xNAME_TEXT", companyPrincipalText);
   }
   if (companyId > 0) {
     param.put("xCOMPANY_xID", companyId);
   }
   return companyPrincipalDao.select(param);
 }
예제 #2
0
 public int update(CompanyPrincipal entity) {
   CompanyPrincipalDao companyPrincipalDao =
       AppContextUtil.getAppContext().getBean("companyPrincipalDao", CompanyPrincipalDao.class);
   return companyPrincipalDao.update(entity);
 }
예제 #3
0
 public CompanyPrincipal getCompanyPrincipal(int xID) {
   CompanyPrincipalDao companyPrincipalDao =
       AppContextUtil.getAppContext().getBean("companyPrincipalDao", CompanyPrincipalDao.class);
   return companyPrincipalDao.selectById(xID);
 }