| | |
| | | <result column="delivery_address" property="order.deliveryAddress"/> |
| | | <result column="project" property="order.project"/> |
| | | <result column="customer_name" property="order.customerName"/> |
| | | <result column="customer_Id" property="order.customerId"/> |
| | | |
| | | </resultMap> |
| | | |
| | |
| | | and od.product_name regexp #{finishedOperateLog.orderDetail.productName} |
| | | </if> |
| | | <if test="finishedOperateLog.orderDetail.price != null and finishedOperateLog.orderDetail.price != ''"> |
| | | and od.price regexp #{finishedOperateLog.orderDetail.price} |
| | | and od.price regexp REGEXP_REPLACE(#{finishedOperateLog.orderDetail.price},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.orderDetail.width != null and finishedOperateLog.orderDetail.width != ''"> |
| | | and od.width regexp REGEXP_REPLACE(#{finishedOperateLog.orderDetail.width},'\\.0+$','') |
| | |
| | | and fol.remarks regexp #{finishedOperateLog.remarks} |
| | | </if> |
| | | <if test="finishedOperateLog.area != null and finishedOperateLog.area != ''"> |
| | | and fol.area regexp #{finishedOperateLog.area} |
| | | and fol.area regexp REGEXP_REPLACE(#{finishedOperateLog.area},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.money != null and finishedOperateLog.money != ''"> |
| | | and fol.money regexp #{finishedOperateLog.money} |
| | | and fol.money regexp REGEXP_REPLACE(#{finishedOperateLog.money},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.customerName != null and finishedOperateLog.order.customerName != '')"> |
| | | and o.customer_name regexp #{finishedOperateLog.order.customerName} |
| | |
| | | <if test="finishedOperateLog.quantity != null and finishedOperateLog.quantity != ''"> |
| | | and fol.quantity regexp #{finishedOperateLog.quantity} |
| | | </if> |
| | | <if test="finishedOperateLog.processId != null and finishedOperateLog.processId != ''"> |
| | | and fol.process_id regexp #{finishedOperateLog.processId} |
| | | </if> |
| | | <if test="finishedOperateLog.operator != null and finishedOperateLog.operator != ''"> |
| | | and fol.operator regexp #{finishedOperateLog.operator} |
| | | </if> |
| | |
| | | and od.product_name regexp #{finishedOperateLog.orderDetail.productName} |
| | | </if> |
| | | <if test="finishedOperateLog.orderDetail.price != null and finishedOperateLog.orderDetail.price != ''"> |
| | | and od.price regexp #{finishedOperateLog.orderDetail.price} |
| | | and od.price regexp REGEXP_REPLACE(#{finishedOperateLog.orderDetail.price},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.orderDetail.width != null and finishedOperateLog.orderDetail.width != ''"> |
| | | and od.width regexp REGEXP_REPLACE(#{finishedOperateLog.orderDetail.width},'\\.0+$','') |
| | |
| | | and fol.remarks regexp #{finishedOperateLog.remarks} |
| | | </if> |
| | | <if test="finishedOperateLog.area != null and finishedOperateLog.area != ''"> |
| | | and fol.area regexp #{finishedOperateLog.area} |
| | | and fol.area regexp REGEXP_REPLACE(#{finishedOperateLog.area},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.money != null and finishedOperateLog.money != ''"> |
| | | and fol.money regexp #{finishedOperateLog.money} |
| | | and fol.money regexp REGEXP_REPLACE(#{finishedOperateLog.money},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.customerName != null and finishedOperateLog.order.customerName != '')"> |
| | | and o.customer_name regexp #{finishedOperateLog.order.customerName} |
| | |
| | | fol.reviewed, |
| | | fol.reviewed_time, |
| | | fol.type, |
| | | fol.remarks |
| | | fol.remarks, |
| | | fol.area, |
| | | fol.money, |
| | | o.customer_name, |
| | | o.project, |
| | | od.price |
| | | from (select * |
| | | from mm.finished_operate_log aa where aa.status!='已作废') fol |
| | | left join sd.order_detail od on fol.order_id = od.order_id and fol.operation_number = od.order_number |
| | | left join sd.`order` o on o.order_id=fol.order_id |
| | | <where> |
| | | date(fol.operate_time)>=#{startDate} and date(fol.operate_time) <= #{endDate} and fol.operate_type=#{type} |
| | | <if test="finishedOperateLog.operateType != null and finishedOperateLog.operateType != ''"> |
| | |
| | | </if> |
| | | <if test="finishedOperateLog.remarks != null and finishedOperateLog.remarks != ''"> |
| | | and fol.remarks regexp #{finishedOperateLog.remarksr} |
| | | </if> |
| | | <if test="finishedOperateLog.area != null and finishedOperateLog.area != ''"> |
| | | and fol.area regexp REGEXP_REPLACE(#{finishedOperateLog.area},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.money != null and finishedOperateLog.money != ''"> |
| | | and fol.money regexp REGEXP_REPLACE(#{finishedOperateLog.money},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.customerName != null and finishedOperateLog.order.customerName != '')"> |
| | | and o.customer_name regexp #{finishedOperateLog.order.customerName} |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.project != null and finishedOperateLog.order.project != '')"> |
| | | and o.project regexp #{finishedOperateLog.order.project} |
| | | </if> |
| | | <if test="finishedOperateLog.orderDetail!=null and finishedOperateLog.orderDetail.price != null and finishedOperateLog.orderDetail.price != ''"> |
| | | and od.price regexp #{finishedOperateLog.orderDetail.price} |
| | | </if> |
| | | </where> |
| | | order by fol.`status` desc |
| | |
| | | from (select * |
| | | from mm.finished_operate_log aa where aa.status!='已作废') fol |
| | | left join sd.order_detail od on fol.order_id = od.order_id and fol.operation_number = od.order_number |
| | | left join sd.`order` o on o.order_id=fol.order_id |
| | | <where> |
| | | date(fol.operate_time)>=#{startDate} and date(fol.operate_time) <= #{endDate} and fol.operate_type=#{type} |
| | | <if test="finishedOperateLog.operateType != null and finishedOperateLog.operateType != ''"> |
| | |
| | | </if> |
| | | <if test="finishedOperateLog.remarks != null and finishedOperateLog.remarks != ''"> |
| | | and fol.remarks regexp #{finishedOperateLog.remarksr} |
| | | </if> |
| | | <if test="finishedOperateLog.area != null and finishedOperateLog.area != ''"> |
| | | and fol.area regexp REGEXP_REPLACE(#{finishedOperateLog.area},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.money != null and finishedOperateLog.money != ''"> |
| | | and fol.money regexp REGEXP_REPLACE(#{finishedOperateLog.money},'\\.0+$','') |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.customerName != null and finishedOperateLog.order.customerName != '')"> |
| | | and o.customer_name regexp #{finishedOperateLog.order.customerName} |
| | | </if> |
| | | <if test="finishedOperateLog.order !=null and (finishedOperateLog.order.project != null and finishedOperateLog.order.project != '')"> |
| | | and o.project regexp #{finishedOperateLog.order.project} |
| | | </if> |
| | | <if test="finishedOperateLog.orderDetail!=null and finishedOperateLog.orderDetail.price != null and finishedOperateLog.orderDetail.price != ''"> |
| | | and od.price regexp #{finishedOperateLog.orderDetail.price} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | ) |
| | | values ( |
| | | #{oddNumber} ,#{flowCard.order.orderId},#{flowCard.processId},#{flowCard.orderNumber},"入库",#{userName}, |
| | | #{flowCard.inventoryQuantity},now(),"未审核",#{container},#{deliveryDetailMoney},#{deliveryDetailArea} |
| | | #{flowCard.inventoryQuantity}, |
| | | <if test="createTime != null"> |
| | | #{createTime} |
| | | </if> |
| | | <if test="createTime == null"> |
| | | now() |
| | | </if> |
| | | ,"未审核",#{container},#{deliveryDetailMoney},#{deliveryDetailArea} |
| | | |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | quantity, |
| | | operate_time, |
| | | status, |
| | | remarks |
| | | remarks, |
| | | area |
| | | ) |
| | | values ( |
| | | #{orderDetail.deliveryDetail.deliveryId} ,#{orderDetail.deliveryDetail.orderId},#{orderDetail.deliveryDetail.orderNumber} |
| | | ,"出库",#{userName},#{orderDetail.deliveryDetail.quantity},now(),"未审核",#{boxNo} |
| | | ,"出库",#{userName},#{orderDetail.deliveryDetail.quantity},now(),"未审核",#{boxNo},#{orderDetail.deliveryDetail.area} |
| | | ) |
| | | </insert> |
| | | |
| | |
| | | fol.reviewed, |
| | | fol.reviewed_time, |
| | | fol.type, |
| | | fol.remarks |
| | | fol.remarks, |
| | | fol.area, |
| | | fol.money, |
| | | o.customer_name, |
| | | o.project, |
| | | od.price |
| | | from (select * |
| | | from mm.finished_operate_log aa where aa.status!='已作废') fol |
| | | left join sd.order_detail od on fol.order_id = od.order_id and fol.operation_number = od.order_number |
| | | left join sd.`order` o on o.order_id=fol.order_id |
| | | where date(fol.operate_time)>=#{dates[0]} and date(fol.operate_time) <= #{dates[1]} and fol.operate_type=#{type} |
| | | |
| | | </select> |
| | |
| | | od.height, |
| | | o.project, |
| | | o.customer_name, |
| | | o.customer_Id, |
| | | o.delivery_address, |
| | | fol.operate_time, |
| | | fol.`status`, |