|
|
@@ -38,6 +38,8 @@ import org.springblade.mocha.vo.BusinessPointsItemVO;
|
|
|
import org.springblade.mocha.service.IBusinessPointsItemService;
|
|
|
import org.springblade.core.boot.ctrl.BladeController;
|
|
|
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
/**
|
|
|
* 积分明细表 控制器
|
|
|
*
|
|
|
@@ -70,18 +72,18 @@ public class BusinessPointsItemController extends BladeController {
|
|
|
@GetMapping("/list")
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
@ApiOperation(value = "分页", notes = "传入businessPointsItem")
|
|
|
- public R<IPage<BusinessPointsItem>> list(BusinessPointsItem businessPointsItem, Query query) {
|
|
|
+ public R<List<BusinessPointsItem>> list(BusinessPointsItem businessPointsItem) {
|
|
|
businessPointsItem.setTenantId(SecureUtil.getTenantId());
|
|
|
- IPage<BusinessPointsItem> pages = businessPointsItemService.page(Condition.getPage(query), Condition.getQueryWrapper(businessPointsItem));
|
|
|
- if (CollectionUtils.isNotEmpty(pages.getRecords())){
|
|
|
- pages.getRecords().stream().forEach(item ->{
|
|
|
+ List<BusinessPointsItem> list = businessPointsItemService.list(Condition.getQueryWrapper(businessPointsItem));
|
|
|
+ if (CollectionUtils.isNotEmpty(list)){
|
|
|
+ list.forEach(item ->{
|
|
|
R<User> user = userClient.userInfoById(item.getCreateUser());
|
|
|
if (user.isSuccess() && user.getData() != null){
|
|
|
item.setCreateUserName(user.getData().getName());
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
- return R.data(pages);
|
|
|
+ return R.data(list);
|
|
|
}
|
|
|
|
|
|
/**
|