|
|
|
@ -97,17 +97,21 @@ public class AuthenticateServiceImpl implements AuthenticateService {
|
|
|
|
|
*/
|
|
|
|
|
@Override
|
|
|
|
|
@Transactional
|
|
|
|
|
public Long createApply(AuthenticateCreateReqVO createReqVO) {
|
|
|
|
|
AuthenticateDO authenticate = AuthenticateConvert.INSTANCE.convert(createReqVO);
|
|
|
|
|
public Long createApply(List<AuthenticateCreateReqVO> createReqVO) {
|
|
|
|
|
for (AuthenticateCreateReqVO vo: createReqVO) {
|
|
|
|
|
RecordDO record = recordMapper.selectById(vo.getRecordId());
|
|
|
|
|
//修改档案状态为已鉴定
|
|
|
|
|
RecordDO recordDO = new RecordDO();
|
|
|
|
|
LambdaUpdateWrapper<RecordDO> wrapper = new LambdaUpdateWrapper<>();
|
|
|
|
|
wrapper.set(RecordDO::getIdentifyStatus,1).eq(RecordDO::getId,createReqVO.getRecordId());
|
|
|
|
|
recordMapper.update(recordDO,wrapper);
|
|
|
|
|
record.setIdentifyStatus("1");
|
|
|
|
|
recordMapper.updateById(record);
|
|
|
|
|
|
|
|
|
|
//设置档案类型和档案位置
|
|
|
|
|
vo.setType(record.getFileType());
|
|
|
|
|
vo.setPosition(record.getSite());
|
|
|
|
|
AuthenticateDO authenticate = AuthenticateConvert.INSTANCE.convert(vo);
|
|
|
|
|
//新增鉴定申请记录
|
|
|
|
|
authenticateMapper.insert(authenticate);
|
|
|
|
|
return authenticate.getId();
|
|
|
|
|
}
|
|
|
|
|
return 200L;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|