|  |  |  | 
|---|
|  |  |  | EntityWrapper<BasCrnError> wrapper = new EntityWrapper<>(); | 
|---|
|  |  |  | convert(param, wrapper); | 
|---|
|  |  |  | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} | 
|---|
|  |  |  | return R.ok(basCrnErrorService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | //        return R.ok(basCrnErrorService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<BasCrnError> basCrnErrorList = basCrnErrorService.selectList(wrapper); | 
|---|
|  |  |  | Page<BasCrnError> page = new Page<BasCrnError>(0, 100).setRecords(basCrnErrorList); | 
|---|
|  |  |  | page.setTotal(basCrnErrorList.size()); | 
|---|
|  |  |  | return R.ok(page); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ | 
|---|
|  |  |  | 
|---|
|  |  |  | import com.baomidou.mybatisplus.plugins.Page; | 
|---|
|  |  |  | import com.core.common.DateUtils; | 
|---|
|  |  |  | import com.zy.asrs.entity.BasPlcerror; | 
|---|
|  |  |  | import com.zy.asrs.entity.BasWrkIotype; | 
|---|
|  |  |  | import com.zy.asrs.service.BasPlcerrorService; | 
|---|
|  |  |  | import com.core.annotations.ManagerAuth; | 
|---|
|  |  |  | import com.core.common.BaseRes; | 
|---|
|  |  |  | 
|---|
|  |  |  | excludeTrash(param); | 
|---|
|  |  |  | convert(param, wrapper); | 
|---|
|  |  |  | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} | 
|---|
|  |  |  | return R.ok(basPlcerrorService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | //        return R.ok(basPlcerrorService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | List<BasPlcerror> basPlcerrorList = basPlcerrorService.selectList(wrapper); | 
|---|
|  |  |  | Page<BasPlcerror> page = new Page<BasPlcerror>(0, 100).setRecords(basPlcerrorList); | 
|---|
|  |  |  | page.setTotal(basPlcerrorList.size()); | 
|---|
|  |  |  | return R.ok(page); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ | 
|---|
|  |  |  | 
|---|
|  |  |  | EntityWrapper<BasWrkIotype> wrapper = new EntityWrapper<>(); | 
|---|
|  |  |  | convert(param, wrapper); | 
|---|
|  |  |  | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} | 
|---|
|  |  |  | return R.ok(basWrkIotypeService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | //        return R.ok(basWrkIotypeService.selectPage(new Page<>(curr, limit), wrapper)); | 
|---|
|  |  |  | List<BasWrkIotype> basWrkIotypeList = basWrkIotypeService.selectList(wrapper); | 
|---|
|  |  |  | Page<BasWrkIotype> page = new Page<BasWrkIotype>(0, 10).setRecords(basWrkIotypeList); | 
|---|
|  |  |  | page.setTotal(basWrkIotypeList.size()); | 
|---|
|  |  |  | return R.ok(page); | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | private <T> void convert(Map<String, Object> map, EntityWrapper<T> wrapper){ | 
|---|