935090232@qq.com
2022-02-20 c253b555c7905c5136d47cd615ef545fa50cc6ad
zq-erp/src/main/resources/mybatis/mapper/hive/ShoppingGoodsCategoryDao.xml
@@ -208,4 +208,20 @@
      </if>
      ORDER BY sequence
   </select>
   <select id="selectChildNodesByName" resultMap="ShoppingGoodsCategoryMap">
      select * from shopping_goods_category a
      inner join shopping_goods_category b on a.parent_id=b.id and b.parent_id=0
      <if test="record.name != null and record.name != ''">
         and b.name=#{record.name}
      </if>
      <where>
         <if test="record.shopId != null">
            and a.shop_id=#{record.shopId}
         </if>
         <if test="record.companyId != null">
            and a.company_id=#{record.companyId}
         </if>
      </where>
   </select>
</mapper>