| | |
| | | |
| | | /** |
| | | * 根据id查询 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 新增 |
| | | * |
| | | * @param mdcTorqueConfig |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 修改 |
| | | * |
| | | * @param mdcTorqueConfig |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 根据id删除扭矩配置 |
| | | * |
| | | * @param id |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 批量删除 |
| | | * |
| | | * @param ids |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 导出excel |
| | | * |
| | | * @param request |
| | | * @param mdcTorqueConfig |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 导入excel |
| | | * |
| | | * @param request |
| | | * @param response |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 根据扭矩值生成主轴运行曲线 |
| | | * |
| | | * @param torqueValue |
| | | * @return |
| | | */ |
| | |
| | | * @return |
| | | */ |
| | | @AutoLog(value = "扭矩配置管理-分页查询") |
| | | @ApiOperation(value = "扭矩配置管理-分页查询",notes = "扭矩配置管理-分页查询") |
| | | @ApiOperation(value = "扭矩配置管理-分页查询", notes = "扭矩配置管理-分页查询") |
| | | @GetMapping("/pageList") |
| | | public Result pageList(MdcTorqueConfig mdcTorqueConfig, |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | if (mdcTorqueConfig==null){ |
| | | @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, |
| | | @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, |
| | | HttpServletRequest req) { |
| | | if (mdcTorqueConfig == null) { |
| | | return Result.error("请传递有效参数"); |
| | | } |
| | | LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId= user.getId(); |
| | | Page page=new Page(pageNo,pageSize); |
| | | IPage<MdcTorqueConfig> mdcTorqueConfigIPage= mdcTorqueConfigService.pageList(userId,page,req,mdcTorqueConfig); |
| | | LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal(); |
| | | String userId = user.getId(); |
| | | Page page = new Page(pageNo, pageSize); |
| | | IPage<MdcTorqueConfig> mdcTorqueConfigIPage = mdcTorqueConfigService.pageList(userId, page, req, mdcTorqueConfig); |
| | | return Result.ok(mdcTorqueConfigIPage); |
| | | } |
| | | } |