|
|
|
@ -6,12 +6,18 @@ import java.util.Map; |
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
|
|
|
import com.hxhq.business.domain.StudyFormPlan; |
|
|
|
import com.hxhq.business.domain.StudyFormPlanJcgj; |
|
|
|
import com.hxhq.business.domain.StudyFormPre; |
|
|
|
import com.hxhq.business.domain.StudyFormPreJcgj; |
|
|
|
import com.hxhq.business.service.ISystemLogService; |
|
|
|
import com.hxhq.business.utils.JctUtil; |
|
|
|
import com.hxhq.business.utils.lang.StudyFormUtil; |
|
|
|
import com.hxhq.common.core.exception.ServiceException; |
|
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
|
import com.hxhq.system.api.domain.SysUser; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import com.hxhq.business.mapper.StudyFormPreJcgjMapper; |
|
|
|
import com.hxhq.business.service.IStudyFormPreJcgjService; |
|
|
|
@ -26,6 +32,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
@Service |
|
|
|
public class StudyFormPreJcgjServiceImpl extends ServiceImpl<StudyFormPreJcgjMapper, StudyFormPreJcgj> implements IStudyFormPreJcgjService |
|
|
|
{ |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ISystemLogService systemLogService; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
* 查询稽查轨迹列表 |
|
|
|
* @param studyFormPreJcgj |
|
|
|
@ -50,6 +61,21 @@ public class StudyFormPreJcgjServiceImpl extends ServiceImpl |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 批量保存稽查轨迹-并保留日志 |
|
|
|
* @param studyFormPre |
|
|
|
* @param jcgjList |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Async |
|
|
|
public void saveBatchWithLog(StudyFormPre studyFormPre, List<StudyFormPreJcgj> jcgjList) { |
|
|
|
this.saveBatch(jcgjList); |
|
|
|
for (StudyFormPreJcgj jcgj : jcgjList) { |
|
|
|
systemLogService.saveInfo(studyFormPre.getBdbh(), studyFormPre.getBdbh(), jcgj.getJcmc(), jcgj.getJcmcEn(), |
|
|
|
jcgj.getJcnr(), jcgj.getJcnrEn(), jcgj.getQmrId(), jcgj.getQmrMc(), jcgj.getQmrMcEn(), jcgj.getRemark()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 新增稽查轨迹 |
|
|
|
* @param formId 表单id |
|
|
|
* @param jcgjlx 稽查轨迹类型:1:流程;3:编辑 |
|
|
|
@ -61,6 +87,7 @@ public class StudyFormPreJcgjServiceImpl extends ServiceImpl |
|
|
|
* @param time 时间 |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
@Async |
|
|
|
public void saveJcgj(Long formId, Integer jcgjlx, String jcmc, Integer jcmcys, Map<String, String> jcnr, SysUser qmr, String remark, Date time){ |
|
|
|
StudyFormPreJcgj formJcgj = new StudyFormPreJcgj(); |
|
|
|
formJcgj.setFormId(formId); |
|
|
|
@ -82,6 +109,7 @@ public class StudyFormPreJcgjServiceImpl extends ServiceImpl |
|
|
|
} |
|
|
|
formJcgj.setRemark(remark); |
|
|
|
this.save(formJcgj); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|