|
|
@@ -8,9 +8,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import lombok.Getter;
|
|
|
import lombok.Setter;
|
|
|
-import org.hswebframework.web.api.crud.entity.PagerResult;
|
|
|
-import org.hswebframework.web.api.crud.entity.QueryOperation;
|
|
|
-import org.hswebframework.web.api.crud.entity.QueryParamEntity;
|
|
|
+import org.hswebframework.web.api.crud.entity.*;
|
|
|
import org.hswebframework.web.authorization.Authentication;
|
|
|
import org.hswebframework.web.authorization.annotation.Authorize;
|
|
|
import org.hswebframework.web.authorization.annotation.QueryAction;
|
|
|
@@ -111,9 +109,7 @@ public class RuleInstanceController implements ReactiveServiceCrudController<Rul
|
|
|
public Mono<Boolean> update(@RequestBody RuleInstanceEntity instance) {
|
|
|
return Authentication.currentReactive().
|
|
|
doOnNext(auth->{
|
|
|
- if(StrUtil.isNotEmpty(instance.getId())){
|
|
|
- applyModifierEntity(auth,instance);
|
|
|
- }else {
|
|
|
+ if(StrUtil.isEmpty(instance.getId())){
|
|
|
applyCreationEntity(auth,instance);
|
|
|
}
|
|
|
})
|