|
|
@ -11,8 +11,11 @@ import com.yxt.anrui.portal.biz.banner.BannerService; |
|
|
|
import com.yxt.anrui.portal.biz.flow.FlowableService; |
|
|
|
import com.yxt.anrui.portal.biz.formnotice.FormNoticeService; |
|
|
|
import com.yxt.anrui.portal.biz.sysuser.SysUserService; |
|
|
|
import com.yxt.anrui.terminal.api.supplychain.baseInfo.AppScmBaseInfoFeign; |
|
|
|
import com.yxt.anrui.terminal.api.supplychain.baseInfo.AppScmBaseInfoVo; |
|
|
|
import com.yxt.common.base.config.component.FileUploadComponent; |
|
|
|
import com.yxt.common.base.utils.DateUtils; |
|
|
|
import com.yxt.common.base.utils.StringUtils; |
|
|
|
import com.yxt.common.core.query.PagerQuery; |
|
|
|
import com.yxt.common.core.result.ResultBean; |
|
|
|
import com.yxt.messagecenter.api.messagelist.MessageListFeign; |
|
|
@ -53,6 +56,9 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
|
|
|
|
private String LINKSID = "147694bb-c765-4426-8f67-d19a66585f31"; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private AppScmBaseInfoFeign appScmBaseInfoFeign; |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultBean<AppIndexVo> index(String userSid) { |
|
|
|
ResultBean<AppIndexVo> rb = ResultBean.fireFail(); |
|
|
@ -69,12 +75,6 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
PagerQuery<FormNoticeQuery> formNoticeQueryPage = new PagerQuery<>(); |
|
|
|
formNoticeQueryPage.setParams(formNoticeQuery); |
|
|
|
formNoticeQueryPage.getParams().setClosingDate(DateUtils.dateConvertStr(new Date())); |
|
|
|
// SysUserVo sysUserVo = sysUserService.fetchBySidVo(query.getUserSid());
|
|
|
|
// if (null != sysUserVo) {
|
|
|
|
// formNoticeQueryPage.getParams().setCreateOrgSid(sysUserVo.getOrganizationSid());
|
|
|
|
// }else {
|
|
|
|
// formNoticeQueryPage.getParams().setCreateOrgSid("-1");
|
|
|
|
// }
|
|
|
|
//取前6条
|
|
|
|
formNoticeQueryPage.setSize(6); |
|
|
|
List<FormNoticeVo> formNoticeVoList = formNoticeService.pageList(formNoticeQueryPage).getRecords(); |
|
|
@ -85,7 +85,33 @@ public class AppIndexRest implements AppIndexFeign { |
|
|
|
String path = fileUploadComponent.getUrlPrefix(); |
|
|
|
List<AppSubsetVersionVo> subsetVersionVoList = appSubsetVersionService.selectVersionList(linkSid, path); |
|
|
|
subsetVersionVoList.stream().forEach(item -> { |
|
|
|
item.setCornerNum("3"); |
|
|
|
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("3"); |
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
map.put("apps", subsetVersionVoList); |
|
|
|
|
|
|
|