liujie
2023-08-31 8d7dbd6d2c0775d45043474c1525ad827b4cd3bd
src/main/java/com/stylefeng/guns/modular/system/dao/mapping/TOrderMapper.xml
@@ -82,7 +82,7 @@
    </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}
@@ -173,7 +173,7 @@
    <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,
@@ -223,4 +223,7 @@
        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>