This commit is contained in:
wans 2021-05-16 09:30:39 +08:00
parent 0c05484af0
commit b0d1f71337

View File

@ -52,10 +52,12 @@ public class BasicStaffInfoServiceImpl extends DefaultBaseService implements IBa
Map<String, Object> query = new HashMap<>(4);
query.put("bindUserAccount",params.get("creator").toString());
BasicStaffInfoDTO dto = basicStaffInfoDao.getById(query);
if(dto != null){
List<String> ids = new ArrayList<>();
ids.add(dto.getBasicStaffInfoId());
query.put("ids",ids);
basicStaffInfoDao.delete(query);
}
} else {
setSaveInfo(params);
}