|
@@ -3,6 +3,7 @@ package com.sooka.sponest.data.emergency.appmin.index.service.impl;
|
|
|
import com.ruoyi.common.core.web.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.web.page.TableDataInfo;
|
|
|
import com.ruoyi.common.datascope.annotation.DataScope;
|
|
|
+import com.ruoyi.common.datascope.base.service.BaseService;
|
|
|
import com.sooka.sponest.data.emergency.appmin.base.AppBaseService;
|
|
|
import com.sooka.sponest.data.emergency.appmin.index.domain.AppIndexVO;
|
|
|
import com.sooka.sponest.data.emergency.appmin.index.service.AppIndexService;
|
|
@@ -20,7 +21,7 @@ import java.util.List;
|
|
|
import java.util.Map;
|
|
|
|
|
|
@Service
|
|
|
-public class AppIndexServiceImpl extends AppBaseService implements AppIndexService {
|
|
|
+public class AppIndexServiceImpl extends BaseService implements AppIndexService {
|
|
|
|
|
|
@Resource
|
|
|
AppXunjianimgMapper appXunjianimgMapper;
|
|
@@ -36,11 +37,11 @@ public class AppIndexServiceImpl extends AppBaseService implements AppIndexServi
|
|
|
@Override
|
|
|
@DataScope(deptAlias = "e")
|
|
|
public AjaxResult getIndexPageData(AppIndexVO appvo) {
|
|
|
- AjaxResult ajaxResult = new AjaxResult();
|
|
|
try {
|
|
|
Map map = new HashMap<>();
|
|
|
AppXunjianimgVO n = new AppXunjianimgVO();
|
|
|
n.setParams(appvo.getParams());
|
|
|
+ setSookaDataBase(appvo);
|
|
|
List<AppXunjianimgYinhuanBO> ls = appXunjianimgMapper.getXunjianimgListCount(n);
|
|
|
String countStr = "";
|
|
|
for (int i = 6; i > (ls.get(0).getXunjianListCount() + "").length(); i--) {
|
|
@@ -50,7 +51,7 @@ public class AppIndexServiceImpl extends AppBaseService implements AppIndexServi
|
|
|
countStr = countStr.substring(0, 3) + "," + countStr.substring(3);
|
|
|
TableDataInfo noticlist = remoteSystemBaseService.noticlist(1, 1);
|
|
|
|
|
|
- return AjaxResult.success(!noticlist.getRows().isEmpty() ? noticlist.getRows().get(0) : null);
|
|
|
+ return AjaxResult.success(null != noticlist.getRows() ? noticlist.getRows().get(0) : null);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
return AjaxResult.error("错误");
|