| | |
| | | import org.springblade.core.mp.support.Query; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springblade.core.tool.api.R; |
| | | import org.springblade.core.tool.utils.BeanUtil; |
| | | import org.springframework.cglib.beans.BeanMap; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import springfox.documentation.annotations.ApiIgnore; |
| | | |
| | |
| | | @GetMapping(GET_REF_PAGE) |
| | | @Override |
| | | public R<IPage<RevisionRuleVO>> getRefPage(BaseQueryObject baseQueryObject) { |
| | | return R.data(service.pageQueryVO(baseQueryObject)); |
| | | Map<String, String> conditionMap = baseQueryObject.getConditionMap(); |
| | | if (conditionMap == null){ |
| | | conditionMap = new HashMap<>(); |
| | | } |
| | | Query query = new Query(); |
| | | query.setSize(baseQueryObject.getLimit()); |
| | | query.setCurrent(baseQueryObject.getPage()); |
| | | Map<String,Object> condition = new HashMap<>(); |
| | | BeanUtil.copy(conditionMap,condition); |
| | | return R.data(service.pageQueryVO(condition,query)); |
| | | } |
| | | |
| | | /** |
| | |
| | | * @return 业务对象 |
| | | */ |
| | | @Override |
| | | @GetMapping(GET_BY_IDS) |
| | | public R<List<RevisionRuleVO>> selectByIdCollection(List<String> ids) { |
| | | @PostMapping(GET_BY_IDS) |
| | | public R<List<RevisionRuleVO>> selectByIdCollection(@RequestBody List<String> ids) { |
| | | return R.data(service.listRevisionRuleByIdCollection(ids)); |
| | | } |
| | | |