|
|
|
@ -10,6 +10,7 @@ import com.hxhq.business.dto.study.StudyFormApplyListDto; |
|
|
|
import com.hxhq.business.enums.NormalEnum; |
|
|
|
import com.hxhq.business.enums.SnTypeEnum; |
|
|
|
import com.hxhq.business.enums.study.StudyFormApplyBdztEnum; |
|
|
|
import com.hxhq.business.enums.study.StudyTypeEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.JcgjlxEnum; |
|
|
|
import com.hxhq.business.enums.zykgl.JcmcysEnum; |
|
|
|
import com.hxhq.business.form.study.*; |
|
|
|
@ -54,6 +55,8 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
private IStudyService studyService; |
|
|
|
@Autowired |
|
|
|
private ISysDeptService sysDeptService; |
|
|
|
@Autowired |
|
|
|
private INoticeService noticeService; |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询试验-申请单列表 |
|
|
|
@ -200,6 +203,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止通过", JcmcysEnum.green.getValue(), null, qmr, form.getRemark(), null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止通过", qmr, form.getRemark()); |
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】废止拒绝"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
} else { |
|
|
|
studyFormApplyOld.setBdzt(StudyFormApplyBdztEnum.tbz.getValue()); |
|
|
|
this.updateById(studyFormApplyOld); |
|
|
|
@ -207,6 +215,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "废止拒绝", JcmcysEnum.red.getValue(), null, qmr, form.getRemark(), null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "废止拒绝", qmr, form.getRemark()); |
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】废止拒绝"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -246,7 +259,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "更换归属人", JcmcysEnum.orange.getValue(), formData, qmr, null, null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "更换归属人", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】已更换您为归属人"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -388,6 +405,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核通过", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(), null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核通过", qmr, studyFormApply.getRemark()); |
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】复核通过"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -419,7 +441,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "复核拒绝", JcmcysEnum.red.getValue(), formData, qmr, null, null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "复核拒绝", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】复核拒绝"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
@ -450,7 +476,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "已审阅", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(), null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "已审阅", qmr, studyFormApply.getRemark()); |
|
|
|
|
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】已审阅"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -480,6 +510,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核通过", JcmcysEnum.green.getValue(), null, qmr, studyFormApply.getRemark(), null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核通过", qmr, studyFormApply.getRemark()); |
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】审核通过"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ -511,6 +546,11 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
studyFormApplyJcgjService.saveJcgj(studyFormApplyOld.getId(), JcgjlxEnum.lc.getValue(), "审核拒绝", JcmcysEnum.red.getValue(), formData, qmr, studyFormApply.getRemark(), null); |
|
|
|
//签名信息 |
|
|
|
studyFormApplyQmxxService.saveQmxx(studyFormApplyOld.getId(), "审核拒绝", qmr, studyFormApply.getRemark()); |
|
|
|
//发送通知 |
|
|
|
Study study = studyService.getById(studyFormApplyOld.getStudyId()); |
|
|
|
String url = getUrlQz(study,"sqbd"); |
|
|
|
String title = StudyTypeEnum.getEnumByValue(study.getType()).getText()+"【"+study.getName()+"】下领取申请单【"+studyFormApplyOld.getBdmc()+"】审核拒绝"; |
|
|
|
noticeService.save(title,studyFormApplyOld.getUserId(),url); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@ -664,4 +704,16 @@ public class StudyFormApplyServiceImpl extends ServiceImpl |
|
|
|
// MB+表单名缩写(底层模板名称)+版本号+试验编号+学科缩写+流水号 |
|
|
|
return "MB" + template.getShowSn() + study.getSn() + dep.getAbbr() + snGenService.getNewSn(SnTypeEnum.ybbd.getValue()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 获取通知的跳转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):""; |
|
|
|
} |
|
|
|
|
|
|
|
} |