Browse Source

解析缺少参数

lgs 11 months ago
parent
commit
a4b1fde46e

+ 3 - 1
src/main/java/com/kexun/controller/BusinessController.java

@@ -97,12 +97,14 @@ public class BusinessController {
                 }
                 break;
             case 3:
-                list = BusinessService.queryBusinessList("'3','4'",null);
+                list = BusinessService.queryBusinessList("'3','4','5'",null);
                 for (BusinessInfo businessInfo : list) {
                     if (businessInfo.getStatus().equals("3")) {
                         businessInfo.setStatus("查询失败");
                     } else if (businessInfo.getStatus().equals("4")) {
                         businessInfo.setStatus("查询异常");
+                    }else if (businessInfo.getStatus().equals("5")){
+                        businessInfo.setStatus("解析失败");
                     }
                 }
                 break;

+ 1 - 2
src/main/java/com/kexun/task/ReportParseJobHandler.java

@@ -98,9 +98,8 @@ public class ReportParseJobHandler {
                 } catch (Exception e) {
                     e.printStackTrace();
                     //解析失败,状态修改成失败
-                    reportInfoService.updateReportInfoStatus(ReportStatusEnum.QUERY_FAIL.getValue(),reportInfo.getId());
+                    reportInfoService.updateReportInfoStatus(ReportStatusEnum.PRASE_FAIL.getValue(),reportInfo.getId());
                     log.error("解析出现异常,异常信息如下:{}", e.getStackTrace());
-                    new RRException("解析出现异常,异常信息:" + e.getMessage(), -1);
                 }
             } else {
                 log.info("获取到的解析内容为空,不做处理");

+ 19 - 21
src/main/resources/mapper/FieldDefineMapper.xml

@@ -36,37 +36,35 @@
 
     <!-- 通用查询结果列 -->
     <sql id="Base_Column_List">
-        d
-        .
-        id
-        ,
-        d.revison,
-        d.tenant_id,
+        d.category,
         d.create_by,
         d.create_time,
-        d.update_by,
-        d.update_time,
-        d.is_deleted,
-        d.remarks,
-        d.field_no,
-        d.name,
-        d.name_zh,
-        d.category,
-        d.type,
         d.fetch_logic,
-        d.formula_expr,
+        d.field_no,
         d.formula_class,
-        d.formula_method,
         d.formula_desc,
+        d.formula_expr,
+        d.formula_method,
+        d.id,
+        d.is_deleted,
+        d.json_key,
+        d.NAME,
+        d.name_zh,
+        d.one_level,
+        d.one_level_zh,
+        d.param,
+        d.path,
+        d.revison,
+        d.STATUS,
+        d.tenant_id,
         d.three_level,
         d.three_level_zh,
         d.two_level,
         d.two_level_zh,
-        d.one_level,
-        d.one_level_zh,
-        d.json_key,
+        d.type,
         d.type_no,
-        d.status
+        d.update_by,
+        d.update_time
     </sql>
 
     <select id="selectAll" resultType="com.kexun.entity.FieldDefineEntity">