|
@@ -101,12 +101,12 @@
|
|
|
AND spo.status_ = #{status}
|
|
|
</if>
|
|
|
<if test="search != null and search != ''">
|
|
|
- AND (su.user_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%'))
|
|
|
+ AND (su.username_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%'))
|
|
|
</if>
|
|
|
</where>
|
|
|
</sql>
|
|
|
<select id="queryStudentGoodsOrders" resultMap="StudentGoodsSellDto">
|
|
|
- SELECT spo.*,sgs.goods_json_,sgs.total_amount_,sgs.market_amount_,su.user_name_ FROM student_payment_order spo
|
|
|
+ SELECT spo.*,sgs.goods_json_,sgs.total_amount_,sgs.market_amount_,su.username_ FROM student_payment_order spo
|
|
|
LEFT JOIN student_goods_sell sgs ON spo.order_no_ = sgs.order_no_
|
|
|
LEFT JOIN sys_user su ON sgs.user_id_ = su.id_
|
|
|
<include refid="queryStudentGoodsOrdersSql"/>
|