123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <?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.hwrj.cloud.admin.dao.OmsPreItemDao">
- <resultMap id="BaseResultMap" type="com.hwrj.cloud.admin.model.OmsPreItem">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="product_id" jdbcType="BIGINT" property="productId" />
- <result column="member_id" jdbcType="BIGINT" property="memberId" />
- <result column="comp_id" jdbcType="BIGINT" property="compId" />
- <result column="push_id" jdbcType="BIGINT" property="pushId" />
- <result column="origin_id" jdbcType="BIGINT" property="originId" />
- <result column="origin_name" jdbcType="VARCHAR" property="originName" />
- <result column="comp_name" jdbcType="VARCHAR" property="compName" />
- <result column="price" jdbcType="DECIMAL" property="price" />
- <result column="product_pic" jdbcType="VARCHAR" property="productPic" />
- <result column="product_name" jdbcType="VARCHAR" property="productName" />
- <result column="product_sub_title" jdbcType="VARCHAR" property="productSubTitle" />
- <result column="product_sku_code" jdbcType="VARCHAR" property="productSkuCode" />
- <result column="member_nickname" jdbcType="VARCHAR" property="memberNickname" />
- <result column="create_date" jdbcType="TIMESTAMP" property="createDate" />
- <result column="modify_date" jdbcType="TIMESTAMP" property="modifyDate" />
- <result column="delete_status" jdbcType="INTEGER" property="deleteStatus" />
- <result column="product_category_id" jdbcType="BIGINT" property="productCategoryId" />
- <result column="product_brand" jdbcType="VARCHAR" property="productBrand" />
- <result column="product_sn" jdbcType="VARCHAR" property="productSn" />
- <result column="product_attr" jdbcType="VARCHAR" property="productAttr" />
- </resultMap>
- <select id="searchOmsPreItemDao" resultMap="BaseResultMap">
- select * from oms_pre_item
- </select>
- <delete id="deletePreItemDao" parameterType="java.lang.Long" >
- delete from ums_pre_item where id = #{id}
- </delete>
- <select id="weblist" resultType="com.hwrj.cloud.admin.model.OmsPreItem" parameterType="com.hwrj.cloud.admin.dto.param.PreItemWebPageParm">
- SELECT
- a.id AS id,
- a.product_id AS productId,
- a.member_id AS memberId,
- a.comp_id AS compId,
- a.push_id AS pushId,
- a.origin_id AS originId,
- a.origin_name AS originName,
- a.comp_name AS compName,
- a.price AS price,
- a.product_pic AS productPic,
- a.product_name AS productName,
- a.product_sub_title AS productSubTitle,
- a.product_sku_code AS productSkuCode,
- a.member_nickname AS memberNickname,
- a.create_date AS createDate,
- a.modify_date AS modifyDate,
- a.delete_status AS deleteStatus,
- a.product_category_id AS productCategoryId,
- a.product_brand AS productBrand,
- a.product_sn AS productSn,
- a.product_attr AS productAttr
- FROM
- oms_pre_item a
- WHERE
- 1 = 1
- <if test="compId !=null">
- and a.comp_id = #{compId}
- </if>
- <if test="productName !=null and productName!=''">
- and a.product_name LIKE concat("%",#{productName},"%")
- </if>
- ORDER BY a.create_date DESC
- </select>
- </mapper>
|