|
|
|
@ -74,11 +74,16 @@ public class StudyFormPreServiceImpl extends ServiceImpl |
|
|
|
if(studyFormPreOld==null){ |
|
|
|
throw new SecurityException("信息不存在或已删除"); |
|
|
|
} |
|
|
|
if(SecurityUtils.getUserId().equals(studyFormPreOld.getUserId())){ |
|
|
|
if(!SecurityUtils.getUserId().equals(studyFormPreOld.getUserId())){ |
|
|
|
throw new SecurityException("只能操作自己的表单"); |
|
|
|
} |
|
|
|
this.updateById(studyFormPre); |
|
|
|
studyFormPreOld.setBdmc(studyFormPre.getBdmc()); |
|
|
|
studyFormPreOld.setTemplateMc(studyFormPre.getTemplateMc()); |
|
|
|
studyFormPreOld.setTemplateId(studyFormPre.getTemplateId()); |
|
|
|
studyFormPreOld.setBdnr(studyFormPre.getBdnr()); |
|
|
|
this.updateById(studyFormPreOld); |
|
|
|
}else{ |
|
|
|
studyFormPre.setBdbh("todo"); |
|
|
|
studyFormPre.setUserId(SecurityUtils.getUserId()); |
|
|
|
studyFormPre.setUserMc(SecurityUtils.getLoginUser().getSysUser().getNickName()); |
|
|
|
studyFormPre.setBdzt(StudyFormPreBdztEnum.tbz.getValue()); |
|
|
|
@ -98,7 +103,7 @@ public class StudyFormPreServiceImpl extends ServiceImpl |
|
|
|
if(studyFormPreOld==null){ |
|
|
|
throw new SecurityException("信息不存在或已删除"); |
|
|
|
} |
|
|
|
if(SecurityUtils.getUserId().equals(studyFormPreOld.getUserId())){ |
|
|
|
if(!SecurityUtils.getUserId().equals(studyFormPreOld.getUserId())){ |
|
|
|
throw new SecurityException("只能操作自己的表单"); |
|
|
|
} |
|
|
|
studyFormPre.setBdzt(StudyFormPreBdztEnum.ytj.getValue()); |
|
|
|
|