|
|
@@ -78,7 +78,6 @@ public class ZtPolicyRunServiceImpl implements IZtPolicyRunService {
|
|
|
ztPolicyRunInfo.setPolicyConfigId(policyId);
|
|
|
ztPolicyRunInfo.setScheduledTime(new Date());
|
|
|
ztPolicyRunInfo.setStartTime(new Date());
|
|
|
- ztPolicyRunInfo.setConfigSnapshotJson(JSONObject.toJSONString(policy));
|
|
|
ztPolicyConfigMapper.insertPolicyRunRecord(ztPolicyRunInfo);
|
|
|
|
|
|
List<ZtPolicyCondition> conditions = policy.getConditions();
|
|
|
@@ -310,7 +309,8 @@ public class ZtPolicyRunServiceImpl implements IZtPolicyRunService {
|
|
|
ztPolicyConfigMapper.updatePolicyRunRecord(ztPolicyRunInfo);
|
|
|
return;
|
|
|
}else {
|
|
|
- ztPolicyRunInfo.setTriggered(0);
|
|
|
+ ztPolicyRunInfo.setTriggered(1);
|
|
|
+ ztPolicyRunInfo.setTriggerNum(executeTargetList.size());
|
|
|
ztPolicyConfigMapper.updatePolicyRunRecord(ztPolicyRunInfo);
|
|
|
}
|
|
|
|