Browse Source

1、4.2新增查询;

zk 1 year ago
parent
commit
5b37e02783

+ 4 - 0
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/dao/KwtLogisticsOrderAmountMapper.java

@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.sckw.transport.model.KwtLogisticsOrderAddress;
 import com.sckw.transport.model.KwtLogisticsOrderAmount;
 import org.apache.ibatis.annotations.Mapper;
+import org.apache.ibatis.annotations.Param;
+
 import java.util.List;
 
 /**
@@ -15,4 +17,6 @@ import java.util.List;
 public interface KwtLogisticsOrderAmountMapper extends BaseMapper<KwtLogisticsOrderAmount> {
 
     List<KwtLogisticsOrderAmount> findByAddress(KwtLogisticsOrderAddress params);
+
+    KwtLogisticsOrderAmount findByAddressId(@Param("") Long lAddressId);
 }

+ 11 - 1
sckw-modules/sckw-transport/src/main/resources/mapper/KwtLogisticsOrderAmountMapper.xml

@@ -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>