| | |
| | | import java.util.UUID;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | | import javax.transaction.Transactional;
|
| | |
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | | import org.springframework.web.multipart.MultipartFile;
|
| | | import org.yeshi.utils.tencentcloud.COSManager;
|
| | |
|
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SpecialCardMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialCard;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SpecialPlace;
|
| | | import com.yeshi.fanli.exception.FloatADException;
|
| | | import com.yeshi.fanli.exception.homemodule.SpecialCardException;
|
| | | import com.yeshi.fanli.service.inter.config.BusinessSystemService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.SpecialCardService;
|
| | |
| | | // 修改
|
| | | SpecialCard resultObj = specialCardMapper.selectByPrimaryKey(id);
|
| | | if (resultObj == null) {
|
| | | throw new FloatADException(1, "修改内容已不存在");
|
| | | throw new SpecialCardException(1, "修改内容已不存在");
|
| | | }
|
| | | |
| | | // 删除图片
|
| | | Boolean delPicture = record.getDelPicture();
|
| | | if (delPicture != null && delPicture) {
|
| | | removePicture(resultObj.getBottomPicture());
|
| | | resultObj.setBottomPicture(null);
|
| | | }
|
| | |
|
| | | if (picture != null && picture.trim().length() > 0) {
|