| | |
| | | private static int reportDbPort = 0; |
| | | |
| | | /** |
| | | * 通常定时任务触发-恢复停止执行的标识状态 |
| | | */ |
| | | public void initExecute() { |
| | | SpringMVCContextHolder.getSystemLogger().info("[请求历史特殊处理-初始状态]"); |
| | | stopFlag = false; |
| | | } |
| | | |
| | | /** |
| | | * 通常定时任务触发-停止执行 |
| | | */ |
| | | public void stopExecute() { |
| | |
| | | DataTableEntity logDte = new DataTableEntity(); |
| | | for (int i = 0; i < waitInsertDte.getRows(); i++) { |
| | | FieldSetEntity singlePageDataFse = waitInsertDte.getFieldSetEntity(i); |
| | | FieldSetEntity logFse = new FieldSetEntity("product_sys_sp_deal_log"); |
| | | FieldSetEntity logFse = new FieldSetEntity(); |
| | | logFse.setTableName("product_sys_sp_deal_log"); |
| | | logFse.setValue("content", BaseUtil.fieldSetEntityToJson(singlePageDataFse).toJSONString()); |
| | | logFse.setValue("error", errorInfo); |
| | | logFse.setValue("group_uuid", groupUUID); |
| | |
| | | } |
| | | baseDao.add(logDte); |
| | | } else { |
| | | FieldSetEntity logFse = new FieldSetEntity("product_sys_sp_deal_log"); |
| | | FieldSetEntity logFse = new FieldSetEntity(); |
| | | logFse.setTableName("product_sys_sp_deal_log"); |
| | | logFse.setValue("content", "非数据处理阶段出错"); |
| | | logFse.setValue("error", errorInfo); |
| | | logFse.setValue("group_uuid", groupUUID); |
| | |
| | | } |
| | | } |
| | | |
| | | FieldSetEntity newDictFse = new FieldSetEntity(CmnConst.PRODUCT_SYS_DICT); |
| | | FieldSetEntity newDictFse = new FieldSetEntity(); |
| | | newDictFse.setTableName(CmnConst.PRODUCT_SYS_DICT); |
| | | newDictFse.setValue("dict_name", DICT_NAME_REQUEST_HISTORY); |
| | | newDictFse.setValue("is_used", 1); |
| | | newDictFse.setValue("sequence", 1); |