|
@@ -824,12 +824,13 @@ public class ApiController {
|
|
|
@PostMapping("/saveTaskContent")
|
|
|
public R saveTaskContent(@RequestBody WmTaskContent wmTaskContent) {
|
|
|
String draftKey = wmTaskContent.getDraftKey();
|
|
|
+ String taskTypeId = wmTaskContent.getTemp30();
|
|
|
R r = wmTaskContentService.saveTaskContent(wmTaskContent);
|
|
|
|
|
|
log.info("结果:{}, 草稿key:{}",r, draftKey);
|
|
|
if (r.getCode() == CommonConstants.SUCCESS && StrUtil.isNotEmpty(draftKey)) {
|
|
|
HnqzUser user = SecurityUtils.getUser();
|
|
|
- String key = String.format(CacheConstants.TASK_CONTENT_DRAFT, draftKey, user.getId());
|
|
|
+ String key = String.format(CacheConstants.TASK_CONTENT_DRAFT, taskTypeId, user.getId());
|
|
|
log.info("删除草稿:{}", key);
|
|
|
redisTemplate.delete(key);
|
|
|
}
|
|
@@ -896,7 +897,7 @@ public class ApiController {
|
|
|
wmTaskContent.setDraftKey(draftKey);
|
|
|
|
|
|
HnqzUser user = SecurityUtils.getUser();
|
|
|
- String key = String.format(CacheConstants.TASK_CONTENT_DRAFT, draftKey, user.getId());
|
|
|
+ String key = String.format(CacheConstants.TASK_CONTENT_DRAFT, wmTaskContent.getTemp30(), user.getId());
|
|
|
|
|
|
redisTemplate.opsForValue().set(key, JSONUtil.toJsonStr(wmTaskContent));
|
|
|
|