Bladeren bron

mapper新增

lengfaqiang 2 jaren geleden
bovenliggende
commit
0879fb6447

+ 0 - 1
sckw-modules/sckw-transport/src/main/java/com/sckw/transport/service/KwtLogisticsOrderGoodsService.java

@@ -26,7 +26,6 @@ import com.sckw.transport.model.param.GoodsUnitParam;
 import com.sckw.transport.model.param.LogisticsConsignmentParam;
 import com.sckw.transport.model.vo.GoodsUnitVo;
 import com.sckw.transport.model.vo.LogisticsCountVo;
-import com.sckw.transport.model.vo.WaybillCountVo;
 import lombok.extern.slf4j.Slf4j;
 import org.apache.dubbo.config.annotation.DubboReference;
 import org.springframework.beans.factory.annotation.Autowired;

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

@@ -4,7 +4,7 @@
     <resultMap id="BaseResultMap" type="com.sckw.transport.model.KwtLogisticsOrderGoods">
         <id column="id" jdbcType="BIGINT" property="id" />
         <result column="l_order_id" jdbcType="BIGINT" property="lOrderId" />
-        <result column="order_no" jdbcType="VARCHAR" property="lOrderNo" />
+        <result column="l_order_no" jdbcType="VARCHAR" property="lOrderNo" />
         <result column="goods_id" jdbcType="BIGINT" property="goodsId" />
         <result column="goods_name" jdbcType="VARCHAR" property="goodsName" />
         <result column="sku_id" jdbcType="BIGINT" property="skuId" />

+ 28 - 1
sckw-modules/sckw-transport/src/main/resources/mapper/KwtLogisticsOrderGoodsUnitMapper.xml

@@ -1,7 +1,34 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 <mapper namespace="com.sckw.transport.dao.KwtLogisticsOrderGoodsUnitMapper">
-
+    <resultMap id="BaseResultMap" type="com.sckw.transport.model.KwtLogisticsOrderGoodsUnit">
+        <!--@mbg.generated-->
+        <!--@Table kwt_logistics_order_goods_unit-->
+        <id column="id" jdbcType="BIGINT" property="id" />
+        <result column="l_order_id" jdbcType="BIGINT" property="lOrderId" />
+        <result column="goods_id" jdbcType="BIGINT" property="goodsId" />
+        <result column="from_unit" jdbcType="VARCHAR" property="fromUnit" />
+        <result column="to_unit" jdbcType="VARCHAR" property="toUnit" />
+        <result column="conversion_value" jdbcType="DECIMAL" property="conversionValue" />
+        <result column="unit" jdbcType="VARCHAR" property="unit" />
+        <result column="unload_amount" jdbcType="DECIMAL" property="unloadAmount" />
+        <result column="load_amount" jdbcType="DECIMAL" property="loadAmount" />
+        <result column="total_load_amount" jdbcType="DECIMAL" property="totalLoadAmount" />
+        <result column="total_unload_amount" jdbcType="DECIMAL" property="totalUnloadAmount" />
+        <result column="remark" jdbcType="VARCHAR" property="remark" />
+        <result column="status" jdbcType="INTEGER" property="status" />
+        <result column="create_by" jdbcType="BIGINT" property="createBy" />
+        <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
+        <result column="update_by" jdbcType="BIGINT" property="updateBy" />
+        <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
+        <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
+    </resultMap>
+    <sql id="Base_Column_List">
+        <!--@mbg.generated-->
+        id, l_order_id, goods_id, from_unit, to_unit, conversion_value, unit, unload_amount,
+        load_amount, total_load_amount, total_unload_amount, remark, `status`, create_by,
+        create_time, update_by, update_time, del_flag
+    </sql>
     <select id="findGoodsUnit" resultType="com.sckw.transport.model.KwtLogisticsOrderGoodsUnit" parameterType="java.util.Map" >
         SELECT
             id, l_order_id lOrderId, goods_id goodsId, from_unit fromUnit, to_unit toUnit,