|
@@ -3,6 +3,7 @@ package cn.rankin.cmsweb.controller.product;
|
|
|
import cn.rankin.cmsweb.service.product.PosterServiceInterface;
|
|
|
import cn.rankin.common.utils.api.model.APIResult;
|
|
|
import cn.rankin.common.utils.api.page.Page;
|
|
|
+import cn.rankin.common.utils.util.BeanUtil;
|
|
|
import cn.rankin.data.api.product.dto.PosterDTO;
|
|
|
import cn.rankin.data.api.product.entity.Poster;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -18,8 +19,8 @@ public class PosterController {
|
|
|
private PosterServiceInterface posterServiceInterface;
|
|
|
|
|
|
@RequestMapping(value = "/list", method = RequestMethod.GET)
|
|
|
- public APIResult<Page<Poster>> getPosterList(@Valid @RequestBody PosterDTO posterDTO) {
|
|
|
- return posterServiceInterface.search(posterDTO);
|
|
|
+ public APIResult<Page<Poster>> getPosterList(PosterDTO posterDTO) {
|
|
|
+ return posterServiceInterface.search(BeanUtil.convertToMap(posterDTO));
|
|
|
}
|
|
|
|
|
|
@RequestMapping(value = "/{id}", method = RequestMethod.GET)
|