|
@@ -57,8 +57,17 @@
|
|
|
|
|
|
|
|
|
WHERE 1=1
|
|
|
- <if test="name != null and name.trim() != ''">
|
|
|
- AND name LIKE concat('%',#{name},'%')
|
|
|
+ <if test="orderSn != null and orderSn.trim() != ''">
|
|
|
+ AND record.`order_sn` LIKE concat('%',#{orderSn},'%')
|
|
|
+ </if>
|
|
|
+ <if test="cashierSn != null and cashierSn.trim() != ''">
|
|
|
+ AND record.`cashier_sn` LIKE concat('%',#{cashierSn},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sallerId != null and sallerId.trim() != ''">
|
|
|
+ AND record.`saller_id` LIKE concat('%',#{sallerId},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sallerName != null and sallerName.trim() != ''">
|
|
|
+ AND su.`username` LIKE concat('%',#{sallerName},'%')
|
|
|
</if>
|
|
|
<choose>
|
|
|
<when test="sidx != null and sidx.trim() != ''">
|
|
@@ -79,9 +88,18 @@
|
|
|
left join mall_store store on su.store_id = store.id
|
|
|
left join mall_store_topic topic on topic.id = record.discount_id
|
|
|
WHERE 1=1
|
|
|
- <if test="name != null and name.trim() != ''">
|
|
|
- AND name LIKE concat('%',#{name},'%')
|
|
|
- </if>
|
|
|
+ <if test="orderSn != null and orderSn.trim() != ''">
|
|
|
+ AND record.`order_sn` LIKE concat('%',#{orderSn},'%')
|
|
|
+ </if>
|
|
|
+ <if test="cashierSn != null and cashierSn.trim() != ''">
|
|
|
+ AND record.`cashier_sn` LIKE concat('%',#{cashierSn},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sallerId != null and sallerId.trim() != ''">
|
|
|
+ AND record.`saller_id` LIKE concat('%',#{sallerId},'%')
|
|
|
+ </if>
|
|
|
+ <if test="sallerName != null and sallerName.trim() != ''">
|
|
|
+ AND su.`username` LIKE concat('%',#{sallerName},'%')
|
|
|
+ </if>
|
|
|
</select>
|
|
|
|
|
|
<insert id="save" parameterType="com.kmall.admin.entity.SaleRecordEntity" useGeneratedKeys="true" keyProperty="msrId">
|