品类管理查询功能

This commit is contained in:
sunyu
2025-07-31 16:12:04 +08:00
parent d0f3648087
commit 67e42d35c9
2 changed files with 33 additions and 0 deletions

View File

@ -16,6 +16,38 @@
<result column="update_by" jdbcType="VARCHAR" property="updateBy"/>
<result column="update_date" jdbcType="TIMESTAMP" property="updateDate"/>
</resultMap>
<!-- 模糊查询品类名称 -->
<select id="findByCategoryNameLike" resultType="com.coscoshipping.ebtp.system.category.maintenance.entity.CoscoCategoryMaintenanceVO">
SELECT * FROM cosco_category_maintenance
WHERE version_id = #{versionId}
<if test="categoryName!=null and categoryName!=''">
AND category_name LIKE CONCAT('%', #{categoryName}, '%')
</if>
<if test="code!=null and code!=''">
AND code LIKE CONCAT('%', #{code}, '%')
</if>
</select>
<!-- 根据父ID查询节点 -->
<select id="findByParentId" resultType="com.coscoshipping.ebtp.system.category.maintenance.entity.CoscoCategoryMaintenanceVO">
SELECT * FROM cosco_category_maintenance
WHERE id = #{parentId}
AND version_id = #{versionId}
</select>
<!-- 批量查询节点 -->
<select id="findAllByIds" resultType="com.coscoshipping.ebtp.system.category.maintenance.entity.CoscoCategoryMaintenanceVO">
SELECT * FROM cosco_category_maintenance
WHERE id IN
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
AND version_id = #{versionId}
</select>
<insert id="saveData">
INSERT INTO cosco_category_maintenance (`version_id`, `parent_id`, `path`, `category_name`, `code`, `status`)
VALUES ( #{categoryMaintenance.versionId},#{categoryMaintenance.parentId},#{categoryMaintenance.path},

View File

@ -93,6 +93,7 @@ mconfig:
app-id: 1
feign:
name:
assess: 1
usercenter: 1
tender: 1
rsms: 1