达梦适配修改
This commit is contained in:
+4
-4
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
|
||||
<sql id="selectMaterialClassifyPo">
|
||||
select material_classify_id, organization_id, organization_name, top_organization_id, code, `name`, `level`, parent_code, parent_name, code_path, name_path, remark, nullify, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_classify
|
||||
select material_classify_id, organization_id, organization_name, top_organization_id, code, name, level, parent_code, parent_name, code_path, name_path, remark, nullify, create_time, create_by, create_by_name, update_time, update_by, update_by_name, del_flag from material_classify
|
||||
</sql>
|
||||
|
||||
<sql id="selectMaterialClassifyPo1">
|
||||
@@ -47,10 +47,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
and code = #{code}
|
||||
</if>
|
||||
<if test="name != null and name != ''">
|
||||
and `name` like concat('%', #{name}, '%')
|
||||
and name like concat('%', #{name}, '%')
|
||||
</if>
|
||||
<if test="level != null ">
|
||||
and `level` = #{level}
|
||||
and level = #{level}
|
||||
</if>
|
||||
<if test="parentCode != null and parentCode != ''">
|
||||
and parent_code = #{parentCode}
|
||||
@@ -93,6 +93,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectMaterialClassifyPo"/>
|
||||
WHERE
|
||||
FIND_IN_SET(#{parentCode}, code_path) > 0
|
||||
ORDER BY `level` ASC
|
||||
ORDER BY level ASC
|
||||
</select>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user