|
@@ -10,6 +10,7 @@ import com.steerinfo.dil.service.impl.WmspOutboundResultServiceImpl;
|
|
import com.steerinfo.dil.service.impl.WmspOutboundScanResultServiceImpl;
|
|
import com.steerinfo.dil.service.impl.WmspOutboundScanResultServiceImpl;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.BaseRESTfulController;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
import com.steerinfo.dil.util.ColumnDataUtil;
|
|
|
|
+import com.steerinfo.dil.util.DataChange;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.dil.util.PageListAdd;
|
|
import com.steerinfo.dil.vo.OutBoundDetailed;
|
|
import com.steerinfo.dil.vo.OutBoundDetailed;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
import com.steerinfo.framework.controller.RESTfulResult;
|
|
@@ -22,6 +23,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
import java.math.BigDecimal;
|
|
|
|
+import java.text.SimpleDateFormat;
|
|
import java.util.Date;
|
|
import java.util.Date;
|
|
import java.util.HashMap;
|
|
import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
@@ -57,6 +59,7 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
@Autowired
|
|
@Autowired
|
|
private ESFeign esFeign;
|
|
private ESFeign esFeign;
|
|
|
|
|
|
|
|
+ private final SimpleDateFormat sdfDateTime = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
|
|
|
|
|
/**
|
|
/**
|
|
* 编写人:hukui
|
|
* 编写人:hukui
|
|
@@ -518,5 +521,36 @@ public class WmspOutboundResultController extends BaseRESTfulController {
|
|
}
|
|
}
|
|
return success("操作成功");
|
|
return success("操作成功");
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //统计出厂每个炉号生产的支数
|
|
|
|
+ @PostMapping("/getWmsOutboundResultStatistics")
|
|
|
|
+ @ApiOperation(value = "展示入库统计信息")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "apiId", value = "371", required = false, dataType = "BigDecimal"),
|
|
|
|
+ })
|
|
|
|
+ public RESTfulResult getWmsOutboundResultStatistics(@RequestBody(required = false) Map<String, Object> mapValue,
|
|
|
|
+ Integer apiId,
|
|
|
|
+ Integer pageNum,
|
|
|
|
+ Integer pageSize,
|
|
|
|
+ Integer warehouseId,
|
|
|
|
+ String con,
|
|
|
|
+ String startTime,
|
|
|
|
+ String endTime) {
|
|
|
|
+ if (con!=null && !con.equals("undefined") && !"".equals(con)){
|
|
|
|
+ mapValue.put("con","%"+con+"%");
|
|
|
|
+ }
|
|
|
|
+ if(mapValue == null){
|
|
|
|
+ mapValue =new HashMap<>();
|
|
|
|
+ }
|
|
|
|
+ mapValue.put("warehouseId",warehouseId);
|
|
|
|
+ DataChange.queryDataByDateTime(startTime, endTime, mapValue, sdfDateTime);//根据时间段查询数据
|
|
|
|
+ List<Map<String,Object>> inboundResultList = wmspOutboundResultService.getWmsOutboundResultStatistics(mapValue);
|
|
|
|
+
|
|
|
|
+ /*分页*/
|
|
|
|
+ PageHelper.startPage(pageNum, pageSize);
|
|
|
|
+ List<Map<String,Object>> columnList = wmspOutboundResultService.getWmsOutboundResultStatistics(mapValue);
|
|
|
|
+ PageListAdd pageList = columnDataUtil.tableColumnData(apiId,inboundResultList,columnList);
|
|
|
|
+ return success(pageList);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|