@Override public List<Salesback> querySalesbacks(SalesbackExample example) { List<Salesback> salesbacksList = new ArrayList<Salesback>(); salesbacksList = salesbackService.selectByExample(example); for (Salesback salesback : salesbacksList) { salesback.setSalesbackType(CreateIdUtil.getTranslation(salesback.getSalesbackType())); } return salesbacksList; }
@Override public List<Salesback> selectSalesback() { SalesbackExample salesbackExample = new SalesbackExample(); salesbackExample.createCriteria().andSalesbackTypeNotEqualTo("00"); List<Salesback> salesbacksList = new ArrayList<Salesback>(); salesbacksList = salesbackService.selectByExample(salesbackExample); for (Salesback salesback : salesbacksList) { salesback.setSalesbackType(CreateIdUtil.getTranslation(salesback.getSalesbackType())); } return salesbacksList; }