Browse Source

Merge branch 'develop' into release

tags/v1.2.0^2
wanghaoran 1 year ago
parent
commit
17dd78ad4e
1 changed files with 1 additions and 2 deletions
  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 View File

ThMission tm=new ThMission(UpdateOrCreateEnum.CREATE.getCode()); ThMission tm=new ThMission(UpdateOrCreateEnum.CREATE.getCode());
tm.setCreateUser(ShiroUtils.getUserId()); tm.setCreateUser(ShiroUtils.getUserId());
tm.setUpdateUser(ShiroUtils.getUserId()); tm.setUpdateUser(ShiroUtils.getUserId());
log.info("新增mission,租户ID:"+ShiroUtils.getTenantId());
tm.setTenantId(ShiroUtils.getTenantId());//xz
BeanUtils.copyProperties(addThMissionRequest,tm); BeanUtils.copyProperties(addThMissionRequest,tm);


//任务名称不能重复 //任务名称不能重复
String code = "XJRW" +CodeUtil.createCodeNo(); String code = "XJRW" +CodeUtil.createCodeNo();
tm.setCode(code); tm.setCode(code);
tm.setReportStatus(ReportStatusEnum.GENERATE.getCode()); tm.setReportStatus(ReportStatusEnum.GENERATE.getCode());
tm.setTenantId(ShiroUtils.getTenantId());//xz
thMissionMapper.insert(tm); thMissionMapper.insert(tm);
return tm.getId(); return tm.getId();
} }

Loading…
Cancel
Save