附件下载监听代码提交

This commit is contained in:
zhaol 2025-07-16 09:25:25 +08:00 committed by zhaolei
parent 6d706dce84
commit 4857ad16a7
5 changed files with 33 additions and 7 deletions

View File

@ -3,15 +3,26 @@
<process id="obj_9af2004d87b3472da210b43dc1ca32ab" name="浏览时长" isClosed="false" processType="None" isExecutable="true">
<documentation/>
<extensionElements>
<aws:extendProcess accessSecurityType="0" archivesId="0" cancelProcessExclusiveActivities="" cancelProcessExclusiveRule="" defaultInstanceTitle="" extendProperty="" IOBD="" IOR="" IOS="" IOC="" description="" iconFontColor="" iconFontCode="" processLevelType="0" shortMessageNotifyTemplate="" mailNotifyTemplate="" timeDuration="0" timeDurationText="" trackDiagramType="2" taskOpenType="" wariningTimeDuration="0" wariningTimeDurationText="" isFormSummary="false" formSummary="" dataTrigger="" isAutoArchives="false" isCancelProcess="false" isCancelTask="false" isDataShare="false" isDraftRemove="false" isMobileStart="false" isQuickStart="false" isSecurityLayer="false" isTrackForm="false" isWorklistPopMini="false" isTransferPriority="false" isMatrixDistributed="false" isResetLostHistory="false" isTpl="false" tplSource="" tplUpdateLog="" tplLockedInfo="" processAccessPerm="" notifyConfig="" initSecurityLayer="-1" versionId="obj_9af2004d87b3472da210b43dc1ca32ab" processGroupId="obj_e29e2471a0c24218877356ea93710662" processGroupName="浏览时长" categoryName="阅读时长" engineType="1" processVer="0" versionStatus="0" processAdministrator="admin" createUser="admin" createTime="2025-07-14 14:54:41" updateUser="" updateTime="2025-07-14 14:54:41" historyMaxVersion="26" releaseUser="" releaseTime="" messageDigest="" isManaged="false" isIgnoreMapRoleSelect="false" isMapRoleSelectAtStart="false"/>
<aws:extendProcess accessSecurityType="0" archivesId="0" cancelProcessExclusiveActivities="" cancelProcessExclusiveRule="" defaultInstanceTitle="" extendProperty="" IOBD="" IOR="" IOS="" IOC="" description="" iconFontColor="" iconFontCode="" processLevelType="0" shortMessageNotifyTemplate="" mailNotifyTemplate="" timeDuration="0" timeDurationText="" trackDiagramType="2" taskOpenType="" wariningTimeDuration="0" wariningTimeDurationText="" isFormSummary="false" formSummary="" dataTrigger="" isAutoArchives="false" isCancelProcess="false" isCancelTask="false" isDataShare="false" isDraftRemove="false" isMobileStart="false" isQuickStart="false" isSecurityLayer="false" isTrackForm="false" isWorklistPopMini="false" isTransferPriority="false" isMatrixDistributed="false" isResetLostHistory="false" isTpl="false" tplSource="" tplUpdateLog="" tplLockedInfo="" processAccessPerm="" notifyConfig="" initSecurityLayer="-1" versionId="obj_9af2004d87b3472da210b43dc1ca32ab" processGroupId="obj_e29e2471a0c24218877356ea93710662" processGroupName="阅读时长" categoryName="阅读时长" engineType="1" processVer="0" versionStatus="0" processAdministrator="admin" createUser="admin" createTime="2025-07-15 17:16:57" updateUser="" updateTime="2025-07-15 17:16:57" historyMaxVersion="26" releaseUser="" releaseTime="" messageDigest="" isManaged="false" isIgnoreMapRoleSelect="false" isMapRoleSelectAtStart="false"/>
</extensionElements>
<userTask id="obj_e49524724d994da6acb09f8406759205" name="默认" implementation="" isForCompensation="false">
<extensionElements>
<aws:extendUserTask opinionOption="0" commentPosition="0" isBatchComplete="false" rendering="" isCCTask="false" ccTaskButtonLabel="传阅" isClaimTask="false" completeButtonLabel="办理" isDelegateTask="false" delegateTaskButtonLabel="转办" dynamicBehaviorType="" isDynamicJump="false" isDynamicTask="false" emailNotifyTemplate="" emailNotifyType="0" isCommentsLib="false" commentsLibFilter="" commentsCycleCoverRule="" commentsStyle="" operatingAuthorization="[{}]" addressConfig="" formToKMSOption="" isHiddenFormToolbar="false" isIgnoreTask="false" no="1" isPrintForm="false" printFormMaxTimes="-1" printConfig="" isSupplyComment="true" isShareOpinion="true" isShortMessageNotify="false" isSupplyUnusualTransfer="false" timeDuration="0" timeDurationText="" isTraceOpinion="true" transferRestriction="" transferRestrictionType="0" dwAppSchemaPolicy="" wariningTimeDuration="0" dynamicJumpNums="" wariningTimeDurationText="" extendProperty="" customUniqueId="" notifyMessageTpl="" notifyConfig="" IOBD="" IOR="" IOS="" IOC="" addUser="false" removeUser="false" incomingGatewayType="Parallel" branchGatewayType="Parallel">
<aws:routeTxt>{"multiSelectDisabledCheckBox":true,"includeSelf":true,"ignoreOptionVal":"auto","isHistoryRoute":true,"routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","multiSelect":true,"ignoreOptions":""}</aws:routeTxt>
<aws:extendUserTask opinionOption="0" commentPosition="0" isBatchComplete="false" rendering="" isCCTask="false" ccTaskButtonLabel="传阅" isClaimTask="false" completeButtonLabel="办理" isDelegateTask="false" delegateTaskButtonLabel="转办" dynamicBehaviorType="" isDynamicJump="false" isDynamicTask="false" emailNotifyTemplate="" emailNotifyType="0" isCommentsLib="false" commentsLibFilter="" commentsCycleCoverRule="" commentsStyle="" operatingAuthorization="[{},{&quot;1dc91fad-170d-4546-90a1-9c7a3a5f292f&quot;:{&quot;isFormDataSnapshot&quot;:false,&quot;isFormDataRemove&quot;:true,&quot;isFormDataModify&quot;:true,&quot;isFormDataSnapshotList&quot;:false,&quot;isFormDataAdd&quot;:true,&quot;isEditSecurity&quot;:false,&quot;isSaveRequired&quot;:true},&quot;mainFormID&quot;:&quot;1dc91fad-170d-4546-90a1-9c7a3a5f292f&quot;}]" addressConfig="eyJmaWx0ZXIiOnsiYWRkcmVzc1NldHRpbmciOnsicmFuZ2UiOiJkZXBhcnRtZW50fHBvc2l0aW9ufHJvbGV8dGVhbSIsImlzRGlzcGxheU1hcCI6ZmFsc2UsImZpbHRlckNsYXNzIjoiIiwibGF5ZXJGcm9tIjoiIiwibGF5ZXJUbyI6IiIsInJvb3REZXRwSWQiOiIiLCJzb3VyY2VEYXRhQ2xhc3MiOiIifSwicmVhZG9ubHkiOmZhbHNlLCJmb3JSYW5nZSI6ImFkcl9jY3xhZHJfZGVsfGFkcl9zaWdufGFkcl90ZWFtIn0sImZvclJhbmdlIjoiIn0=" formToKMSOption="{&quot;cardName&quot;:&quot;&quot;,&quot;cardCreateUser&quot;:&quot;@uid&quot;,&quot;dimensionIdJsonArray&quot;:[],&quot;option&quot;:&quot;none&quot;}" isHiddenFormToolbar="false" isIgnoreTask="false" no="1" isPrintForm="false" printFormMaxTimes="-1" printConfig="{&quot;printCommentControl&quot;:&quot;&quot;,&quot;printTemplateFormDefId&quot;:&quot;&quot;,&quot;optionName&quot;:&quot;&quot;,&quot;printPageSize&quot;:&quot;&quot;}" isSupplyComment="true" isShareOpinion="true" isShortMessageNotify="false" isSupplyUnusualTransfer="false" timeDuration="0" timeDurationText="" isTraceOpinion="true" transferRestriction="" transferRestrictionType="0" dwAppSchemaPolicy="" wariningTimeDuration="0" dynamicJumpNums="" wariningTimeDurationText="" extendProperty="" customUniqueId="" notifyMessageTpl="" notifyConfig="{&quot;taskReceived&quot;:[],&quot;taskCC&quot;:[{&quot;notifyType&quot;:&quot;enterpriseWechat&quot;},{&quot;notifyType&quot;:&quot;dingTalk&quot;}]}" IOBD="" IOR="" IOS="" IOC="" addUser="false" removeUser="false" incomingGatewayType="Parallel" branchGatewayType="Parallel">
<aws:formSet id="obj_377de5357b974e72adcd309be8e04de6" formId="1dc91fad-170d-4546-90a1-9c7a3a5f292f" copyConfig="" orderIndex="0" historyConfig="" shareLinkConfig="">
<aws:boProperty id="obj_05e8ea82c7ab419694c627b0120ec882" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="USERID" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_adb27a7c80694026ad308fd2097ad505" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="USERNAME" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_3ca1e79bd4d34ffcb98c651cec3e262b" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="MODELID" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_f7ca27ad65ca4807be75c4c0fb8daef0" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="MODELNAME" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_07e67e782fa34be98d4a9596c71ec7cb" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="READING_START_TIME" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_fe103d90ef8d4fc38971ae1baef0c731" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="READING_END_TIME" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_4f7736784e4a481baac962e219a73945" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="CUMULATIVE_DURATION_STAY" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_c4bae584d7e34bec8deb319b3c0e8ae8" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="BROWSERID" isDisplay="true" isModify="true" isACSetting="false"/>
<aws:boProperty id="obj_030861b8030c4e959e7862b67289b8c7" boId="22d613d3-82e6-4ec0-9e62-aa46f245edc8" fieldName="ISACTIVE" isDisplay="true" isModify="true" isACSetting="false"/>
</aws:formSet>
<aws:routeTxt>{"multiSelectDisabledCheckBox":true,"includeSelf":true,"addressSetting":{},"customRuleVal":"","ignoreOptionVal":"auto","routeType":"com.actionsoft.bpms.commons.performer.impl.user.DynamicUsers","isHistoryRoute":true,"userOrderPolicy":"","multiSelect":true,"ignoreOptions":""}</aws:routeTxt>
</aws:extendUserTask>
</extensionElements>
<humanPerformer id="obj_95ffd107a83d4163a1d87ac8f0cfc77c" name="">
<humanPerformer id="obj_95ffd107a83d4163a1d87ac8f0cfc77c" name="任意指定">
<resourceAssignmentExpression>
<formalExpression/>
</resourceAssignmentExpression>

View File

@ -1 +1 @@
{"versionId":"obj_9af2004d87b3472da210b43dc1ca32ab","chartId":"obj_9af2004d87b3472da210b43dc1ca32ab","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2025-07-14 14:54:42","definitionId":"obj_9af2004d87b3472da210b43dc1ca32ab"}
{"versionId":"obj_9af2004d87b3472da210b43dc1ca32ab","chartId":"obj_9af2004d87b3472da210b43dc1ca32ab","userIds":["admin"],"messages":[],"userNames":"管理员","remark":"","updateTime":"2025-07-15 17:16:57","definitionId":"obj_9af2004d87b3472da210b43dc1ca32ab"}

View File

@ -100,7 +100,7 @@ public class DownloadRecordService extends ActionWeb
alspparams.put("modelId", params.get("modelId"));
alspparams.put("modelName", params.get("modelName"));
alspparams.put("downloadTime", nowDate);
alspparams.put("fileName", dcContext.getFileName());
alspparams.put("fileName", dcContext.getFileName().substring(0,dcContext.getFileName().lastIndexOf(".")));
alspparams.put("downloadType", dcContext.getFileName().substring(dcContext.getFileName().lastIndexOf('.')+1));
alspparams.put("recordSource", "文件阅览-流程文件下载");
alspparams.put("downloadsource", "");

View File

@ -16,6 +16,7 @@ import com.actionsoft.sdk.local.SDK;
import java.sql.Connection;
import java.text.SimpleDateFormat;
import java.time.Duration;
import java.util.*;
@ -40,7 +41,21 @@ public class InsertReadingLogService extends ActionWeb
try {
ro = ResponseObject.newOkResponse();
Long begintime=Long.valueOf(params.get("intervalStartTime"));
/*params.get("startTime");
// 会话结束计算总停留时间
Duration totalStayTime = Duration.between(
session.getStartTime(),
Instant.parse(request.getCurrentTime())
);
session.setTotalStayTime(totalStayTime.toMillis());*/
Long begintime=Long.valueOf(params.get("startTime"));
Long endtime=Long.valueOf(params.get("currentTime"));
long time =endtime - begintime;