|
|
|
@ -6,7 +6,9 @@ import com.alibaba.fastjson.JSONObject; |
|
|
|
|
import com.dxhy.common.constant.DbConstant; |
|
|
|
|
import com.dxhy.common.datasource.config.DynamicContextHolder; |
|
|
|
|
import com.dxhy.common.util.UUIDUtils; |
|
|
|
|
import com.dxhy.common.utils.Base64Encoding; |
|
|
|
|
import com.dxhy.core.dao.mailGather.MailGatherLogDao; |
|
|
|
|
import com.dxhy.core.model.mailGather.EmailMaintainVo; |
|
|
|
|
import com.dxhy.core.model.mailGather.MailGatherLogVo; |
|
|
|
|
import com.dxhy.core.service.mailGather.MailGatherLogService; |
|
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
@ -53,6 +55,12 @@ public class MailGatherLogServiceImpl implements MailGatherLogService { |
|
|
|
|
int size = (int)pramsMap.get("size"); |
|
|
|
|
PageHelper.startPage(curr, size); |
|
|
|
|
List<MailGatherLogVo> emailMaintainVos = mailGatherLogDao.queryAllByLimit(pramsMap); |
|
|
|
|
if(emailMaintainVos !=null && emailMaintainVos.size() > 0) { |
|
|
|
|
for (int i = 0; i < emailMaintainVos.size(); i++) { |
|
|
|
|
MailGatherLogVo mailGatherLogVo = emailMaintainVos.get(i); |
|
|
|
|
mailGatherLogVo.setXh(i + 1 + ""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
PageInfo<MailGatherLogVo> pageInfo = new PageInfo<>(emailMaintainVos); |
|
|
|
|
// 设置记录总数
|
|
|
|
|
json.put("total", pageInfo.getTotal()); |
|
|
|
|