public long addTPersonBorrower(TPersonBorrower tPersonBorrower, TJobBorrower tJobBorrower) { long result = tPersonBorrowerDao.insert(tPersonBorrower); if (result <= 0) { throw new ZeroSQLException(); } tJobBorrower.setPersonBorrowerId(tPersonBorrower.getId()); result = tJobBorrowerDao.insert(tJobBorrower); if (result <= 0) { throw new ZeroSQLException(); } return result; }
public long updateTPersonBorrower(TPersonBorrower tPersonBorrower, TJobBorrower tJobBorrower) { long result = tPersonBorrowerDao.update(tPersonBorrower); if (result <= 0) { throw new ZeroSQLException(); } TJobBorrower tJobBorrowerModel = tJobBorrowerDao.getTJobBorrowerByPersonId(tPersonBorrower.getId()); tJobBorrower.setId(tJobBorrowerModel.getId()); result = tJobBorrowerDao.update(tJobBorrower); if (result <= 0) { throw new ZeroSQLException(); } return result; }
public int inserttPersonBorrower(TPersonBorrower tPersonBorrower) { return tPersonBorrowerDao.insert(tPersonBorrower); }
public PageList queryTPersonBorrowerPage( TPersonBorrower tPersonBorrower, Map<String, SearchOperator> options, PageBounds pageBounds) { return (PageList) tPersonBorrowerDao.getAllBy(tPersonBorrower, options, pageBounds); }
public TPersonBorrower getTPersonBorrower(TPersonBorrower tPersonBorrower) { return tPersonBorrowerDao.get(tPersonBorrower); }