|
@@ -139,21 +139,26 @@ public class TmsshipShipLocationController extends BaseRESTfulController {
|
|
|
@ApiImplicitParam(name = "apiId", value = "59", required = false, dataType = "BigDecimal"),
|
|
|
})
|
|
|
@PostMapping(value = "/getShipLocationList")
|
|
|
- public RESTfulResult getShipLocationList(@RequestBody(required = false) Map<String,Object> mapVal){
|
|
|
- SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- //通过时间查询数据
|
|
|
- Object dayTime = mapVal.get("dayTime");
|
|
|
- Date date;
|
|
|
- String timeFormat;
|
|
|
- if(dayTime != null){
|
|
|
-
|
|
|
- date = new Date((long) dayTime);
|
|
|
- timeFormat = sdf.format(date);
|
|
|
- }else {
|
|
|
- date = new Date();
|
|
|
- timeFormat = sdf.format(date);
|
|
|
+ public RESTfulResult getShipLocationList(@RequestBody(required = false) Map<String,Object> mapVal,
|
|
|
+ String con
|
|
|
+ ){
|
|
|
+ if (con!=null&&!"".equals(con)){
|
|
|
+ mapVal.put("con",con);
|
|
|
}
|
|
|
- mapVal.put("dayTime", timeFormat);
|
|
|
+// SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
+// //通过时间查询数据
|
|
|
+// Object dayTime = mapVal.get("dayTime");
|
|
|
+// Date date;
|
|
|
+// String timeFormat;
|
|
|
+// if(dayTime != null){
|
|
|
+//
|
|
|
+// date = new Date((long) dayTime);
|
|
|
+// timeFormat = sdf.format(date);
|
|
|
+// }else {
|
|
|
+// date = new Date();
|
|
|
+// timeFormat = sdf.format(date);
|
|
|
+// }
|
|
|
+// mapVal.put("dayTime", timeFormat);
|
|
|
List<Map<String, Object>> columnList = tmsshipShipLocationService.selectShipLocationList(mapVal);
|
|
|
return success(columnList);
|
|
|
}
|