Commit a5ca1acd by Sxy

feat: 商机关闭推送

parent 830d165d
......@@ -16,7 +16,7 @@ class AliHandler {
*/
//新商机处理
async addChance(datajson) {
console.log("put in queue", datajson);
console.log("put in queue [addChance]", datajson);
try {
var cachestr = sha235(JSON.stringify(datajson));
var cacheInfo = await this.cacheManager["AliCache"].getCache(cachestr);
......@@ -71,7 +71,7 @@ class AliHandler {
}
async updateChanceStatus(datajson) {
console.log("put in queue" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
console.log("put in queue [updateChanceStatus]" + JSON.stringify(datajson) + "DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD");
try {
var cachestr = sha235(JSON.stringify(datajson));
var cacheInfo = await this.cacheManager["AliCache"].getCache(cachestr);
......@@ -86,9 +86,22 @@ class AliHandler {
let { actionBody } = datajson;
var rc = system.getObject("util.execClient");
var requrl = this.icUrl + "/bizoptCtl/updateStatusByDemandCode";
var stau = {
"businessMode": actionBody.intentionBizId,
"currentStatus": "beforeConfirmation"
var stau;
switch (actionBody.status) {
case "createSolution":
stau = {
"businessMode": actionBody.intentionBizId,
"currentStatus": "beforeConfirmation"
}
break
case "closeNeed":
stau = {
"businessMode": actionBody.intentionBizId,
"currentStatus": "isClosed"
}
break
default:
return system.getResultError("status 状态值错误");
}
let rtn = await rc.execPost3({ "d": stau }, requrl);//更新商机状态为已完成
var j = JSON.parse(rtn.stdout);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment