|
@@ -7,6 +7,9 @@ package com.boman.web.core.service.accounting;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.boman.common.core.exception.BaseException;
|
|
|
+import com.boman.common.core.utils.sql.SqlUtil;
|
|
|
+import com.boman.common.core.web.page.PageDomain;
|
|
|
+import com.boman.common.core.web.page.TableSupport;
|
|
|
import com.boman.domain.*;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.boman.common.core.utils.DateUtils;
|
|
@@ -22,6 +25,7 @@ import com.boman.web.core.mapper.CzrkMapper;
|
|
|
import com.boman.web.core.utils.*;
|
|
|
import com.boman.web.core.utils.AuthUtils;
|
|
|
import com.boman.web.core.utils.CzrkUtils;
|
|
|
+import com.github.pagehelper.PageHelper;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.ibatis.session.ExecutorType;
|
|
|
import org.apache.ibatis.session.SqlSession;
|
|
@@ -82,12 +86,8 @@ public class AccountingDataServiceImpl implements IAccountingDataService {
|
|
|
|
|
|
//设置查询列表权限
|
|
|
setQueryRole(accountingData, sysUser, Czrk.HJ);
|
|
|
+ startPage();
|
|
|
List<AccountingDataVo> list = accountingDataMapper.selectAccountingDataHjList(accountingData);
|
|
|
- list.forEach(e -> {
|
|
|
- if (StringUtils.isNotBlank(e.getJcsj())) {
|
|
|
- e.setIsNucleicAcid("Y");
|
|
|
- }
|
|
|
- });
|
|
|
CzrkUtils.packAddrNucleicAcid(list);
|
|
|
return list;
|
|
|
}
|
|
@@ -116,11 +116,22 @@ public class AccountingDataServiceImpl implements IAccountingDataService {
|
|
|
}
|
|
|
//设置查询列表权限
|
|
|
setQueryRole(accountingData, sysUser, Czrk.CZ);
|
|
|
+ startPage();
|
|
|
List<AccountingDataVo> list = accountingDataMapper.selectAccountingDataJzdzList(accountingData);
|
|
|
CzrkUtils.packAddrNucleicAcid(list);
|
|
|
return list;
|
|
|
}
|
|
|
|
|
|
+ private void startPage() {
|
|
|
+ PageDomain pageDomain = TableSupport.buildPageRequest();
|
|
|
+ Integer pageNum = pageDomain.getPageNum();
|
|
|
+ Integer pageSize = pageDomain.getPageSize();
|
|
|
+ if (StringUtils.isNotNull(pageNum) && StringUtils.isNotNull(pageSize)) {
|
|
|
+ String orderBy = SqlUtil.escapeOrderBySql(pageDomain.getOrderBy());
|
|
|
+ PageHelper.startPage(pageNum, pageSize, orderBy);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 核酸数据导出
|
|
|
*
|