|
@@ -31,7 +31,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
-import java.util.List;
|
|
|
|
import java.util.Objects;
|
|
import java.util.Objects;
|
|
|
|
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -70,15 +69,12 @@ public class CustomerServiceBatchSendingController extends BaseController {
|
|
*/
|
|
*/
|
|
@ApiOperation(value = "查询分页", notes = "客服群发- 传入 CustomerServiceBatchSendingVo.CustomerServiceBatchSendingQuery")
|
|
@ApiOperation(value = "查询分页", notes = "客服群发- 传入 CustomerServiceBatchSendingVo.CustomerServiceBatchSendingQuery")
|
|
@PostMapping("/page")
|
|
@PostMapping("/page")
|
|
- public HttpResponseResult<PageInfo<CustomerServiceBatchSendingVo.CustomerServiceBatchSending>> page(@RequestBody CustomerServiceBatchSendingWrapper.CustomerServiceBatchSendingQuery query) {
|
|
|
|
|
|
+ public HttpResponseResult<PageInfo<CustomerServiceBatchSendingWrapper.CustomerServiceBatchSending>> page(@RequestBody CustomerServiceBatchSendingWrapper.CustomerServiceBatchSendingQuery query) {
|
|
|
|
|
|
// 查询数据
|
|
// 查询数据
|
|
IPage<CustomerServiceBatchSendingWrapper.CustomerServiceBatchSending> pages = customerServiceBatchSendingService.selectPage(PageUtil.getPage(query), query);
|
|
IPage<CustomerServiceBatchSendingWrapper.CustomerServiceBatchSending> pages = customerServiceBatchSendingService.selectPage(PageUtil.getPage(query), query);
|
|
- // 数据类型转换
|
|
|
|
- List<CustomerServiceBatchSendingVo.CustomerServiceBatchSending> records = JSON.parseArray(JSON.toJSONString(pages.getRecords()),
|
|
|
|
- CustomerServiceBatchSendingVo.CustomerServiceBatchSending.class);
|
|
|
|
-
|
|
|
|
- return HttpResponseResult.succeed(PageUtil.getPageInfo(pages, records));
|
|
|
|
|
|
+
|
|
|
|
+ return HttpResponseResult.succeed(PageUtil.pageInfo(pages));
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|