Class ContractGenerateLogsCommandHandler

java.lang.Object
com.sankcrm.erp.contract.application.command.generatlogs.ContractGenerateLogsCommandHandler
All Implemented Interfaces:
com.sankcrm.erp.bus.CommandHandler<Path,ContractGenerateLogsCommand>

@Component @Transactional(rollbackFor=java.lang.Exception.class, timeout=180) public class ContractGenerateLogsCommandHandler extends Object implements com.sankcrm.erp.bus.CommandHandler<Path,ContractGenerateLogsCommand>
生成操作日志
Since:
1.0.0
Author:
zhsxin
  • Constructor Details

    • ContractGenerateLogsCommandHandler

      public ContractGenerateLogsCommandHandler()
  • Method Details

    • handle

      public Path handle(ContractGenerateLogsCommand command) throws com.sankcrm.erp.common.exception.CoreException
      Specified by:
      handle in interface com.sankcrm.erp.bus.CommandHandler<Path,ContractGenerateLogsCommand>
      Throws:
      com.sankcrm.erp.common.exception.CoreException
    • generateLogs

      protected Path generateLogs(Contract contract)
      生成操作日志
      Parameters:
      contract - 合同
      Returns:
      日志文件路径