| | |
| | | import org.springframework.stereotype.Controller; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | if (count > 0) { |
| | | list = sysSupplierService.getSysSupplierList(name, first, pageSize); |
| | | } |
| | | selectedList = new ArrayList<>(); |
| | | } catch (Exception e) { |
| | | logger.error(e); |
| | | } |
| | |
| | | |
| | | @Override |
| | | public SysSupplier getRowData(String rowKey) { |
| | | Iterator<SysSupplier> iterator = this.iterator(); |
| | | if (iterator != null) { |
| | | SysSupplier ss = null; |
| | | while (iterator.hasNext()) { |
| | | ss = iterator.next(); |
| | | if (rowKey.equals(ss.getId())) { |
| | | return ss; |
| | | } |
| | | } |
| | | } |
| | | return null; |
| | | // Iterator<SysSupplier> iterator = this.iterator(); |
| | | // if (iterator != null) { |
| | | // SysSupplier ss = null; |
| | | // while (iterator.hasNext()) { |
| | | // ss = iterator.next(); |
| | | // if (rowKey.equals(ss.getId())) { |
| | | // return ss; |
| | | // } |
| | | // } |
| | | // } |
| | | Long id=Long.valueOf(rowKey); |
| | | return sysSupplierService.getSysSupplier(id); |
| | | } |
| | | }; |
| | | } |