Commit b68af3fa by huluobin

# update

parent 78e52aca
......@@ -6,58 +6,58 @@
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="purchase_id" jdbcType="VARCHAR" property="purchaseId" />
<result column="status" jdbcType="TINYINT" property="status" />
<result column="purchase_category_name" jdbcType="VARCHAR" property="purchaseCategoryName" />
<result column="deliver_id" jdbcType="INTEGER" property="deliverId" />
<result column="deliver_name" jdbcType="VARCHAR" property="deliverName" />
<result column="deliver_value" jdbcType="INTEGER" property="deliverValue" />
<result column="buyer_name" jdbcType="VARCHAR" property="buyerName" />
<result column="warehouse_from_code" jdbcType="VARCHAR" property="warehouseFromCode" />
<result column="warehouse_from_name" jdbcType="VARCHAR" property="warehouseFromName" />
<result column="warehouse_into_code" jdbcType="VARCHAR" property="warehouseIntoCode" />
<result column="warehouse_into_name" jdbcType="VARCHAR" property="warehouseIntoName" />
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku" />
<result column="quantity_purchase" jdbcType="INTEGER" property="quantityPurchase" />
<result column="unit_price" jdbcType="DECIMAL" property="unitPrice" />
<result column="amount_paid" jdbcType="DECIMAL" property="amountPaid" />
<result column="currency_code" jdbcType="VARCHAR" property="currencyCode" />
<result column="currency_name" jdbcType="VARCHAR" property="currencyName" />
<result column="quantity_return" jdbcType="INTEGER" property="quantityReturn" />
<result column="quantity_inbound" jdbcType="INTEGER" property="quantityInbound" />
<result column="quantity_deliver" jdbcType="INTEGER" property="quantityDeliver" />
<result column="quantity_not_deliver" jdbcType="INTEGER" property="quantityNotDeliver" />
<result column="quantity_arrival" jdbcType="INTEGER" property="quantityArrival" />
<result column="quantity_not_arrival" jdbcType="INTEGER" property="quantityNotArrival" />
<result column="quantity_inspect" jdbcType="INTEGER" property="quantityInspect" />
<result column="quantity_qualified_inspect" jdbcType="INTEGER" property="quantityQualifiedInspect" />
<result column="quantity_unqualified_inspect" jdbcType="INTEGER" property="quantityUnqualifiedInspect" />
<result column="quantity_wait_transfer" jdbcType="INTEGER" property="quantityWaitTransfer" />
<result column="quantity_exchange" jdbcType="INTEGER" property="quantityExchange" />
<result column="quantity_lose_inbound" jdbcType="INTEGER" property="quantityLoseInbound" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate" />
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified" />
<result column="quantity_not_inbound" jdbcType="INTEGER" property="quantityNotInbound" />
<result column="alibaba_order_id" jdbcType="VARCHAR" property="alibabaOrderId" />
<result column="logistics_order_id" jdbcType="VARCHAR" property="logisticsOrderId" />
<result column="logistics_company_name" jdbcType="VARCHAR" property="logisticsCompanyName" />
<result column="company_id" jdbcType="INTEGER" property="companyId" />
<result column="ispush" jdbcType="INTEGER" property="ispush" />
<result column="isallot" jdbcType="TINYINT" property="isallot" />
<result column="isaims" jdbcType="INTEGER" property="isaims" />
<result column="pay_type" jdbcType="INTEGER" property="payType" />
<result column="pay_status" jdbcType="INTEGER" property="payStatus" />
<result column="last_signtime" jdbcType="TIMESTAMP" property="lastSigntime" />
<result column="arrival_status" jdbcType="INTEGER" property="arrivalStatus" />
<result column="amount_buy" jdbcType="DECIMAL" property="amountBuy" />
<result column="amount_payed" jdbcType="DECIMAL" property="amountPayed" />
<result column="amount_express" jdbcType="DECIMAL" property="amountExpress" />
<result column="createusername" jdbcType="VARCHAR" property="createusername" />
<result column="can_7day_refund" jdbcType="INTEGER" property="can7dayRefund" />
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode" />
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="purchase_id" jdbcType="VARCHAR" property="purchaseId"/>
<result column="status" jdbcType="TINYINT" property="status"/>
<result column="purchase_category_name" jdbcType="VARCHAR" property="purchaseCategoryName"/>
<result column="deliver_id" jdbcType="INTEGER" property="deliverId"/>
<result column="deliver_name" jdbcType="VARCHAR" property="deliverName"/>
<result column="deliver_value" jdbcType="INTEGER" property="deliverValue"/>
<result column="buyer_name" jdbcType="VARCHAR" property="buyerName"/>
<result column="warehouse_from_code" jdbcType="VARCHAR" property="warehouseFromCode"/>
<result column="warehouse_from_name" jdbcType="VARCHAR" property="warehouseFromName"/>
<result column="warehouse_into_code" jdbcType="VARCHAR" property="warehouseIntoCode"/>
<result column="warehouse_into_name" jdbcType="VARCHAR" property="warehouseIntoName"/>
<result column="bailun_sku" jdbcType="VARCHAR" property="bailunSku"/>
<result column="quantity_purchase" jdbcType="INTEGER" property="quantityPurchase"/>
<result column="unit_price" jdbcType="DECIMAL" property="unitPrice"/>
<result column="amount_paid" jdbcType="DECIMAL" property="amountPaid"/>
<result column="currency_code" jdbcType="VARCHAR" property="currencyCode"/>
<result column="currency_name" jdbcType="VARCHAR" property="currencyName"/>
<result column="quantity_return" jdbcType="INTEGER" property="quantityReturn"/>
<result column="quantity_inbound" jdbcType="INTEGER" property="quantityInbound"/>
<result column="quantity_deliver" jdbcType="INTEGER" property="quantityDeliver"/>
<result column="quantity_not_deliver" jdbcType="INTEGER" property="quantityNotDeliver"/>
<result column="quantity_arrival" jdbcType="INTEGER" property="quantityArrival"/>
<result column="quantity_not_arrival" jdbcType="INTEGER" property="quantityNotArrival"/>
<result column="quantity_inspect" jdbcType="INTEGER" property="quantityInspect"/>
<result column="quantity_qualified_inspect" jdbcType="INTEGER" property="quantityQualifiedInspect"/>
<result column="quantity_unqualified_inspect" jdbcType="INTEGER" property="quantityUnqualifiedInspect"/>
<result column="quantity_wait_transfer" jdbcType="INTEGER" property="quantityWaitTransfer"/>
<result column="quantity_exchange" jdbcType="INTEGER" property="quantityExchange"/>
<result column="quantity_lose_inbound" jdbcType="INTEGER" property="quantityLoseInbound"/>
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="gmt_create" jdbcType="TIMESTAMP" property="gmtCreate"/>
<result column="gmt_modified" jdbcType="TIMESTAMP" property="gmtModified"/>
<result column="quantity_not_inbound" jdbcType="INTEGER" property="quantityNotInbound"/>
<result column="alibaba_order_id" jdbcType="VARCHAR" property="alibabaOrderId"/>
<result column="logistics_order_id" jdbcType="VARCHAR" property="logisticsOrderId"/>
<result column="logistics_company_name" jdbcType="VARCHAR" property="logisticsCompanyName"/>
<result column="company_id" jdbcType="INTEGER" property="companyId"/>
<result column="ispush" jdbcType="INTEGER" property="ispush"/>
<result column="isallot" jdbcType="TINYINT" property="isallot"/>
<result column="isaims" jdbcType="INTEGER" property="isaims"/>
<result column="pay_type" jdbcType="INTEGER" property="payType"/>
<result column="pay_status" jdbcType="INTEGER" property="payStatus"/>
<result column="last_signtime" jdbcType="TIMESTAMP" property="lastSigntime"/>
<result column="arrival_status" jdbcType="INTEGER" property="arrivalStatus"/>
<result column="amount_buy" jdbcType="DECIMAL" property="amountBuy"/>
<result column="amount_payed" jdbcType="DECIMAL" property="amountPayed"/>
<result column="amount_express" jdbcType="DECIMAL" property="amountExpress"/>
<result column="createusername" jdbcType="VARCHAR" property="createusername"/>
<result column="can_7day_refund" jdbcType="INTEGER" property="can7dayRefund"/>
<result column="warehouse_code" jdbcType="VARCHAR" property="warehouseCode"/>
</resultMap>
<sql id="Example_Where_Clause">
<!--
......@@ -150,10 +150,10 @@
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
<include refid="Base_Column_List"/>
from dc_base_purchase_details
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
<include refid="Example_Where_Clause"/>
</if>
<if test="orderByClause != null">
order by ${orderByClause}
......@@ -173,7 +173,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
-->
select
<include refid="Base_Column_List" />
<include refid="Base_Column_List"/>
from dc_base_purchase_details
where id = #{id,jdbcType=INTEGER}
</select>
......@@ -192,7 +192,7 @@
-->
delete from dc_base_purchase_details
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
<include refid="Example_Where_Clause"/>
</if>
</delete>
<insert id="insert" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
......@@ -569,7 +569,7 @@
-->
select count(*) from dc_base_purchase_details
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
<include refid="Example_Where_Clause"/>
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
......@@ -737,7 +737,7 @@
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByExample" parameterType="map">
......@@ -799,7 +799,7 @@
can_7day_refund = #{record.can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
<include refid="Update_By_Example_Where_Clause"/>
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.bailuntec.domain.entity.DcBasePurchaseDetails">
......@@ -1606,10 +1606,10 @@
@project https://github.com/itfsw/mybatis-generator-plugin
-->
select
<include refid="Base_Column_List" />
<include refid="Base_Column_List"/>
from dc_base_purchase_details
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
<include refid="Example_Where_Clause"/>
</if>
<if test="orderByClause != null">
order by ${orderByClause}
......@@ -1618,17 +1618,21 @@
</select>
<select id="getCount" resultType="java.lang.Long">
select count(id) from (select id from dc_base_purchase_details where isaims is null group by purchase_id)a
select count(id)
from (select id from dc_base_purchase_details where isaims is null group by purchase_id) a
</select>
<select id="selectPageByGroup" resultType="java.lang.String">
select purchase_id from dc_base_purchase_details
select purchase_id
from dc_base_purchase_details
group by purchase_id
order by id asc
limit #{pageIndex}, #{pageSize}
</select>
<update id="updateByBuyNo">
update dc_base_purchase_details set isaims = #{isaims} where purchase_id = #{purchaseId}
update dc_base_purchase_details
set isaims = #{isaims}
where purchase_id = #{purchaseId}
</update>
</mapper>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment