|
|
@@ -5,7 +5,7 @@
|
|
|
<select id="findByAddress" parameterType="com.sckw.transport.model.KwtLogisticsOrderAddress"
|
|
|
resultType="com.sckw.transport.model.KwtLogisticsOrderAmount" >
|
|
|
select
|
|
|
- kloa1.id, kloa1.l_order_id lOrderId, kloa1.address_id addressId, kloa1.amount, kloa1.subcontract_amount subcontractAmount,
|
|
|
+ kloa1.id, kloa1.l_order_id lOrderId, kloa1.l_address_id lAddressId, kloa1.amount, kloa1.subcontract_amount subcontractAmount,
|
|
|
kloa1.entrust_amount entrustAmount, kloa1.load_amount loadAmount, kloa1.unload_amount unloadAmount, kloa1.ignore_amount ignoreAmount,
|
|
|
kloa1.load_time loadTime, kloa1.unload_time unloadTime, kloa1.total_load_amount totalLoadAmount, kloa1.total_unload_amount totalUnloadAmount
|
|
|
from kwt_logistics_order_amount kloa1
|
|
|
@@ -18,4 +18,14 @@
|
|
|
and kloa2.address_type = #{addressType, jdbcType=INTEGER}
|
|
|
</if>
|
|
|
</select>
|
|
|
+
|
|
|
+ <select id="findByAddressId" resultType="com.sckw.transport.model.KwtLogisticsOrderAmount" >
|
|
|
+ select
|
|
|
+ id, l_order_id lOrderId, l_address_id lAddressId, amount, subcontract_amount subcontractAmount,
|
|
|
+ entrust_amount entrustAmount, load_amount loadAmount, unload_amount unloadAmount, ignore_amount ignoreAmount,
|
|
|
+ load_time loadTime, unload_time unloadTime, total_load_amount totalLoadAmount, total_unload_amount totalUnloadAmount
|
|
|
+ from kwt_logistics_order_amount
|
|
|
+ where del_flag = 0
|
|
|
+ and l_address_id = #{lAddressId, jdbcType=BIGINT}
|
|
|
+ </select>
|
|
|
</mapper>
|