| | |
| | | @RequestParam Map<String, Object> param){ |
| | | excludeTrash(param); |
| | | EntityWrapper<StaDesc> wrapper = new EntityWrapper<>(); |
| | | wrapper.orderBy("type_no",true); |
| | | convert(param, wrapper); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | return R.ok(staDescService.selectPage(new Page<>(curr, limit), wrapper)); |
| | |
| | | @RequestMapping(value = "/staDesc/add/auth") |
| | | @ManagerAuth(memo = "站点路径添加") |
| | | public R add(StaDesc staDesc) { |
| | | int sameRes = staDescService.selectCount(new EntityWrapper<StaDesc>() |
| | | .eq("type_no", staDesc.getTypeNo()) |
| | | .eq("stn_no", staDesc.getStnNo()) |
| | | .eq("crn_no", staDesc.getCrnNo()) |
| | | .eq("crn_stn", staDesc.getCrnStn())); |
| | | if (sameRes > 0) { |
| | | return R.error("路径已存在"); |
| | | } |
| | | staDesc.setModiUser(getUserId()); |
| | | staDesc.setModiTime(new Date()); |
| | | staDesc.setAppeUser(getUserId()); |