gaocr 3 éve
szülő
commit
4564765ab6

+ 1 - 1
src/main/resources/mybatis/model/ModelEntityMapper.xml

@@ -65,7 +65,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="projectId != null "> and project_id = #{projectId}</if>
             <if test="versionId != null "> and version_id = #{versionId}</if>
             <if test="entityName != null  and entityName != ''"> and entity_name like concat('%', #{entityName}, '%')</if>
-            <if test="entityCode != null  and entityCode != ''"> and entity_code = #{entityCode}</if>
+            <if test="entityCode != null  and entityCode != ''"> and entity_code like concat('%', #{entityCode}, '%')</if>
             <if test="parentVersionId != null "> and parent_version_id = #{parentVersionId}</if>
         </where>
     </select>

+ 1 - 1
src/main/resources/mybatis/model/ModelVersionMapper.xml

@@ -69,7 +69,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="versionRemark != null  and versionRemark != ''"> and version_remark = #{versionRemark}</if>
             <if test="parentVersionId != null "> and parent_version_id = #{parentVersionId}</if>
         </where>
-        order by version_no desc
+        order by id desc
     </select>
     
     <select id="selectModelVersionById" parameterType="Long" resultMap="ModelVersionResult">