|
@@ -1,8 +1,10 @@
|
|
|
package com.sooka.sponest.mobile.data.housingconstruction;
|
|
|
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
-import com.sooka.sponest.data.api.housingconstruction.domain.HousingconstructionRealnameuser;
|
|
|
-import com.sooka.sponest.data.api.housingconstruction.service.RemoteHousingconstructionRealnameuserService;
|
|
|
+import com.ruoyi.common.core.web.page.PageDomain;
|
|
|
+import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
+import com.ruoyi.common.core.web.page.TableSupport;
|
|
|
+import com.sooka.sponest.data.api.housingconstruction.domain.HousingconstructionSteelcylinderLog;
|
|
|
import com.sooka.sponest.data.api.housingconstruction.service.RemoteHousingconstructionSteelcylinderService;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -23,7 +25,17 @@ public class HousingconstructionSteelcylinderController{
|
|
|
RemoteHousingconstructionSteelcylinderService steelcylinderService;
|
|
|
|
|
|
@GetMapping("/steelcylinder/getSteelcylinderList")
|
|
|
- public AjaxResult getRealNameUserListAllByType(HousingconstructionRealnameuser realnameuser){
|
|
|
- return steelcylinderService.getSteelcylinderList();
|
|
|
+ public AjaxResult getRealNameUserListAllByType(HousingconstructionSteelcylinderLog steelcy){
|
|
|
+ PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
+ Integer pageNum = pageDomain.getPageNum();
|
|
|
+ Integer pageSize = pageDomain.getPageSize();
|
|
|
+ String steelcylinderName = steelcy.getSteelcylinderName();
|
|
|
+ String joinHouseId = steelcy.getJoinHouseId();
|
|
|
+ TableDataInfo resultData = steelcylinderService.getSteelcylinderList(pageNum, pageSize, steelcylinderName, joinHouseId);
|
|
|
+ if(200 == resultData.getCode()){
|
|
|
+ return AjaxResult.success(resultData.getRows());
|
|
|
+ }else{
|
|
|
+ return AjaxResult.error(resultData.getCode(), resultData.getMsg());
|
|
|
+ }
|
|
|
}
|
|
|
}
|