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