Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-api
Project
Project
Details
Activity
Releases
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
李伟
cust-api
Commits
dba49a5f
Commit
dba49a5f
authored
Feb 19, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改充值查询
parent
7e1f0d48
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
6 deletions
+11
-6
MemGoldCoinFlowRepository.java
...siness/memGoldCoinFlow/dao/MemGoldCoinFlowRepository.java
+2
-0
MemGoldCoinFlowServiceImpl.java
...GoldCoinFlow/service/impl/MemGoldCoinFlowServiceImpl.java
+2
-3
MemGoldCoinFlowMapper.xml
...business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
+7
-3
No files found.
src/main/java/org/rcisoft/business/memGoldCoinFlow/dao/MemGoldCoinFlowRepository.java
View file @
dba49a5f
...
...
@@ -34,5 +34,7 @@ public interface MemGoldCoinFlowRepository extends CyBaseMapper<MemGoldCoinFlow>
* 查询当前用户金币余额
*/
Integer
balance
(
Integer
userId
);
int
insertMemGoldCoinFlow
(
@Param
(
"entity"
)
MemGoldCoinFlow
memGoldCoinFlow
);
}
src/main/java/org/rcisoft/business/memGoldCoinFlow/service/impl/MemGoldCoinFlowServiceImpl.java
View file @
dba49a5f
...
...
@@ -47,9 +47,8 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
public
CyPersistModel
persist
(
MemGoldCoinFlow
memGoldCoinFlow
){
//增加到金币流水表
memGoldCoinFlow
.
setEndCount
(
memGoldCoinFlow
.
getCount
()
+
memGoldCoinFlow
.
getBalance
());
//修改创建人,方便小程序查询消费记录
memGoldCoinFlow
.
setCreateBy
(
String
.
valueOf
(
memGoldCoinFlow
.
getTargetId
()));
int
line
=
baseMapper
.
insert
(
memGoldCoinFlow
);
int
line
=
baseMapper
.
insertMemGoldCoinFlow
(
memGoldCoinFlow
);
//修改会员表的金币余额
MemInfo
memInfo
=
new
MemInfo
();
memInfo
.
setBusinessId
(
memGoldCoinFlow
.
getMemberId
());
...
...
src/main/resources/mapper/business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
View file @
dba49a5f
...
...
@@ -53,6 +53,7 @@
left join sys_user su on su.business_id = mgcf.target_id
where 1=1
and mgcf.del_flag = '0'
and mgcf.create_by = #{entity.targetId}
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mgcf.create_date
>
= #{entity.beginTime}
</if>
...
...
@@ -77,9 +78,6 @@
<if
test=
"entity.orderId !=null and entity.orderId != '' "
>
and order_id = #{entity.orderId}
</if>
<if
test=
"entity.targetId !=null and entity.targetId != '' "
>
and target_id = #{entity.targetId}
</if>
<if
test=
"entity.userNickName !=null and entity.userNickName != '' "
>
and su.nick_name like concat('%',#{entity.userNickName},'%')
</if>
...
...
@@ -109,4 +107,10 @@
from mem_info mi
where user_id = #{userId}
</select>
<insert
id=
"insertMemGoldCoinFlow"
>
insert into mem_gold_coin_flow
(create_by, create_date, update_by, update_date, flag,del_flag, type, action_type, count, end_count, target_id)
values
(#{entity.targetId}, now(), #{entity.targetId}, now(), #{entity.flag},#{entity.delFlag} , #{entity.type}, #{entity.actionType}, #{entity.count}, #{entity.endCount}, #{entity.targetId})
</insert>
</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