|
@@ -30,6 +30,7 @@ import io.swagger.annotations.ApiResponse;
|
|
|
import io.swagger.annotations.ApiResponses;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import ma.glasnost.orika.MapperFacade;
|
|
|
+import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
@@ -122,7 +123,16 @@ public class ChannelTicketController extends BaseApiController {
|
|
|
// .eq(null != param.getCategoryId() && 0 != param.getCategoryId(), TicketBox::getCategoryId, param.getCategoryId())
|
|
|
// .eq(TicketBox::getStatus, TicketBoxStatusEnum.PUT_ON)
|
|
|
// .orderByDesc(TicketBox::getSortWeight));
|
|
|
- List<TicketBoxListVO> ticketBoxListVOList = mapperFacade.mapAsList(ticketBoxes, TicketBoxListVO.class);
|
|
|
+ List<TicketBoxListVO> ticketBoxListVOList = new ArrayList<>();
|
|
|
+ if (CollectionUtils.isNotEmpty(ticketBoxes)) {
|
|
|
+ for (TicketBox ticketBox : ticketBoxes) {
|
|
|
+ TicketBoxListVO ticketBoxListVO = new TicketBoxListVO();
|
|
|
+ BeanUtils.copyProperties(ticketBox, ticketBoxListVO);
|
|
|
+ // 设置经销商分佣比
|
|
|
+ ticketBoxListVO.setChannelCommRate(channel.getCommRate());
|
|
|
+ ticketBoxListVOList.add(ticketBoxListVO);
|
|
|
+ }
|
|
|
+ }
|
|
|
TableDataInfo rspData = getDataTable(ticketBoxes);
|
|
|
rspData.setRows(ticketBoxListVOList);
|
|
|
return rspData;
|