Quellcode durchsuchen

修改位置作业

zx vor 2 Jahren
Ursprung
Commit
b700277b40

+ 0 - 14
src/main/java/com/steerinfo/dil/controller/TmsshipShipLocationController.java

@@ -145,20 +145,6 @@ public class TmsshipShipLocationController extends BaseRESTfulController {
         if (con!=null&&!"".equals(con)){
             mapVal.put("con",con);
         }
-        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);
     }

+ 1 - 4
src/main/resources/com/steerinfo/dil/mapper/TmsshipShipLocationMapper.xml

@@ -458,7 +458,7 @@
       order by "insertTime" desc
     </if>
   </sql>
-  
+
 <!--查询位置作业-->
   <select id="selectShipLocationList" parameterType="map" resultType="java.util.Map">
     SELECT DISTINCT
@@ -504,9 +504,6 @@
   <if test="con!=null">
     and  (instr(rc.CAPACITY_NUMBER,#{con}) > 0 or instr(rm.MATERIAL_NAME,#{con}) > 0 or   instr(db.RESULT_FOREIGN_SHIP_NAME,#{con}) > 0  )
   </if>
-  <if test="dayTime!=null">
-  and  tsl.LOCATION_ROUTE_TIME = #{dayTime}
-  </if>
   </select>
 
   <select id="selectShipLocation" parameterType="DECIMAL" resultType="java.util.Map">