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
ad465898
Commit
ad465898
authored
Nov 02, 2020
by
黎聪聪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2020年11月2日 19:43:14
parent
efa6bbd9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
+22
-5
OrderMapper.xml
...module/src/main/java/com/cftech/order/dao/OrderMapper.xml
+22
-5
No files found.
aidea-modules/order-module/src/main/java/com/cftech/order/dao/OrderMapper.xml
View file @
ad465898
...
@@ -226,6 +226,9 @@
...
@@ -226,6 +226,9 @@
#{clerkId, jdbcType=BIGINT}
#{clerkId, jdbcType=BIGINT}
)
)
</insert>
</insert>
<update
id=
"deleteAll"
>
update t_order_details set del_flag=1 where id=#{id}
</update>
<select
id=
"fetchId"
parameterType=
"java.lang.Long"
resultType=
"com.cftech.order.model.OrderFromVO"
>
<select
id=
"fetchId"
parameterType=
"java.lang.Long"
resultType=
"com.cftech.order.model.OrderFromVO"
>
...
@@ -469,22 +472,36 @@ FROM
...
@@ -469,22 +472,36 @@ FROM
</if>
</if>
<if
test=
"openid"
>
<if
test=
"openid"
>
AND t.openid =#{openid}
,
AND t.openid =#{openid}
</if>
</if>
<if
test=
"status!=null and status ==0"
>
<if
test=
"status!=null and status ==0"
>
AND t.status =#{status}
,
AND t.status =#{status}
</if>
</if>
<if
test=
"status!=null and status ==1"
>
<if
test=
"status!=null and status ==1"
>
AND t.status =#{status}
,
AND t.status =#{status}
</if>
</if>
<if
test=
"status!=null and status ==2"
>
<if
test=
"status!=null and status ==2"
>
AND t.status =#{status}
,
AND t.status =#{status}
</if>
</if>
<if
test=
"status!=null and status ==3"
>
<if
test=
"status!=null and status ==3"
>
AND t.status =#{status}
,
AND t.status =#{status}
</if>
</if>
<if
test=
"status!=null and status ==4"
>
<if
test=
"status!=null and status ==4"
>
AND t.status =#{status}
AND t.status =#{status}
</if>
</if>
</select>
</select>
<select
id=
"orderDetill"
resultType=
"com.cftech.order.model.ProductMobile"
>
SELECT
p.product_name AS productName,
t.amount,
p.is_rs AS isrs,
p.product_img AS productImg,
p.format
FROM t_order_details t LEFT JOIN t_aidea_product p
ON t.drugs_id = p.id
WHERE t.del_flag=0
<if
test=
"orderId!=null"
>
and t.order_id =#{orderId}
</if>
</select>
</mapper>
</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