Commit 0b1a937f authored by zhengyi's avatar zhengyi

sql修正

parent 6e743dd5
......@@ -79,11 +79,11 @@ public interface OrderWarehouseApprovalMapper extends AbstractMapper<OrderWareho
"from ecw_order_warehouse_approval a",
"where ",
"a.order_ids = #{orderId} ",
"<when test = 'types != null && types.size() > 0'>",
"<when test = 'types != null and types.size() > 0'>",
"and a.type in <foreach item='type' index='index' collection='typeList' open='(' separator=',' close=')'>#{type}</foreach> ",
"</when>",
"<when test = 'orderItemIdList != null && orderItemIdList.size() > 0'>",
"and (a.order_item_id is null or (a.order_item_id is not null && a.order_item_id in <foreach item='orderItemId' index='index' collection='orderItemIdList' open='(' separator=',' close=')'>#{orderItemId}</foreach>)) ",
"<when test = 'orderItemIdList != null and orderItemIdList.size() > 0'>",
"and (a.order_item_id is null or (a.order_item_id is not null and a.order_item_id in <foreach item='orderItemId' index='index' collection='orderItemIdList' open='(' separator=',' close=')'>#{orderItemId}</foreach>)) ",
"</when>",
"and a.status = 1 ",
"</script>"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment