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
27e2ea8b
Commit
27e2ea8b
authored
Feb 13, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
对接了app消费记录接口
parent
00c37b55
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
41 additions
and
4 deletions
+41
-4
MemGoldCoinFlow.java
...soft/business/memGoldCoinFlow/entity/MemGoldCoinFlow.java
+16
-0
MemGoldCoinFlowServiceImpl.java
...GoldCoinFlow/service/impl/MemGoldCoinFlowServiceImpl.java
+11
-0
OpmBlackList.java
...rg/rcisoft/business/opmBlacklist/entity/OpmBlackList.java
+3
-3
MemGoldCoinFlowMapper.xml
...business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
+11
-1
No files found.
src/main/java/org/rcisoft/business/memGoldCoinFlow/entity/MemGoldCoinFlow.java
View file @
27e2ea8b
...
...
@@ -2,10 +2,14 @@ package org.rcisoft.business.memGoldCoinFlow.entity;
import
cn.afterturn.easypoi.excel.annotation.Excel
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
lombok.*
;
import
org.rcisoft.core.entity.CyIdIncreEntity
;
import
org.springframework.format.annotation.DateTimeFormat
;
import
java.math.BigInteger
;
import
java.util.Date
;
/**
* Created with cy on 2025年2月7日 上午10:11:22.
...
...
@@ -74,5 +78,17 @@ public class MemGoldCoinFlow extends CyIdIncreEntity<MemGoldCoinFlow> {
//用户
@TableField
(
exist
=
false
)
private
String
userNickName
;
/**
* 开始时间
*/
@TableField
(
exist
=
false
)
private
String
beginTime
;
/**
* 结束时间
*/
@TableField
(
exist
=
false
)
private
String
endTime
;
}
src/main/java/org/rcisoft/business/memGoldCoinFlow/service/impl/MemGoldCoinFlowServiceImpl.java
View file @
27e2ea8b
...
...
@@ -2,6 +2,7 @@ package org.rcisoft.business.memGoldCoinFlow.service.impl;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
org.apache.commons.lang.StringUtils
;
import
org.rcisoft.business.memGoldCoinFlow.dao.MemGoldCoinFlowRepository
;
import
org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow
;
import
org.rcisoft.business.memGoldCoinFlow.service.MemGoldCoinFlowService
;
...
...
@@ -16,6 +17,11 @@ import org.springframework.transaction.annotation.Propagation;
import
org.springframework.transaction.annotation.Transactional
;
import
org.rcisoft.core.model.CyPageInfo
;
import
java.text.SimpleDateFormat
;
import
java.time.LocalDateTime
;
import
java.time.ZoneId
;
import
java.time.format.DateTimeFormatter
;
import
java.util.Date
;
import
java.util.List
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -112,6 +118,11 @@ public class MemGoldCoinFlowServiceImpl extends ServiceImpl<MemGoldCoinFlowRepos
MemGoldCoinFlow
memGoldCoinFlow
,
String
type
){
if
(
type
.
equals
(
"app"
)){
//小程序
if
(
StringUtils
.
isNotEmpty
(
memGoldCoinFlow
.
getBeginTime
())
&&
StringUtils
.
isNotEmpty
(
memGoldCoinFlow
.
getEndTime
())){
memGoldCoinFlow
.
setBeginTime
(
memGoldCoinFlow
.
getBeginTime
()+
" 00:00:00"
);
memGoldCoinFlow
.
setEndTime
(
memGoldCoinFlow
.
getEndTime
()+
" 23:59:59"
);
}
memGoldCoinFlow
.
setCreateBy
(
CyUserUtil
.
getAuthenBusinessId
());
return
baseMapper
.
appQueryMemGoldCoinFlowsPaged
(
paginationUtility
,
memGoldCoinFlow
);
}
else
{
//管理端
...
...
src/main/java/org/rcisoft/business/opmBlacklist/entity/OpmBlackList.java
View file @
27e2ea8b
...
...
@@ -31,10 +31,10 @@ public class OpmBlackList extends CyIdIncreNotDataEntity<OpmBlackList> {
* @default
*/
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
@Excel
(
name
=
"创建时间"
,
orderNum
=
"0"
,
width
=
20
,
format
=
"yyyy-MM-dd"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"创建时间"
,
orderNum
=
"0"
,
width
=
20
,
format
=
"yyyy-MM-dd
HH:mm:ss
"
)
@DateTimeFormat
(
pattern
=
"yyyy-MM-dd
HH:mm:ss
"
)
private
Date
createDate
;
/**
...
...
src/main/resources/mapper/business/memGoldCoinFlow.mapper/MemGoldCoinFlowMapper.xml
View file @
27e2ea8b
...
...
@@ -81,11 +81,21 @@
</select>
<select
id=
"appQueryMemGoldCoinFlowsPaged"
resultType=
"org.rcisoft.business.memGoldCoinFlow.entity.MemGoldCoinFlow"
>
select mgcf.*
,
select mgcf.*
from mem_gold_coin_flow mgcf
where 1=1
and mgcf.del_flag = '0'
and mgcf.flag = '1'
and mgcf.create_by = #{entity.createBy}
<if
test=
"entity.beginTime !=null and entity.beginTime != '' "
>
and mgcf.create_date
>
= #{entity.beginTime}
</if>
<if
test=
"entity.endTime !=null and entity.endTime != '' "
>
and mgcf.create_date
<
= #{entity.endTime}
</if>
<if
test=
"entity.type !=null and entity.type != '' "
>
and mgcf.type = #{entity.type}
</if>
ORDER BY mgcf.business_id DESC
</select>
<select
id=
"balance"
resultType=
"java.lang.Integer"
>
...
...
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