|
@@ -695,7 +695,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
CONCAT( cet.education_name, cb.business_name, cpt.project_name ) AS business_name,
|
|
CONCAT( cet.education_name, cb.business_name, cpt.project_name ) AS business_name,
|
|
|
m.category_name AS majorName,
|
|
m.category_name AS majorName,
|
|
|
g.goods_name AS categoryName,
|
|
g.goods_name AS categoryName,
|
|
|
- og.create_time AS createTime
|
|
|
|
|
|
|
+ og.create_time AS createTimeStamp
|
|
|
FROM
|
|
FROM
|
|
|
`order` o
|
|
`order` o
|
|
|
LEFT JOIN order_goods og ON o.order_sn = og.order_sn
|
|
LEFT JOIN order_goods og ON o.order_sn = og.order_sn
|
|
@@ -710,10 +710,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND og.`status` = 1
|
|
AND og.`status` = 1
|
|
|
AND o.user_id = #{userId}
|
|
AND o.user_id = #{userId}
|
|
|
AND INSTR( CONCAT( cet.education_name, cb.business_name, cpt.project_name ), #{businessName} )
|
|
AND INSTR( CONCAT( cet.education_name, cb.business_name, cpt.project_name ), #{businessName} )
|
|
|
- AND INSTR( m.category_name, #{majorName} )
|
|
|
|
|
ORDER BY
|
|
ORDER BY
|
|
|
og.create_time DESC
|
|
og.create_time DESC
|
|
|
- LIMIT 1
|
|
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getUserOrderCount" parameterType="map" resultType="java.lang.Long">
|
|
<select id="getUserOrderCount" parameterType="map" resultType="java.lang.Long">
|