|
|
@ -4,8 +4,10 @@ import com.yxt.anrui.portal.api.appsubsetversion.AppSubsetVersionVo; |
|
|
|
import com.yxt.anrui.portal.api.banner.BannerVo; |
|
|
|
import com.yxt.anrui.portal.api.formnotice.FormNoticeQuery; |
|
|
|
import com.yxt.anrui.portal.api.formnotice.FormNoticeVo; |
|
|
|
import com.yxt.anrui.portal.api.index.AppIndexAppNumVo; |
|
|
|
import com.yxt.anrui.portal.api.index.AppIndexFeign; |
|
|
|
import com.yxt.anrui.portal.api.index.AppIndexVo; |
|
|
|
import com.yxt.anrui.portal.api.index.AppIndexWorkNumVo; |
|
|
|
import com.yxt.anrui.portal.biz.appsubsetversion.AppSubsetVersionService; |
|
|
|
import com.yxt.anrui.portal.biz.banner.BannerService; |
|
|
|
import com.yxt.anrui.portal.biz.flow.FlowableService; |
|
|
@ -66,9 +68,11 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
Map<String, Object> map = new HashMap<String, Object>(); |
|
|
|
appVo.setUserSid(userSid); |
|
|
|
// 待办数量
|
|
|
|
appVo.setNotWorkNum(flowableService.getTodoNum(userSid).getData()); |
|
|
|
// appVo.setNotWorkNum(flowableService.getTodoNum(userSid).getData());
|
|
|
|
appVo.setNotWorkNum(0); |
|
|
|
// 待阅数量
|
|
|
|
appVo.setNotReadNum(messageListFeign.selectUnReadCount("", userSid).getData()); |
|
|
|
// appVo.setNotReadNum(messageListFeign.selectUnReadCount("", userSid).getData());
|
|
|
|
appVo.setNotReadNum(0); |
|
|
|
|
|
|
|
// 通知公告列表
|
|
|
|
FormNoticeQuery formNoticeQuery = new FormNoticeQuery(); |
|
|
@ -85,7 +89,7 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
String path = fileUploadComponent.getUrlPrefix(); |
|
|
|
List<AppSubsetVersionVo> subsetVersionVoList = appSubsetVersionService.selectVersionList(linkSid, path); |
|
|
|
subsetVersionVoList.stream().forEach(item -> { |
|
|
|
if ("98ff0724-5df4-4fc7-ab6d-3996e7706acd".equals(item.getAppSid())) { |
|
|
|
/*if ("98ff0724-5df4-4fc7-ab6d-3996e7706acd".equals(item.getAppSid())) { |
|
|
|
//供应链
|
|
|
|
ResultBean<AppScmBaseInfoVo> indexCountVo = appScmBaseInfoFeign.getToDoNum(userSid); |
|
|
|
int count = 0; |
|
|
@ -107,10 +111,12 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
count = count + Integer.valueOf(appScmBaseInfoVo.getInventoryCarNum()).intValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
item.setCornerNum(String.valueOf(count)); |
|
|
|
// item.setCornerNum(String.valueOf(count));
|
|
|
|
item.setCornerNum(""); |
|
|
|
} else { |
|
|
|
item.setCornerNum("3"); |
|
|
|
} |
|
|
|
item.setCornerNum(""); |
|
|
|
}*/ |
|
|
|
item.setCornerNum(""); |
|
|
|
|
|
|
|
}); |
|
|
|
map.put("apps", subsetVersionVoList); |
|
|
@ -128,4 +134,52 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
appVo.setMapExtra(map); |
|
|
|
return rb.setData(appVo).success(); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<AppIndexWorkNumVo> selectHomeWorkNum(String userSid) { |
|
|
|
ResultBean<AppIndexWorkNumVo> rb = ResultBean.fireFail(); |
|
|
|
AppIndexWorkNumVo vo = new AppIndexWorkNumVo(); |
|
|
|
// 待办数量
|
|
|
|
vo.setNotWorkNum(flowableService.getTodoNum(userSid).getData()); |
|
|
|
// 待阅数量
|
|
|
|
vo.setNotReadNum(messageListFeign.selectUnReadCount("", userSid).getData()); |
|
|
|
return rb.success().setData(vo); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<List<AppIndexAppNumVo>> selectAppNum(String userSid) { |
|
|
|
ResultBean<List<AppIndexAppNumVo>> rb = ResultBean.fireFail(); |
|
|
|
String linkSid = LINKSID; |
|
|
|
List<AppIndexAppNumVo> appIndexAppNumVos = appSubsetVersionService.selectAppNum(linkSid); |
|
|
|
appIndexAppNumVos.stream().forEach(item -> { |
|
|
|
if ("98ff0724-5df4-4fc7-ab6d-3996e7706acd".equals(item.getAppSid())) { |
|
|
|
//供应链
|
|
|
|
ResultBean<AppScmBaseInfoVo> indexCountVo = appScmBaseInfoFeign.getToDoNum(userSid); |
|
|
|
int count = 0; |
|
|
|
if (indexCountVo.getSuccess()) { |
|
|
|
AppScmBaseInfoVo appScmBaseInfoVo = indexCountVo.getData(); |
|
|
|
if (StringUtils.isNotBlank(appScmBaseInfoVo.getInspectedCarNum())) { |
|
|
|
count = count + Integer.valueOf(appScmBaseInfoVo.getInspectedCarNum()).intValue(); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(appScmBaseInfoVo.getInspectinoCarNum())) { |
|
|
|
count = count + Integer.valueOf(appScmBaseInfoVo.getInspectinoCarNum()).intValue(); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(appScmBaseInfoVo.getMoveCarNum())) { |
|
|
|
count = count + Integer.valueOf(appScmBaseInfoVo.getMoveCarNum()).intValue(); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(appScmBaseInfoVo.getStorageCarNum())) { |
|
|
|
count = count + Integer.valueOf(appScmBaseInfoVo.getStorageCarNum()).intValue(); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(appScmBaseInfoVo.getInventoryCarNum())) { |
|
|
|
count = count + Integer.valueOf(appScmBaseInfoVo.getInventoryCarNum()).intValue(); |
|
|
|
} |
|
|
|
} |
|
|
|
item.setCornerNum(String.valueOf(count)); |
|
|
|
} else { |
|
|
|
item.setCornerNum(""); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
return rb.success().setData(appIndexAppNumVos); |
|
|
|
} |
|
|
|
} |
|
|
|