全部车型列表
This commit is contained in:
+12
@@ -57,6 +57,18 @@ public class OtaManageApplyEOController extends JeroController<OtaManageApplyEO,
|
||||
Page pages = PageUtil.getPages(pageNo, pageSize, list);
|
||||
return Result.OK(pages);
|
||||
}
|
||||
|
||||
@AutoLog(value = "全车型列表-分页列表查询")
|
||||
@ApiOperation(value="全车型列表-分页列表查询", notes="全车型列表-分页列表查询")
|
||||
@GetMapping(value = "/getAllCarPage")
|
||||
public Result<?> getAllCarPage(OtaManageApplyEO otaManageApplyEO,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize) {
|
||||
|
||||
List<OtaManageApplyEO> list = otaManageApplyEOService.getAllCarPage(otaManageApplyEO);
|
||||
Page pages = PageUtil.getPages(pageNo, pageSize, list);
|
||||
return Result.OK(pages);
|
||||
}
|
||||
/**
|
||||
* 分车型列表-分页列表查询
|
||||
*
|
||||
|
||||
+8
-1
@@ -66,12 +66,19 @@ public interface IOtaManageApplyEOService extends IService<OtaManageApplyEO> {
|
||||
List<OtaManageApplyEO> queryList();
|
||||
|
||||
/**
|
||||
* OTA管理列表和全车型列表-分页列表查询
|
||||
* OTA管理列表
|
||||
* @param otaManageApplyEO
|
||||
* @return
|
||||
*/
|
||||
List<OtaManageApplyEO> getOtaPage(OtaManageApplyEO otaManageApplyEO);
|
||||
|
||||
/**
|
||||
* 全车型列表-分页列表查询
|
||||
* @param otaManageApplyEO
|
||||
* @return
|
||||
*/
|
||||
List<OtaManageApplyEO> getAllCarPage(OtaManageApplyEO otaManageApplyEO);
|
||||
|
||||
/**
|
||||
* 分车型列表-分页列表查询
|
||||
* @param otaManageApplyEO
|
||||
|
||||
+18
@@ -260,6 +260,24 @@ public class OtaManageApplyEOServiceImpl extends ServiceImpl<OtaManageApplyEOMap
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* OTA管理列表和全车型列表-分页列表查询
|
||||
*
|
||||
* @param otaManageApplyEO
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
public List<OtaManageApplyEO> getAllCarPage(OtaManageApplyEO otaManageApplyEO) {
|
||||
List<OtaManageApplyEO> otaManageApplyEOList = this.getBaseMapper().getOtaList(otaManageApplyEO);
|
||||
if (!otaManageApplyEOList.isEmpty()) {
|
||||
for (OtaManageApplyEO manageApplyEO : otaManageApplyEOList) {
|
||||
manageApplyEO.setVdr(manageApplyEO.getId());
|
||||
}
|
||||
//表头排序
|
||||
heartSort(otaManageApplyEO, otaManageApplyEOList);
|
||||
}
|
||||
return otaManageApplyEOList;
|
||||
}
|
||||
|
||||
private void heartSort(OtaManageApplyEO otaManageApplyEO, List<OtaManageApplyEO> otaManageApplyEOList) {
|
||||
Collator comparator = Collator.getInstance(Locale.CHINESE);
|
||||
|
||||
Reference in New Issue
Block a user