@@ -77,13 +77,13 @@ public List<ComponentLibrary> queryComponentLibraryByCondition(ComponentLibrary
77
77
* @return execute success data number
78
78
*/
79
79
@ Override
80
- public Result <ComponentLibrary > deleteComponentLibraryById (@ Param ("id" ) Integer id ) {
80
+ public Result <ComponentLibrary > deleteComponentLibraryById (@ Param ("id" ) Integer id ) {
81
81
Result <ComponentLibrary > result = this .queryComponentLibraryById (id );
82
- if (result .getData () == null || result .getData ().getId () == null ){
82
+ if (result .getData () == null || result .getData ().getId () == null ) {
83
83
return Result .success ();
84
84
}
85
- int deleteResult = componentLibraryMapper .deleteComponentLibraryById (id );
86
- if (deleteResult != 1 ){
85
+ int deleteResult = componentLibraryMapper .deleteComponentLibraryById (id );
86
+ if (deleteResult != 1 ) {
87
87
return Result .failed (ExceptionEnum .CM008 );
88
88
}
89
89
return result ;
@@ -97,9 +97,9 @@ public Result<ComponentLibrary> deleteComponentLibraryById(@Param("id") Integer
97
97
* @return execute success data number
98
98
*/
99
99
@ Override
100
- public Result <ComponentLibrary > updateComponentLibraryById (ComponentLibrary componentLibrary ) {
100
+ public Result <ComponentLibrary > updateComponentLibraryById (ComponentLibrary componentLibrary ) {
101
101
int updateResult = componentLibraryMapper .updateComponentLibraryById (componentLibrary );
102
- if (updateResult != 1 ){
102
+ if (updateResult != 1 ) {
103
103
return Result .failed (ExceptionEnum .CM008 );
104
104
}
105
105
Result <ComponentLibrary > result = this .queryComponentLibraryById (componentLibrary .getId ());
@@ -113,9 +113,9 @@ public Result<ComponentLibrary> updateComponentLibraryById(ComponentLibrary com
113
113
* @return execute success data number
114
114
*/
115
115
@ Override
116
- public Result <ComponentLibrary > createComponentLibrary (ComponentLibrary componentLibrary ) {
116
+ public Result <ComponentLibrary > createComponentLibrary (ComponentLibrary componentLibrary ) {
117
117
int createResult = componentLibraryMapper .createComponentLibrary (componentLibrary );
118
- if (createResult != 1 ){
118
+ if (createResult != 1 ) {
119
119
return Result .failed (ExceptionEnum .CM008 );
120
120
}
121
121
Result <ComponentLibrary > result = this .queryComponentLibraryById (componentLibrary .getId ());
0 commit comments