| | |
| | | throw new SpecialException(1, "修改内容已不存在");
|
| | | }
|
| | |
|
| | | // 删除图片
|
| | | Boolean delIcon = record.getDelIcon();
|
| | | if (delIcon != null && delIcon) {
|
| | | removePicture(resultObj.getIcon());
|
| | | resultObj.setIcon(null);
|
| | | }
|
| | | Boolean delPicture = record.getDelPicture();
|
| | | if (delPicture != null && delPicture) {
|
| | | removePicture(resultObj.getPicture());
|
| | | resultObj.setPicture(null);
|
| | | }
|
| | | Boolean delSubPicture = record.getDelSubPicture();
|
| | | if (delSubPicture != null && delSubPicture) {
|
| | | removePicture(resultObj.getSubPicture());
|
| | | resultObj.setSubPicture(null);
|
| | | }
|
| | | |
| | | |
| | | |
| | | if (picture != null && picture.trim().length() > 0) {
|
| | | // 删除老图
|
| | | removePicture(resultObj.getPicture());
|
| | |
| | | return root;
|
| | | }
|
| | |
|
| | | @Override
|
| | | public List<Special> listByPlaceKey(String placeKey) {
|
| | | return specialMapper.listByPlaceKey(placeKey);
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * 处理 数据
|