From 983acc56b667c90804dbf5f46dae8f0161876380 Mon Sep 17 00:00:00 2001
From: 曾成 <121184950@qq.com>
Date: 星期六, 28 三月 2020 19:36:36 +0800
Subject: [PATCH] Merge branch 'back' of https://github.com/java110/MicroCommunity into back
---
CommunityService/src/main/java/com/java110/community/smo/impl/InspectionInnerServiceSMOImpl.java | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/CommunityService/src/main/java/com/java110/community/smo/impl/InspectionInnerServiceSMOImpl.java b/CommunityService/src/main/java/com/java110/community/smo/impl/InspectionInnerServiceSMOImpl.java
index e38af83..2500e63 100644
--- a/CommunityService/src/main/java/com/java110/community/smo/impl/InspectionInnerServiceSMOImpl.java
+++ b/CommunityService/src/main/java/com/java110/community/smo/impl/InspectionInnerServiceSMOImpl.java
@@ -54,6 +54,27 @@
public int queryInspectionsCount(@RequestBody InspectionDto inspectionDto) {
return inspectionServiceDaoImpl.queryInspectionsCount(BeanConvertUtil.beanCovertMap(inspectionDto)); }
+ @Override
+ public List<InspectionDto> getInspectionRelationShip(@RequestBody InspectionDto inspectionDto) {
+
+ //鏍¢獙鏄惁浼犱簡 鍒嗛〉淇℃伅
+
+ int page = inspectionDto.getPage();
+
+ if (page != PageDto.DEFAULT_PAGE) {
+ inspectionDto.setPage((page - 1) * inspectionDto.getRow());
+ }
+
+ List<InspectionDto> inspections = BeanConvertUtil.covertBeanList(inspectionServiceDaoImpl.getInspectionRelationShipInfo(BeanConvertUtil.beanCovertMap(inspectionDto)), InspectionDto.class);
+
+ return inspections;
+ }
+
+
+ @Override
+ public int queryInspectionsRelationShipCount(@RequestBody InspectionDto inspectionDto) {
+ return inspectionServiceDaoImpl.queryInspectionsRelationShipCount(BeanConvertUtil.beanCovertMap(inspectionDto)); }
+
public IInspectionServiceDao getInspectionServiceDaoImpl() {
return inspectionServiceDaoImpl;
}
--
Gitblit v1.8.0