|
@@ -87,6 +87,33 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getTotalMoney" resultType="string">
|
|
|
+ select
|
|
|
+ sum(total) as orderTotal
|
|
|
+ from order_info
|
|
|
+ <where>
|
|
|
+ <if test="isShare != null">
|
|
|
+ and is_share = #{isShare }
|
|
|
+ </if>
|
|
|
+ <if test="tradeType != null">
|
|
|
+ and trade_type = #{tradeType }
|
|
|
+ </if>
|
|
|
+ <if test="dqbh != null and dqbh != ''">
|
|
|
+ and dqbh = #{dqbh}
|
|
|
+ </if>
|
|
|
+ <if test="schoolName != null and schoolName != ''">
|
|
|
+ and school_name like concat('%', #{schoolName}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="startTime != null">
|
|
|
+ and DATE_FORMAT(create_time,'%Y%m%d')<![CDATA[ >= ]]> #{startTime}
|
|
|
+ </if>
|
|
|
+ <if test="endTime != null">
|
|
|
+ and DATE_FORMAT(create_time,'%Y%m%d') <![CDATA[ < ]]> #{endTime}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
<select id="selectSchoolOrderDetailed" resultType="com.miaxis.order.domain.OrderInfo">
|
|
|
select * from order_info
|
|
@@ -110,5 +137,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
order by success_time desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getByOutTradeNo" parameterType="string" resultType="com.miaxis.order.domain.OrderInfo">
|
|
|
+ select * from order_info where out_trade_no =#{outTradeNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
+ <select id="getByOutTradeNo" parameterType="string" resultType="com.miaxis.order.domain.OrderInfo">
|
|
|
+ select * from order_info where out_trade_no =#{outTradeNo}
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
</mapper>
|