|
@@ -18,6 +18,7 @@ import com.github.jfcloud.gene.cache.UserIdNameCache;
|
|
|
import com.github.jfcloud.gene.common.constant.StrConstant;
|
|
|
import com.github.jfcloud.gene.common.constant.WhetherEnum;
|
|
|
import com.github.jfcloud.gene.common.util.CustomIdGenerator;
|
|
|
+import com.github.jfcloud.gene.common.util.UserUtil;
|
|
|
import com.github.jfcloud.gene.constants.GeneStatusEnum;
|
|
|
import com.github.jfcloud.gene.constants.GeneTargetEnum;
|
|
|
import com.github.jfcloud.gene.file.service.FileInfoService;
|
|
@@ -217,6 +218,7 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
.setFlowStatus(flowInfo.getStatus())
|
|
|
.setAuditResult(vo.getAuditResult())
|
|
|
.setRemarks(vo.getRemarks())
|
|
|
+ .setCreateSign(userIdNameCache.getSignPic(UserUtil.getUserId()))
|
|
|
.insert();
|
|
|
|
|
|
new FlowInfo()
|
|
@@ -255,6 +257,7 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
.setFlowStatus(flowInfo.getStatus())
|
|
|
.setAuditResult(vo.getAuditResult())
|
|
|
.setRemarks(vo.getRemarks())
|
|
|
+ .setCreateSign(userIdNameCache.getSignPic(UserUtil.getUserId()))
|
|
|
.insert();
|
|
|
|
|
|
flowInfo = new FlowInfo();
|
|
@@ -288,6 +291,8 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
|
|
|
JSONObject dataMap = JSON.parseObject(JSON.toJSONString(detail));
|
|
|
wordDataService.fillDocCreator(dataMap);
|
|
|
+ dataMap.put("createDateStr", createDate);
|
|
|
+ dataMap.put("createBySign", userIdNameCache.getSignBase64(Long.valueOf(flowInfo.getCreateBy())));
|
|
|
|
|
|
String modelName = "geneCustom.ftl";
|
|
|
|
|
@@ -308,7 +313,7 @@ public class FlowInfoServiceImpl extends ServiceImpl<FlowInfoMapper, FlowInfo> i
|
|
|
new FlowFileVersion()
|
|
|
.setFlowId(flowInfo.getId())
|
|
|
.setFlowStatus(flowInfo.getStatus())
|
|
|
- .setDataMap(dataMap.toJSONString())
|
|
|
+ .setDataMapWithoutImg(dataMap.toJSONString())
|
|
|
.setFileMd5(DigestUtil.md5Hex(byteArray))
|
|
|
.setFilename(fileVo.getName())
|
|
|
.setFilepath(fileVo.getUrl())
|