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
211f8b6f
Commit
211f8b6f
authored
Feb 08, 2021
by
fanjr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pda接口
parent
88d1ff4c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
7 deletions
+43
-7
CouponrecordMapper.java
.../java/com/cftech/couponrecord/dao/CouponrecordMapper.java
+19
-1
CouponrecordMapper.xml
...n/java/com/cftech/couponrecord/dao/CouponrecordMapper.xml
+24
-6
No files found.
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/dao/CouponrecordMapper.java
View file @
211f8b6f
...
...
@@ -24,7 +24,6 @@ public interface CouponrecordMapper extends GenericDao<Couponrecord> {
List
<
Map
<
String
,
Object
>>
CheckCouponYGQList
(
CouponrecordVo
vo
);
Map
<
String
,
Object
>
checkCouponById
(
String
number
);
Map
<
String
,
Object
>
checkCouponDetails
(
CouponrecordVo
vo
);
/**
...
...
@@ -33,4 +32,23 @@ public interface CouponrecordMapper extends GenericDao<Couponrecord> {
* @return
*/
Integer
buyingMedicineNumber
(
Map
<
String
,
Object
>
params
);
/**
* 插入核销接口日志
* @param params
* @return
*/
Integer
insertPdaLog
(
Map
<
String
,
Object
>
params
);
/**
* 修改核销接口日志
* @param params
* @return
*/
Integer
updatePdaLog
(
Map
<
String
,
Object
>
params
);
/**
* 是否核销
* @param number
* @return
*/
Couponrecord
isWriteOff
(
String
number
);
}
\ No newline at end of file
aidea-modules/couponrecord-module/src/main/java/com/cftech/couponrecord/dao/CouponrecordMapper.xml
View file @
211f8b6f
...
...
@@ -235,16 +235,13 @@
</if>
</select>
<select
id=
"checkCouponById"
parameterType=
"java.lang.String"
resultType=
"map"
>
SELECT t.*
FROM t_aidea_check_result t
WHERE t.number=#{number}
</select>
<select
id=
"checkCouponDetails"
resultType=
"map"
>
SELECT
id,number,DATE_FORMAT(create_time,'%Y-%m-%d') create_time,DATE_FORMAT(invalid_date,'%Y-%m-%d') invalid_date,status,description
id,number,DATE_FORMAT(create_time,'%Y-%m-%d') create_time,DATE_FORMAT(invalid_date,'%Y-%m-%d') invalid_date,status,description
,qrcode
from t_aidea_coupon_record
where id = #{id}
</select>
<select
id=
"buyingMedicineNumber"
parameterType=
"java.util.Map"
resultType=
"map"
>
SELECT
SUM(d.number) number
...
...
@@ -252,4 +249,25 @@
LEFT JOIN t_order_details d ON t.id = d.order_id
<include
refid=
"sqlWhere"
/>
</select>
<update
id=
"updatePdaLog"
parameterType=
"java.util.Map"
>
update t_aidea_PdaLog set
resultJson = #{resultJson, jdbcType=VARCHAR},
status = #{status, jdbcType=BIGINT},
update_time = now()
where id=#{id,jdbcType=VARCHAR}
</update>
<insert
id=
"insertPdaLog"
parameterType=
"java.util.Map"
useGeneratedKeys=
"true"
keyProperty=
"id"
>
insert into t_aidea_coupon_record (id,content,create_time)
values
(#{id, jdbcType=VARCHAR},#{content, jdbcType=VARCHAR},now())
</insert>
<select
id=
"isWriteOff"
resultMap=
"resultMap"
>
SELECT
<include
refid=
"sqlColumns"
/>
FROM t_aidea_coupon_record
where number=#{number}
</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