master:管理员上传档口推广图调优;
parent
bfbead7c55
commit
62c06ef02a
|
|
@ -16,7 +16,6 @@ import java.math.BigDecimal;
|
|||
@ApiModel("档口上传推广图 或 修改商品")
|
||||
@Data
|
||||
@Accessors(chain = true)
|
||||
|
||||
public class AdRoundUpdateVO {
|
||||
|
||||
@NotNull(message = "推广轮次ID不能为空!")
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Reference in New Issue