|
|
@ -3,10 +3,14 @@ package com.hxhq.business.service.impl; |
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
|
|
|
|
|
import com.hxhq.business.domain.Yq; |
|
|
|
|
|
import com.hxhq.business.service.ISystemLogService; |
|
|
import com.hxhq.common.core.domain.MpBaseEntity; |
|
|
import com.hxhq.common.core.domain.MpBaseEntity; |
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
import com.hxhq.common.core.utils.StringUtils; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.common.security.utils.SecurityUtils; |
|
|
import com.hxhq.system.api.domain.SysUser; |
|
|
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 org.springframework.stereotype.Service; |
|
|
import com.hxhq.business.mapper.YqJcgjMapper; |
|
|
import com.hxhq.business.mapper.YqJcgjMapper; |
|
|
import com.hxhq.business.domain.YqJcgj; |
|
|
import com.hxhq.business.domain.YqJcgj; |
|
|
@ -23,6 +27,9 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
public class YqJcgjServiceImpl extends ServiceImpl<YqJcgjMapper, YqJcgj> implements IYqJcgjService |
|
|
public class YqJcgjServiceImpl extends ServiceImpl<YqJcgjMapper, YqJcgj> implements IYqJcgjService |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private ISystemLogService systemLogService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 查询仪器管理-稽查轨迹列表 |
|
|
* 查询仪器管理-稽查轨迹列表 |
|
|
* |
|
|
* |
|
|
@ -49,20 +56,34 @@ public class YqJcgjServiceImpl extends ServiceImpl impleme |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
|
public void saveJcgj(Long yqId, Integer jcgjlx, String jcmc, String jcmcEn, Integer jcmcys, String jcnr, String jcnrEn) { |
|
|
|
|
|
|
|
|
@Async |
|
|
|
|
|
public void saveJcgj(Yq yq, Integer jcgjlx, String jcmc, String jcmcEn, Integer jcmcys, String jcnr, String jcnrEn) { |
|
|
SysUser sysUser = SecurityUtils.getLoginUser().getSysUser(); |
|
|
SysUser sysUser = SecurityUtils.getLoginUser().getSysUser(); |
|
|
YqJcgj yqJcgj = new YqJcgj(); |
|
|
|
|
|
yqJcgj.setYqId(yqId); |
|
|
|
|
|
yqJcgj.setJcgjlx(jcgjlx); |
|
|
|
|
|
yqJcgj.setJcmc(jcmc); |
|
|
|
|
|
yqJcgj.setJcmcEn(jcmcEn); |
|
|
|
|
|
yqJcgj.setJcmcys(jcmcys); |
|
|
|
|
|
yqJcgj.setJcnr(jcnr); |
|
|
|
|
|
yqJcgj.setJcnrEn(jcnrEn); |
|
|
|
|
|
yqJcgj.setQmrId(sysUser.getUserId()); |
|
|
|
|
|
yqJcgj.setQmrMc(sysUser.getNickName()); |
|
|
|
|
|
yqJcgj.setQmrMcEn(sysUser.getUserName()); |
|
|
|
|
|
this.save(yqJcgj); |
|
|
|
|
|
|
|
|
YqJcgj jcgj = new YqJcgj(); |
|
|
|
|
|
jcgj.setYqId(yq.getId()); |
|
|
|
|
|
jcgj.setJcgjlx(jcgjlx); |
|
|
|
|
|
jcgj.setJcmc(jcmc); |
|
|
|
|
|
jcgj.setJcmcEn(jcmcEn); |
|
|
|
|
|
jcgj.setJcmcys(jcmcys); |
|
|
|
|
|
jcgj.setJcnr(jcnr); |
|
|
|
|
|
jcgj.setJcnrEn(jcnrEn); |
|
|
|
|
|
jcgj.setQmrId(sysUser.getUserId()); |
|
|
|
|
|
jcgj.setQmrMc(sysUser.getNickName()); |
|
|
|
|
|
jcgj.setQmrMcEn(sysUser.getUserName()); |
|
|
|
|
|
this.save(jcgj); |
|
|
|
|
|
|
|
|
|
|
|
systemLogService.saveInfo(yq.getMc(), yq.getMc(), jcgj.getJcmc(), jcgj.getJcmcEn(), |
|
|
|
|
|
jcgj.getJcnr(), jcgj.getJcnrEn(), jcgj.getQmrId(), jcgj.getQmrMc(), jcgj.getQmrMcEn(), jcgj.getRemark()); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
|
|
@Async |
|
|
|
|
|
public void saveBatchWithLog(Yq yq, List<YqJcgj> jcgjList) { |
|
|
|
|
|
this.saveBatch(jcgjList); |
|
|
|
|
|
for (YqJcgj jcgj : jcgjList) { |
|
|
|
|
|
systemLogService.saveInfo(yq.getMc(), yq.getMc(), jcgj.getJcmc(), jcgj.getJcmcEn(), |
|
|
|
|
|
jcgj.getJcnr(), jcgj.getJcnrEn(), jcgj.getQmrId(), jcgj.getQmrMc(), jcgj.getQmrMcEn(), jcgj.getRemark()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |