|
|
@ -20,6 +20,7 @@ |
|
|
<result column="in_storage_status" jdbcType="INTEGER" property="inStorageStatus" /> |
|
|
<result column="in_storage_status" jdbcType="INTEGER" property="inStorageStatus" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
|
|
<result column="balance_deduction_amount" jdbcType="DECIMAL" property="balanceDeductionAmount" /> |
|
|
<result column="balance_deduction_amount" jdbcType="DECIMAL" property="balanceDeductionAmount" /> |
|
|
|
|
|
<result column="purchase_time" jdbcType="TIMESTAMP" property="purchaseTime" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
|
|
|
|
|
|
<resultMap id="DebtResultMap" type="cc.hiver.mall.pojo.dto.DebtSupplier"> |
|
|
<resultMap id="DebtResultMap" type="cc.hiver.mall.pojo.dto.DebtSupplier"> |
|
|
@ -88,7 +89,8 @@ |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, create_by,create_by_name, create_time, del_flag, update_by, update_time, supplier_id,supplier_name, shop_id, |
|
|
id, create_by,create_by_name, create_time, del_flag, update_by, update_time, supplier_id,supplier_name, shop_id, |
|
|
total_amount, should_pay, already_pay, no_pay,other_pay, in_storage_status,remark, balance_deduction_amount |
|
|
total_amount, should_pay, already_pay, no_pay,other_pay, in_storage_status,remark, balance_deduction_amount, |
|
|
|
|
|
purchase_time |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="cc.hiver.mall.entity.PurchaseExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="cc.hiver.mall.entity.PurchaseExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -124,13 +126,13 @@ |
|
|
insert into t_purchase (id, create_by, create_by_name, create_time, |
|
|
insert into t_purchase (id, create_by, create_by_name, create_time, |
|
|
del_flag, update_by, update_time, |
|
|
del_flag, update_by, update_time, |
|
|
supplier_id,supplier_name, shop_id, total_amount, |
|
|
supplier_id,supplier_name, shop_id, total_amount, |
|
|
should_pay, already_pay, no_pay,other_pay, in_storage_status,remark, balance_deduction_amount |
|
|
should_pay, already_pay, no_pay,other_pay, in_storage_status,remark, balance_deduction_amount,purchase_time |
|
|
) |
|
|
) |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createByName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
values (#{id,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{createByName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{delFlag,jdbcType=INTEGER}, #{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, |
|
|
#{supplierId,jdbcType=VARCHAR},#{supplierName,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, |
|
|
#{supplierId,jdbcType=VARCHAR},#{supplierName,jdbcType=VARCHAR}, #{shopId,jdbcType=VARCHAR}, #{totalAmount,jdbcType=DECIMAL}, |
|
|
#{shouldPay,jdbcType=DECIMAL}, #{alreadyPay,jdbcType=DECIMAL}, #{noPay,jdbcType=DECIMAL}, #{otherPay,jdbcType=DECIMAL}, #{inStorageStatus,jdbcType=INTEGER}, |
|
|
#{shouldPay,jdbcType=DECIMAL}, #{alreadyPay,jdbcType=DECIMAL}, #{noPay,jdbcType=DECIMAL}, #{otherPay,jdbcType=DECIMAL}, #{inStorageStatus,jdbcType=INTEGER}, |
|
|
#{remark,jdbcType=VARCHAR}, #{balanceDeductionAmount,jdbcType=DECIMAL} |
|
|
#{remark,jdbcType=VARCHAR}, #{balanceDeductionAmount,jdbcType=DECIMAL},#{purchaseTime,jdbcType=TIMESTAMP} |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Purchase"> |
|
|
<insert id="insertSelective" parameterType="cc.hiver.mall.entity.Purchase"> |
|
|
@ -190,6 +192,9 @@ |
|
|
<if test="balanceDeductionAmount != null"> |
|
|
<if test="balanceDeductionAmount != null"> |
|
|
balance_deduction_amount, |
|
|
balance_deduction_amount, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="purchaseTime != null"> |
|
|
|
|
|
purchase_time, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -299,6 +304,9 @@ |
|
|
<if test="record.balanceDeductionAmount != null"> |
|
|
<if test="record.balanceDeductionAmount != null"> |
|
|
balance_deduction_amount = #{record.balanceDeductionAmount,jdbcType=DECIMAL}, |
|
|
balance_deduction_amount = #{record.balanceDeductionAmount,jdbcType=DECIMAL}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.purchaseTime != null"> |
|
|
|
|
|
purchase_time = #{record.purchaseTime,jdbcType=TIMESTAMP}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -323,7 +331,8 @@ |
|
|
other_pay = #{record.otherPay,jdbcType=DECIMAL}, |
|
|
other_pay = #{record.otherPay,jdbcType=DECIMAL}, |
|
|
in_storage_status = #{record.inStorageStatus,jdbcType=INTEGER}, |
|
|
in_storage_status = #{record.inStorageStatus,jdbcType=INTEGER}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
remark = #{record.remark,jdbcType=VARCHAR}, |
|
|
balance_deduction_amount = #{record.balanceDeductionAmount,jdbcType=DECIMAL} |
|
|
balance_deduction_amount = #{record.balanceDeductionAmount,jdbcType=DECIMAL}, |
|
|
|
|
|
purchase_time = #{record.purchaseTime,jdbcType=TIMESTAMP} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -382,6 +391,9 @@ |
|
|
<if test="balanceDeductionAmount != null"> |
|
|
<if test="balanceDeductionAmount != null"> |
|
|
balance_deduction_amount = #{balanceDeductionAmount,jdbcType=DECIMAL}, |
|
|
balance_deduction_amount = #{balanceDeductionAmount,jdbcType=DECIMAL}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="purchaseTime != null"> |
|
|
|
|
|
purchase_time = #{purchaseTime,jdbcType=TIMESTAMP}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
@ -403,7 +415,8 @@ |
|
|
other_pay = #{otherPay,jdbcType=DECIMAL}, |
|
|
other_pay = #{otherPay,jdbcType=DECIMAL}, |
|
|
in_storage_status = #{inStorageStatus,jdbcType=INTEGER}, |
|
|
in_storage_status = #{inStorageStatus,jdbcType=INTEGER}, |
|
|
remark = #{remark,jdbcType=INTEGER}, |
|
|
remark = #{remark,jdbcType=INTEGER}, |
|
|
balance_deduction_amount = #{balanceDeductionAmount,jdbcType=DECIMAL} |
|
|
balance_deduction_amount = #{balanceDeductionAmount,jdbcType=DECIMAL}, |
|
|
|
|
|
purchase_time = #{purchaseTime,jdbcType=TIMESTAMP} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=VARCHAR} |
|
|
</update> |
|
|
</update> |
|
|
|
|
|
|
|
|
|