| | |
| | | a.reserve_time reserveTime, |
| | | a.status status, |
| | | a.remark remark, |
| | | b.nick_name name, |
| | | a.username name, |
| | | b.mobile_phone mobilePhone, |
| | | (select ifnull(sum(price*weight*40),0) from xzx_jhy_order_items where order_id = a.id) totalPrice, |
| | | (select ifnull(sum(score),0) from xzx_jhy_order_items where order_id = a.id) totalPrice, |
| | | (select ifnull(sum(weight),0) from xzx_jhy_order_items where order_id = a.id) totalWeight, |
| | | d.username username |
| | | FROM |
| | |
| | | and d.username like concat('%',#{record.jwyName},'%') |
| | | </if> |
| | | <if test="record.account != null and record.account != ''"> |
| | | and ( b.nick_name like concat('%',#{record.account},'%') |
| | | and ( a.username like concat('%',#{record.account},'%') |
| | | or b.mobile_phone like concat('%',#{record.accountPhone},'%') ) |
| | | </if> |
| | | <if test="record.reserveTimeStart != null"> |