尝试
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user