|
@@ -1,6 +1,9 @@
|
|
|
package com.hssx.bms.service.impl;
|
|
|
|
|
|
import ch.qos.logback.core.util.FileUtil;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
+import com.github.pagehelper.PageInfo;
|
|
|
import com.hssx.bms.entity.InstitutionalInformation;
|
|
|
import com.hssx.bms.entity.SystemUser;
|
|
|
import com.hssx.bms.entity.vo.InstitutionalInformationVO;
|
|
@@ -10,14 +13,17 @@ import com.hssx.bms.service.InstitutionalInformationService;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import com.hssx.bms.until.HttpRespMsg;
|
|
|
import com.hssx.bms.until.MD5Util;
|
|
|
+import com.hssx.bms.until.PageUtil;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import javax.swing.*;
|
|
|
import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
+import java.util.List;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
/**
|
|
@@ -87,4 +93,17 @@ public class InstitutionalInformationServiceImpl extends ServiceImpl<Institution
|
|
|
return msg;
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public HttpRespMsg getInstitutionList(PageUtil page) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ if(null == page.getPageNum() && null == page.getPageSize()){
|
|
|
+ page = new PageUtil();
|
|
|
+ }
|
|
|
+ PageHelper.startPage(page.getPageNum(),page.getPageSize());
|
|
|
+ List<InstitutionalInformation> institutionalInformations = institutionalMapper.selectList(new QueryWrapper<InstitutionalInformation>().select("id", "name", "phone", "address"));
|
|
|
+ PageInfo<InstitutionalInformation> pageInfo = new PageInfo<>(institutionalInformations);
|
|
|
+ msg.data = pageInfo;
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
+
|
|
|
}
|