|
@@ -12,7 +12,6 @@ import com.txz.mall.service.OtherNoticeService;
|
|
import com.txz.mall.web.param.BasePageParam;
|
|
import com.txz.mall.web.param.BasePageParam;
|
|
import com.txz.mall.web.ro.OtherNoticeRO;
|
|
import com.txz.mall.web.ro.OtherNoticeRO;
|
|
import com.txz.mall.web.ro.SendNoticeRO;
|
|
import com.txz.mall.web.ro.SendNoticeRO;
|
|
-import dto.NoticeDTO;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -107,8 +106,7 @@ public class NoticeController {
|
|
if (ObjectUtil.isEmpty(info)) {
|
|
if (ObjectUtil.isEmpty(info)) {
|
|
return Result.fail("数据不存在");
|
|
return Result.fail("数据不存在");
|
|
}
|
|
}
|
|
- NoticeDTO dto = BeanUtil.copyProperties(info, NoticeDTO.class);
|
|
|
|
- noticeService.addNotice(dto, ro.getUids().stream().toArray(Long[]::new));
|
|
|
|
|
|
+ noticeService.addOtherNotice(info.getId(), info.getTitle(), info.getMessage(), info.getPages(), ro.getUids().stream().toArray(Long[]::new));
|
|
return Result.success();
|
|
return Result.success();
|
|
}
|
|
}
|
|
|
|
|