Преглед на файлове

编写其他人员类型查询手机端接口

Wang-Xiao-Ran преди 1 година
родител
ревизия
1a7e087ff9
променени са 1 файла, в които са добавени 23 реда и са изтрити 0 реда
  1. 23 0
      src/main/java/com/sooka/sponest/mobile/comprehensive/personBasicInfoController/AppPersonBasicInfoController.java

+ 23 - 0
src/main/java/com/sooka/sponest/mobile/comprehensive/personBasicInfoController/AppPersonBasicInfoController.java

@@ -3,10 +3,13 @@ package com.sooka.sponest.mobile.comprehensive.personBasicInfoController;
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONArray;
 import com.alibaba.fastjson.JSONObject;
+import com.ruoyi.common.core.constant.HttpStatus;
 import com.ruoyi.common.core.web.domain.AjaxResult;
 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.ruoyi.common.security.utils.DictUtils;
+import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.domain.OtherPersonInfo;
 import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.domain.PersonBasicInfo;
 import com.sooka.sponest.comprehensive.api.comprehensivePersonBasicInfo.service.RemotePersonBasicInfoService;
 import com.sooka.sponest.data.api.digitalenvironment.domain.EnvironmentBiggas;
@@ -240,4 +243,24 @@ public class AppPersonBasicInfoController {
         return DictUtils.getDictDataListByValue(dictKey, values);
     }
 
+    @GetMapping("/PersonBasicInfo/getOtherList")
+    public AjaxResult getOtherList(PersonBasicInfo personBasicInfo){
+        PageDomain pageDomain = TableSupport.buildPageRequest();
+        Integer pageNum = pageDomain.getPageNum();
+        Integer pageSize = pageDomain.getPageSize();
+        Integer delFlag = personBasicInfo.getDelFlag();
+        Integer personType = personBasicInfo.getPersonType();
+        TableDataInfo list = personBasicInfoService.getOtherList(pageNum, pageSize, delFlag, personType);
+        if(HttpStatus.SUCCESS == list.getCode()){
+            return AjaxResult.success(list.getRows());
+        }else{
+            return AjaxResult.error(list.getCode(),list.getMsg());
+        }
+    }
+
+    @GetMapping("/PersonBasicInfo/getOtherEdit")
+    public AjaxResult getOtherEdit(OtherPersonInfo otherPersonInfo){
+        return personBasicInfoService.getOtherEdit(otherPersonInfo.getBasicId(), otherPersonInfo.getPersonType());
+    }
+
 }