Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
Aidea
Project
Project
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
sa_aidea
Aidea
Commits
ccb08de4
Commit
ccb08de4
authored
Nov 02, 2020
by
黎聪聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年11月2日 17:10:24
parent
e036339e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
69 additions
and
3 deletions
+69
-3
pom.xml
aidea-modules/consult-module/pom.xml
+5
-0
OrderMapper.xml
...module/src/main/java/com/cftech/order/dao/OrderMapper.xml
+64
-3
No files found.
aidea-modules/consult-module/pom.xml
View file @
ccb08de4
...
...
@@ -32,5 +32,10 @@
<artifactId>
shipping-address-module
</artifactId>
<version>
1.0-SNAPSHOT
</version>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
fastjson
</artifactId>
<version>
1.2.73
</version>
</dependency>
</dependencies>
</project>
\ No newline at end of file
aidea-modules/order-module/src/main/java/com/cftech/order/dao/OrderMapper.xml
View file @
ccb08de4
...
...
@@ -389,9 +389,24 @@
<select
id=
"fetchProduct"
resultType=
"com.cftech.order.model.ProductDto"
parameterType=
"java.util.Map"
>
SELECT * FROM t_aidea_product WHERE id = #{productId} AND accounts_id=#{accountsId}
</select>
<delete
id=
"updateDetill"
parameterType=
"java.util.Map"
>
delete from t_order_details where order_id = #{id}
</delete>
<update
id=
"updateDetill"
parameterType=
"java.util.Map"
>
update t_order_details
<set>
<if
test=
"productId != null"
>
drugs_id = #{productId},
</if>
<if
test=
"drugsNum != null"
>
drugs_num = #{drugsNum},
</if>
<if
test=
"price != null"
>
price = #{price},
</if>
<if
test=
"amount != null"
>
amount = #{amount}
</if>
</set>
where order_id =#{id} and id = #{idDetail}
</update>
<select
id=
"fetcheDeta"
parameterType=
"java.util.Map"
resultType=
"java.lang.Integer"
>
select * from t_order_details where order_id =#{id} and accounts_id=#{accountsId} and drugs_id =#{productId}
</select>
...
...
@@ -416,6 +431,7 @@
<select
id=
"fetchOrder"
resultType=
"com.cftech.order.model.Order"
parameterType=
"java.lang.Long"
>
select * from t_order where id= #{id}
</select>
<update
id=
"updateOrder"
parameterType=
"java.util.Map"
>
update t_order
<set>
...
...
@@ -426,4 +442,49 @@
where id= #{id}
</update>
<select
id=
"orderFall"
resultType=
"com.cftech.order.model.OrderMobile"
>
SELECT
t.id,
t.number,
t.pay_status AS payStatus,
t.total_amount AS totalAmount,
t.pay_time AS payTime,
t.trade_no AS tradeNo,
t.courier_number AS courierNumber,
t.order_cancel AS orderCancel,
t.status,
t.create_time AS createTime,
s.address_name AS addressName,
a.areaname AS province,
b.areaname AS city,
c.areaname AS area
FROM
t_order t LEFT JOIN t_shipping_address s ON t.openid = s.open_id
LEFT JOIN area a ON s.province_id = a.areaid
LEFT JOIN area b ON s.city_id = b.areaid
LEFT JOIN area c ON s.area_id = c.areaid
WHERE t.del_flag=0 AND s.whether = 1
<if
test=
"number"
>
AND t.number =#{number},
</if>
<if
test=
"openid"
>
AND t.openid =#{openid},
</if>
<if
test=
"status!=null and status ==0"
>
AND t.status =#{status},
</if>
<if
test=
"status!=null and status ==1"
>
AND t.status =#{status},
</if>
<if
test=
"status!=null and status ==2"
>
AND t.status =#{status},
</if>
<if
test=
"status!=null and status ==3"
>
AND t.status =#{status},
</if>
<if
test=
"status!=null and status ==4"
>
AND t.status =#{status}
</if>
</select>
</mapper>
\ No newline at end of file
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