|
|
@ -1,7 +1,15 @@
|
|
|
|
package cn.iocoder.yudao.module.archives.service.authenticate;
|
|
|
|
package cn.iocoder.yudao.module.archives.service.authenticate;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.archives.dal.dataobject.record.RecordDO;
|
|
|
|
|
|
|
|
import cn.iocoder.yudao.module.archives.dal.mysql.record.RecordMapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.extension.conditions.update.LambdaUpdateChainWrapper;
|
|
|
|
|
|
|
|
import org.apache.poi.hssf.record.Record;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.*;
|
|
|
|
import java.util.*;
|
|
|
@ -27,6 +35,9 @@ public class AuthenticateServiceImpl implements AuthenticateService {
|
|
|
|
@Resource
|
|
|
|
@Resource
|
|
|
|
private AuthenticateMapper authenticateMapper;
|
|
|
|
private AuthenticateMapper authenticateMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Resource
|
|
|
|
|
|
|
|
private RecordMapper recordMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public Long createAuthenticate(AuthenticateCreateReqVO createReqVO) {
|
|
|
|
public Long createAuthenticate(AuthenticateCreateReqVO createReqVO) {
|
|
|
|
// 插入
|
|
|
|
// 插入
|
|
|
@ -79,4 +90,24 @@ public class AuthenticateServiceImpl implements AuthenticateService {
|
|
|
|
return authenticateMapper.selectList(exportReqVO);
|
|
|
|
return authenticateMapper.selectList(exportReqVO);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 新增鉴定申请
|
|
|
|
|
|
|
|
* @param createReqVO
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
|
|
|
@Transactional
|
|
|
|
|
|
|
|
public Long createApply(AuthenticateCreateReqVO createReqVO) {
|
|
|
|
|
|
|
|
AuthenticateDO authenticate = AuthenticateConvert.INSTANCE.convert(createReqVO);
|
|
|
|
|
|
|
|
//修改档案状态为已鉴定
|
|
|
|
|
|
|
|
RecordDO recordDO = new RecordDO();
|
|
|
|
|
|
|
|
LambdaUpdateWrapper<RecordDO> wrapper = new LambdaUpdateWrapper<>();
|
|
|
|
|
|
|
|
wrapper.set(RecordDO::getIdentifyStatus,1).eq(RecordDO::getId,createReqVO.getRecordId());
|
|
|
|
|
|
|
|
recordMapper.update(recordDO,wrapper);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//新增鉴定申请记录
|
|
|
|
|
|
|
|
authenticateMapper.insert(authenticate);
|
|
|
|
|
|
|
|
return authenticate.getId();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|