master:管理员上传档口推广图调优;

pull/1121/head
liujiang 2025-09-12 11:50:21 +08:00
parent bfbead7c55
commit 62c06ef02a
2 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@ import java.math.BigDecimal;
@ApiModel("档口上传推广图 或 修改商品")
@Data
@Accessors(chain = true)
public class AdRoundUpdateVO {
@NotNull(message = "推广轮次ID不能为空!")

View File

@ -174,7 +174,7 @@ public class AdminAdvertRoundServiceImpl implements IAdminAdvertRoundService {
.eq(AdvertRound::getId, picDTO.getAdvertRoundId()).eq(AdvertRound::getStoreId, picDTO.getStoreId())
.eq(AdvertRound::getDelFlag, Constants.UNDELETED)))
.orElseThrow(() -> new ServiceException("推广位不存在!", HttpStatus.ERROR));
SysFile file = BeanUtil.toBean(picDTO, SysFile.class);
SysFile file = BeanUtil.toBean(picDTO.getFile(), SysFile.class);
int count = this.fileMapper.insert(file);
// 更新推广位的图片ID
advertRound.setPicId(file.getId());