Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dc-java
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
dc-java
Commits
b68af3fa
Commit
b68af3fa
authored
Jan 23, 2021
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
# update
parent
78e52aca
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
68 additions
and
64 deletions
+68
-64
DcBasePurchaseDetailsMapper.xml
...java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.xml
+68
-64
No files found.
data-common/src/main/java/com/bailuntec/mapper/DcBasePurchaseDetailsMapper.xml
View file @
b68af3fa
...
@@ -6,58 +6,58 @@
...
@@ -6,58 +6,58 @@
WARNING - @mbg.generated
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<result
column=
"purchase_id"
jdbcType=
"VARCHAR"
property=
"purchaseId"
/>
<result
column=
"purchase_id"
jdbcType=
"VARCHAR"
property=
"purchaseId"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"status"
jdbcType=
"TINYINT"
property=
"status"
/>
<result
column=
"purchase_category_name"
jdbcType=
"VARCHAR"
property=
"purchaseCategoryName"
/>
<result
column=
"purchase_category_name"
jdbcType=
"VARCHAR"
property=
"purchaseCategoryName"
/>
<result
column=
"deliver_id"
jdbcType=
"INTEGER"
property=
"deliverId"
/>
<result
column=
"deliver_id"
jdbcType=
"INTEGER"
property=
"deliverId"
/>
<result
column=
"deliver_name"
jdbcType=
"VARCHAR"
property=
"deliverName"
/>
<result
column=
"deliver_name"
jdbcType=
"VARCHAR"
property=
"deliverName"
/>
<result
column=
"deliver_value"
jdbcType=
"INTEGER"
property=
"deliverValue"
/>
<result
column=
"deliver_value"
jdbcType=
"INTEGER"
property=
"deliverValue"
/>
<result
column=
"buyer_name"
jdbcType=
"VARCHAR"
property=
"buyerName"
/>
<result
column=
"buyer_name"
jdbcType=
"VARCHAR"
property=
"buyerName"
/>
<result
column=
"warehouse_from_code"
jdbcType=
"VARCHAR"
property=
"warehouseFromCode"
/>
<result
column=
"warehouse_from_code"
jdbcType=
"VARCHAR"
property=
"warehouseFromCode"
/>
<result
column=
"warehouse_from_name"
jdbcType=
"VARCHAR"
property=
"warehouseFromName"
/>
<result
column=
"warehouse_from_name"
jdbcType=
"VARCHAR"
property=
"warehouseFromName"
/>
<result
column=
"warehouse_into_code"
jdbcType=
"VARCHAR"
property=
"warehouseIntoCode"
/>
<result
column=
"warehouse_into_code"
jdbcType=
"VARCHAR"
property=
"warehouseIntoCode"
/>
<result
column=
"warehouse_into_name"
jdbcType=
"VARCHAR"
property=
"warehouseIntoName"
/>
<result
column=
"warehouse_into_name"
jdbcType=
"VARCHAR"
property=
"warehouseIntoName"
/>
<result
column=
"bailun_sku"
jdbcType=
"VARCHAR"
property=
"bailunSku"
/>
<result
column=
"bailun_sku"
jdbcType=
"VARCHAR"
property=
"bailunSku"
/>
<result
column=
"quantity_purchase"
jdbcType=
"INTEGER"
property=
"quantityPurchase"
/>
<result
column=
"quantity_purchase"
jdbcType=
"INTEGER"
property=
"quantityPurchase"
/>
<result
column=
"unit_price"
jdbcType=
"DECIMAL"
property=
"unitPrice"
/>
<result
column=
"unit_price"
jdbcType=
"DECIMAL"
property=
"unitPrice"
/>
<result
column=
"amount_paid"
jdbcType=
"DECIMAL"
property=
"amountPaid"
/>
<result
column=
"amount_paid"
jdbcType=
"DECIMAL"
property=
"amountPaid"
/>
<result
column=
"currency_code"
jdbcType=
"VARCHAR"
property=
"currencyCode"
/>
<result
column=
"currency_code"
jdbcType=
"VARCHAR"
property=
"currencyCode"
/>
<result
column=
"currency_name"
jdbcType=
"VARCHAR"
property=
"currencyName"
/>
<result
column=
"currency_name"
jdbcType=
"VARCHAR"
property=
"currencyName"
/>
<result
column=
"quantity_return"
jdbcType=
"INTEGER"
property=
"quantityReturn"
/>
<result
column=
"quantity_return"
jdbcType=
"INTEGER"
property=
"quantityReturn"
/>
<result
column=
"quantity_inbound"
jdbcType=
"INTEGER"
property=
"quantityInbound"
/>
<result
column=
"quantity_inbound"
jdbcType=
"INTEGER"
property=
"quantityInbound"
/>
<result
column=
"quantity_deliver"
jdbcType=
"INTEGER"
property=
"quantityDeliver"
/>
<result
column=
"quantity_deliver"
jdbcType=
"INTEGER"
property=
"quantityDeliver"
/>
<result
column=
"quantity_not_deliver"
jdbcType=
"INTEGER"
property=
"quantityNotDeliver"
/>
<result
column=
"quantity_not_deliver"
jdbcType=
"INTEGER"
property=
"quantityNotDeliver"
/>
<result
column=
"quantity_arrival"
jdbcType=
"INTEGER"
property=
"quantityArrival"
/>
<result
column=
"quantity_arrival"
jdbcType=
"INTEGER"
property=
"quantityArrival"
/>
<result
column=
"quantity_not_arrival"
jdbcType=
"INTEGER"
property=
"quantityNotArrival"
/>
<result
column=
"quantity_not_arrival"
jdbcType=
"INTEGER"
property=
"quantityNotArrival"
/>
<result
column=
"quantity_inspect"
jdbcType=
"INTEGER"
property=
"quantityInspect"
/>
<result
column=
"quantity_inspect"
jdbcType=
"INTEGER"
property=
"quantityInspect"
/>
<result
column=
"quantity_qualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityQualifiedInspect"
/>
<result
column=
"quantity_qualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityQualifiedInspect"
/>
<result
column=
"quantity_unqualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityUnqualifiedInspect"
/>
<result
column=
"quantity_unqualified_inspect"
jdbcType=
"INTEGER"
property=
"quantityUnqualifiedInspect"
/>
<result
column=
"quantity_wait_transfer"
jdbcType=
"INTEGER"
property=
"quantityWaitTransfer"
/>
<result
column=
"quantity_wait_transfer"
jdbcType=
"INTEGER"
property=
"quantityWaitTransfer"
/>
<result
column=
"quantity_exchange"
jdbcType=
"INTEGER"
property=
"quantityExchange"
/>
<result
column=
"quantity_exchange"
jdbcType=
"INTEGER"
property=
"quantityExchange"
/>
<result
column=
"quantity_lose_inbound"
jdbcType=
"INTEGER"
property=
"quantityLoseInbound"
/>
<result
column=
"quantity_lose_inbound"
jdbcType=
"INTEGER"
property=
"quantityLoseInbound"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"create_time"
jdbcType=
"TIMESTAMP"
property=
"createTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"update_time"
jdbcType=
"TIMESTAMP"
property=
"updateTime"
/>
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_create"
jdbcType=
"TIMESTAMP"
property=
"gmtCreate"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
<result
column=
"gmt_modified"
jdbcType=
"TIMESTAMP"
property=
"gmtModified"
/>
<result
column=
"quantity_not_inbound"
jdbcType=
"INTEGER"
property=
"quantityNotInbound"
/>
<result
column=
"quantity_not_inbound"
jdbcType=
"INTEGER"
property=
"quantityNotInbound"
/>
<result
column=
"alibaba_order_id"
jdbcType=
"VARCHAR"
property=
"alibabaOrderId"
/>
<result
column=
"alibaba_order_id"
jdbcType=
"VARCHAR"
property=
"alibabaOrderId"
/>
<result
column=
"logistics_order_id"
jdbcType=
"VARCHAR"
property=
"logisticsOrderId"
/>
<result
column=
"logistics_order_id"
jdbcType=
"VARCHAR"
property=
"logisticsOrderId"
/>
<result
column=
"logistics_company_name"
jdbcType=
"VARCHAR"
property=
"logisticsCompanyName"
/>
<result
column=
"logistics_company_name"
jdbcType=
"VARCHAR"
property=
"logisticsCompanyName"
/>
<result
column=
"company_id"
jdbcType=
"INTEGER"
property=
"companyId"
/>
<result
column=
"company_id"
jdbcType=
"INTEGER"
property=
"companyId"
/>
<result
column=
"ispush"
jdbcType=
"INTEGER"
property=
"ispush"
/>
<result
column=
"ispush"
jdbcType=
"INTEGER"
property=
"ispush"
/>
<result
column=
"isallot"
jdbcType=
"TINYINT"
property=
"isallot"
/>
<result
column=
"isallot"
jdbcType=
"TINYINT"
property=
"isallot"
/>
<result
column=
"isaims"
jdbcType=
"INTEGER"
property=
"isaims"
/>
<result
column=
"isaims"
jdbcType=
"INTEGER"
property=
"isaims"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_type"
jdbcType=
"INTEGER"
property=
"payType"
/>
<result
column=
"pay_status"
jdbcType=
"INTEGER"
property=
"payStatus"
/>
<result
column=
"pay_status"
jdbcType=
"INTEGER"
property=
"payStatus"
/>
<result
column=
"last_signtime"
jdbcType=
"TIMESTAMP"
property=
"lastSigntime"
/>
<result
column=
"last_signtime"
jdbcType=
"TIMESTAMP"
property=
"lastSigntime"
/>
<result
column=
"arrival_status"
jdbcType=
"INTEGER"
property=
"arrivalStatus"
/>
<result
column=
"arrival_status"
jdbcType=
"INTEGER"
property=
"arrivalStatus"
/>
<result
column=
"amount_buy"
jdbcType=
"DECIMAL"
property=
"amountBuy"
/>
<result
column=
"amount_buy"
jdbcType=
"DECIMAL"
property=
"amountBuy"
/>
<result
column=
"amount_payed"
jdbcType=
"DECIMAL"
property=
"amountPayed"
/>
<result
column=
"amount_payed"
jdbcType=
"DECIMAL"
property=
"amountPayed"
/>
<result
column=
"amount_express"
jdbcType=
"DECIMAL"
property=
"amountExpress"
/>
<result
column=
"amount_express"
jdbcType=
"DECIMAL"
property=
"amountExpress"
/>
<result
column=
"createusername"
jdbcType=
"VARCHAR"
property=
"createusername"
/>
<result
column=
"createusername"
jdbcType=
"VARCHAR"
property=
"createusername"
/>
<result
column=
"can_7day_refund"
jdbcType=
"INTEGER"
property=
"can7dayRefund"
/>
<result
column=
"can_7day_refund"
jdbcType=
"INTEGER"
property=
"can7dayRefund"
/>
<result
column=
"warehouse_code"
jdbcType=
"VARCHAR"
property=
"warehouseCode"
/>
<result
column=
"warehouse_code"
jdbcType=
"VARCHAR"
property=
"warehouseCode"
/>
</resultMap>
</resultMap>
<sql
id=
"Example_Where_Clause"
>
<sql
id=
"Example_Where_Clause"
>
<!--
<!--
...
@@ -150,10 +150,10 @@
...
@@ -150,10 +150,10 @@
<if
test=
"distinct"
>
<if
test=
"distinct"
>
distinct
distinct
</if>
</if>
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from dc_base_purchase_details
from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
<if
test=
"orderByClause != null"
>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
order by ${orderByClause}
...
@@ -173,7 +173,7 @@
...
@@ -173,7 +173,7 @@
This element is automatically generated by MyBatis Generator, do not modify.
This element is automatically generated by MyBatis Generator, do not modify.
-->
-->
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from dc_base_purchase_details
from dc_base_purchase_details
where id = #{id,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</select>
</select>
...
@@ -192,7 +192,7 @@
...
@@ -192,7 +192,7 @@
-->
-->
delete from dc_base_purchase_details
delete from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
</delete>
</delete>
<insert
id=
"insert"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
<insert
id=
"insert"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
@@ -569,7 +569,7 @@
...
@@ -569,7 +569,7 @@
-->
-->
select count(*) from dc_base_purchase_details
select count(*) from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
</select>
</select>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
<update
id=
"updateByExampleSelective"
parameterType=
"map"
>
...
@@ -737,7 +737,7 @@
...
@@ -737,7 +737,7 @@
</if>
</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"
/>
</if>
</if>
</update>
</update>
<update
id=
"updateByExample"
parameterType=
"map"
>
<update
id=
"updateByExample"
parameterType=
"map"
>
...
@@ -799,7 +799,7 @@
...
@@ -799,7 +799,7 @@
can_7day_refund = #{record.can7dayRefund,jdbcType=INTEGER},
can_7day_refund = #{record.can7dayRefund,jdbcType=INTEGER},
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR}
warehouse_code = #{record.warehouseCode,jdbcType=VARCHAR}
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Update_By_Example_Where_Clause"
/>
<include
refid=
"Update_By_Example_Where_Clause"
/>
</if>
</if>
</update>
</update>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
<update
id=
"updateByPrimaryKeySelective"
parameterType=
"com.bailuntec.domain.entity.DcBasePurchaseDetails"
>
...
@@ -1606,10 +1606,10 @@
...
@@ -1606,10 +1606,10 @@
@project https://github.com/itfsw/mybatis-generator-plugin
@project https://github.com/itfsw/mybatis-generator-plugin
-->
-->
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from dc_base_purchase_details
from dc_base_purchase_details
<if
test=
"_parameter != null"
>
<if
test=
"_parameter != null"
>
<include
refid=
"Example_Where_Clause"
/>
<include
refid=
"Example_Where_Clause"
/>
</if>
</if>
<if
test=
"orderByClause != null"
>
<if
test=
"orderByClause != null"
>
order by ${orderByClause}
order by ${orderByClause}
...
@@ -1618,17 +1618,21 @@
...
@@ -1618,17 +1618,21 @@
</select>
</select>
<select
id=
"getCount"
resultType=
"java.lang.Long"
>
<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>
<select
id=
"selectPageByGroup"
resultType=
"java.lang.String"
>
<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
group by purchase_id
order by id asc
order by id asc
limit #{pageIndex}, #{pageSize}
limit #{pageIndex}, #{pageSize}
</select>
</select>
<update
id=
"updateByBuyNo"
>
<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>
</update>
</mapper>
</mapper>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment