|
|
@@ -51,6 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="pdfUrl" column="pdf_url" />
|
|
|
<result property="totalAmount" column="total_amount" />
|
|
|
<result property="batchNum" column="batch_num" />
|
|
|
+ <result property="paymentType" column="payment_type" />
|
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
@@ -58,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
select bwo.waybill_id, bwo.waybill_no, bwo.external_waybill_no, bwo.order_type, bwo.sender_name, bwo.sender_phone, bwo.sender_province, bwo.sender_city, bwo.sender_county, bwo.sender_address, bwo.receiver_name,
|
|
|
bwo.receiver_phone, bwo.receiver_province, bwo.receiver_city, bwo.receiver_county, bwo.receiver_address, bwo.goods_name, bwo.goods_weight, bwo.goods_volume, bwo.goods_qty, bwo.order_status, bwo.pickup_type,
|
|
|
bwo.send_start_time, bwo.send_end_time, bwo.pickup_time, bwo.delivery_time, bwo.sign_time, bwo.cancel_reason, bwo.parent_waybill_id, bwo.invoice_flag, bwo.adjust_flag, bwo.remark, bwo.create_time, bwo.update_time,
|
|
|
- bwo.del_flag, bwo.create_by, bwo.update_by, bwo.dept_id, bwo.user_id, bwo.product_code, bwo.added_service, u.nick_name, d.dept_name, bwo.pdf_url,
|
|
|
+ bwo.del_flag, bwo.create_by, bwo.update_by, bwo.dept_id, bwo.user_id, bwo.product_code, bwo.added_service, u.nick_name, d.dept_name, bwo.pdf_url, bwo.payment_type,
|
|
|
sum(bwcd.amount) as total_amount
|
|
|
from biz_waybill_order bwo
|
|
|
left join sys_user u on bwo.user_id = u.user_id
|
|
|
@@ -112,6 +113,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="params.endTime != null and params.endTime != ''"><!-- 结束时间检索 -->
|
|
|
and date_format(bwo.create_time,'%Y%m%d') <= date_format(#{params.endTime},'%Y%m%d')
|
|
|
</if>
|
|
|
+ <if test="paymentType != null and paymentType != ''">
|
|
|
+ AND payment_type = #{paymentType}
|
|
|
+ </if>
|
|
|
<!-- 数据范围过滤 -->
|
|
|
${params.dataScope}
|
|
|
</where>
|
|
|
@@ -168,6 +172,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productCode != null">product_code,</if>
|
|
|
<if test="addedService != null">added_service,</if>
|
|
|
<if test="batchNum != null">batch_num,</if>
|
|
|
+ <if test="paymentType != null">payment_type,</if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="waybillNo != null">#{waybillNo},</if>
|
|
|
@@ -211,6 +216,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productCode != null">#{productCode},</if>
|
|
|
<if test="addedService != null">#{addedService},</if>
|
|
|
<if test="batchNum != null">#{batchNum},</if>
|
|
|
+ <if test="paymentType != null">#{paymentType},</if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
|
|
|
@@ -258,6 +264,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="productCode != null">product_code = #{productCode},</if>
|
|
|
<if test="addedService != null">added_service = #{addedService},</if>
|
|
|
<if test="pdfUrl != null">pdf_url = #{pdfUrl},</if>
|
|
|
+ <if test="paymentType != null">payment_type = #{paymentType},</if>
|
|
|
</trim>
|
|
|
where waybill_id = #{waybillId}
|
|
|
</update>
|