Commit ab822a86 authored by 332784038@qq.com's avatar 332784038@qq.com Committed by wux

财务应收报表卸柜到仓时间查询bug修复

parent 6c1d9e37
......@@ -621,20 +621,20 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
}
String beginDaogangTime =null ;
String endDaogangTime =null ;
if(vo.getBeginDaogangTime()!=null ){
if(vo.getBeginDaogangTime()!=null && vo.getEndDaogangTime() != null){
beginDaogangTime = DateUtil.format(vo.getBeginDaogangTime(), "yyyy-MM-dd HH:mm:ss");
endDaogangTime = DateUtil.format(vo.getEndDaogangTime(), "yyyy-MM-dd HH:mm:ss");
}
String beginQingguanTime = null ;
String endQingguanTime =null ;
if(vo.getBeginQingguanTime()!=null ){
if(vo.getBeginQingguanTime()!=null && vo.getEndQingguanTime() != null){
beginQingguanTime = DateUtil.format(vo.getBeginQingguanTime(), "yyyy-MM-dd HH:mm:ss");
endQingguanTime = DateUtil.format(vo.getEndQingguanTime(), "yyyy-MM-dd HH:mm:ss");
}
String beginUlWarehouseTime = null ;
String endUlWarehouseTime =null ;
if(vo.getBeginQingguanTime()!=null ){
if(vo.getBeginUlWarehouseTime()!=null && vo.getEndUlWarehouseTime() != null){
beginUlWarehouseTime = DateUtil.format(vo.getBeginUlWarehouseTime(), "yyyy-MM-dd HH:mm:ss");
endUlWarehouseTime = DateUtil.format(vo.getEndUlWarehouseTime(), "yyyy-MM-dd HH:mm:ss");
}
......@@ -658,7 +658,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>",
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>",
", ecw_box_clearance clearance ",
", ecw_box_cabinet_unload unload ",
"</when>",
"WHERE",
......@@ -669,7 +669,7 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>",
"<when test = 'beginUlWarehouseTime != null or endUlWarehouseTime != null'>",
"and box.id = clearance.shipment_id and clearance.deleted = 0",
"and box.id = unload.shipment_id and unload.deleted = 0",
"</when>",
"<when test = 'beginJsDate != null'>",
......@@ -698,11 +698,11 @@ public interface BoxMapper extends AbstractMapper<BoxDO> {
"</when>",
"<when test = 'beginUlWarehouseTime != null'>",
"and clearance.cl_clear_time &gt;= #{beginUlWarehouseTime}",
"and unload.ul_warehouse_time &gt;= #{beginUlWarehouseTime}",
"</when>",
"<when test = 'endUlWarehouseTime != null'>",
"and clearance.cl_clear_time &lt;= #{endUlWarehouseTime}",
"and unload.ul_warehouse_time &lt;= #{endUlWarehouseTime}",
"</when>",
"<when test = 'selfNo != null and selfNo != \"\" '>",
......
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