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
470d6a7e
Commit
470d6a7e
authored
Mar 16, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
long 序列化
parent
566711ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
2 deletions
+30
-2
TimesCardServiceImpl.java
.../gogirl/application/market/impl/TimesCardServiceImpl.java
+2
-1
TimesCardTypeMapper.java
...tructure/mapper/market/timescard/TimesCardTypeMapper.java
+10
-0
TimesCardTypeMapper.xml
src/main/resources/mapper/market/TimesCardTypeMapper.xml
+18
-1
No files found.
src/main/java/com/gogirl/application/market/impl/TimesCardServiceImpl.java
View file @
470d6a7e
...
...
@@ -19,7 +19,8 @@ public class TimesCardServiceImpl extends ServiceImpl<TimesCardTypeMapper, Times
private
final
TimesCardTypeMapper
timesCardTypeMapper
;
public
List
<
TimesCardType
>
getTimesCardTypeList
()
{
return
this
.
list
(
new
LambdaQueryWrapper
<
TimesCardType
>().
eq
(
TimesCardType:
:
getStatus
,
TimesCardType
.
STATUS_ON
));
return
timesCardTypeMapper
.
queryPageAggregate
();
}
public
TimesCardType
getAggregate
(
Integer
id
)
{
...
...
src/main/java/com/gogirl/infrastructure/mapper/market/timescard/TimesCardTypeMapper.java
View file @
470d6a7e
...
...
@@ -2,8 +2,11 @@ package com.gogirl.infrastructure.mapper.market.timescard;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.gogirl.domain.market.timescard.TimesCardType
;
import
java.util.List
;
public
interface
TimesCardTypeMapper
extends
BaseMapper
<
TimesCardType
>
{
...
...
@@ -15,5 +18,12 @@ public interface TimesCardTypeMapper extends BaseMapper<TimesCardType> {
*/
TimesCardType
selectAggregate
(
Integer
id
);
/**
* 获取次卡类型列表
* @param page
* @return
*/
List
<
TimesCardType
>
queryPageAggregate
();
}
src/main/resources/mapper/market/TimesCardTypeMapper.xml
View file @
470d6a7e
...
...
@@ -91,7 +91,24 @@
left join times_card_type_content tctc on tctc.card_type_id = tct.id
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
where tct.id = #{id,jdbcType=INTEGER}
and sma.type=1
and sma.member_type=10
and tct.status =1
</select>
<select
id=
"queryPageAggregate"
resultType=
"com.gogirl.domain.market.timescard.TimesCardType"
>
select
<include
refid=
"TimesCardTypeSql"
/>
,
<include
refid=
"TimesCardTypeContentSql"
/>
,
<include
refid=
"storeManageSql"
/>
from times_card_type tct
left join times_card_type_content tctc on tctc.card_type_id = tct.id
left join sys_member_authority sma on sma.member_id = tct.id
left join store_manage sm on sm.id = sma.data_id
where sma.type=1
and sma.member_type=10
and tct.status =1
</select>
</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