Browse Source

Merge remote-tracking branch 'origin/master'

zhanglei
yxt_djz 3 years ago
parent
commit
a950fa6293
  1. 4
      anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flow/FlowableRest.java
  2. 5
      anrui-portal/anrui-portal-biz/pom.xml
  3. 2
      anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/PortalApplication.java
  4. 38
      anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/index/AppIndexRest.java
  5. 11
      anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/supplychain/baseInfo/AppScmBaseInfoFeign.java
  6. 2
      anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/TerminalApplication.java

4
anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flow/FlowableRest.java

@ -271,9 +271,9 @@ public class FlowableRest implements FlowableFeign {
return rb.setMsg("任务不存在"); return rb.setMsg("任务不存在");
} }
String assignee = task.getAssignee(); String assignee = task.getAssignee();
/* if(StringUtils.isNotBlank(assignee)&& assignee.indexOf(userSid)<0){ if(StringUtils.isNotBlank(assignee)&& assignee.indexOf(userSid)<0){
return rb.setMsg("当前用户不是环节的待办人,不能进行办理操作!"); return rb.setMsg("当前用户不是环节的待办人,不能进行办理操作!");
}*/ }
String nodeState = ""; String nodeState = "";
String taskDefKey = ""; String taskDefKey = "";
vo.setSid(businessSid); vo.setSid(businessSid);

5
anrui-portal/anrui-portal-biz/pom.xml

@ -15,6 +15,11 @@
<version>0.0.1</version> <version>0.0.1</version>
<dependencies> <dependencies>
<dependency>
<artifactId>anrui-terminal-api</artifactId>
<groupId>com.yxt.anrui</groupId>
<version>0.0.1</version>
</dependency>
<dependency> <dependency>
<groupId>com.yxt</groupId> <groupId>com.yxt</groupId>
<artifactId>yxt-common-base</artifactId> <artifactId>yxt-common-base</artifactId>

2
anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/PortalApplication.java

@ -14,7 +14,7 @@ import org.springframework.cloud.openfeign.EnableFeignClients;
"com.yxt.anrui.portal" "com.yxt.anrui.portal"
}) })
@EnableDiscoveryClient @EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.yxt.anrui.crm","com.yxt.anrui.flowable","com.yxt.messagecenter"}) @EnableFeignClients(basePackages = {"com.yxt.anrui.crm","com.yxt.anrui.flowable","com.yxt.messagecenter","com.yxt.anrui.terminal"})
public class PortalApplication { public class PortalApplication {
public static void main(String[] args) { public static void main(String[] args) {

38
anrui-portal/anrui-portal-biz/src/main/java/com/yxt/anrui/portal/biz/index/AppIndexRest.java

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

11
anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/supplychain/baseInfo/AppScmBaseInfoFeign.java

@ -25,14 +25,13 @@
*********************************************************/ *********************************************************/
package com.yxt.anrui.terminal.api.supplychain.baseInfo; package com.yxt.anrui.terminal.api.supplychain.baseInfo;
import com.yxt.anrui.terminal.api.supplychain.carInspected.AppScmVehinspectItemFeignFallback;
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemDto;
import com.yxt.anrui.terminal.api.supplychain.carInspected.ItemInfoVo;
import com.yxt.common.core.result.ResultBean; import com.yxt.common.core.result.ResultBean;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation; import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient; import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.ResponseBody;
/** /**
* Project: anrui-scm(供应链) <br/> * Project: anrui-scm(供应链) <br/>
@ -49,10 +48,10 @@ import org.springframework.web.bind.annotation.*;
*/ */
@Api(tags = "供应链待阅数量") @Api(tags = "供应链待阅数量")
@FeignClient( @FeignClient(
contextId = "anrui-terminal-AppScmVehinspectItem", contextId = "anrui-terminal-AppScmBaseInfo",
name = "anrui-terminal", name = "anrui-terminal",
path = "supplychain/v1/baseInfo", path = "supplychain/v1/baseInfo",
fallback = AppScmVehinspectItemFeignFallback.class) fallback = AppScmBaseInfoFeignFallback.class)
public interface AppScmBaseInfoFeign { public interface AppScmBaseInfoFeign {

2
anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/TerminalApplication.java

@ -4,11 +4,13 @@ package com.yxt.anrui.terminal;
import org.springframework.boot.SpringApplication; import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients; import org.springframework.cloud.openfeign.EnableFeignClients;
/** /**
* @author dimengzhe * @author dimengzhe
*/ */
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = { @SpringBootApplication(scanBasePackages = {
"com.yxt.anrui.terminal", "com.yxt.anrui.terminal",
"com.yxt.common.base.config" "com.yxt.common.base.config"

Loading…
Cancel
Save