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/ProductImageMapper.xml | 30 ++++++++++++++++++++++++++++++ 1 files changed, 30 insertions(+), 0 deletions(-) diff --git a/oying-system/src/main/resources/mapper/pc/product/ProductImageMapper.xml b/oying-system/src/main/resources/mapper/pc/product/ProductImageMapper.xml new file mode 100644 index 0000000..c79fe26 --- /dev/null +++ b/oying-system/src/main/resources/mapper/pc/product/ProductImageMapper.xml @@ -0,0 +1,30 @@ +<?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.ProductImageMapper"> + <resultMap id="BaseResultMap" type="com.oying.modules.pc.product.domain.ProductImage"> + <id column="image_id" property="imageId"/> + <result column="product_id" property="productId"/> + <result column="cloud_storage_id" property="cloudStorageId"/> + <result column="image_type" property="imageType"/> + <result column="image_url" property="imageUrl"/> + <result column="sort_weight" property="sortWeight"/> + <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"> + image_id, product_id, cloud_storage_id, image_type, image_url, sort_weight, create_by, create_time, update_by, update_time + </sql> + + <select id="findAll" resultMap="BaseResultMap"> + select + <include refid="Base_Column_List"/> + from pc_product_image + <where> + </where> + order by image_id desc + </select> + +</mapper> \ No newline at end of file -- Gitblit v1.9.3