浏览代码

Merge branch 'develop' into release

tags/v1.2.0^2
wanghaoran 1年前
父节点
当前提交
17dd78ad4e
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. +1
    -2
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/MissionServiceImpl.java

+ 1
- 2
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/MissionServiceImpl.java 查看文件

@@ -96,8 +96,6 @@ public class MissionServiceImpl extends BaseServiceImpl<ThMissionMapper, ThMissi
ThMission tm=new ThMission(UpdateOrCreateEnum.CREATE.getCode());
tm.setCreateUser(ShiroUtils.getUserId());
tm.setUpdateUser(ShiroUtils.getUserId());
log.info("新增mission,租户ID:"+ShiroUtils.getTenantId());
tm.setTenantId(ShiroUtils.getTenantId());//xz
BeanUtils.copyProperties(addThMissionRequest,tm);

//任务名称不能重复
@@ -114,6 +112,7 @@ public class MissionServiceImpl extends BaseServiceImpl<ThMissionMapper, ThMissi
String code = "XJRW" +CodeUtil.createCodeNo();
tm.setCode(code);
tm.setReportStatus(ReportStatusEnum.GENERATE.getCode());
tm.setTenantId(ShiroUtils.getTenantId());//xz
thMissionMapper.insert(tm);
return tm.getId();
}

正在加载...
取消
保存