| | |
| | | try { |
| | | this.${className?uncap_first}Service.create${className}(${className?uncap_first}); |
| | | } catch (Exception e) { |
| | | String message = "新增${className}失败"; |
| | | String message = "新增${tableComment}失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.${className?uncap_first}Service.delete${className}(${className?uncap_first}); |
| | | } catch (Exception e) { |
| | | String message = "删除${className}失败"; |
| | | String message = "删除${tableComment}失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | | } |
| | | |
| | | @DeleteMapping("{ids}") |
| | | @PreAuthorize("hasAuthority('${className?uncap_first}:delete')") |
| | | public void logicDelete${className}(@PathVariable("ids") String ids) throws FebsException { |
| | | try { |
| | | this.${className?uncap_first}Service.logicDel${className}(ids); |
| | | } catch (Exception e) { |
| | | String message = "逻辑删除${tableComment}失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |
| | |
| | | try { |
| | | this.${className?uncap_first}Service.update${className}(${className?uncap_first}); |
| | | } catch (Exception e) { |
| | | String message = "修改${className}失败"; |
| | | String message = "修改${tableComment}失败"; |
| | | log.error(message, e); |
| | | throw new FebsException(message); |
| | | } |