Esempio n. 1
0
 /** @Description 根据司机id查询月份 */
 public List<Integer> getMonthsExist(int driverId) {
   String[] propertyNames = {"iDriverId", "nEnable"};
   Object[] values = {driverId, SystemConstants.SYS_ENABLE};
   List<TDriverSalary> salarys = salaryDao.findByPropertys(propertyNames, values);
   List<Integer> nMonths = new ArrayList<Integer>();
   if (CollectionUtils.isEmpty(salarys)) {
     return null;
   }
   for (TDriverSalary salary : salarys) {
     int nMonth = salary.getnMonth();
     nMonths.add(nMonth);
   }
   System.out.println("nMonths:" + nMonths);
   return nMonths;
 }
Esempio n. 2
0
 public Map<String, Object> findByHelper(HqlHelper hql) {
   return salaryDao.findAllByHqlHelp(hql);
 }
Esempio n. 3
0
 public void delete(int id) {
   TDriverSalary salary = salaryDao.get(id);
   salary.setnEnable(SystemConstants.SYS_DISABLE);
   salaryDao.update(salary);
 }
Esempio n. 4
0
 public void saveOrUpdateAll(List<TDriverSalary> entities) {
   salaryDao.saveOrUpdateAll(entities);
 }
Esempio n. 5
0
 public void saveOrUpdate(TDriverSalary entity) {
   salaryDao.saveOrUpdate(entity);
 }
Esempio n. 6
0
 public void update(TDriverSalary entity) {
   salaryDao.update(entity);
 }
Esempio n. 7
0
 public TDriverSalary get(int id) {
   return salaryDao.get(id);
 }