|
|
@ -469,18 +469,19 @@ public class EpidemicUserInfoServiceImpl extends CrudServiceImpl<EpidemicUserInf |
|
|
|
//1、获取详情id
|
|
|
|
Long inoutRecord = ids[0]; |
|
|
|
if (null != inoutRecord) { |
|
|
|
//查询信息
|
|
|
|
EpidemicUserInfoEntity entity = baseDao.selectByIdCard(inoutRecord); |
|
|
|
if (null == entity) { |
|
|
|
return new Result().error("数据错误,刷新后重试!!"); |
|
|
|
} |
|
|
|
// 2、判断人员信息表中数据如果只有一条就全删
|
|
|
|
Integer integer = inoutRecordDao.selectByState(entity.getIdCard()); |
|
|
|
if (integer == 1) { |
|
|
|
// 若同时存在,则保留基础信息,删除额外信息。
|
|
|
|
baseDao.deleteById(entity.getId()); |
|
|
|
} |
|
|
|
inoutRecordDao.deleteById(inoutRecord); |
|
|
|
baseDao.deleteById(inoutRecord); |
|
|
|
// //查询信息
|
|
|
|
// EpidemicUserInfoEntity entity = baseDao.selectByIdCard(inoutRecord);
|
|
|
|
// if (null == entity) {
|
|
|
|
// return new Result().error("数据错误,刷新后重试!!");
|
|
|
|
// }
|
|
|
|
// // 2、判断人员信息表中数据如果只有一条就全删
|
|
|
|
// Integer integer = inoutRecordDao.selectByState(entity.getIdCard());
|
|
|
|
// if (integer == 1) {
|
|
|
|
// // 若同时存在,则保留基础信息,删除额外信息。
|
|
|
|
// baseDao.deleteById(entity.getId());
|
|
|
|
// }
|
|
|
|
// inoutRecordDao.deleteById(inoutRecord);
|
|
|
|
} else { |
|
|
|
return new Result().error("删除参数不正确,请联系管理员查看"); |
|
|
|
} |
|
|
|