开启了新线程, tx = new com.justep.system.data.Transaction(); 获取失败
怎么解决呢?
Exception in thread "Thread-15" com.justep.exception.BusinessException: 编码: JUSTEP150109; 提示: "RequestContext"不存在
at com.justep.exception.BusinessException.create(Unknown Source)
at com.justep.util.Utils.checkNotExist(Unknown Source)
at com.justep.model.ModelUtils.getRequestContext(Unknown Source)
at com.justep.model.ModelUtils.getRootModel(Unknown Source)
at com.justep.model.impl.ModelImpl.getModel(Unknown Source)
at com.justep.model.impl.ModelImpl.getModel(Unknown Source)
at com.justep.model.impl.UtilImplementInstance.getModel(Unknown Source)
at com.justep.model.ModelUtils.getModel(Unknown Source)
at com.justep.system.data.Transaction.getConnection(Unknown Source)
at com.utils.appCommon.DataUtils.batchExecSQL(DataUtils.java:250)
at com.utils.appCommon.DataUtils.executeBySql(DataUtils.java:81)
at tjxt.service.TjTaskService.saveTaskSheet(TjTaskService.java:98)
at Tjcgs$1MyThread.run(Tjcgs.java:50)