Browse Source

达梦数据库SQL关键字修改

wanggaokun 1 năm trước cách đây
mục cha
commit
f836385870

+ 5 - 5
PHM-admin/phm-manage/src/main/resources/mapper/manage/DataDownResultMapper.xml

@@ -6,7 +6,7 @@
 
     <resultMap type="DataDownResult" id="DataDownResultResult">
         <result property="id" column="id"/>
-        <result property="order" column="order"/>
+        <result property="order" column="orders"/>
         <result property="name" column="name"/>
         <result property="path" column="path"/>
         <result property="remark" column="remark"/>
@@ -19,14 +19,14 @@
 
     <sql id="selectDataDownResultVo">
         select id,
-        order, name, path, remark, is_delete, create_by, create_time, update_by, update_time
+        orders, name, path, remark, is_delete, create_by, create_time, update_by, update_time
         from PHM.PHM_DATA_DOWN_RESULT
     </sql>
 
     <select id="selectDataDownResultList" parameterType="DataDownResult" resultMap="DataDownResultResult">
         <include refid="selectDataDownResultVo"/>
         <where>
-            <if test="order != null  and order != ''">and order = #{order}</if>
+            <if test="order != null  and order != ''">and orders = #{order}</if>
             <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
             <if test="path != null  and path != ''">and path = #{path}</if>
             <if test="isDelete != null ">and is_delete = #{isDelete}</if>
@@ -42,7 +42,7 @@
         insert into PHM.PHM_DATA_DOWN_RESULT
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
-            <if test="order != null">order,</if>
+            <if test="order != null">orders,</if>
             <if test="name != null">name,</if>
             <if test="path != null">path,</if>
             <if test="remark != null">remark,</if>
@@ -69,7 +69,7 @@
     <update id="updateDataDownResult" parameterType="DataDownResult">
         update PHM.PHM_DATA_DOWN_RESULT
         <trim prefix="SET" suffixOverrides=",">
-            <if test="order != null">order = #{order},</if>
+            <if test="order != null">orders = #{order},</if>
             <if test="name != null">name = #{name},</if>
             <if test="path != null">path = #{path},</if>
             <if test="remark != null">remark = #{remark},</if>

+ 5 - 5
PHM-admin/phm-manage/src/main/resources/mapper/manage/DiagnoseResultMapper.xml

@@ -11,7 +11,7 @@
         <result property="faultCode" column="fault_code"/>
         <result property="faultSource" column="fault_source"/>
         <result property="analysisTime" column="analysis_time"/>
-        <result property="comment" column="comment"/>
+        <result property="comment" column="comments"/>
         <result property="isDelete" column="is_delete"/>
         <result property="createBy" column="create_by"/>
         <result property="createTime" column="create_time"/>
@@ -26,7 +26,7 @@
                fault_code,
                fault_source,
                analysis_time,
-               comment,
+               comments,
                is_delete,
                create_by,
                create_time,
@@ -43,7 +43,7 @@
             <if test="faultCode != null  and faultCode != ''">and fault_code = #{faultCode}</if>
             <if test="faultSource != null  and faultSource != ''">and fault_source = #{faultSource}</if>
             <if test="analysisTime != null ">and analysis_time = #{analysisTime}</if>
-            <if test="comment != null  and comment != ''">and comment = #{comment}</if>
+            <if test="comment != null  and comment != ''">and comments = #{comment}</if>
             <if test="isDelete != null ">and is_delete = #{isDelete}</if>
         </where>
     </select>
@@ -62,7 +62,7 @@
             <if test="faultCode != null">fault_code,</if>
             <if test="faultSource != null">fault_source,</if>
             <if test="analysisTime != null">analysis_time,</if>
-            <if test="comment != null">comment,</if>
+            <if test="comment != null">comments,</if>
             <if test="isDelete != null">is_delete,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createTime != null">create_time,</if>
@@ -93,7 +93,7 @@
             <if test="faultCode != null">fault_code = #{faultCode},</if>
             <if test="faultSource != null">fault_source = #{faultSource},</if>
             <if test="analysisTime != null">analysis_time = #{analysisTime},</if>
-            <if test="comment != null">comment = #{comment},</if>
+            <if test="comment != null">comments = #{comment},</if>
             <if test="isDelete != null">is_delete = #{isDelete},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createTime != null">create_time = #{createTime},</if>

+ 5 - 5
PHM-admin/phm-manage/src/main/resources/mapper/manage/FaultAnalyzeResultMapper.xml

@@ -9,7 +9,7 @@
         <result property="moduleName" column="module_name"/>
         <result property="moduleType" column="module_type"/>
         <result property="analyzeInfo" column="analyze_info"/>
-        <result property="comment" column="comment"/>
+        <result property="comment" column="comments"/>
         <result property="isDelete" column="is_delete"/>
         <result property="createBy" column="create_by"/>
         <result property="createTime" column="create_time"/>
@@ -22,7 +22,7 @@
                module_name,
                module_type,
                analyze_info,
-               comment,
+               comments,
                is_delete,
                create_by,
                create_time,
@@ -38,7 +38,7 @@
             </if>
             <if test="moduleType != null  and moduleType != ''">and module_type = #{moduleType}</if>
             <if test="analyzeInfo != null  and analyzeInfo != ''">and analyze_info = #{analyzeInfo}</if>
-            <if test="comment != null  and comment != ''">and comment = #{comment}</if>
+            <if test="comment != null  and comment != ''">and comments = #{comment}</if>
             <if test="isDelete != null ">and is_delete = #{isDelete}</if>
             <if test="createBy != null  and createBy != ''">and create_by = #{createBy}</if>
             <if test="createTime != null ">and create_time = #{createTime}</if>
@@ -59,7 +59,7 @@
             <if test="moduleName != null">module_name,</if>
             <if test="moduleType != null">module_type,</if>
             <if test="analyzeInfo != null">analyze_info,</if>
-            <if test="comment != null">comment,</if>
+            <if test="comment != null">comments,</if>
             <if test="isDelete != null">is_delete,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createTime != null">create_time,</if>
@@ -86,7 +86,7 @@
             <if test="moduleName != null">module_name = #{moduleName},</if>
             <if test="moduleType != null">module_type = #{moduleType},</if>
             <if test="analyzeInfo != null">analyze_info = #{analyzeInfo},</if>
-            <if test="comment != null">comment = #{comment},</if>
+            <if test="comment != null">comments = #{comment},</if>
             <if test="isDelete != null">is_delete = #{isDelete},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createTime != null">create_time = #{createTime},</if>

+ 5 - 5
PHM-admin/phm-manage/src/main/resources/mapper/manage/ForecastModelMapper.xml

@@ -6,7 +6,7 @@
 
     <resultMap type="ForecastModel" id="ForecastModelResult">
         <result property="id" column="id"/>
-        <result property="object" column="object"/>
+        <result property="object" column="object_name"/>
         <result property="method" column="method"/>
         <result property="trainsRange" column="trains_range"/>
         <result property="accuracy" column="accuracy"/>
@@ -19,7 +19,7 @@
 
     <sql id="selectForecastModelVo">
         select id,
-               object,
+               object_name,
                method,
                trains_range,
                accuracy,
@@ -34,7 +34,7 @@
     <select id="selectForecastModelList" parameterType="ForecastModel" resultMap="ForecastModelResult">
         <include refid="selectForecastModelVo"/>
         <where>
-            <if test="object != null  and object != ''">and object = #{object}</if>
+            <if test="object != null  and object != ''">and object_name = #{object}</if>
             <if test="method != null  and method != ''">and method = #{method}</if>
             <if test="trainsRange != null  and trainsRange != ''">and trains_range = #{trainsRange}</if>
             <if test="accuracy != null  and accuracy != ''">and accuracy = #{accuracy}</if>
@@ -55,7 +55,7 @@
         insert into PHM.PHM_FORECAST_MODEL
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
-            <if test="object != null">object,</if>
+            <if test="object != null">object_name,</if>
             <if test="method != null">method,</if>
             <if test="trainsRange != null">trains_range,</if>
             <if test="accuracy != null">accuracy,</if>
@@ -82,7 +82,7 @@
     <update id="updateForecastModel" parameterType="ForecastModel">
         update PHM.PHM_FORECAST_MODEL
         <trim prefix="SET" suffixOverrides=",">
-            <if test="object != null">object = #{object},</if>
+            <if test="object != null">object_name = #{object},</if>
             <if test="method != null">method = #{method},</if>
             <if test="trainsRange != null">trains_range = #{trainsRange},</if>
             <if test="accuracy != null">accuracy = #{accuracy},</if>

+ 4 - 4
PHM-admin/phm-manage/src/main/resources/mapper/manage/ForecastResultMapper.xml

@@ -11,7 +11,7 @@
         <result property="snsCode" column="sns_code"/>
         <result property="forecastFault" column="forecast_fault"/>
         <result property="analysisTime" column="analysis_time"/>
-        <result property="comment" column="comment"/>
+        <result property="comment" column="comments"/>
         <result property="isDelete" column="is_delete"/>
         <result property="createBy" column="create_by"/>
         <result property="createTime" column="create_time"/>
@@ -26,7 +26,7 @@
                sns_code,
                forecast_fault,
                analysis_time,
-               comment,
+               comments,
                is_delete,
                create_by,
                create_time,
@@ -60,7 +60,7 @@
             <if test="snsCode != null">sns_code,</if>
             <if test="forecastFault != null">forecast_fault,</if>
             <if test="analysisTime != null">analysis_time,</if>
-            <if test="comment != null">comment,</if>
+            <if test="comment != null">comments,</if>
             <if test="isDelete != null">is_delete,</if>
             <if test="createBy != null">create_by,</if>
             <if test="createTime != null">create_time,</if>
@@ -91,7 +91,7 @@
             <if test="snsCode != null">sns_code = #{snsCode},</if>
             <if test="forecastFault != null">forecast_fault = #{forecastFault},</if>
             <if test="analysisTime != null">analysis_time = #{analysisTime},</if>
-            <if test="comment != null">comment = #{comment},</if>
+            <if test="comment != null">comments = #{comment},</if>
             <if test="isDelete != null">is_delete = #{isDelete},</if>
             <if test="createBy != null">create_by = #{createBy},</if>
             <if test="createTime != null">create_time = #{createTime},</if>

+ 5 - 5
PHM-admin/phm-manage/src/main/resources/mapper/manage/MaintenanceTestControlMapper.xml

@@ -7,7 +7,7 @@
     <resultMap type="MaintenanceTestControl" id="MaintenanceTestControlResult">
         <result property="id" column="id"/>
         <result property="maintenanceControl" column="maintenance_control"/>
-        <result property="object" column="object"/>
+        <result property="object" column="object_name"/>
         <result property="name" column="name"/>
         <result property="applicationDoc" column="application_doc"/>
         <result property="faultData" column="fault_data"/>
@@ -22,7 +22,7 @@
     <sql id="selectMaintenanceTestControlVo">
         select id,
                maintenance_control,
-               object,
+               object_name,
                name,
                application_doc,
                fault_data,
@@ -42,7 +42,7 @@
             <if test="maintenanceControl != null  and maintenanceControl != ''">and maintenance_control =
                 #{maintenanceControl}
             </if>
-            <if test="object != null  and object != ''">and object = #{object}</if>
+            <if test="object != null  and object != ''">and object_name = #{object}</if>
             <if test="name != null  and name != ''">and name like concat('%', #{name}, '%')</if>
             <if test="applicationDoc != null  and applicationDoc != ''">and application_doc = #{applicationDoc}</if>
             <if test="faultData != null  and faultData != ''">and fault_data = #{faultData}</if>
@@ -65,7 +65,7 @@
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
             <if test="maintenanceControl != null">maintenance_control,</if>
-            <if test="object != null">object,</if>
+            <if test="object != null">object_name,</if>
             <if test="name != null">name,</if>
             <if test="applicationDoc != null">application_doc,</if>
             <if test="faultData != null">fault_data,</if>
@@ -96,7 +96,7 @@
         update PHM.PHM_MAINTENANCE_TEST_CONTROL
         <trim prefix="SET" suffixOverrides=",">
             <if test="maintenanceControl != null">maintenance_control = #{maintenanceControl},</if>
-            <if test="object != null">object = #{object},</if>
+            <if test="object != null">object_name = #{object},</if>
             <if test="name != null">name = #{name},</if>
             <if test="applicationDoc != null">application_doc = #{applicationDoc},</if>
             <if test="faultData != null">fault_data = #{faultData},</if>

+ 5 - 5
PHM-admin/phm-manage/src/main/resources/mapper/manage/PerformanceMonitorModelMapper.xml

@@ -6,7 +6,7 @@
 
     <resultMap type="PerformanceMonitorModel" id="PerformanceMonitorModelResult">
         <result property="id" column="id"/>
-        <result property="object" column="object"/>
+        <result property="object" column="object_name"/>
         <result property="parameter" column="parameter"/>
         <result property="stateCondition" column="state_condition"/>
         <result property="valueMethod" column="value_method"/>
@@ -21,7 +21,7 @@
 
     <sql id="selectPerformanceMonitorModelVo">
         select id,
-               object,
+               object_name,
                parameter,
                state_condition,
                value_method,
@@ -39,7 +39,7 @@
             resultMap="PerformanceMonitorModelResult">
         <include refid="selectPerformanceMonitorModelVo"/>
         <where>
-            <if test="object != null  and object != ''">and object = #{object}</if>
+            <if test="object != null  and object != ''">and object_name = #{object}</if>
             <if test="parameter != null  and parameter != ''">and parameter = #{parameter}</if>
             <if test="stateCondition != null  and stateCondition != ''">and state_condition = #{stateCondition}</if>
             <if test="valueMethod != null  and valueMethod != ''">and value_method = #{valueMethod}</if>
@@ -62,7 +62,7 @@
         insert into PHM.PHM_PERFORMANCE_MONITOR_MODEL
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="id != null">id,</if>
-            <if test="object != null">object,</if>
+            <if test="object != null">object_name,</if>
             <if test="parameter != null">parameter,</if>
             <if test="stateCondition != null">state_condition,</if>
             <if test="valueMethod != null">value_method,</if>
@@ -93,7 +93,7 @@
     <update id="updatePerformanceMonitorModel" parameterType="PerformanceMonitorModel">
         update PHM.PHM_PERFORMANCE_MONITOR_MODEL
         <trim prefix="SET" suffixOverrides=",">
-            <if test="object != null">object = #{object},</if>
+            <if test="object != null">object_name = #{object},</if>
             <if test="parameter != null">parameter = #{parameter},</if>
             <if test="stateCondition != null">state_condition = #{stateCondition},</if>
             <if test="valueMethod != null">value_method = #{valueMethod},</if>