刘小明
2024-09-19 850915d9a5dd29a231724aa1c3be992a4f6c5e4a
pms-parent/pms-global/src/main/resources/mapper/PltProductMapper.xml
@@ -211,7 +211,7 @@
    select max(code) from plt_product
  </select>
    <select id="exists" resultType="java.lang.Boolean">
        select count(1) from plt_product where name = #{name}
        select count(1) from plt_product where name = #{name} and type = #{type}
        <if test="id != null">
            and id != #{id}
        </if>