尝试
This commit is contained in:
@@ -6,6 +6,8 @@ import com.czg.exception.CzgException;
|
||||
import com.czg.market.dto.MemberConfigDTO;
|
||||
import com.czg.market.dto.MemberLevelDTO;
|
||||
import com.czg.market.vo.*;
|
||||
import com.czg.utils.CzgUpdateChain;
|
||||
import com.mybatisflex.core.update.UpdateChain;
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.market.entity.TbMemberConfig;
|
||||
|
||||
@@ -21,6 +23,11 @@ import java.util.List;
|
||||
*/
|
||||
public interface TbMemberConfigService extends IService<TbMemberConfig> {
|
||||
|
||||
@Override
|
||||
default UpdateChain<TbMemberConfig> updateChain() {
|
||||
return CzgUpdateChain.of(getMapper());
|
||||
}
|
||||
|
||||
MemberConfigVO detail(Long shopId);
|
||||
|
||||
UMemberConfigVO detail(Long shopId, Long userId);
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.czg.utils;
|
||||
|
||||
import com.mybatisflex.core.BaseMapper;
|
||||
import com.mybatisflex.core.update.UpdateChain;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author ww
|
||||
* @date 2023/8/23
|
||||
*/
|
||||
public class CzgUpdateChain<T> extends UpdateChain<T> implements Serializable {
|
||||
|
||||
public CzgUpdateChain(BaseMapper<T> baseMapper) {
|
||||
super(baseMapper);
|
||||
}
|
||||
|
||||
public CzgUpdateChain(BaseMapper<T> baseMapper, T entityObject) {
|
||||
super(baseMapper, entityObject);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package #(packageConfig.servicePackage);
|
||||
|
||||
import com.czg.utils.CzgUpdateChain;
|
||||
import com.mybatisflex.core.update.UpdateChain;
|
||||
import #(serviceConfig.buildSuperClassImport());
|
||||
import #(packageConfig.entityPackage).#(table.buildEntityClassName());
|
||||
|
||||
/**
|
||||
* #(table.getComment()) 服务层。
|
||||
*
|
||||
* @author #(javadocConfig.getAuthor())
|
||||
* @since #(javadocConfig.getSince())
|
||||
*/
|
||||
public interface #(table.buildServiceClassName()) extends #(serviceConfig.buildSuperClassName())<#(table.buildEntityClassName())> {
|
||||
|
||||
@Override
|
||||
default UpdateChain<#(table.buildEntityClassName())> updateChain() {
|
||||
return CzgUpdateChain.of(getMapper());
|
||||
}
|
||||
}
|
||||
@@ -30,6 +30,7 @@ import com.czg.order.service.OrderPaymentService;
|
||||
import com.czg.service.market.enums.OrderStatusEnums;
|
||||
import com.czg.service.market.mapper.TbMemberConfigMapper;
|
||||
import com.czg.utils.AssertUtil;
|
||||
import com.czg.utils.CzgUpdateChain;
|
||||
import com.czg.validator.ValidatorUtil;
|
||||
import com.czg.validator.group.member.MemberLevelCycleRewardGroup;
|
||||
import com.mybatisflex.core.query.QueryWrapper;
|
||||
|
||||
Reference in New Issue
Block a user