| | |
| | | </update> |
| | | |
| | | <select id="getReceivable" resultType="com.stylefeng.guns.modular.system.model.ReceivableVo"> |
| | | select id,invoice_number invoiceNumber,pay_time invoiceTime ,allTotal total, case 1 when paid=allTotal THEN 1 else 2 end as state from t_order |
| | | select id,invoice_number invoiceNumber,pay_time invoiceTime ,allTotal total, case 1 when paid=allTotal THEN 1 else 2 end as state ,change from t_order |
| | | where user_id =#{userId} and status !=17 |
| | | <if test="sTime !=null"> |
| | | and pay_time between #{sTime} and #{eTime} |
| | |
| | | <select id="getIndexTotal" resultType="java.math.BigDecimal"> |
| | | select sum(allTotal-pay_money) from t_order where `status` !=0 |
| | | </select> |
| | | <select id="getOrderListOne" resultType="com.stylefeng.guns.modular.system.model.OrderListVo"> |
| | | <select id="getOrderListOne" resultType="com.stylefeng.guns.modular.system.model.OrderListVo"> |
| | | SELECT |
| | | t1.id orderId, |
| | | t2.container_number container, |
| | |
| | | select * from t_order where user_id =#{userId} and allTotal > paid and status !=17 |
| | | </select> |
| | | |
| | | <select id="getLonLat" resultType="java.util.Map"> |
| | | select lon,lat from t_order_lonlat where orderId =#{orderId} |
| | | </select> |
| | | </mapper> |