| | |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.example.erp.mapper.sd.OrderMapper"> |
| | | |
| | | <select id="selectOrder"> |
| | | select |
| | | count(*) |
| | | from |
| | | sd.`order` as o |
| | | where |
| | | o.quantity=#{order.quantity} and o.area=#{order.area} and o.project=#{order.project} and o.customer_id=#{order.customerId} and o.money=#{order.money} |
| | | </select> |
| | | |
| | | <select id="selectMaxOrderId"> |
| | | select |
| | | ifnull(SUBSTR(max(order_id) from 9),0) |
| | |
| | | o.quantity = od.b, |
| | | o.area = od.c, |
| | | o.perimeter= od.aa, |
| | | o.other_money = ifnull(c.money,0) |
| | | o.other_money = ifnull(c.money,0), |
| | | o.other_remarks = (select group_concat( distinct edging_type) from order_detail where order_id = #{orderId} and edging_type is not null) |
| | | where |
| | | o.order_id = #{orderId} |
| | | |
| | |
| | | verifier = #{userName} |
| | | where order_id = #{id} |
| | | </update> |
| | | <update id="reviewOrderByIds"> |
| | | update `order` set order_review = #{status},process_review = #{status}, |
| | | verifier_id = null, |
| | | verifier = null |
| | | where order_id = #{id} |
| | | </update> |
| | | |
| | | <update id="reviewProcessById"> |
| | | update `order` set process_review = #{status} where order_id = #{id} |