| | |
| | | |
| | | |
| | | <select id="getmaximum" > |
| | | select count(*) from sd.delivery where date(create_time)=CURDATE() |
| | | select |
| | | ifnull(SUBSTR(max(right(delivery_id,8)) from 7),0) |
| | | from |
| | | sd.delivery as a |
| | | where |
| | | date(a.create_time) = curdate() |
| | | </select> |
| | | |
| | | <select id="getmaximumMonth"> |
| | |
| | | <select id="getSelectShippingOrderDetailPrinting" > |
| | | select |
| | | d.order_id,d.quantity,round(d.money,0) as money ,d.area,d.project, |
| | | d.customer_id,d.customer_name,d.creator,d.salesman,d.salesman_id |
| | | d.customer_id,d.customer_name,d.creator,d.salesman,d.salesman_id, |
| | | d.processing_note,d.contract_id |
| | | from sd.`order` d |
| | | <where> |
| | | <if test="orderDetail.orderId != null and orderDetail.orderId != ''"> |
| | |
| | | <if test="delivery.area != null and delivery.area != ''"> |
| | | and d.area regexp REGEXP_REPLACE(#{delivery.area},'\\.0+$','') |
| | | </if> |
| | | <if test="delivery.deliveryState != null "> |
| | | and d.delivery_state = #{delivery.deliveryState} |
| | | </if> |
| | | <if test="delivery.stockState != null "> |
| | | and d.stock_state = #{delivery.stockState} |
| | | </if> |
| | | |
| | | </where> |
| | | group by d.delivery_id |
| | |
| | | <if test="delivery.area != null and delivery.area != ''"> |
| | | and d.area regexp REGEXP_REPLACE(#{delivery.area},'\\.0+$','') |
| | | </if> |
| | | <if test="delivery.deliveryState != null "> |
| | | and d.delivery_state = #{delivery.deliveryState} |
| | | </if> |
| | | <if test="delivery.stockState != null "> |
| | | and d.stock_state = #{delivery.stockState} |
| | | </if> |
| | | </where> |
| | | limit #{offset},#{pageSize}; |
| | | </select> |