Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
Overview
Overview
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
huluobin
gogirl-miniapp-backend
Commits
2a617d59
Commit
2a617d59
authored
Mar 16, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
long 序列化
parent
c8bd587b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
3 deletions
+16
-3
TimesCardService.java
.../java/com/gogirl/application/market/TimesCardService.java
+6
-0
TimesCardServiceImpl.java
.../gogirl/application/market/impl/TimesCardServiceImpl.java
+7
-0
TimesCardController.java
.../java/com/gogirl/interfaces/user/TimesCardController.java
+1
-1
TimesCardTypeMapper.xml
src/main/resources/mapper/market/TimesCardTypeMapper.xml
+2
-2
No files found.
src/main/java/com/gogirl/application/market/TimesCardService.java
View file @
2a617d59
...
...
@@ -22,5 +22,11 @@ public interface TimesCardService extends IService<TimesCardType> {
*/
TimesCardType
getAggregate
(
Integer
id
);
/**
* 次卡详情
*
* @param id
* @return
*/
TimesCardType
getTimesCardTypeDetail
(
Integer
id
);
}
src/main/java/com/gogirl/application/market/impl/TimesCardServiceImpl.java
View file @
2a617d59
...
...
@@ -4,6 +4,8 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
com.gogirl.application.market.TimesCardService
;
import
com.gogirl.domain.market.timescard.TimesCardType
;
import
com.gogirl.domain.market.timescard.TimesCardTypeContent
;
import
com.gogirl.infrastructure.mapper.market.timescard.TimesCardTypeContentMapper
;
import
com.gogirl.infrastructure.mapper.market.timescard.TimesCardTypeMapper
;
import
lombok.AllArgsConstructor
;
import
lombok.extern.slf4j.Slf4j
;
...
...
@@ -16,6 +18,7 @@ import java.util.List;
@Slf4j
public
class
TimesCardServiceImpl
extends
ServiceImpl
<
TimesCardTypeMapper
,
TimesCardType
>
implements
TimesCardService
{
private
final
TimesCardTypeContentMapper
timesCardTypeContentMapper
;
private
final
TimesCardTypeMapper
timesCardTypeMapper
;
public
List
<
TimesCardType
>
getTimesCardTypeList
()
{
...
...
@@ -25,6 +28,10 @@ public class TimesCardServiceImpl extends ServiceImpl<TimesCardTypeMapper, Times
}
public
TimesCardType
getAggregate
(
Integer
id
)
{
TimesCardType
timesCardType
=
this
.
getById
(
id
);
List
<
TimesCardTypeContent
>
timesCardTypeContentList
=
timesCardTypeContentMapper
.
selectList
(
new
LambdaQueryWrapper
<
TimesCardTypeContent
>().
eq
(
TimesCardTypeContent:
:
getCardTypeId
,
id
)
);
return
timesCardTypeMapper
.
selectAggregate
(
id
);
}
...
...
src/main/java/com/gogirl/interfaces/user/TimesCardController.java
View file @
2a617d59
...
...
@@ -72,7 +72,7 @@ public class TimesCardController {
@GetMapping
(
"/customer/timescard/getTimesCardTypeDetail"
)
@GogirlMember
public
JsonResult
<
TimesCardType
>
getTimesCardTypeDetail
(
@RequestParam
Integer
id
)
{
return
JsonResult
.
success
(
timesCardService
.
get
TimesCardTypeDetail
(
id
));
return
JsonResult
.
success
(
timesCardService
.
get
Aggregate
(
id
));
}
@ApiOperation
(
value
=
"用户购买次卡"
)
...
...
src/main/resources/mapper/market/TimesCardTypeMapper.xml
View file @
2a617d59
...
...
@@ -92,8 +92,8 @@
left join sys_member_authority sma on sma.member_id = tct.id
left join store_manage sm on sm.id = sma.data_id
where tct.id = #{id,jdbcType=INTEGER}
and sma.type=1
and sma.member_type=10
#
and sma.type=1
#
and sma.member_type=10
and tct.status =1
</select>
...
...
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