| | |
| | | import com.vincent.rsf.server.manager.entity.WaveRule; |
| | | import com.vincent.rsf.server.manager.service.WaveRuleService; |
| | | import com.vincent.rsf.server.system.constant.SerialRuleCode; |
| | | import com.vincent.rsf.server.manager.utils.buildPageRowsUtils; |
| | | import com.vincent.rsf.server.system.controller.BaseController; |
| | | import com.vincent.rsf.server.system.utils.SerialRuleUtils; |
| | | import org.apache.commons.lang3.StringUtils; |
| | |
| | | public R page(@RequestBody Map<String, Object> map) { |
| | | BaseParam baseParam = buildParam(map, BaseParam.class); |
| | | PageParam<WaveRule, BaseParam> pageParam = new PageParam<>(baseParam, WaveRule.class); |
| | | return R.ok().add(waveRuleService.page(pageParam, pageParam.buildWrapper(true))); |
| | | PageParam<WaveRule, BaseParam> page = waveRuleService.page(pageParam, pageParam.buildWrapper(true)); |
| | | buildPageRowsUtils.userNameMap(page.getRecords()); |
| | | return R.ok().add(page); |
| | | } |
| | | |
| | | @PreAuthorize("hasAuthority('manager:waveRule:list')") |