yuliang 5 年之前
父节点
当前提交
913f0e5890
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      whepi-web/src/main/java/com/bofeng/wx/controller/MsTripController.java

+ 3 - 3
whepi-web/src/main/java/com/bofeng/wx/controller/MsTripController.java

@@ -69,11 +69,11 @@ public class MsTripController {
                 Map<String, Object> mm = (Map) jsonWapper.asList("tripDet").get(i);
                 msTripDet = new MsTripDet();
                 msTripDet.setSort(i+1);
-                msTripDet.setStartLocal(Integer.parseInt(mm.get("startLocal").toString()));
+                msTripDet.setStartLocal(Conv.NI(mm.get("startLocal")));
                 msTripDet.setStartLocalOther(mm.get("startLocalOther").toString());
-                msTripDet.setEndLocal(Integer.parseInt(mm.get("endLocal").toString()));
+                msTripDet.setEndLocal(Conv.NI(mm.get("endLocal")));
                 msTripDet.setEndLocalOther(mm.get("endLocalOther").toString());
-                msTripDet.setTripType(Integer.parseInt(mm.get("tripType").toString()));
+                msTripDet.setTripType(Conv.NI(mm.get("tripType")));
                 msTripDet.setTripTypeDesp(mm.get("tripTypeDesp").toString());
                 listTripDet.add(msTripDet);
             }