|
|
@ -471,25 +471,28 @@ public class EpidemicUserInfoServiceImpl extends CrudServiceImpl<EpidemicUserInf |
|
|
|
*/ |
|
|
|
@Override |
|
|
|
public Result deleteUserById(Long[] ids) { |
|
|
|
//1、获取详情id
|
|
|
|
Long inoutRecord = ids[0]; |
|
|
|
if (null != 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("删除参数不正确,请联系管理员查看"); |
|
|
|
} |
|
|
|
|
|
|
|
//物理删除
|
|
|
|
baseDao.deleteBatchIds(Arrays.asList(ids)); |
|
|
|
// //1、获取详情id
|
|
|
|
// Long inoutRecord = ids[0];
|
|
|
|
// if (null != 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("删除参数不正确,请联系管理员查看");
|
|
|
|
// }
|
|
|
|
//根据情况进项删除
|
|
|
|
return new Result(); |
|
|
|
} |
|
|
|