| | |
| | | return propertyService.comPropertyAlarmInsert(comPropertyAlarmVO); |
| | | } |
| | | |
| | | /** |
| | | * 无验证新增数据 |
| | | * |
| | | * @param str 加密json |
| | | * @return 新增结果 |
| | | */ |
| | | @ApiOperation(value = "无验证新增数据") |
| | | @GetMapping("/noToken") |
| | | public R insertNoAuth(String str) { |
| | | if(!str.isEmpty()){ |
| | | try { |
| | | String result= MyAESUtil.Decrypt(str.replaceAll(" ", "+"), key); |
| | | if(!result.isEmpty()){ |
| | | ComPropertyAlarmVO comPropertyAlarmVO=JSON.parseObject(result,ComPropertyAlarmVO.class); |
| | | if(comPropertyAlarmVO!=null){ |
| | | return propertyService.comPropertyAlarmInsert(comPropertyAlarmVO); |
| | | } |
| | | } |
| | | } catch (Exception e) { |
| | | return R.fail("验证失败"); |
| | | } |
| | | |
| | | } |
| | | return R.fail("数据异常"); |
| | | } |
| | | // /** |
| | | // * 无验证新增数据 |
| | | // * |
| | | // * @param str 加密json |
| | | // * @return 新增结果 |
| | | // */ |
| | | // @ApiOperation(value = "无验证新增数据") |
| | | // @GetMapping("/noToken") |
| | | // public R insertNoAuth(String str) { |
| | | // if(!str.isEmpty()){ |
| | | // try { |
| | | // String result= MyAESUtil.Decrypt(str.replaceAll(" ", "+"), key); |
| | | // if(!result.isEmpty()){ |
| | | // ComPropertyAlarmVO comPropertyAlarmVO=JSON.parseObject(result,ComPropertyAlarmVO.class); |
| | | // if(comPropertyAlarmVO!=null){ |
| | | // return propertyService.comPropertyAlarmInsert(comPropertyAlarmVO); |
| | | // } |
| | | // } |
| | | // } catch (Exception e) { |
| | | // return R.fail("验证失败"); |
| | | // } |
| | | // |
| | | // } |
| | | // return R.fail("数据异常"); |
| | | // } |
| | | |
| | | /** |
| | | * 修改数据 |