|
|
@ -10,6 +10,7 @@ import com.hxhq.business.dto.study.StudyFormPreListDto; |
|
|
import com.hxhq.business.enums.SnTypeEnum; |
|
|
import com.hxhq.business.enums.SnTypeEnum; |
|
|
import com.hxhq.business.enums.study.StudyFormPreBdztEnum; |
|
|
import com.hxhq.business.enums.study.StudyFormPreBdztEnum; |
|
|
import com.hxhq.business.enums.study.StudyFormPreFzrshztEnum; |
|
|
import com.hxhq.business.enums.study.StudyFormPreFzrshztEnum; |
|
|
|
|
|
import com.hxhq.business.enums.study.StudyTypeEnum; |
|
|
import com.hxhq.business.enums.zykgl.JcgjlxEnum; |
|
|
import com.hxhq.business.enums.zykgl.JcgjlxEnum; |
|
|
import com.hxhq.business.enums.zykgl.JcmcysEnum; |
|
|
import com.hxhq.business.enums.zykgl.JcmcysEnum; |
|
|
import com.hxhq.business.form.study.StudyFormPreAuditForm; |
|
|
import com.hxhq.business.form.study.StudyFormPreAuditForm; |
|
|
@ -59,6 +60,8 @@ public class StudyFormPreServiceImpl extends ServiceImpl |
|
|
private IStudyService studyService; |
|
|
private IStudyService studyService; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private ISysDeptService sysDeptService; |
|
|
private ISysDeptService sysDeptService; |
|
|
|
|
|
@Autowired |
|
|
|
|
|
private INoticeService noticeService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 查询试验-预填单列表 |
|
|
* 查询试验-预填单列表 |
|
|
@ -195,7 +198,22 @@ public class StudyFormPreServiceImpl extends ServiceImpl |
|
|
studyFormPreJcgjService.saveJcgj(studyFormPre.getId(), JcgjlxEnum.lc.getValue(), "制作提交预制表单", JcmcysEnum.green.getValue(), null, qmr, studyFormPre.getRemark(), null); |
|
|
studyFormPreJcgjService.saveJcgj(studyFormPre.getId(), JcgjlxEnum.lc.getValue(), "制作提交预制表单", JcmcysEnum.green.getValue(), null, qmr, studyFormPre.getRemark(), null); |
|
|
//签名信息 |
|
|
//签名信息 |
|
|
studyFormPreQmxxService.saveQmxx(studyFormPre.getId(), "制作提交预制表单", qmr, studyFormPre.getRemark()); |
|
|
studyFormPreQmxxService.saveQmxx(studyFormPre.getId(), "制作提交预制表单", qmr, studyFormPre.getRemark()); |
|
|
|
|
|
//发送通知 |
|
|
|
|
|
Study study = studyService.getById(studyFormPre.getStudyId()); |
|
|
|
|
|
String url = getUrlQz(study,"ytbd"); |
|
|
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下有预填表单【"+studyFormPre.getTemplateMc()+"】待审核,请及时处理"; |
|
|
|
|
|
noticeService.save(title,studyFormPre.getShryId(),url); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* 获取通知的跳转url |
|
|
|
|
|
* @param study |
|
|
|
|
|
* @param tab |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
private String getUrlQz(Study study,String tab){ |
|
|
|
|
|
return |
|
|
|
|
|
study.getType().equals(StudyTypeEnum.sy.getValue())?("/study/enter/"+study.getId()+"/"+tab):study.getType().equals(StudyTypeEnum.fsy.getValue())?("/nonTrial/enter/"+study.getId()+"/"+tab):study.getType().equals(StudyTypeEnum.mjy.getValue())?("/drug/enter/"+study.getId()+"/"+tab):""; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|