Parcourir la source

线元数据问题修复

yangyj il y a 3 ans
Parent
commit
96cc835ce4

+ 2 - 2
blade-service/blade-business/src/main/java/org/springblade/business/mapper/MileagexyMapper.xml

@@ -39,11 +39,11 @@
     </resultMap>
 
     <select id="getLast" resultMap="mileagexyResultMap">
-        select * from t_om_mileagexy  where partId = #{partId}   and project_id =#{projectId}
+        select * from t_om_mileagexy  where part_id = #{partId}   and project_id =#{projectId}
         <if test="orderNum!=null and orderNum != ''">
             and order_num = #{orderNum}
         </if>
-        order by orderNum DESC
+        order by order_num DESC
     </select>
 
 </mapper>