Your Name преди 3 години
родител
ревизия
100a215cb4

+ 4 - 0
pom.xml

@@ -111,7 +111,11 @@
                     <!--包名-->
                     <targetPackage>com.steerinfo.dil</targetPackage>
                     <tables>
+<<<<<<< Updated upstream
                         <param>RMS_MATERIAL_STEEL</param><!--运力-->
+=======
+                        <param>TMSTRUCK_SMS_RUSULT</param><!--运力-->
+>>>>>>> Stashed changes
                     </tables>
                 </configuration>
                 <executions>

+ 3 - 2
src/main/java/com/steerinfo/dil/controller/TmstruckWeightResultController.java

@@ -2,6 +2,7 @@ package com.steerinfo.dil.controller;
 
 import com.steerinfo.dil.service.impl.TmstruckWeightResultServiceImpl;
 import com.steerinfo.dil.util.BaseRESTfulController;
+import com.steerinfo.framework.controller.RESTfulResult;
 import io.swagger.annotations.ApiModelProperty;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -29,9 +30,9 @@ public class TmstruckWeightResultController extends BaseRESTfulController {
      */
     @ApiModelProperty(value = "接收计量实绩")
     @PostMapping("/receiveTmsTruckWeightResult")
-    public int receiveTmsTruckWeightResult(@RequestBody Map<String,Object> mapValue) {
+    public RESTfulResult receiveTmsTruckWeightResult(@RequestBody Map<String,Object> mapValue) {
         int result = tmstruckWeightResultService.receiveTmsTruckWeightResult(mapValue);
-        return result;
+        return success();
     }
 
 

+ 24 - 0
src/main/java/com/steerinfo/dil/service/impl/TmsTruckLeaveFactoryService.java

@@ -0,0 +1,24 @@
+package com.steerinfo.dil.service.impl;
+
+import com.steerinfo.dil.mapper.TmstruckLeaveFactoryResultMapper;
+import com.steerinfo.dil.service.ITmsTruckLeaveFactoryService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Service;
+
+import java.util.Map;
+
+/**
+ * @author luobang
+ * @create 2021-10-29 17:56
+ */
+@Service
+public class TmsTruckLeaveFactoryService implements ITmsTruckLeaveFactoryService {
+
+    @Autowired
+    TmstruckLeaveFactoryResultMapper tmstruckLeaveFactoryResultMapper;
+
+    @Override
+    public int updateLeaveFactory(Map<String, Object> map) {
+        return tmstruckLeaveFactoryResultMapper.updateLeaveFactory(map);
+    }
+}