luobang 2 years ago
parent
commit
44ed795972

+ 3 - 0
src/main/java/com/steerinfo/dil/mapper/BmstruckDetailsOrderMapper.java

@@ -217,4 +217,7 @@ public interface BmstruckDetailsOrderMapper extends IBaseMapper<BmstruckDetailsO
 
 
     //修改车序号单价
     //修改车序号单价
     int updateAsomPriceId(Map<String, Object> mapValue);
     int updateAsomPriceId(Map<String, Object> mapValue);
+
+    int updateActuallyPlace(Map<String, Object> mapValue);
+
 }
 }

+ 18 - 16
src/main/java/com/steerinfo/dil/service/impl/BmstruckDetailsOrderServiceImpl.java

@@ -722,14 +722,15 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
             Map<String, Object> stringObjectMap = bmstruckDetailsOrderMapper.getsaleShippingAddressId(mapValue);
             Map<String, Object> stringObjectMap = bmstruckDetailsOrderMapper.getsaleShippingAddressId(mapValue);
             BigDecimal saleShippingAddressId = (BigDecimal) stringObjectMap.get("saleShippingAddressId");
             BigDecimal saleShippingAddressId = (BigDecimal) stringObjectMap.get("saleShippingAddressId");
             BigDecimal historyShippingAddressId = (BigDecimal) stringObjectMap.get("historyShippingAddressId");
             BigDecimal historyShippingAddressId = (BigDecimal) stringObjectMap.get("historyShippingAddressId");
-            if (historyShippingAddressId!=null){
-                //修改地址(不修改历史地址)
-                bmstruckDetailsOrderMapper.updatePlaceNew(mapValue);
-            }else if (historyShippingAddressId==null ) {
-                mapValue.put("historyPlaceId", saleShippingAddressId);
-                //修改地址(不修改历史地址)
-                bmstruckDetailsOrderMapper.updatePlace(mapValue);
-            }
+            bmstruckDetailsOrderMapper.updateActuallyPlace(mapValue);
+            //if (historyShippingAddressId!=null){
+            //    //修改地址(不修改历史地址)
+            //    bmstruckDetailsOrderMapper.updatePlaceNew(mapValue);
+            //}else if (historyShippingAddressId==null ) {
+            //    mapValue.put("historyPlaceId", saleShippingAddressId);
+            //    //修改地址(不修改历史地址)
+            //    bmstruckDetailsOrderMapper.updatePlace(mapValue);
+            //}
         }
         }
         return result;
         return result;
     }
     }
@@ -741,14 +742,15 @@ public class BmstruckDetailsOrderServiceImpl implements IBmstruckDetailsOrderSer
             Map<String, Object> stringObjectMap = bmstruckDetailsOrderMapper.getsaleShippingAddressId(mapValue);
             Map<String, Object> stringObjectMap = bmstruckDetailsOrderMapper.getsaleShippingAddressId(mapValue);
             BigDecimal saleShippingAddressId = (BigDecimal) stringObjectMap.get("saleShippingAddressId");
             BigDecimal saleShippingAddressId = (BigDecimal) stringObjectMap.get("saleShippingAddressId");
             BigDecimal historyShippingAddressId = (BigDecimal) stringObjectMap.get("historyShippingAddressId");
             BigDecimal historyShippingAddressId = (BigDecimal) stringObjectMap.get("historyShippingAddressId");
-            if (historyShippingAddressId!=null){
-                //修改地址(不修改历史地址)
-                bmstruckDetailsOrderMapper.updatePlaceNew(mapValue);
-            }else if (historyShippingAddressId==null ) {
-                mapValue.put("historyPlaceId", saleShippingAddressId);
-                //修改地址(不修改历史地址)
-                bmstruckDetailsOrderMapper.updatePlace(mapValue);
-            }
+            bmstruckDetailsOrderMapper.updateActuallyPlace(mapValue);
+            //if (historyShippingAddressId!=null){
+            //    //修改地址(不修改历史地址)
+            //    bmstruckDetailsOrderMapper.updatePlaceNew(mapValue);
+            //}else if (historyShippingAddressId==null ) {
+            //    mapValue.put("historyPlaceId", saleShippingAddressId);
+            //    //修改地址(不修改历史地址)
+            //    bmstruckDetailsOrderMapper.updatePlace(mapValue);
+            //}
         }
         }
         return bmstruckDetailsOrderMapper.updateAsomPriceId(mapValue);
         return bmstruckDetailsOrderMapper.updateAsomPriceId(mapValue);
     }
     }

+ 5 - 0
src/main/resources/com/steerinfo/dil/mapper/BmstruckDetailsOrderMapper.xml

@@ -2391,4 +2391,9 @@
         SET PRICE_ID = #{priceId}
         SET PRICE_ID = #{priceId}
         WHERE SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId}
         WHERE SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId}
     </update>
     </update>
+    <update id="updateActuallyPlace">
+        UPDATE AMS_SALE_ORDER_MATERIAL
+        SET ACTUALLY_ADDRESS_ID = #{placeId}
+        WHERE SALE_ORDER_MATERIAL_ID = #{saleOrderMaterialId}
+    </update>
 </mapper>
 </mapper>