| | |
| | | |
| | | <!-- 扩展字段 --> |
| | | <result property="shopName" column="SHOP_NAME"/> |
| | | <result property="shopShortName" column="SHOP_SHORT_NAME"/> |
| | | <result property="vipPhone" column="PHONE"/> |
| | | |
| | | |
| | |
| | | a.*, |
| | | c.su_name as STAFF_NAME, |
| | | d.SHOP_NAME, |
| | | d.shop_short_name, |
| | | b.PHONE, |
| | | b.VIP_NAME |
| | | from sys_order a |
| | |
| | | <select id="selectApiOrderListInPage" resultType="com.matrix.system.app.vo.OrderDetailVo"> |
| | | select |
| | | a.id orderId, |
| | | a.VIP_ID vipId, |
| | | a.ORDER_NO orderNo, |
| | | a.ORDER_TIME orderTime, |
| | | a.STATU orderStatus, |
| | |
| | | </if> |
| | | <if test="record.shopId != null"> |
| | | and a.shop_id=#{record.shopId} |
| | | </if> |
| | | <if test="record.companyId != null"> |
| | | and a.company_id=#{record.companyId} |
| | | </if> |
| | | </where> |
| | | <if test="pageVo !=null"><!-- 判断pageVo对象是否为空 --> |
| | |
| | | </if> |
| | | <if test="record.shopId != null"> |
| | | and a.shop_id=#{record.shopId} |
| | | </if> |
| | | <if test="record.companyId != null"> |
| | | and a.company_id=#{record.companyId} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | from sys_order a |
| | | left join sys_shop_info b on a.SHOP_ID=b.ID |
| | | <where> |
| | | a.statu in ('已付款', '欠款') |
| | | <if test="record.companyId != null"> |
| | | and a.company_id=#{record.companyId} |
| | | </if> |
| | |
| | | group by a.SHOP_ID |
| | | order by amount desc, a.shop_id |
| | | </select> |
| | | |
| | | </mapper> |