Your Name 3 년 전
부모
커밋
2345cf5b82

+ 23 - 22
pom.xml

@@ -171,28 +171,29 @@
     <build>
         <plugins>
             <!--             自动生成代码文件 -->
-            <plugin>
-                <groupId>com.steerinfo</groupId>
-                <artifactId>generator-maven-plugin</artifactId>
-                <version>3.0</version>
-                <configuration>
-                    <connUrl>jdbc:oracle:thin:@172.16.33.163:1521:ilsdbpri</connUrl>
-                    <user>dil</user>
-                    <password>Dil123789</password>
-                    <!--包名-->
-                    <targetPackage>com.steerinfo.dil</targetPackage>
-                    <tables>
-                    </tables>
-                </configuration>
-                <executions>
-                    <execution>
-                        <phase>compile</phase>
-                        <goals>
-                            <goal>steerinfo</goal>
-                        </goals>
-                    </execution>
-                </executions>
-            </plugin>
+<!--            <plugin>-->
+<!--                <groupId>com.steerinfo</groupId>-->
+<!--                <artifactId>generator-maven-plugin</artifactId>-->
+<!--                <version>3.0</version>-->
+<!--                <configuration>-->
+<!--                    <connUrl>jdbc:oracle:thin:@172.16.33.163:1521:ilsdbpri</connUrl>-->
+<!--                    <user>dil</user>-->
+<!--                    <password>Dil123789</password>-->
+<!--                    &lt;!&ndash;包名&ndash;&gt;-->
+<!--                    <targetPackage>com.steerinfo.dil</targetPackage>-->
+<!--                    <tables>-->
+<!--&lt;!&ndash;                        <param>AMS_DISPATCH_SALE_ORDER</param>&lt;!&ndash;销售计划&ndash;&gt;&ndash;&gt;-->
+<!--                    </tables>-->
+<!--                </configuration>-->
+<!--                <executions>-->
+<!--                    <execution>-->
+<!--                        <phase>compile</phase>-->
+<!--                        <goals>-->
+<!--                            <goal>steerinfo</goal>-->
+<!--                        </goals>-->
+<!--                    </execution>-->
+<!--                </executions>-->
+<!--            </plugin>-->
             <plugin>
                 <groupId>org.springframework.boot</groupId>
                 <artifactId>spring-boot-maven-plugin</artifactId>

+ 6 - 2
src/main/java/com/steerinfo/dil/controller/TmsTruckEnFactoryResultController.java

@@ -4,6 +4,8 @@ import com.steerinfo.dil.service.impl.TmsTruckEnFactoryResultService;
 import com.steerinfo.dil.util.BaseRESTfulController;
 import com.steerinfo.framework.controller.RESTfulResult;
 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;
 
@@ -14,13 +16,15 @@ import java.util.Map;
  * @create 2021-10-29 17:52
  */
 @RestController
-@RequestMapping("/${api.version}/tmsTruckEnFactoryResultResult")
+@RequestMapping("/${api.version}/tmsTruck")
 public class TmsTruckEnFactoryResultController extends BaseRESTfulController {
 
     @Autowired
     TmsTruckEnFactoryResultService tmsTruckEnFactoryResultService;
 
-    public RESTfulResult addEnFactory(Map<String,Object> map){
+
+    @PostMapping("/enfactory")
+    public RESTfulResult addEnFactory(@RequestBody(required = false) Map<String,Object> map){
         Integer integer=tmsTruckEnFactoryResultService.updateEnFactory(map);
         if (integer!=1){
             return failed();

+ 5 - 2
src/main/java/com/steerinfo/dil/controller/TmsTruckLeaveFactoryController.java

@@ -5,6 +5,8 @@ import com.steerinfo.dil.service.impl.TmsTruckLeaveFactoryService;
 import com.steerinfo.dil.util.BaseRESTfulController;
 import com.steerinfo.framework.controller.RESTfulResult;
 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;
 
@@ -15,13 +17,14 @@ import java.util.Map;
  * @create 2021-10-29 17:52
  */
 @RestController
-@RequestMapping("/${api.version}/tmsTruckLeaveFactoryResult")
+@RequestMapping("/${api.version}/tmsTruck")
 public class TmsTruckLeaveFactoryController extends BaseRESTfulController {
 
     @Autowired
     TmsTruckLeaveFactoryService tmsTruckLeaveFactoryService;
 
-    public RESTfulResult addLeaveFactory(Map<String,Object> map){
+    @PostMapping("/leaveFactory")
+    public RESTfulResult addLeaveFactory(@RequestBody(required = true) Map<String,Object> map){
         Integer integer=tmsTruckLeaveFactoryService.updateLeaveFactory(map);
         if (integer!=1){
             return failed();

+ 7 - 7
src/main/resources/com/steerinfo/dil/mapper/TmstruckEnfactoryResultMapper.xml

@@ -419,17 +419,17 @@
   </delete>
   <!-- 友情提示!!!-->
   <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-  <update id="updateEnFactory">
-    update (select *
+  <update id="updateEnFactory" parameterType="java.util.Map">
+ update (select *
             from TMSTRUCK_ENFACTORY_RESULT TER
                    LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
                              ON TTR.RESULT_TOTAL_ID = TER.RESULT_TOTAL_ID
                    LEFT JOIN OMSTRUCK_ORDER OO
                              ON Ttr.Order_Id = oo.order_id
-            where oo.order_id = #{orderId}) tt
-    set tt.gatepost_id = {select rg.gatepost_id from rms_gatepost rg
-    where rg.gatepost_name = {gatepostName}},
-    set tt.result_entry_mode=#{resultEntryMode},
-    set tt.result_entry_gate_time=#{resultTime}
+            where oo.order_number = #{orderNumber}) tt
+    set tt.gatepost_id = (select rg.gatepost_id from rms_gatepost rg
+    where rg.gatepost_name = #{gatepostName}),
+     tt.result_entry_mode=#{resultEntryMode},
+     tt.result_entry_gate_time=TO_DATE(#{resultTime}, 'yyyy-mm-dd hh24:mi:ss' )
   </update>
 </mapper>

+ 7 - 7
src/main/resources/com/steerinfo/dil/mapper/TmstruckLeaveFactoryResultMapper.xml

@@ -420,8 +420,8 @@
   <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
   <!-- 友情提示!!!-->
   <!-- 请将自己写的代码放在此标签之下,方便以后粘贴复制。-->
-  <update id="updateLeaveFactory">
-    update(
+  <update id="updateLeaveFactory" parameterType="java.util.Map">
+   update(
       select * from tmstruck_leave_factory_result tlfr
                       LEFT JOIN TMSTRUCK_TOTAL_RESULT TTR
                                 on
@@ -429,10 +429,10 @@
                       left join omstruck_order oo
                                 on
                                   oo.order_id=ttr.order_id
-      where oo.order_id=#{orderId}) tt
-    set tt.gatepost_id = {select rg.gatepost_id from rms_gatepost rg
-    where rg.gatepost_name = {gatepostName}},
-    set tt.result_out_mode=#{resultOutMode},
-    set tt.result_out_gate_time=#{resultTime}
+      where oo.order_number=#{orderNumber}) tt
+    set tt.gatepost_id = (select rg.gatepost_id from rms_gatepost rg
+    where rg.gatepost_name = #{gatepostName}),
+    tt.result_out_mode=#{resultOutMode},
+    tt.result_out_gate_time=TO_DATE(#{resultTime}, 'yyyy-mm-dd hh24:mi:ss' )
   </update>
 </mapper>