@Override
 public String toString() {
   StringBuilder extraCond = new StringBuilder();
   if (id != 0) {
     extraCond.append(" AND wx_order_id = " + id);
   }
   if (code != 0) {
     extraCond.append(" AND code = " + code);
   }
   if (orderId != 0) {
     extraCond.append(" AND order_id = " + orderId);
   }
   if (weixinSerial != null) {
     extraCond.append(
         " AND weixin_serial = '"
             + weixinSerial
             + "' AND weixin_serial_crc = CRC32('"
             + weixinSerial
             + "')");
   }
   if (type != null) {
     extraCond.append(" AND type = " + type.getVal());
   }
   final StringBuilder statusCond = new StringBuilder();
   for (WxOrder.Status s : status) {
     if (statusCond.length() == 0) {
       statusCond.append(s.getVal());
     } else {
       statusCond.append("," + s.getVal());
     }
   }
   if (statusCond.length() != 0) {
     extraCond.append(" AND status IN ( " + statusCond.toString() + ")");
   }
   return extraCond.toString();
 }