Commit 18b37054 authored by liqin's avatar liqin 💬

bug fixed

parent 4d03815e
......@@ -66,8 +66,10 @@ public class LearningContentController extends BaseController {
@ApiOperation(value = "添加学习内容", notes = "添加学习内容")
public Map<String, Object> saveLearningContent(@Validated(value = {Add.class}) LearningContent learningContent) {
final TUser tUser = getcurUser();
final String orgId = tUser.getOrgId();
learningContent.setOrganId(orgId);
if (tUser != null) {
final String orgId = tUser.getOrgId();
learningContent.setOrganId(orgId);
}
learningContent.setAuditStatus(AuditStatusEnum.TBC.name());
learningContent.setIsPublished(false);
QueryWrapper<LearningContent> queryWrapper = new QueryWrapper<>();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment