呆滞物料提醒rtx
This commit is contained in:
parent
7bd615cbbd
commit
693a3da6af
|
|
@ -1,5 +1,7 @@
|
|||
package com.nflg.product.material.config;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
|
|
@ -76,5 +78,15 @@ public class MaterialMesConfig {
|
|||
/**
|
||||
* 采购组负责人RTX通知
|
||||
*/
|
||||
private List<Map<String,String>> purchaseNoticeList;
|
||||
private List<NoticeRtx> purchaseNoticeList = Lists.newArrayList();
|
||||
|
||||
@Data
|
||||
public class NoticeRtx{
|
||||
|
||||
@ApiModelProperty(value = "ekgrp")
|
||||
private String ekgrp;
|
||||
|
||||
@ApiModelProperty(value = "rtx账号")
|
||||
private String rtx;
|
||||
}
|
||||
}
|
||||
|
|
@ -74,7 +74,9 @@ public class MaterialDeadStockService extends ServiceImpl<MaterialDeadStockMapp
|
|||
HttpUtils httpUtils = new HttpUtils();
|
||||
String title = "呆滞物料提醒";
|
||||
String msg = "有新增呆滞物料,请及时查看!";
|
||||
httpUtils.rtxMessage(profiles,title,msg,purchaseSet.stream().collect(Collectors.joining(",")));
|
||||
String receiver = materialMesConfig.getPurchaseNoticeList().stream().filter(pur -> purchaseSet.contains(pur.getEkgrp()))
|
||||
.map(MaterialMesConfig.NoticeRtx::getRtx).collect(Collectors.joining(","));
|
||||
httpUtils.rtxMessage(profiles,title,msg,receiver);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue