|
@@ -12,11 +12,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="createTime" column="create_time" />
|
|
|
<result property="updateTime" column="update_time" />
|
|
|
<result property="productIcon" column="product_icon" />
|
|
|
+ <result property="weight" column="weight" />
|
|
|
<result property="status" column="status" />
|
|
|
</resultMap>
|
|
|
|
|
|
<sql id="selectProductTypeInfoVo">
|
|
|
- select id, product_name, pid, product_describe, create_time, update_time,product_icon ,status from product_type_info
|
|
|
+ select id, product_name, pid, product_describe, create_time, update_time,product_icon ,weight,status from product_type_info
|
|
|
</sql>
|
|
|
|
|
|
<select id="selectProductTypeInfoList" resultType="com.miaxis.product.vo.ProductTypeInfoVo">
|
|
@@ -28,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
py.create_time,
|
|
|
py.update_time,
|
|
|
py.product_icon ,
|
|
|
+ py.weight,
|
|
|
f.file_url as fileUrl,
|
|
|
py.status
|
|
|
from product_type_info py
|
|
@@ -38,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productDescribe != null and productDescribe != ''"> and product_describe = #{describe}</if>
|
|
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
|
|
</where>
|
|
|
+ ORDER BY weight DESC
|
|
|
</select>
|
|
|
|
|
|
<!--获取品类详情信息-->
|
|
@@ -50,6 +53,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
py.create_time,
|
|
|
py.update_time,
|
|
|
py.product_icon ,
|
|
|
+ py.weight,
|
|
|
f.file_url as fileUrl,
|
|
|
py.status
|
|
|
from product_type_info py
|
|
@@ -65,10 +69,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
py.pid,
|
|
|
py.product_describe,
|
|
|
py.product_icon ,
|
|
|
+ py.weight,
|
|
|
f.file_url as fileUrl,
|
|
|
py.status
|
|
|
from product_type_info py
|
|
|
LEFT JOIN file_info f on f.file_id = py.product_icon
|
|
|
+ ORDER BY weight DESC
|
|
|
</select>
|
|
|
|
|
|
|