|
@@ -106,16 +106,21 @@ public class ByteDanceBatchController {
|
|
private IBytedanceImageInfoService imageInfoService;
|
|
private IBytedanceImageInfoService imageInfoService;
|
|
|
|
|
|
@GetMapping(value = "/getImageList")
|
|
@GetMapping(value = "/getImageList")
|
|
- public Result<IPage<BytedanceImageInfo>> getBytedqanceVideoList(@RequestParam(name = "accountId")Long accountId, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
|
- @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
|
- @RequestParam(name = "startDate", defaultValue = "") String startDate,
|
|
|
|
- @RequestParam(name = "endDate", defaultValue = "") String endDate, HttpServletRequest req) {
|
|
|
|
|
|
+ public Result<IPage<BytedanceImageInfo>> getBytedqanceVideoList(
|
|
|
|
+ @RequestParam(name = "type") Integer type,
|
|
|
|
+ @RequestParam(name = "accountId")Long accountId, @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
|
|
|
|
+ @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
|
+ @RequestParam(name = "startDate", defaultValue = "") String startDate,
|
|
|
|
+ @RequestParam(name = "endDate", defaultValue = "") String endDate, HttpServletRequest req) {
|
|
Result<IPage<BytedanceImageInfo>> result = new Result<>();
|
|
Result<IPage<BytedanceImageInfo>> result = new Result<>();
|
|
try {
|
|
try {
|
|
if (Check.isNull(accountId)) {
|
|
if (Check.isNull(accountId)) {
|
|
throw new Exception("账户id不能为空");
|
|
throw new Exception("账户id不能为空");
|
|
}
|
|
}
|
|
QueryWrapper<BytedanceImageInfo> queryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<BytedanceImageInfo> queryWrapper = new QueryWrapper<>();
|
|
|
|
+ if(null!=type&&type!=0){
|
|
|
|
+ queryWrapper.eq("type",type);
|
|
|
|
+ }
|
|
if (!Check.isNull(startDate) && !Check.isNull(endDate)) {
|
|
if (!Check.isNull(startDate) && !Check.isNull(endDate)) {
|
|
queryWrapper.between("image_create_time", startDate+" 00:00:00", endDate+" 23:59:59");
|
|
queryWrapper.between("image_create_time", startDate+" 00:00:00", endDate+" 23:59:59");
|
|
}
|
|
}
|