From 18813ca83b94c807e35756a8a5f52effa5b99ba8 Mon Sep 17 00:00:00 2001 From: zepengdev <lzpsmith@outlook.com> Date: Tue, 17 Jun 2025 16:00:42 +0800 Subject: [PATCH] feat(product): 新增商品批量查询接口 --- oying-system/src/main/resources/mapper/pc/product/ProductLabelMapper.xml | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/resources/mapper/pc/product/ProductLabelMapper.xml b/oying-system/src/main/resources/mapper/pc/product/ProductLabelMapper.xml new file mode 100644 index 0000000..0403a2f --- /dev/null +++ b/oying-system/src/main/resources/mapper/pc/product/ProductLabelMapper.xml @@ -0,0 +1,28 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" > +<mapper namespace="com.oying.modules.pc.product.mapper.ProductLabelMapper"> + <resultMap id="BaseResultMap" type="com.oying.modules.pc.product.domain.ProductLabel"> + <id column="label_id" property="labelId"/> + <result column="product_id" property="productId"/> + <result column="category_name" property="categoryName"/> + <result column="label_name" property="labelName"/> + <result column="label_value" property="labelValue"/> + <result column="create_by" property="createBy"/> + <result column="create_time" property="createTime"/> + <result column="update_by" property="updateBy"/> + <result column="update_time" property="updateTime"/> + </resultMap> + + <sql id="Base_Column_List"> + label_id, product_id, category_name, label_name, label_value, create_by, create_time, update_by, update_time + </sql> + + <select id="findAll" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from pc_product_label + <where> + </where> + order by label_id desc + </select> +</mapper> \ No newline at end of file -- Gitblit v1.9.3