|
@@ -40,6 +40,8 @@ public class ByteDanceAdvertisePlanController {
|
|
|
*/
|
|
|
@GetMapping(value = "/list")
|
|
|
public Result<IPage<ByteDanceAdvertisePlan>> queryPageList(ByteDanceAdvertisePlan byteDanceAdvertisePlan,
|
|
|
+ @RequestParam(name="startDate",defaultValue = "")String startDate,
|
|
|
+ @RequestParam(name="endDate",defaultValue = "")String endDate,
|
|
|
@RequestParam(name = "accountId", defaultValue = "") String accountId,
|
|
|
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
@@ -53,6 +55,12 @@ public class ByteDanceAdvertisePlanController {
|
|
|
byteDanceAdvertisePlan.setToutiaoStatus(toutiaoStatus);
|
|
|
}
|
|
|
QueryWrapper<ByteDanceAdvertisePlan> queryWrapper = QueryGenerator.initQueryWrapper(byteDanceAdvertisePlan, req.getParameterMap());
|
|
|
+ if(null!=startDate&&!"".equals(startDate)){
|
|
|
+ queryWrapper.ge("ad_create_time",startDate+" 00:00:00");
|
|
|
+ }
|
|
|
+ if(null!=endDate&&!"".equals(endDate)){
|
|
|
+ queryWrapper.le("ad_create_time",endDate+" 11:59:59");
|
|
|
+ }
|
|
|
Page<ByteDanceAdvertisePlan> page = new Page<>(pageNo, pageSize);
|
|
|
IPage<ByteDanceAdvertisePlan> pageList = byteDanceAdvertisePlanService.page(page, queryWrapper);
|
|
|
//处理计划投放状态
|