Parcourir la source

配送员添加历史经纬度点

Memory_LG il y a 6 mois
Parent
commit
35474876b5

+ 30 - 0
src/main/java/com/sooka/sponest/mobile/data/housingconstruction/HousingconstructionDeliveryPersonnelLonLatController.java

@@ -0,0 +1,30 @@
+package com.sooka.sponest.mobile.data.housingconstruction;
+
+import com.ruoyi.common.core.web.domain.AjaxResult;
+import com.sooka.sponest.data.api.housingconstruction.domain.HousingconstructionDeliveryPersonnelLonLat;
+import com.sooka.sponest.data.api.housingconstruction.service.RemoteHousingconstructionDeliveryPersonnelLonLatService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+
+@RestController
+@RequestMapping("/AppPersonnelLonLat")
+public class HousingconstructionDeliveryPersonnelLonLatController {
+    @Autowired
+    private RemoteHousingconstructionDeliveryPersonnelLonLatService personnelLonLatService;
+
+    /**
+     * 配送员添加经纬度坐标点
+     * @param personnelLonLat
+     * - personnelId    配送员id
+     * - longitude      经度
+     * - latitude       纬度
+     * @return AjaxResult
+     */
+    @PostMapping("/personner/setLonLat")
+    public AjaxResult setLonLat(@RequestBody HousingconstructionDeliveryPersonnelLonLat personnelLonLat){
+        return personnelLonLatService.setLonLat(personnelLonLat);
+    }
+}