|
@@ -43,8 +43,7 @@ public class DynamicContentController {
|
|
|
if (pageSize == null) {
|
|
|
pageSize = 20;
|
|
|
}
|
|
|
- param.setUserId(SessionContextHolder.getId());
|
|
|
- return iDynamicContentService.queryPageList(param, pageNum, pageSize);
|
|
|
+ return iDynamicContentService.queryPageList(param, pageNum, pageSize, SessionContextHolder.getId());
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -85,8 +84,7 @@ public class DynamicContentController {
|
|
|
*/
|
|
|
@PostMapping("/add")
|
|
|
public void add(@Validated @RequestBody AddDynamicContentParam param) {
|
|
|
- param.setUserId(SessionContextHolder.getId());
|
|
|
- iDynamicContentService.insertByBo(param);
|
|
|
+ iDynamicContentService.insertByBo(param, SessionContextHolder.getId());
|
|
|
}
|
|
|
|
|
|
/**
|