// .apply(CollectionUtil.isNotEmpty(vo.getBigPortIdList()),"exists (select 1 from ecw_box_book_sea a where a.shipment_id={0} and a.deleted=0 and a.big_port_id in ({1}))",vo.getId(),vo.getBigPortIdList())
// .apply(CollectionUtil.isNotEmpty(vo.getDestPortIdList()),"exists (select 1 from ecw_box_book_sea a where a.shipment_id={0} and a.deleted=0 and a.dest_port_id in ({1}))",vo.getId(),vo.getDestPortIdList())
// .apply(CollectionUtil.isNotEmpty(vo.getBargePortIdList()),"exists (select 1 from ecw_box_book_sea a where a.shipment_id={0} and a.deleted=0 and a.barge_port_id in ({1}))",vo.getId(),vo.getBargePortIdList())
// .apply(CollectionUtil.isNotEmpty(vo.getSpaceCompanyIdList()),"exists (select 1 from ecw_box_book_sea a where a.shipment_id={0} and a.deleted=0 and a.space_company_id in ({1}))",vo.getId(),vo.getSpaceCompanyIdList())
stringBuffer.append(" and a.lading_bill_time between '").append(vo.getLadingBillBeginTime()).append("' and '").append(vo.getLadingBillEndTime()).append("'");
stringBuffer.append(" and a.dt_real_ship_time between '").append(vo.getDtRealShipBeginTime()).append("' and '").append(vo.getDtRealShipEndTime()).append("'");
stringBuffer.append(" and a.dt_est_arrival_time between '").append(vo.getDtEstArrivalBeginTime()).append("' and '").append(vo.getDtEstArrivalEndTime()).append("'");
}
if(flag){
stringBuffer.append(")");
returnstringBuffer.toString();
}
returnnull;
}
defaultStringbuildClearanceDocSql(BoxQueryVOvo){
booleanflag=false;
StringBufferstringBuffer=newStringBuffer("exists (select 1 from ecw_box_clearance_doc a where a.shipment_id={0} and a.deleted=0 ");