|
@@ -600,7 +600,7 @@ namespace Util
|
|
if(recursionFlag)
|
|
if(recursionFlag)
|
|
{
|
|
{
|
|
List<QueryCondition> queryCondiDic = condition(sub.id, projectId, Tools.SpitIntArrary(sub.queryTableIdList, ',').ToList(), content);
|
|
List<QueryCondition> queryCondiDic = condition(sub.id, projectId, Tools.SpitIntArrary(sub.queryTableIdList, ',').ToList(), content);
|
|
- setLogStep(sub.id, "查询原始数据", queryCondiDic);
|
|
|
|
|
|
+ setLogStep(sub.id, "查询原始数据", queryCondiDic);
|
|
var loopSet = loopSetService.GetFirst(m => m.listId == sub.id) ?? new PriLoopSet();
|
|
var loopSet = loopSetService.GetFirst(m => m.listId == sub.id) ?? new PriLoopSet();
|
|
var recursionStartTable = recursionStartTableService.GetFirst(m => m.listId == sub.id) ?? new PriRecursionStartTable();
|
|
var recursionStartTable = recursionStartTableService.GetFirst(m => m.listId == sub.id) ?? new PriRecursionStartTable();
|
|
var tableEnName = loopSet.tableEnName; //递归查询表
|
|
var tableEnName = loopSet.tableEnName; //递归查询表
|
|
@@ -1425,22 +1425,32 @@ namespace Util
|
|
listId = sub.id,
|
|
listId = sub.id,
|
|
prizeAmount = prizeAmt,
|
|
prizeAmount = prizeAmt,
|
|
prizeObjId = prizeObjectId,
|
|
prizeObjId = prizeObjectId,
|
|
- requestParamField = requestParamField,
|
|
|
|
|
|
+ requestParamField = content,
|
|
batchNo = batchNo,
|
|
batchNo = batchNo,
|
|
};
|
|
};
|
|
recordService.Add(item);
|
|
recordService.Add(item);
|
|
- setLogFieldValue(sub.id, "prizeOutContent", Newtonsoft.Json.JsonConvert.SerializeObject(item));
|
|
|
|
|
|
+ string prizeOutContent = Newtonsoft.Json.JsonConvert.SerializeObject(item);
|
|
|
|
+ setLogFieldValue(sub.id, "prizeOutContent", prizeOutContent);
|
|
setLogFieldValue(sub.id, "prizeOutUrl", project.noticeUrl);
|
|
setLogFieldValue(sub.id, "prizeOutUrl", project.noticeUrl);
|
|
loopAmount = getPrizeAmount;
|
|
loopAmount = getPrizeAmount;
|
|
- prizeToDatabase(projectId, sub.id, content, condiDic, prizeAmt); //入库
|
|
|
|
|
|
+ if(project.requestMode == "http" && !string.IsNullOrEmpty(project.noticeUrl))
|
|
|
|
+ {
|
|
|
|
+ Function.PostWebRequest(project.noticeUrl, prizeOutContent, "application/json");
|
|
|
|
+ }
|
|
|
|
+ else if(project.requestMode == "mq")
|
|
|
|
+ {}
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ prizeToDatabase(projectId, sub.id, content, condiDic, prizeAmt); //入库
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- if(!sub.recursionFlag)
|
|
|
|
- {
|
|
|
|
|
|
+ // if(!sub.recursionFlag)
|
|
|
|
+ // {
|
|
setLogStatus(sub.id, op ? 1 : 0);
|
|
setLogStatus(sub.id, op ? 1 : 0);
|
|
- }
|
|
|
|
|
|
+ // }
|
|
return prizeAmt;
|
|
return prizeAmt;
|
|
}
|
|
}
|
|
|
|
|