Ejemplo 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;
 }
Ejemplo n.º 2
0
 public Map<String, Object> findByHelper(HqlHelper hql) {
   return salaryDao.findAllByHqlHelp(hql);
 }
Ejemplo n.º 3
0
 public void delete(int id) {
   TDriverSalary salary = salaryDao.get(id);
   salary.setnEnable(SystemConstants.SYS_DISABLE);
   salaryDao.update(salary);
 }
Ejemplo n.º 4
0
 public void saveOrUpdateAll(List<TDriverSalary> entities) {
   salaryDao.saveOrUpdateAll(entities);
 }
Ejemplo n.º 5
0
 public void saveOrUpdate(TDriverSalary entity) {
   salaryDao.saveOrUpdate(entity);
 }
Ejemplo n.º 6
0
 public void update(TDriverSalary entity) {
   salaryDao.update(entity);
 }
Ejemplo n.º 7
0
 public TDriverSalary get(int id) {
   return salaryDao.get(id);
 }