| | |
| | | } |
| | | |
| | | /**新增*/ |
| | | @Override |
| | | public void insert(User user) { |
| | | int count = userMapper.insert(user); |
| | | if(count != 1) { |
| | | throw new TipsException("新增失败!"); |
| | | } |
| | | } |
| | | @Override |
| | | public void insert(User user) { |
| | | int count = userMapper.insert(user); |
| | | if(count != 1) { |
| | | throw new TipsException("新增失败!"); |
| | | } |
| | | } |
| | | |
| | | /**修改*/ |
| | | @Override |
| | | public void updateAll(User user) { |
| | | int count = userMapper.updateAll(user); |
| | | if(count!=1) { |
| | | throw new TipsException("保存失败!"); |
| | | } |
| | | } |
| | | /**修改*/ |
| | | @Override |
| | | public void updateAll(User user) { |
| | | int count = userMapper.updateAll(user); |
| | | if(count!=1) { |
| | | throw new TipsException("保存失败!"); |
| | | } |
| | | } |
| | | |
| | | /**修改*/ |
| | | /**修改*/ |
| | | @Override |
| | | public void updateWhere(SqlSentence sqlSentence) { |
| | | int count = userMapper.updateWhere(sqlSentence); |
| | |
| | | } |
| | | } |
| | | |
| | | /**删除一个*/ |
| | | @Override |
| | | public void deleteOne(String delId) { |
| | | int count = userMapper.deleteById(delId); |
| | | if(count!=1) { |
| | | throw new TipsException("删除失败!"); |
| | | } |
| | | } |
| | | /**删除一个*/ |
| | | @Override |
| | | public void deleteOne(String delId) { |
| | | int count = userMapper.deleteById(delId); |
| | | if(count!=1) { |
| | | throw new TipsException("删除失败!"); |
| | | } |
| | | } |
| | | |
| | | /**查询条数*/ |
| | | /**查询条数*/ |
| | | @Override |
| | | public int selectCount(SqlSentence sqlSentence) { |
| | | int count = userMapper.selectCount(sqlSentence); |
| | |
| | | userDiagnosisDoctorItem.setRoomName(userDoctorRoomItemDto.getFamiliesRoomName()); |
| | | //旧的 |
| | | List<UserFamiliesRoom> rooms = oldList.stream().filter(a |
| | | -> (StringUtils.noNull(a.getFamiliesRoomId()) && a.getFamiliesRoomId().equals(userDoctorRoomItemDto.getFamiliesRoomId())) |
| | | ||(StringUtils.noNull(a.getFamiliesRoomName()) && a.getFamiliesRoomName().equals(userDoctorRoomItemDto.getFamiliesRoomName()))) |
| | | -> (StringUtils.noNull(a.getFamiliesRoomId()) && a.getFamiliesRoomId().equals(userDoctorRoomItemDto.getFamiliesRoomId())) |
| | | ||(StringUtils.noNull(a.getFamiliesRoomName()) && a.getFamiliesRoomName().equals(userDoctorRoomItemDto.getFamiliesRoomName()))) |
| | | .collect(Collectors.toList()); |
| | | if (rooms.size() > 0){ |
| | | userDoctorRoomItemDto.setOldDoctorId(rooms.get(0).getDoctorId()); |
| | |
| | | List<UserLabelDcpDto> list = new ArrayList<>(); |
| | | UserLabelDcpAddDto userLabelAddDto = new UserLabelDcpAddDto(); |
| | | userLabelAddDto.setUserId(userInfoCompleteDto.getUserId()); |
| | | professionType.setTagName(userInfoCompleteDto.getProfessionTypeName().trim()); |
| | | if (!StringUtils.isEmpty(userInfoCompleteDto.getProfessionTypeName())){ |
| | | professionType.setTagName(userInfoCompleteDto.getProfessionTypeName().trim()); |
| | | } |
| | | |
| | | list.add(professionType); |
| | | if (!StringUtils.isEmpty(userInfoCompleteDto.getMarriageTypeName())){ |
| | | marriageTyp.setTagName(userInfoCompleteDto.getMarriageTypeName().trim()); |
| | |
| | | } |
| | | data.put("editUserTagInfoList", editUserTagInfoList); |
| | | } |
| | | |
| | | //List<UserLabelDcpDto> userLabelDtoList = userLabelAddDto.getUserLabelDtoList(); |
| | | /* if (userLabelDtoLists != null && userLabelDtoLists.size() > 0) { |
| | | |
| | | }*/ |
| | | |
| | | //要删除的标签 固定 - 职位 生育 婚否 |
| | | SqlSentence sqlSentence = new SqlSentence(); |