Class UpdateOrCreateCommandHandler
java.lang.Object
com.sankcrm.erp.auth.application.app.command.updateorcreate.UpdateOrCreateCommandHandler
- All Implemented Interfaces:
com.sankcrm.erp.bus.CommandHandler<App,UpdateOrCreateCommand>
@Component("appCreateOrUpdateCommandHandler")
@Transactional(timeout=60,
rollbackFor=java.lang.Exception.class)
public class UpdateOrCreateCommandHandler
extends Object
implements com.sankcrm.erp.bus.CommandHandler<App,UpdateOrCreateCommand>
处理创建或更新
- Since:
- 2.1.0
- Author:
- zhsxin
- create time:
- 2023/4/1 22:29
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionhandle(UpdateOrCreateCommand command) protected Appsave(App src, UpdateOrCreateCommand command)
-
Constructor Details
-
UpdateOrCreateCommandHandler
public UpdateOrCreateCommandHandler()
-
-
Method Details
-
handle
public App handle(UpdateOrCreateCommand command) throws com.sankcrm.erp.common.exception.CoreException - Specified by:
handlein interfacecom.sankcrm.erp.bus.CommandHandler<App,UpdateOrCreateCommand> - Throws:
com.sankcrm.erp.common.exception.CoreException
-
save
protected App save(App src, UpdateOrCreateCommand command) throws com.sankcrm.erp.common.exception.CoreException - Throws:
com.sankcrm.erp.common.exception.CoreException
-