| 
														
															@@ -1599,7 +1599,21 @@ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   <select id="selectMaxIdrra" resultType="int"> 
														 | 
														
														 | 
														
															   <select id="selectMaxIdrra" resultType="int"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															        select max(address_id) from RMS_RECEIVE_ADDRESS 
														 | 
														
														 | 
														
															        select max(address_id) from RMS_RECEIVE_ADDRESS 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   </select> 
														 | 
														
														 | 
														
															   </select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  <select id="getPriceValueListInward" resultType="java.util.Map" parameterType="java.math.BigDecimal"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    select a_t_price.PRICE_ID "priceId", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.PRICE_VALUE "priceValue", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.OILPRICE_BASE "oilpriceBase", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.OILPRICE_CHANGE_THRESHOLD "oilpriceChangeThreshold", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.CARGONAME_ID "cargonameId", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.haul_distance "haulDistance", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.REFERENCE_HT "referenceHt", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.inventory "inventory", 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+           a_t_price.place_id "placeId" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    from AMS_CONTRACT_TRANSPORT_PRICE a_t_price 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    where a_t_price.OIL_TYPE_ID = #{oilTypeId} and a_t_price.DELETED = 0 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      and a_t_price.type in (2,5,6) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    order by a_t_price.PRICE_ID desc 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  </select> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   <insert id="insertshdz" parameterType="map"> 
														 | 
														
														 | 
														
															   <insert id="insertshdz" parameterType="map"> 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     insert into RMS_RECEIVE_ADDRESS (ADDRESS_ID, ADDRESS_PROVINCE, ADDRESS_DISTRICT 
														 | 
														
														 | 
														
															     insert into RMS_RECEIVE_ADDRESS (ADDRESS_ID, ADDRESS_PROVINCE, ADDRESS_DISTRICT 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     <if test="addressTown!=null"> 
														 | 
														
														 | 
														
															     <if test="addressTown!=null"> 
														 |