|
|
@@ -53,6 +53,7 @@
|
|
|
<result column="AWD_RECEIPT" jdbcType="VARCHAR" property="receipt" />
|
|
|
<result column="AWD_EXCEL_RECEIPT_ID" jdbcType="VARCHAR" property="excelReceiptId" />
|
|
|
<result column="AWD_RECEIPT_TOTAL" jdbcType="VARCHAR" property="receiptTotal" />
|
|
|
+ <result column="AWD_CUSTOMER_ID" jdbcType="VARCHAR" property="awdCustomerId" />
|
|
|
</resultMap>
|
|
|
<sql id="Example_Where_Clause">
|
|
|
<!--
|
|
|
@@ -132,7 +133,7 @@
|
|
|
AWD_STANDARD_ID, AWD_WRECEIPT, AWD_OLD_ID, AWD_REMARKS, AWD_ENTRY_TIME, AWD_CREATE_USER,
|
|
|
AWD_CREATE_TIME, AWD_MODIFY_USER, AWD_MODIFY_TIME, AWD_COMPANY_ID, AWD_HAS_AMOUNT,
|
|
|
AWD_PLAN_ID, AWD_STOCK_ID, AWD_LICENSE_NUMBER, AWD_BRANCH_ID, AWD_COST_FLAG, AWD_KUCUN_FLAG,
|
|
|
- AWD_YG_WEIGHT, AWD_SJ_WEIGHT, AWD_SAVE_NO, AWD_RECEIPT, AWD_EXCEL_RECEIPT_ID, AWD_RECEIPT_TOTAL
|
|
|
+ AWD_YG_WEIGHT, AWD_SJ_WEIGHT, AWD_SAVE_NO, AWD_RECEIPT, AWD_EXCEL_RECEIPT_ID, AWD_RECEIPT_TOTAL,AWD_CUSTOMER_ID
|
|
|
</sql>
|
|
|
<select id="selectByExample" parameterType="com.minpay.db.table.model.ApWarehouseDetailExample" resultMap="BaseResultMap">
|
|
|
<!--
|
|
|
@@ -200,7 +201,7 @@
|
|
|
AWD_STOCK_ID, AWD_LICENSE_NUMBER, AWD_BRANCH_ID,
|
|
|
AWD_COST_FLAG, AWD_KUCUN_FLAG, AWD_YG_WEIGHT,
|
|
|
AWD_SJ_WEIGHT, AWD_SAVE_NO, AWD_RECEIPT,
|
|
|
- AWD_EXCEL_RECEIPT_ID, AWD_RECEIPT_TOTAL)
|
|
|
+ AWD_EXCEL_RECEIPT_ID, AWD_RECEIPT_TOTAL,AWD_CUSTOMER_ID)
|
|
|
values (#{id,jdbcType=VARCHAR}, #{warehouseId,jdbcType=VARCHAR}, #{warehouseName,jdbcType=VARCHAR},
|
|
|
#{orderId,jdbcType=VARCHAR}, #{orderName,jdbcType=VARCHAR}, #{contranctMonth,jdbcType=VARCHAR},
|
|
|
#{contractId,jdbcType=VARCHAR}, #{contractNo,jdbcType=VARCHAR}, #{buyerId,jdbcType=VARCHAR},
|
|
|
@@ -216,7 +217,7 @@
|
|
|
#{stockId,jdbcType=VARCHAR}, #{licenseNumber,jdbcType=VARCHAR}, #{branchId,jdbcType=VARCHAR},
|
|
|
#{costFlag,jdbcType=VARCHAR}, #{kucunFlag,jdbcType=VARCHAR}, #{ygWeight,jdbcType=VARCHAR},
|
|
|
#{sjWeight,jdbcType=VARCHAR}, #{saveNo,jdbcType=VARCHAR}, #{receipt,jdbcType=VARCHAR},
|
|
|
- #{excelReceiptId,jdbcType=VARCHAR}, #{receiptTotal,jdbcType=VARCHAR})
|
|
|
+ #{excelReceiptId,jdbcType=VARCHAR}, #{receiptTotal,jdbcType=VARCHAR},#{awdCustomerId,jdbcType=VARCHAR})
|
|
|
</insert>
|
|
|
<insert id="insertSelective" parameterType="com.minpay.db.table.model.ApWarehouseDetail">
|
|
|
<!--
|
|
|
@@ -366,6 +367,9 @@
|
|
|
<if test="receiptTotal != null">
|
|
|
AWD_RECEIPT_TOTAL,
|
|
|
</if>
|
|
|
+ <if test="awdCustomerId != null">
|
|
|
+ AWD_CUSTOMER_ID,
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
|
|
<if test="id != null">
|
|
|
@@ -509,6 +513,9 @@
|
|
|
<if test="receiptTotal != null">
|
|
|
#{receiptTotal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="awdCustomerId != null">
|
|
|
+ #{awdCustomerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</trim>
|
|
|
</insert>
|
|
|
<select id="countByExample" parameterType="com.minpay.db.table.model.ApWarehouseDetailExample" resultType="java.lang.Integer">
|
|
|
@@ -669,6 +676,9 @@
|
|
|
<if test="record.receiptTotal != null">
|
|
|
AWD_RECEIPT_TOTAL = #{record.receiptTotal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="record.awdCustomerId != null">
|
|
|
+ AWD_CUSTOMER_ID = #{record.awdCustomerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
@@ -727,6 +737,7 @@
|
|
|
AWD_RECEIPT = #{record.receipt,jdbcType=VARCHAR},
|
|
|
AWD_EXCEL_RECEIPT_ID = #{record.excelReceiptId,jdbcType=VARCHAR},
|
|
|
AWD_RECEIPT_TOTAL = #{record.receiptTotal,jdbcType=VARCHAR}
|
|
|
+ AWD_CUSTOMER_ID = #{record.awdCustomerId,jdbcType=VARCHAR}
|
|
|
<if test="_parameter != null">
|
|
|
<include refid="Update_By_Example_Where_Clause" />
|
|
|
</if>
|
|
|
@@ -876,6 +887,9 @@
|
|
|
<if test="receiptTotal != null">
|
|
|
AWD_RECEIPT_TOTAL = #{receiptTotal,jdbcType=VARCHAR},
|
|
|
</if>
|
|
|
+ <if test="awdCustomerId != null">
|
|
|
+ AWD_CUSTOMER_ID = #{awdCustomerId,jdbcType=VARCHAR},
|
|
|
+ </if>
|
|
|
</set>
|
|
|
where AWD_ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
@@ -930,7 +944,8 @@
|
|
|
AWD_SAVE_NO = #{saveNo,jdbcType=VARCHAR},
|
|
|
AWD_RECEIPT = #{receipt,jdbcType=VARCHAR},
|
|
|
AWD_EXCEL_RECEIPT_ID = #{excelReceiptId,jdbcType=VARCHAR},
|
|
|
- AWD_RECEIPT_TOTAL = #{receiptTotal,jdbcType=VARCHAR}
|
|
|
+ AWD_RECEIPT_TOTAL = #{receiptTotal,jdbcType=VARCHAR},
|
|
|
+ AWD_CUSTOMER_ID = #{awdCustomerId,jdbcType=VARCHAR}
|
|
|
where AWD_ID = #{id,jdbcType=VARCHAR}
|
|
|
</update>
|
|
|
</mapper>
|