|
@@ -232,6 +232,7 @@ public class WxSendMessageServiceImpl implements IWxSendMessageService
|
|
|
if (tucNetValue.compareTo(earlyNetValue) == -1) {
|
|
|
sendQw(tucNetValue,earlyNetValue,1,early.getOrgCode(),early.getOrgName());
|
|
|
sendMail(tucNetValue,earlyNetValue,1,early.getOrgCode(),early.getOrgName());
|
|
|
+ tucEarlyWarningMapper.deleteOrderTucEarlyWarning();
|
|
|
break;
|
|
|
}
|
|
|
BigDecimal tucTarget = new BigDecimal(0);
|
|
@@ -247,9 +248,12 @@ public class WxSendMessageServiceImpl implements IWxSendMessageService
|
|
|
if (tucTarget.compareTo(earlyTarget) == -1) {
|
|
|
sendQw(tucTarget,earlyTarget,2,early.getOrgCode(),early.getOrgName());
|
|
|
sendMail(tucTarget,earlyTarget,2,early.getOrgCode(),early.getOrgName());
|
|
|
+ tucEarlyWarningMapper.deleteOrderTucEarlyWarning();
|
|
|
break;
|
|
|
}
|
|
|
+ early.setUpdateTime(DateUtils.getNowDate());
|
|
|
tucEarlyWarningMapper.updateOrderTucEarlyWarning(early);
|
|
|
+
|
|
|
}
|
|
|
}else{
|
|
|
tucEarlyWarningMapper.batchInsert(tucSales);
|
|
@@ -274,7 +278,7 @@ public class WxSendMessageServiceImpl implements IWxSendMessageService
|
|
|
if(i == 0){
|
|
|
res = dictDatas.get(0).getDictValue();
|
|
|
}else{
|
|
|
- res = res+dictDatas.get(i).getDictValue();
|
|
|
+ res = res+"|"+dictDatas.get(i).getDictValue();
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -284,12 +288,12 @@ public class WxSendMessageServiceImpl implements IWxSendMessageService
|
|
|
String sendQwUser = getConfigValueUserAccount("sendQwEarlyWarning");
|
|
|
if(sendQwUser !=null && !("").equals(sendQwUser) ){
|
|
|
if(type == 1 ){
|
|
|
- String messageDetail="原已复核:"+oldValue+"本次已复核:"+tucValue+"已复核累计减少,请排查是否有误,该组织名称:"+orgName+"组织编码:"+orgCode;
|
|
|
- qyWxSendMessageUtil.sendMsgSelfToCustomer(sendQwUser,messageDetail, "10086");
|
|
|
+ String messageDetail="数据源业绩指标预警:原已复核:"+oldValue+" 本次已复核:"+tucValue+" 已复核累计减少,请排查是否有误,该组织名称:"+orgName+" 组织编码:"+orgCode;
|
|
|
+ qyWxSendMessageUtil.sendMsgSelfToCustomer(sendQwUser,messageDetail, "66");
|
|
|
}
|
|
|
if(type == 2){
|
|
|
- String messageDetail="原预算目标:"+oldValue+"本次预算目标:"+tucValue+"预算目标累计减少,请排查是否有误,该组织名称:"+orgName+"组织编码:"+orgCode;
|
|
|
- qyWxSendMessageUtil.sendMsgSelfToCustomer(sendQwUser,messageDetail, "10086");
|
|
|
+ String messageDetail="数据源业绩指标预警:原预算目标:"+oldValue+" 本次预算目标:"+tucValue+" 预算目标累计减少,请排查是否有误,该组织名称:"+orgName+" 组织编码:"+orgCode;
|
|
|
+ qyWxSendMessageUtil.sendMsgSelfToCustomer(sendQwUser,messageDetail, "66");
|
|
|
}
|
|
|
}
|
|
|
|