|
@@ -2,14 +2,12 @@ package com.bizmatics.service.impl;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
-import com.bizmatics.common.core.exception.BusinessException;
|
|
|
+import com.bizmatics.common.core.bean.CommonPage;
|
|
|
+import com.bizmatics.common.mvc.base.AbstractCrudService;
|
|
|
import com.bizmatics.model.SysPlatform;
|
|
|
-import com.bizmatics.model.SysTenantConfig;
|
|
|
-import com.bizmatics.model.system.SysUser;
|
|
|
+import com.bizmatics.model.vo.SysPlatformVo;
|
|
|
import com.bizmatics.persistence.mapper.SysPlatformMapper;
|
|
|
import com.bizmatics.service.SysPlatformService;
|
|
|
-import com.bizmatics.common.mvc.base.AbstractCrudService;
|
|
|
-import com.bizmatics.service.util.SecurityUtils;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.List;
|
|
@@ -32,4 +30,19 @@ public class SysPlatformServiceImpl extends AbstractCrudService<SysPlatformMappe
|
|
|
List<SysPlatform> list = this.list(queryWrapper);
|
|
|
return list;
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public CommonPage<SysPlatformVo> getPlatformList(String platformName, String startTime, String endTime, Integer page, Integer size, Integer id) {
|
|
|
+ List<SysPlatformVo> list1 = baseMapper.getPlatformList(platformName, startTime, endTime, null, null, id);
|
|
|
+ int total = 0;
|
|
|
+ if (list1.size() > 0) {
|
|
|
+ total = list1.size();
|
|
|
+ }
|
|
|
+ Integer current = null;
|
|
|
+ if (page != null && size > 0) {
|
|
|
+ current = (page - 1) * size;
|
|
|
+ }
|
|
|
+ List<SysPlatformVo> list = baseMapper.getPlatformList(platformName, startTime, endTime, current, size, id);
|
|
|
+ return new CommonPage<>(list, total, size, page);
|
|
|
+ }
|
|
|
}
|