Commit 470d6a7e by huluobin

long 序列化

parent 566711ac
......@@ -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) {
......
......@@ -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();
}
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment