| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | /*@SysLog() |
| | | @ApiOperation(value = "插入一条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "entity", value = "实体类", dataType = "ArgsEntity", paramType = "body") |
| | |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | }*/ |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "更新一条") |
| | |
| | | entity.setUpdateUser(ue.getId()); |
| | | } |
| | | |
| | | int count = argsService.update(entity); |
| | | ArgsEntity ae = argsService.selectById(entity.getId()); |
| | | if (entity.getCvalue() > ae.getMaxValue() || entity.getCvalue() < ae.getMinValue()) { |
| | | return fail("待更新的值不在有效范围内", -1); |
| | | } |
| | | |
| | | int count = argsService.updateForValue(entity); |
| | | |
| | | return success(count); |
| | | } catch (Exception ex) { |
| | |
| | | } |
| | | } |
| | | |
| | | @SysLog() |
| | | /*@SysLog() |
| | | @ApiOperation(value = "更新多条") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "list", value = "实体类集合", dataType = "ArgsEntity", paramType = "body") |
| | |
| | | } catch (Exception ex) { |
| | | return fail(ex.getMessage(), -1); |
| | | } |
| | | } |
| | | }*/ |
| | | } |