|
|
@ -1,7 +1,9 @@ |
|
|
package com.hxhq.business.service.impl; |
|
|
package com.hxhq.business.service.impl; |
|
|
|
|
|
|
|
|
import java.util.HashMap; |
|
|
import java.util.HashMap; |
|
|
|
|
|
import java.util.LinkedHashMap; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
import java.util.stream.Collectors; |
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
import com.alibaba.fastjson2.JSONObject; |
|
|
@ -15,10 +17,13 @@ import com.hxhq.business.dto.select.DeptUserTreeDto; |
|
|
import com.hxhq.business.enums.NormalEnum; |
|
|
import com.hxhq.business.enums.NormalEnum; |
|
|
import com.hxhq.business.enums.study.StudyMethodStatusEnum; |
|
|
import com.hxhq.business.enums.study.StudyMethodStatusEnum; |
|
|
import com.hxhq.business.enums.study.StudyTypeEnum; |
|
|
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.StudyMethodForm; |
|
|
import com.hxhq.business.form.study.StudyMethodForm; |
|
|
import com.hxhq.business.form.study.StudyMethodReadForm; |
|
|
import com.hxhq.business.form.study.StudyMethodReadForm; |
|
|
import com.hxhq.business.form.study.StudyMethodSearchForm; |
|
|
import com.hxhq.business.form.study.StudyMethodSearchForm; |
|
|
import com.hxhq.business.service.*; |
|
|
import com.hxhq.business.service.*; |
|
|
|
|
|
import com.hxhq.business.utils.JctUtil; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
import com.hxhq.common.core.web.domain.AjaxResult; |
|
|
import com.hxhq.common.core.web.domain.AjaxResult; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
@ -54,6 +59,9 @@ public class StudyMethodServiceImpl extends ServiceImpl |
|
|
@Autowired |
|
|
@Autowired |
|
|
private ISystemLogService systemLogService; |
|
|
private ISystemLogService systemLogService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private IStudyMethodJcgjService studyMethodJcgjService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 查询试验-试验方法列表 |
|
|
* 查询试验-试验方法列表 |
|
|
* |
|
|
* |
|
|
@ -137,8 +145,14 @@ public class StudyMethodServiceImpl extends ServiceImpl |
|
|
//发送消息通知 |
|
|
//发送消息通知 |
|
|
noticeService.saveStudyMethod(studyMethod.getStudyId(),studyMethod.getStudySubjectId(),studyMethod.getUserId()); |
|
|
noticeService.saveStudyMethod(studyMethod.getStudyId(),studyMethod.getStudySubjectId(),studyMethod.getUserId()); |
|
|
|
|
|
|
|
|
systemLogService.saveInfo(studyMethod.getFfmc(),null,"上传方法","Upload Method",null,null, |
|
|
|
|
|
SecurityUtils.getUserId(),SecurityUtils.getNickName(),SecurityUtils.getUsername(),form.getRemark()); |
|
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", form.getRemark()); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> formDataEn = new LinkedHashMap<>(); |
|
|
|
|
|
formDataEn.put("Comment", form.getRemark()); |
|
|
|
|
|
studyMethodJcgjService.saveJcgj(studyMethod, JcgjlxEnum.lc.getValue(), "上传方法", "Upload Method", JcmcysEnum.blue.getValue(), |
|
|
|
|
|
JctUtil.formatStr(formData), JctUtil.formatStr(formDataEn), qmr); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -170,8 +184,14 @@ public class StudyMethodServiceImpl extends ServiceImpl |
|
|
studyMethodRead.setStudyMethodId(studyMethod.getId()); |
|
|
studyMethodRead.setStudyMethodId(studyMethod.getId()); |
|
|
studyMethodReadService.save(studyMethodRead); |
|
|
studyMethodReadService.save(studyMethodRead); |
|
|
|
|
|
|
|
|
systemLogService.saveInfo(studyMethod.getFfmc(),null,"阅读方法","Read Method",null,null, |
|
|
|
|
|
SecurityUtils.getUserId(),SecurityUtils.getNickName(),SecurityUtils.getUsername(),form.getRemark()); |
|
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", form.getRemark()); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> formDataEn = new LinkedHashMap<>(); |
|
|
|
|
|
formDataEn.put("Comment", form.getRemark()); |
|
|
|
|
|
studyMethodJcgjService.saveJcgj(studyMethod, JcgjlxEnum.lc.getValue(), "阅读方法", "Read Method", JcmcysEnum.blue.getValue(), |
|
|
|
|
|
JctUtil.formatStr(formData), JctUtil.formatStr(formDataEn), qmr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
@ -224,6 +244,14 @@ public class StudyMethodServiceImpl extends ServiceImpl |
|
|
studyMethod.setStatus(NormalEnum.no.getValue()); |
|
|
studyMethod.setStatus(NormalEnum.no.getValue()); |
|
|
updateById(studyMethod); |
|
|
updateById(studyMethod); |
|
|
|
|
|
|
|
|
|
|
|
//稽查轨迹 |
|
|
|
|
|
Map<String, String> formData = new LinkedHashMap<>(); |
|
|
|
|
|
formData.put("备注", form.getRemark()); |
|
|
|
|
|
|
|
|
|
|
|
Map<String, String> formDataEn = new LinkedHashMap<>(); |
|
|
|
|
|
formDataEn.put("Comment", form.getRemark()); |
|
|
|
|
|
studyMethodJcgjService.saveJcgj(studyMethod, JcgjlxEnum.lc.getValue(), "关闭方法", "Close Method", JcmcysEnum.blue.getValue(), |
|
|
|
|
|
JctUtil.formatStr(formData), JctUtil.formatStr(formDataEn), qmr); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |