瀏覽代碼

地图纠错详细增加新旧手机和营业时间

吴瑞豪 2 年之前
父節點
當前提交
8a83698eea

+ 6 - 3
nngkxxdp/src/main/resources/mapper/MapDataDao.xml

@@ -55,8 +55,8 @@
     <insert id="saveErrorLog" parameterType="map">
     <insert id="saveErrorLog" parameterType="map">
         INSERT INTO s_map_errorlog
         INSERT INTO s_map_errorlog
         (s_map_id, address_name, original_address,
         (s_map_id, address_name, original_address,
-         original_longitude, original_latitude, original_hone, original_office_hours,
-         new_hone, new_office_hours, new_address,
+         original_longitude, original_latitude, original_phone, original_office_hours,
+         new_phone, new_office_hours, new_address,
          new_longitude, new_latitude, error_state, create_time)
          new_longitude, new_latitude, error_state, create_time)
             VALUE
             VALUE
             (#{sMapId},#{addressName},#{originalAddress},
             (#{sMapId},#{addressName},#{originalAddress},
@@ -108,14 +108,17 @@
                sme.original_address,
                sme.original_address,
                sme.original_longitude,
                sme.original_longitude,
                sme.original_latitude,
                sme.original_latitude,
+               sme.original_office_hours,
+               sme.original_phone,
                sme.new_address,
                sme.new_address,
                sme.new_longitude,
                sme.new_longitude,
                sme.new_latitude,
                sme.new_latitude,
+               sme.new_office_hours,
+               sme.new_phone,
                sme.create_time,
                sme.create_time,
                sme.update_time,
                sme.update_time,
                sm.dep name,
                sm.dep name,
                sm.dict_type,
                sm.dict_type,
-               sm.tel,
                sm.content
                sm.content
         FROM s_map_errorlog sme
         FROM s_map_errorlog sme
                  left join s_map sm on sm.id = sme.s_map_id
                  left join s_map sm on sm.id = sme.s_map_id

+ 7 - 3
nngkxxdp/src/main/resources/static/district/js/correct.js

@@ -285,10 +285,12 @@ $(function(){
 	}
 	}
 
 
     $('#sub').click(function(){
     $('#sub').click(function(){
-        var dep,oldAddress;
+        var dep,oldAddress,tel,time;
         $.each(filterId,function(i){
         $.each(filterId,function(i){
             dep=filterId[i].dep;
             dep=filterId[i].dep;
             oldAddress=filterId[i].address;
             oldAddress=filterId[i].address;
+			tel=filterId[i].tel;
+			time=filterId[i].time;
         });
         });
 		var reg = /^((023-\d{8})|(1[3-9]\d{9}))$/;
 		var reg = /^((023-\d{8})|(1[3-9]\d{9}))$/;
         if($('#newAddres').val() == ''){
         if($('#newAddres').val() == ''){
@@ -302,11 +304,13 @@ $(function(){
 				originalAddress: oldAddress,
 				originalAddress: oldAddress,
 				originalLongitude: getoldpoint.lng,
 				originalLongitude: getoldpoint.lng,
 				originalLatitude: getoldpoint.lat,
 				originalLatitude: getoldpoint.lat,
+				originalPhone: tel,
+				originalOfficeHours: time,
 				newAddress: $('#newAddres').val(),
 				newAddress: $('#newAddres').val(),
 				newLongitude: lngAndlat.lng,
 				newLongitude: lngAndlat.lng,
 				newLatitude: lngAndlat.lat,
 				newLatitude: lngAndlat.lat,
-				newTel: $('#newtel').val(),
-				newTime: $('#newtime').val(),
+				newPhone: $('#newtel').val(),
+				newOfficeHours: $('#newtime').val(),
 				errorState: 0
 				errorState: 0
 			}
 			}
 			$.ajax({
 			$.ajax({