add file
This commit is contained in:
@@ -0,0 +1,45 @@
|
||||
package cn.pluss.platform.config;
|
||||
|
||||
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.reflection.MetaObject;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Date;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class MyMetaObjectHandler implements MetaObjectHandler {
|
||||
|
||||
private static final String UPDATE_TIME = "updateTime";
|
||||
private static final String CREATE_TIME = "createTime";
|
||||
|
||||
private static final String UPDATE_DT = "updateDt";
|
||||
private static final String CREATE_DT = "createDt";
|
||||
|
||||
@Override
|
||||
public void insertFill(MetaObject metaObject) {
|
||||
strictInsertFill(metaObject, CREATE_TIME, LocalDateTime.class, LocalDateTime.now());
|
||||
strictInsertFill(metaObject, CREATE_TIME, Date.class, new Date());
|
||||
|
||||
strictInsertFill(metaObject, UPDATE_TIME, LocalDateTime.class, LocalDateTime.now());
|
||||
strictInsertFill(metaObject, UPDATE_TIME, Date.class, new Date());
|
||||
|
||||
strictInsertFill(metaObject, CREATE_DT, LocalDateTime.class, LocalDateTime.now());
|
||||
strictInsertFill(metaObject, CREATE_DT, Date.class, new Date());
|
||||
|
||||
strictInsertFill(metaObject, UPDATE_DT, LocalDateTime.class, LocalDateTime.now());
|
||||
strictInsertFill(metaObject, UPDATE_DT, Date.class, new Date());
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void updateFill(MetaObject metaObject) {
|
||||
strictUpdateFill(metaObject, UPDATE_TIME, LocalDateTime.class, LocalDateTime.now());
|
||||
strictUpdateFill(metaObject, UPDATE_TIME, Date.class, new Date());
|
||||
|
||||
strictUpdateFill(metaObject, UPDATE_DT, LocalDateTime.class, LocalDateTime.now());
|
||||
strictUpdateFill(metaObject, UPDATE_DT, Date.class, new Date());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cn.pluss.platform.config;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
/**
|
||||
* @author DJH
|
||||
*/
|
||||
@MapperScan("cn.pluss.platform.mapper")
|
||||
@Configuration
|
||||
public class MybatisPlusConfig {
|
||||
|
||||
/**
|
||||
* mybatis-plus分页插件
|
||||
*/
|
||||
@Bean
|
||||
public PaginationInterceptor paginationInterceptor() {
|
||||
return new PaginationInterceptor();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
package cn.pluss.platform.config.mybatis;
|
||||
|
||||
import cn.pluss.platform.util.StringUtil;
|
||||
import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.ibatis.executor.statement.StatementHandler;
|
||||
import org.apache.ibatis.mapping.BoundSql;
|
||||
import org.apache.ibatis.mapping.MappedStatement;
|
||||
import org.apache.ibatis.mapping.ParameterMapping;
|
||||
import org.apache.ibatis.plugin.*;
|
||||
import org.apache.ibatis.reflection.DefaultReflectorFactory;
|
||||
import org.apache.ibatis.reflection.MetaObject;
|
||||
import org.apache.ibatis.reflection.SystemMetaObject;
|
||||
import org.apache.ibatis.session.Configuration;
|
||||
import org.apache.ibatis.type.TypeHandlerRegistry;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Properties;
|
||||
import java.util.regex.Matcher;
|
||||
|
||||
/**
|
||||
* @author SSS
|
||||
*/
|
||||
@Slf4j
|
||||
@Component
|
||||
@ConditionalOnProperty(prefix = "spring.profiles", name = "active", havingValue = "dev")
|
||||
@Intercepts({@Signature(type = StatementHandler.class, method = "prepare", args = {Connection.class, Integer.class})})
|
||||
public class FullSQLInterceptor implements Interceptor {
|
||||
|
||||
@Override
|
||||
public Object intercept(Invocation invocation) throws Throwable {
|
||||
try {
|
||||
printSql(invocation);
|
||||
} catch (Exception ignored) {
|
||||
log.warn("前置sql打印操作异常");
|
||||
}
|
||||
return invocation.proceed();
|
||||
}
|
||||
|
||||
private void printSql(Invocation invocation) {
|
||||
StatementHandler statementHandler = (StatementHandler) invocation.getTarget();
|
||||
//通过MetaObject优雅访问对象的属性,这里是访问statementHandler的属性;:MetaObject是Mybatis提供的一个用于方便、
|
||||
//优雅访问对象属性的对象,通过它可以简化代码、不需要try/catch各种reflect异常,同时它支持对JavaBean、Collection、Map三种类型对象的操作。
|
||||
MetaObject metaObject = MetaObject
|
||||
.forObject(statementHandler, SystemMetaObject.DEFAULT_OBJECT_FACTORY, SystemMetaObject.DEFAULT_OBJECT_WRAPPER_FACTORY,
|
||||
new DefaultReflectorFactory());
|
||||
//先拦截到RoutingStatementHandler,里面有个StatementHandler类型的delegate变量,其实现类是BaseStatementHandler,然后就到BaseStatementHandler的成员变量mappedStatement
|
||||
MappedStatement mappedStatement = (MappedStatement) metaObject.getValue("delegate.mappedStatement");
|
||||
//id为执行的mapper方法的全路径名,如com.uv.dao.UserMapper.insertUser
|
||||
String id = mappedStatement.getId();
|
||||
//sql语句类型 select、delete、insert、update
|
||||
String sqlCommandType = mappedStatement.getSqlCommandType().toString();
|
||||
log.debug("类型 ==> " + sqlCommandType);
|
||||
|
||||
BoundSql boundSql = statementHandler.getBoundSql();
|
||||
|
||||
// 获取节点的配置
|
||||
Configuration configuration = mappedStatement.getConfiguration();
|
||||
// 获取到最终的sql语句
|
||||
String newSql = showSql(configuration, boundSql);
|
||||
|
||||
if (newSql.contains("sys_sql") || newSql.contains("unknown_exception")) {
|
||||
return;
|
||||
}
|
||||
|
||||
log.debug("组装好的sql ==>: " + newSql);
|
||||
|
||||
// if (newSql.startsWith("SELECT") || newSql.startsWith("select")) {
|
||||
// // 查询
|
||||
// return;
|
||||
// }
|
||||
//
|
||||
// if ("UPDATE".equals(sqlCommandType) || "INSERT".equals(sqlCommandType) || "DELETE".equals(sqlCommandType)) {
|
||||
// SysSqlMapper sysSqlMapper = SpringUtil.getBean(SysSqlMapper.class);
|
||||
// SysSql entity = new SysSql();
|
||||
// entity.setType(sqlCommandType);
|
||||
// entity.setMapperName(id);
|
||||
// entity.setSql(newSql);
|
||||
// sysSqlMapper.insert(entity);
|
||||
// }
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object plugin(Object target) {
|
||||
return Plugin.wrap(target, this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setProperties(Properties properties) {
|
||||
// 无参数
|
||||
}
|
||||
|
||||
/**
|
||||
* 如果参数是String,则添加单引号, 如果是日期,则转换为时间格式器并加单引号;
|
||||
* 对参数是null和不是null的情况作了处理<br>
|
||||
*
|
||||
* @param obj 参数
|
||||
* @return 转换后的字符串
|
||||
*/
|
||||
private String getParameterValue(Object obj) {
|
||||
String value;
|
||||
if (obj instanceof String) {
|
||||
value = "'" + obj + "'";
|
||||
} else if (obj instanceof Date) {
|
||||
DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.CHINA);
|
||||
value = "'" + formatter.format(obj) + "'";
|
||||
} else {
|
||||
if (obj != null) {
|
||||
value = obj.toString();
|
||||
} else {
|
||||
value = null;
|
||||
}
|
||||
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/**
|
||||
* 进行?的替换
|
||||
*
|
||||
* @param configuration configuration
|
||||
* @param boundSql boundSql
|
||||
* @return 拼接后的sql
|
||||
*/
|
||||
public String showSql(Configuration configuration, BoundSql boundSql) {
|
||||
// 获取参数
|
||||
Object parameterObject = boundSql.getParameterObject();
|
||||
List<ParameterMapping> parameterMappings = boundSql
|
||||
.getParameterMappings();
|
||||
// sql语句中多个空格都用一个空格代替
|
||||
String sql = boundSql.getSql().replaceAll("[\\s]+", " ");
|
||||
|
||||
if (CollectionUtils.isNotEmpty(parameterMappings) && parameterObject != null) {
|
||||
// 获取类型处理器注册器,类型处理器的功能是进行java类型和数据库类型的转换
|
||||
// 如果根据parameterObject.getClass()可以找到对应的类型,则替换
|
||||
TypeHandlerRegistry typeHandlerRegistry = configuration.getTypeHandlerRegistry();
|
||||
if (typeHandlerRegistry.hasTypeHandler(parameterObject.getClass())) {
|
||||
sql = sql.replaceFirst("\\?", Matcher.quoteReplacement(getParameterValue(parameterObject)));
|
||||
} else {
|
||||
//MetaObject主要是封装了originalObject对象,
|
||||
// 提供了get和set的方法用于获取和设置originalObject的属性值,
|
||||
// 主要支持对JavaBean、Collection、Map三种类型对象的操作
|
||||
MetaObject metaObject = configuration.newMetaObject(parameterObject);
|
||||
|
||||
int length = parameterMappings.size();
|
||||
String[] replace = new String[length];
|
||||
String[] replacementList = new String[length];
|
||||
|
||||
for (int i = 0; i < parameterMappings.size(); i++) {
|
||||
ParameterMapping parameterMapping = parameterMappings.get(i);
|
||||
replace[i] = "?";
|
||||
|
||||
String propertyName = parameterMapping.getProperty();
|
||||
if (metaObject.hasGetter(propertyName)) {
|
||||
Object obj = metaObject.getValue(propertyName);
|
||||
replacementList[i] = Matcher.quoteReplacement(getParameterValue(obj));
|
||||
} else if (boundSql.hasAdditionalParameter(propertyName)) {
|
||||
// 该分支是动态sql
|
||||
Object obj = boundSql.getAdditionalParameter(propertyName);
|
||||
replacementList[i] = Matcher.quoteReplacement(getParameterValue(obj));
|
||||
} else {
|
||||
//打印出缺失,提醒该参数缺失并防止错位
|
||||
replacementList[i] = "缺失";
|
||||
}
|
||||
}
|
||||
|
||||
sql = StringUtil.replaceOneByOne(sql, replace, replacementList);
|
||||
}
|
||||
}
|
||||
return sql;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package cn.pluss.platform.config.mybatis;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler;
|
||||
import org.apache.ibatis.type.JdbcType;
|
||||
import org.apache.ibatis.type.MappedJdbcTypes;
|
||||
import org.apache.ibatis.type.MappedTypes;
|
||||
|
||||
/**
|
||||
* @author DJH
|
||||
*/
|
||||
@MappedTypes(JSONObject.class)
|
||||
@MappedJdbcTypes(JdbcType.LONGVARCHAR)
|
||||
public class JsonObjectTypeHandler extends FastjsonTypeHandler {
|
||||
|
||||
public JsonObjectTypeHandler() {
|
||||
super(JSONObject.class);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.Account;
|
||||
import cn.pluss.platform.entity.MerchantBaseInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户结算信息关联表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-10-17
|
||||
*/
|
||||
public interface AccountMapper extends BaseMapper<Account> {
|
||||
|
||||
/**
|
||||
* 根据结算人身份证号获取小微结算账户数量
|
||||
* @param certNo 身份证号
|
||||
* @return 结算账户数量
|
||||
*/
|
||||
Integer selectMicroMbiAccountNum(@Param("certNo") String certNo);
|
||||
|
||||
/**
|
||||
* 根据结算人身份证号获取结算账户数量
|
||||
* @param certNoList 身份证号
|
||||
* @return 结算账户数量
|
||||
*/
|
||||
Integer selectAccountNum(@Param("certNoList") List<String> certNoList);
|
||||
|
||||
/**
|
||||
* 获取小微结算人对应的商户数量分组
|
||||
* 其他类型商户得修改查询方法
|
||||
* @return 结算人对应的商户数量
|
||||
*/
|
||||
List<Map<String, Object>> selectGroupMaps();
|
||||
|
||||
Integer selectYSAuditSmallCount(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 根据结算身份证号,获取所有相关的用户id
|
||||
* @return
|
||||
*/
|
||||
List<MerchantBaseInfo> selectMbiListByCertNo(@Param("certNo") String certNo);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.ActivityActivate;
|
||||
|
||||
@Mapper
|
||||
public interface ActivityActivateMapper extends BaseMapper<ActivityActivate> {
|
||||
|
||||
ActivityActivate queryActivityActivate(ActivityActivate activityActivate);
|
||||
|
||||
List<ActivityActivate> queryActivityActivateList(ActivityActivate activityActivate);
|
||||
|
||||
void updateActivityActivate(ActivityActivate activityActivate);
|
||||
|
||||
List<ActivityActivate> queryActivityActivatePage(Map map);
|
||||
|
||||
List<ActivityActivate> queryNoActivityActivatePage(Map map);
|
||||
|
||||
Integer queryActivityActivatePageCount(Map map);
|
||||
|
||||
Integer queryNoActivityActivatePageCount(Map map);
|
||||
|
||||
void saveActivityActivateBatch(List<ActivityActivate> activityActivateList);
|
||||
|
||||
List<Map<String, Object>> getNewestActivityJoin(String storeId);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.ActivityConsumReturn;
|
||||
|
||||
@Mapper
|
||||
public interface ActivityConsumReturnMapper extends BaseMapper<ActivityConsumReturn> {
|
||||
|
||||
ActivityConsumReturn queryActivityConsumReturn(ActivityConsumReturn activityConsumReturn);
|
||||
|
||||
List<ActivityConsumReturn> queryActivityConsumReturnList(ActivityConsumReturn activityConsumReturn);
|
||||
|
||||
void saveActivityConsumReturn(ActivityConsumReturn activityConsumReturn);
|
||||
|
||||
void updateActivityConsumReturn(ActivityConsumReturn activityConsumReturn);
|
||||
|
||||
void deleteActivityConsumReturn(ActivityConsumReturn activityConsumReturn);
|
||||
|
||||
List<ActivityConsumReturn> queryActivityConsumReturnPage(Map<String, Object> map);
|
||||
|
||||
List<ActivityConsumReturn> queryActivityNoConsumReturnPage(Map<String, Object> map);
|
||||
|
||||
Integer queryActivityConsumReturnPageCount(Map<String, Object> map);
|
||||
|
||||
Integer queryActivityNoConsumReturnPageCount(Map<String, Object> map);
|
||||
|
||||
void saveActivityConsumReturnBatch(List<ActivityConsumReturn> activityConsumReturnList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.ActivityEnroll;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户活动报名记录表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-11-02
|
||||
*/
|
||||
public interface ActivityEnrollMapper extends BaseMapper<ActivityEnroll> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.ActivityRecharge;
|
||||
|
||||
/**
|
||||
* @author DJH
|
||||
*/
|
||||
@Mapper
|
||||
public interface ActivityRechargeMapper extends BaseMapper<ActivityRecharge> {
|
||||
|
||||
List<ActivityRecharge> queryActivityRechargeList(ActivityRecharge activityRecharge);
|
||||
|
||||
List<ActivityRecharge> queryActivityRechargePage(Map<String, Object> map);
|
||||
|
||||
List<ActivityRecharge> queryActivityNoRechargePage(Map<String, Object> map);
|
||||
|
||||
Integer queryActivityRechargePageCount(Map<String, Object> map);
|
||||
|
||||
Integer queryActivityNoRechargePageCount(Map<String, Object> map);
|
||||
|
||||
void saveActivityRechargeBatch(List<ActivityRecharge> activityRechargeList);
|
||||
|
||||
List<ActivityRecharge> queryUsableActivityRechageList(ActivityRecharge activityRecharge);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.ActivityRecommend;
|
||||
|
||||
@Mapper
|
||||
public interface ActivityRecommendMapper {
|
||||
|
||||
public ActivityRecommend queryActivityRecommend(ActivityRecommend activityRecommend);
|
||||
|
||||
public List<ActivityRecommend> queryActivityRecommendList(ActivityRecommend activityRecommend);
|
||||
|
||||
public void saveActivityRecommend(ActivityRecommend activityRecommend);
|
||||
|
||||
public void updateActivityRecommend(ActivityRecommend activityRecommend);
|
||||
|
||||
public void deleteActivityRecommend(ActivityRecommend activityRecommend);
|
||||
|
||||
public List<ActivityRecommend> queryActivityRecommendPage(Map map);
|
||||
|
||||
public Integer queryActivityRecommendPageCount(Map map);
|
||||
|
||||
public void saveActivityRecommendBatch(List<ActivityRecommend> activityRecommendList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.vo.AgentInfo;
|
||||
import cn.pluss.platform.vo.AgentStaffVO;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface AgentInfoMapper {
|
||||
|
||||
List<List<?>> selectPage(@Param("agentInfo") AgentInfo agentInfo, @Param("page") JSONObject page);
|
||||
|
||||
List<List<?>> selectPermissionPage(@Param("agentInfo") AgentInfo agentInfo, @Param("page") JSONObject page);
|
||||
|
||||
Long selectPageCount(@Param("agentInfo") AgentInfo agentInfo);
|
||||
|
||||
List<List<?>> selectSubAgentPage(@Param("agentInfo") AgentInfo agentInfo, @Param("page") JSONObject page);
|
||||
|
||||
Long selectSubAgentPageCount(@Param("agentInfo") AgentInfo agentInfo);
|
||||
|
||||
AgentInfo selectOne(@Param("agentInfo") AgentInfo agentInfo);
|
||||
|
||||
/**
|
||||
* 查询当月、上月收益
|
||||
* @return
|
||||
*/
|
||||
List<AgentInfo> selectRecentMonthPrice();
|
||||
|
||||
/**
|
||||
* 分页查询业务员信息
|
||||
* @param page 分页信息
|
||||
* @param agentStaffVO
|
||||
* @return
|
||||
*/
|
||||
Page<AgentStaffVO> selectStaffPage(Page<AgentStaffVO> page, @Param("agentStaffVO") AgentStaffVO agentStaffVO);
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.vo.AgentInfo;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface AgentMapper {
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page
|
||||
* @param agentInfo
|
||||
* @return
|
||||
*/
|
||||
Page<AgentInfo> selectPage(Page<AgentInfo> page, @Param("agentInfo") AgentInfo agentInfo);
|
||||
|
||||
/**
|
||||
* 查询
|
||||
* @param agentInfo
|
||||
* @return
|
||||
*/
|
||||
AgentInfo selectOne(@Param("agentInfo") AgentInfo agentInfo);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.Agreement;
|
||||
|
||||
@Mapper
|
||||
public interface AgreementMapper {
|
||||
|
||||
public Agreement queryAgreement(Agreement agreement);
|
||||
|
||||
public List<Agreement> queryAgreementList(Agreement agreement);
|
||||
|
||||
public void saveAgreement(Agreement agreement);
|
||||
|
||||
public void updateAgreement(Agreement agreement);
|
||||
|
||||
public void deleteAgreement(Agreement agreement);
|
||||
|
||||
public List<Agreement> queryAgreementPage(Map map);
|
||||
|
||||
public Integer queryAgreementPageCount(Map map);
|
||||
|
||||
public void saveAgreementBatch(List<Agreement> agreementList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import cn.pluss.platform.entity.AliMcc;
|
||||
|
||||
@Mapper
|
||||
public interface AliMccMapper {
|
||||
|
||||
public AliMcc queryAliMcc(AliMcc aliMcc);
|
||||
|
||||
public List<AliMcc> queryAliMccList(AliMcc aliMcc);
|
||||
|
||||
public void saveAliMcc(AliMcc aliMcc);
|
||||
|
||||
public void updateAliMcc(AliMcc aliMcc);
|
||||
|
||||
public void deleteAliMcc(AliMcc aliMcc);
|
||||
|
||||
public List<AliMcc> queryAliMccPage(Map map);
|
||||
|
||||
public Integer queryAliMccPageCount(Map map);
|
||||
|
||||
public void saveAliMccBatch(List<AliMcc> aliMccList);
|
||||
|
||||
/**
|
||||
*
|
||||
* queryMcc:(查询支付宝mccCode). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @param mccCode
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
public String queryMccCode(@Param(value="mccCode") String mccCode);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.AppGuide;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* app引导页 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-06-03
|
||||
*/
|
||||
public interface AppGuideMapper extends BaseMapper<AppGuide> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.AppMenu;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* app页面菜单 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-09-27
|
||||
*/
|
||||
public interface AppMenuMapper extends BaseMapper<AppMenu> {
|
||||
|
||||
List<AppMenu> getByNavCodeAll(@Param("navCode") String navCode,@Param("userType") String userType);
|
||||
|
||||
List<AppMenu> getByNavCode(@Param("navCode") String navCode,@Param("userType") String userType);
|
||||
|
||||
List<AppMenu> getByNavCode(@Param("navCode") String navCode,@Param("userType") String userType, @Param("clientType") int clientType);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.AppMenuUserType;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
public interface AppMenuUserTypeMapper extends BaseMapper<AppMenuUserType> {
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.AppVersionInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface AppVersionInfoMapper extends BaseMapper<AppVersionInfo> {
|
||||
Page<AppVersionInfo> pageData(Page<AppVersionInfo> page, AppVersionInfo appVersionInfo);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.AppletInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 小程序配置信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-04-20
|
||||
*/
|
||||
public interface AppletInfoMapper extends BaseMapper<AppletInfo> {
|
||||
|
||||
/**
|
||||
* 获取小程序配置信息
|
||||
* @param appid
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT * FROM tb_pluss_applet_info WHERE appid = #{appid}")
|
||||
AppletInfo getAppletInfoByAppId(String appid);
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.AreaCity;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 城市区域mapper
|
||||
*/
|
||||
@Mapper
|
||||
public interface AreaCityMapper extends BaseMapper<AreaCity> {
|
||||
|
||||
List<AreaCity> queryProvince();
|
||||
|
||||
List<AreaCity> queryOnlyProvince();
|
||||
|
||||
AreaCity getAreaCityByProvince(String areaCode);
|
||||
|
||||
/**
|
||||
* @description:
|
||||
* @date: 2022/2/25 11:06
|
||||
* @param areaCode:
|
||||
* @return java.util.List<cn.pluss.platform.entity.AreaCity>
|
||||
*/
|
||||
List<AreaCity> queryCity(String areaCode);
|
||||
|
||||
/**
|
||||
* 获取区域信息
|
||||
* @date: 2022/2/25 11:06
|
||||
* @param provinceName:
|
||||
* @param cityName:
|
||||
* @param areaName:
|
||||
* @param type:
|
||||
* @return java.util.Map<java.lang.String,java.lang.String>
|
||||
*/
|
||||
Map<String, String> getAreaCodeByName(@Param("provinceName") String provinceName,
|
||||
@Param("cityName")String cityName,
|
||||
@Param("areaName")String areaName,
|
||||
@Param("type") String type);
|
||||
|
||||
/**
|
||||
* 查询下级区域信息
|
||||
* @date: 2022/2/25 11:05
|
||||
* @param areaCode:
|
||||
* @return java.util.List<cn.pluss.platform.entity.AreaCity>
|
||||
*/
|
||||
@Select("select id,type,areaName,parentAreaCode,areaCode from tb_pluss_area_city where parentAreaCode = #{areaCode} ")
|
||||
List<AreaCity> queryParentCode(String areaCode);
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.Area;
|
||||
import cn.pluss.platform.leshua.LeshuaArea;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface AreaMapper {
|
||||
|
||||
LeshuaArea queryArea(Area area);
|
||||
|
||||
List<LeshuaArea> queryAreaList(Area area);
|
||||
|
||||
void saveArea(Area area);
|
||||
|
||||
void updateArea(Area area);
|
||||
|
||||
void deleteArea(Area area);
|
||||
|
||||
List<LeshuaArea> queryAreaPage(Map map);
|
||||
|
||||
Integer queryAreaPageCount(Map map);
|
||||
|
||||
void saveAreaBatch(List<Area> areaList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.Bank4Cache;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface Bank4CacheMapper extends BaseMapper<Bank4Cache> {
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.BankCard;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 银行卡信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-10-16
|
||||
*/
|
||||
public interface BankCardMapper extends BaseMapper<BankCard> {
|
||||
|
||||
/**
|
||||
* 获取未关联结算信息的对私结算银行卡信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 银行卡信息
|
||||
*/
|
||||
@Select("SELECT * FROM tb_pluss_bank_card bc LEFT JOIN tb_pluss_account acc ON acc.userId = bc.userId AND acc.idCardId = bc.id WHERE acc.id IS NULL AND bc.userType = '01'")
|
||||
BankCard getUnusedBankCard(@Param("userId") String userId);
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.BankCodeSxf;
|
||||
import cn.pluss.platform.leshua.BankNameVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface BankCodeSxfMapper extends BaseMapper<BankCodeSxf> {
|
||||
|
||||
List<BankNameVO> getBranchName(@Param(value="areaCode")String areaCode, @Param(value="provinceCode")String provinceCode, @Param(value="bankName")String bankName, @Param(value="branchName")String branchName);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.BankCodeYs;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import lombok.val;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-07-07
|
||||
*/
|
||||
public interface BankCodeYsMapper extends BaseMapper<BankCodeYs> {
|
||||
|
||||
/**
|
||||
* 根据支行联行号获取对应的银行信息
|
||||
* @param contactLine 联行号
|
||||
* @return
|
||||
*/
|
||||
default BankCodeYs selectByContactLine(String contactLine) {
|
||||
val qWrapper = new LambdaQueryWrapper<BankCodeYs>().eq(BankCodeYs::getContactLine, contactLine);
|
||||
return selectOne(qWrapper);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import cn.pluss.platform.entity.BankUnionpayCode;
|
||||
import cn.pluss.platform.leshua.BankNameVO;
|
||||
import cn.pluss.platform.leshua.CityVO;
|
||||
import cn.pluss.platform.leshua.ProvinceVO;
|
||||
|
||||
@Mapper
|
||||
public interface BankUnionpayCodeMapper {
|
||||
|
||||
BankUnionpayCode queryBankUnionpayCode(BankUnionpayCode bankUnionpayCode);
|
||||
|
||||
List<BankUnionpayCode> queryBankUnionpayCodeList(BankUnionpayCode bankUnionpayCode);
|
||||
|
||||
void saveBankUnionpayCode(BankUnionpayCode bankUnionpayCode);
|
||||
|
||||
void updateBankUnionpayCode(BankUnionpayCode bankUnionpayCode);
|
||||
|
||||
void deleteBankUnionpayCode(BankUnionpayCode bankUnionpayCode);
|
||||
|
||||
List<BankUnionpayCode> queryBankUnionpayCodePage(Map map);
|
||||
|
||||
Integer queryBankUnionpayCodePageCount(Map map);
|
||||
|
||||
void saveBankUnionpayCodeBatch(List<BankUnionpayCode> bankUnionpayCodeList);
|
||||
|
||||
/**
|
||||
*
|
||||
* getBankNameList:(查询银行). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<String> getBankNameList();
|
||||
|
||||
/**
|
||||
*
|
||||
* getProvince:(查询省份). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<ProvinceVO> getProvince();
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* getCity:(省下面的市). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @param provinceCode 省份
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<CityVO> getCity(@Param(value="provinceCode")String provinceCode);
|
||||
|
||||
/**
|
||||
*
|
||||
* getBranchName:(根据省市 银行名称 查询支行). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @param areaCode 市
|
||||
* @param provinceCode 省份
|
||||
* @param bankName
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<BankNameVO> getBranchName(@Param(value="areaCode")String areaCode,@Param(value="provinceCode")String provinceCode,@Param(value="bankName")String bankName,@Param(value="brankName")String brankName);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.Banner;
|
||||
|
||||
@Mapper
|
||||
public interface BannerMapper extends BaseMapper<Banner> {
|
||||
|
||||
Banner queryBanner(Banner banner);
|
||||
|
||||
List<Banner> queryBannerList(Banner banner);
|
||||
|
||||
void saveBanner(Banner banner);
|
||||
|
||||
void updateBanner(Banner banner);
|
||||
|
||||
void deleteBanner(Banner banner);
|
||||
|
||||
List<Banner> queryBannerPage(Map map);
|
||||
|
||||
Integer queryBannerPageCount(Map map);
|
||||
|
||||
void saveBannerBatch(List<Banner> bannerList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.BestNewActivity;
|
||||
|
||||
@Mapper
|
||||
public interface BestNewActivityMapper extends BaseMapper<BestNewActivity> {
|
||||
|
||||
BestNewActivity queryBestNewActivity(BestNewActivity bestNewActivity);
|
||||
|
||||
List<BestNewActivity> queryBestNewActivityList(BestNewActivity bestNewActivity);
|
||||
|
||||
void saveBestNewActivity(BestNewActivity bestNewActivity);
|
||||
|
||||
void updateBestNewActivity(BestNewActivity bestNewActivity);
|
||||
|
||||
void deleteBestNewActivity(BestNewActivity bestNewActivity);
|
||||
|
||||
List<BestNewActivity> queryBestNewActivityPage(Map map);
|
||||
|
||||
Integer queryBestNewActivityPageCount(Map map);
|
||||
|
||||
void saveBestNewActivityBatch(List<BestNewActivity> bestNewActivityList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.BillSendRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-05-10
|
||||
*/
|
||||
public interface BillSendRecordMapper extends BaseMapper<BillSendRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,62 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.vo.MemberOrderStatisticsVO;
|
||||
import cn.pluss.platform.vo.MemberOrderVO;
|
||||
import cn.pluss.platform.vo.MerchantOrderExportVO;
|
||||
import cn.pluss.platform.vo.BillStatisticsVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Djh
|
||||
*/
|
||||
public interface BillStatisticsMapper {
|
||||
|
||||
/**
|
||||
* 账单统计
|
||||
* @param merchantCode 商编
|
||||
* @param startDate 起始时间
|
||||
* @param endDate 截止时间
|
||||
* @return
|
||||
*/
|
||||
List<BillStatisticsVO> selectBillStatistics(@Param("merchantCode") String merchantCode, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
||||
|
||||
/**
|
||||
* 账单列表信息
|
||||
* @param merchantCode 商编
|
||||
* @param startDate 起始时间
|
||||
* @param endDate 截止时间
|
||||
* @return
|
||||
*/
|
||||
List<MerchantOrderExportVO> selectBillList(@Param("merchantCode") String merchantCode, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
||||
|
||||
/**
|
||||
* 会员账单列表
|
||||
* @param merchantCode 商编
|
||||
* @param startDate 起始时间
|
||||
* @param endDate 截止时间
|
||||
* @return
|
||||
*/
|
||||
List<MemberOrderVO> selectMemberBillList(@Param("merchantCode") String merchantCode, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
||||
|
||||
/**
|
||||
* 会员账单统计
|
||||
* @param merchantCode 商编
|
||||
* @param startDate 起始时间
|
||||
* @param endDate 截止时间
|
||||
* @return
|
||||
*/
|
||||
List<MemberOrderStatisticsVO> selectMemberBillStatistics(@Param("merchantCode") String merchantCode, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
||||
|
||||
/**
|
||||
* 员工账单统计
|
||||
* @param merchantCode 商编
|
||||
* @param startDate 起始时间
|
||||
* @param endDate 截止时间
|
||||
* @return
|
||||
*/
|
||||
List<BillStatisticsVO> selectStaffBillStatistics(@Param("merchantCode") String merchantCode, @Param("startDate") Date startDate, @Param("endDate") Date endDate);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.vo.BusinessInfoVo;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface BusinessInfoMapper {
|
||||
|
||||
Page<BusinessInfoVo> selectPage(Page<BusinessInfoVo> page, @Param("businessInfoVo") BusinessInfoVo businessInfoVo);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.CacheInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 缓存信息表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2021-09-24
|
||||
*/
|
||||
public interface CacheInfoMapper extends BaseMapper<CacheInfo> {
|
||||
|
||||
/**
|
||||
* 获取生活圈缓存的数据
|
||||
* @date: 2021/12/7 17:02
|
||||
* @param keyCode:
|
||||
* @return java.lang.String
|
||||
*/
|
||||
@Select("SELECT `value` from `syblife`.ims_core_cache where `key` = #{keyCode}")
|
||||
String getShqCacheInfoByKeyCode(String keyCode);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.CallbackData;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 表原始数据记录,用于不明确的回调数据的统计 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-09-10
|
||||
*/
|
||||
public interface CallbackDataMapper extends BaseMapper<CallbackData> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.CashAccount;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2021-07-23
|
||||
*/
|
||||
public interface CashAccountMapper extends BaseMapper<CashAccount> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.Cash;
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface CashMapper extends BaseMapper<Cash> {
|
||||
|
||||
List<Cash> queryCashPage(Map<String, Object> map);
|
||||
|
||||
IPage<Cash> queryCashPage2(IPage<Cash> page, @Param(Constants.WRAPPER) Wrapper<Cash> wrapper);
|
||||
|
||||
Integer queryCashPageCount(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 已经成功提现的金额/申请提现中的金额(粉丝分润)
|
||||
*
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
Double sumFansSuccessCash(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 已经成功提现(粉丝分润)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Double sumFansAreadlyCash(Map<String, Object> map);
|
||||
|
||||
|
||||
/**
|
||||
* 已经成功提现的金额/申请提现中的金额(推广分润)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Double sumMerChantSuccessCash(@Param(value = "userId") Long userId);
|
||||
|
||||
/**
|
||||
* 已经成功提现(推广分润)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
Double sumMerChantAreadlyCash(@Param(value = "userId") Long userId);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_cash WHERE id = #{id} FOR UPDATE")
|
||||
Cash selectLockById(@Param(value = "id") Serializable id);
|
||||
|
||||
/**
|
||||
* @param params:
|
||||
* @return java.util.Map<java.lang.String, java.lang.Object>
|
||||
* @description:统计提现信息记录
|
||||
* @date: 2021/10/15 16:39
|
||||
*/
|
||||
Map<String, Object> getCashCountData(Map<String, Object> params);
|
||||
|
||||
/**
|
||||
* 查询提现总金额
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return 提现总金额
|
||||
*/
|
||||
BigDecimal selectCashAmtTotal(@Param("userId") String userId, @Param("statusArr") int... statusArr);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
/**
|
||||
* @author SSS
|
||||
*/
|
||||
public class CommonMapper {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.CommonRemark;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 通用备注表,存储一些通用备注 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-06-24
|
||||
*/
|
||||
public interface CommonRemarkMapper extends BaseMapper<CommonRemark> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.CommonSwitch;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
public interface CommonSwitchMapper extends BaseMapper<CommonSwitch> {
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceBsj;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-05-09
|
||||
*/
|
||||
public interface DeviceBsjMapper extends BaseMapper<DeviceBsj> {
|
||||
|
||||
List<Map<String, Object>> selectLastMonthExpiredData();
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceDetail;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* [设备展示表] Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2020-11-12
|
||||
*/
|
||||
public interface DeviceDetailMapper extends BaseMapper<DeviceDetail> {
|
||||
|
||||
/**
|
||||
* 获取设备详情
|
||||
* @param wrapper
|
||||
* @return
|
||||
*/
|
||||
List<DeviceDetail> selectListWithStock(@Param(Constants.WRAPPER) QueryWrapper<DeviceDetail> wrapper);
|
||||
|
||||
/**
|
||||
* 获取设备详情
|
||||
* @param wrapper
|
||||
* @return
|
||||
*/
|
||||
List<DeviceDetail> selectListWithStockWithNoDetail(@Param(Constants.WRAPPER) QueryWrapper<DeviceDetail> wrapper);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceGoodTag;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商品标签表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-04-21
|
||||
*/
|
||||
public interface DeviceGoodTagMapper extends BaseMapper<DeviceGoodTag> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceGoods;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备商品展示表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
public interface DeviceGoodsMapper extends BaseMapper<DeviceGoods> {
|
||||
|
||||
/**
|
||||
* 根据sn码查询商城展示基本信息
|
||||
* @param snNo
|
||||
* @return
|
||||
*/
|
||||
DeviceGoods selectBySn(@Param("snNo") String snNo);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_device_goods WHERE `code` = #{code}")
|
||||
DeviceGoods getByCode(String code);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.Device;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface DeviceMapper extends BaseMapper<Device> {
|
||||
|
||||
public Device queryDevice(Device device);
|
||||
|
||||
public List<Device> queryDeviceList(Device device);
|
||||
|
||||
public void saveDevice(Device device);
|
||||
|
||||
public void updateDevice(Device device);
|
||||
|
||||
public void deleteDevice(Device device);
|
||||
|
||||
public List<Device> queryDevicePage(Map map);
|
||||
|
||||
public Integer queryDevicePageCount(Map map);
|
||||
|
||||
public void saveDeviceBatch(List<Device> deviceList);
|
||||
|
||||
Page<Device> pageDate(Page<Device> page, @Param("device") Device device);
|
||||
|
||||
Device getDeviceId(Integer id);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceMerchantBuyDetail;
|
||||
import cn.pluss.platform.vo.DeviceMerchantBuyDetailVO;
|
||||
|
||||
@Mapper
|
||||
public interface DeviceMerchantBuyDetailMapper {
|
||||
|
||||
public DeviceMerchantBuyDetail queryDeviceMerchantBuyDetail(DeviceMerchantBuyDetail deviceMerchantBuyDetail);
|
||||
|
||||
public List<DeviceMerchantBuyDetail> queryDeviceMerchantBuyDetailList(DeviceMerchantBuyDetail deviceMerchantBuyDetail);
|
||||
|
||||
public void saveDeviceMerchantBuyDetail(DeviceMerchantBuyDetail deviceMerchantBuyDetail);
|
||||
|
||||
public void updateDeviceMerchantBuyDetail(DeviceMerchantBuyDetail deviceMerchantBuyDetail);
|
||||
|
||||
public void deleteDeviceMerchantBuyDetail(DeviceMerchantBuyDetail deviceMerchantBuyDetail);
|
||||
|
||||
public List<DeviceMerchantBuyDetail> queryDeviceMerchantBuyDetailPage(Map map);
|
||||
|
||||
public Integer queryDeviceMerchantBuyDetailPageCount(Map map);
|
||||
|
||||
public void saveDeviceMerchantBuyDetailBatch(List<DeviceMerchantBuyDetail> deviceMerchantBuyDetailList);
|
||||
|
||||
/**
|
||||
*
|
||||
* queryDeviceMerchantBuyDetailVO:(是否绑定激活). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @param orderNo
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
public List<DeviceMerchantBuyDetailVO> queryDeviceMerchantBuyDetailVO(@Param(value="orderNo")String orderNo);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,65 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.DeviceMerchantBuy;
|
||||
import cn.pluss.platform.vo.DeviceMerchantBuyVO;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface DeviceMerchantBuyMapper extends BaseMapper<DeviceMerchantBuy> {
|
||||
|
||||
DeviceMerchantBuy queryDeviceMerchantBuy(DeviceMerchantBuy deviceMerchantBuy);
|
||||
|
||||
List<DeviceMerchantBuy> queryDeviceMerchantBuyList(DeviceMerchantBuy deviceMerchantBuy);
|
||||
|
||||
void saveDeviceMerchantBuy(DeviceMerchantBuy deviceMerchantBuy);
|
||||
|
||||
void updateDeviceMerchantBuy(DeviceMerchantBuy deviceMerchantBuy);
|
||||
|
||||
void deleteDeviceMerchantBuy(DeviceMerchantBuy deviceMerchantBuy);
|
||||
|
||||
List<DeviceMerchantBuy> queryDeviceMerchantBuyPage(Map map);
|
||||
|
||||
/**
|
||||
* 查询分页数据
|
||||
* @param page 分页信息
|
||||
* @param wrapper 查询条件
|
||||
* @return
|
||||
*/
|
||||
Page<DeviceMerchantBuy> selectDeviceMerchantBuyPage(Page<DeviceMerchantBuy> page, @Param(Constants.WRAPPER) QueryWrapper<DeviceMerchantBuy> wrapper);
|
||||
|
||||
Integer queryDeviceMerchantBuyPageCount(Map map);
|
||||
|
||||
void saveDeviceMerchantBuyBatch(List<DeviceMerchantBuy> deviceMerchantBuyList);
|
||||
|
||||
/**
|
||||
* deviceOrderShowPage:(订单回显). <br/>
|
||||
*
|
||||
* @param map
|
||||
* @return
|
||||
*
|
||||
* @author Administrator
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<DeviceMerchantBuyVO> deviceOrderShowPage(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* deviceOrderShowPageCount:(订单回显条数统计). <br/>
|
||||
*
|
||||
* @param map
|
||||
* @return
|
||||
*
|
||||
* @author Administrator
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
Integer deviceOrderShowPageCount(Map<String, Object> map);
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceOperateInfo;
|
||||
import cn.pluss.platform.vo.DeviceOperateInfoVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备信息流转表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-04-02
|
||||
*/
|
||||
public interface DeviceOperateInfoMapper extends BaseMapper<DeviceOperateInfo> {
|
||||
|
||||
/**
|
||||
* 查询设备号查询指定设备流转详情
|
||||
* @param snNo
|
||||
* @return
|
||||
*/
|
||||
List<DeviceOperateInfoVO> selectListVo(String snNo);
|
||||
|
||||
Page<DeviceOperateInfoVO> pageInfo(Page<DeviceOperateInfoVO> page, @Param("condition") DeviceOperateInfo condition);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceOrderInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备商城,订单记录表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-11-13
|
||||
*/
|
||||
public interface DeviceOrderInfoMapper extends BaseMapper<DeviceOrderInfo> {
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_device_order_info WHERE orderNo = #{orderNo} limit 1 ")
|
||||
DeviceOrderInfo getDeviceInfoByOrderNo(String orderNo);
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.DeviceSignUnbind;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface DeviceSignUnbindMapper extends BaseMapper<DeviceSignUnbind> {
|
||||
|
||||
DeviceSignUnbind queryDeviceSignUnbind(DeviceSignUnbind deviceSignUnbind);
|
||||
|
||||
List<DeviceSignUnbind> queryDeviceSignUnbindList(DeviceSignUnbind deviceSignUnbind);
|
||||
|
||||
void saveDeviceSignUnbind(DeviceSignUnbind deviceSignUnbind);
|
||||
|
||||
void updateDeviceSignUnbind(DeviceSignUnbind deviceSignUnbind);
|
||||
|
||||
void deleteDeviceSignUnbind(DeviceSignUnbind deviceSignUnbind);
|
||||
|
||||
Page<DeviceSignUnbind> selectPageWithMerchantInfo(Page<DeviceSignUnbind> page, @Param(Constants.WRAPPER) Wrapper<Object> queryWrapper);
|
||||
|
||||
List<DeviceSignUnbind> queryDeviceSignUnbindPage(Map map);
|
||||
|
||||
Integer queryDeviceSignUnbindPageCount(Map map);
|
||||
|
||||
void saveDeviceSignUnbindBatch(List<DeviceSignUnbind> deviceSignUnbindList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceSpec;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备规格表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-03-04
|
||||
*/
|
||||
public interface DeviceSpecMapper extends BaseMapper<DeviceSpec> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceStockGroup;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface DeviceStockGroupMapper extends BaseMapper<DeviceStockGroup> {
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.dto.DeviceStockDTO;
|
||||
import cn.pluss.platform.entity.DeviceStock;
|
||||
import cn.pluss.platform.vo.DeviceStockVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2020-11-11
|
||||
*/
|
||||
public interface DeviceStockMapper extends BaseMapper<DeviceStock> {
|
||||
|
||||
/**
|
||||
* 查询库存信息
|
||||
* @param groupNoList 商品code
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> selectStockInfoList(@Param("groupNoList") List<String> groupNoList);
|
||||
|
||||
/**
|
||||
* 查询已售库存信息
|
||||
* @param groupNoList 商品code
|
||||
* @return
|
||||
*/
|
||||
List<Map<String, Object>> selectSoldStockList(@Param("groupNoList") List<String> groupNoList);
|
||||
|
||||
/**
|
||||
* 获取用户设备统计信息
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
List<DeviceStockVO> getStockTypeNumList(DeviceStockDTO dto);
|
||||
|
||||
/**
|
||||
* 分页查询指定设备类型设备信息
|
||||
* @param page
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
Page<DeviceStockVO> pageInfo(Page<DeviceStockVO> page, @Param("dto") DeviceStockDTO dto);
|
||||
|
||||
DeviceStockVO detail(DeviceStockDTO dto);
|
||||
|
||||
/**
|
||||
* 获取商户信息
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
DeviceStockVO getMercInfo(DeviceStockDTO dto);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_device_stock where snNo = #{snNo} limit 1")
|
||||
DeviceStock getDeviceBySnNo(String snNo);
|
||||
|
||||
|
||||
Page<DeviceStockVO> pageDeviceStock(Page<DeviceStockVO> page, @Param("userId") Long userId, @Param("cashPlaceId") Long cashPlaceId);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_device_stock where deviceNo = #{deviceNo} limit 1")
|
||||
DeviceStock getDeviceByDeviceNo(@Param("deviceNo") String deviceNo);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceTransferDetail;
|
||||
import cn.pluss.platform.vo.DeviceTransferDetailVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 划拨详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-03-31
|
||||
*/
|
||||
public interface DeviceTransferDetailMapper extends BaseMapper<DeviceTransferDetail> {
|
||||
|
||||
/**
|
||||
* 根据tid查询划拨明细
|
||||
* @param tid
|
||||
* @return
|
||||
*/
|
||||
List<DeviceTransferDetailVO> selectListByTid(Long tid);
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.dto.DeviceTransferDTO;
|
||||
import cn.pluss.platform.entity.DeviceTransfer;
|
||||
import cn.pluss.platform.vo.DeviceTransferVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备划拨记录表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-03-31
|
||||
*/
|
||||
public interface DeviceTransferMapper extends BaseMapper<DeviceTransfer> {
|
||||
|
||||
|
||||
Page<DeviceTransferVO> pageInfo(Page<DeviceTransferVO> page, @Param("dto") DeviceTransferDTO dto);
|
||||
|
||||
DeviceTransferVO selectByIdVo(Long id);
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceType;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备类型表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-03-04
|
||||
*/
|
||||
public interface DeviceTypeMapper extends BaseMapper<DeviceType> {
|
||||
|
||||
@Select("SELECT `code` FROM tb_pluss_device_type WHERE showFlag = 1")
|
||||
List<String> selectListCodeByShowFlag();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceVoiceBox;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 智能音箱设备信息表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2020-11-04
|
||||
*/
|
||||
public interface DeviceVoiceBoxMapper extends BaseMapper<DeviceVoiceBox> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.DeviceVoiceBoxMsg;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备消息推送记录表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2020-11-04
|
||||
*/
|
||||
public interface DeviceVoiceBoxMsgMapper extends BaseMapper<DeviceVoiceBoxMsg> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.Dict;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.MapKey;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface DictMapper extends BaseMapper<Dict> {
|
||||
|
||||
List<Dict> getDictByCode(@Param("codeList") List<String> codeList);
|
||||
|
||||
Page<Dict> selectDictPage(Page<Dict> page, Dict dict);
|
||||
|
||||
Dict selectMaxSortElem(@Param("code") String code);
|
||||
|
||||
Dict selectByNameAndPCode(@Param("code") String code, @Param("name") String name);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.EncryptKey;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商务密钥存储表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-10-28
|
||||
*/
|
||||
public interface EncryptKeyMapper extends BaseMapper<EncryptKey> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.ExtraLevelBenefit;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 用户变更下级等级数据表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-02-08
|
||||
*/
|
||||
public interface ExtraLevelBenefitMapper extends BaseMapper<ExtraLevelBenefit> {
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_extra_level_benefit WHERE userId = #{userId}")
|
||||
ExtraLevelBenefit getByUserId(Serializable userId);
|
||||
}
|
||||
@@ -0,0 +1,81 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import cn.pluss.platform.entity.FansConsumReturn;
|
||||
import cn.pluss.platform.vo.FansInfoCountVO;
|
||||
|
||||
@Mapper
|
||||
public interface FansConsumReturnMapper {
|
||||
|
||||
public FansConsumReturn queryFansConsumReturn(FansConsumReturn fansConsumReturn);
|
||||
|
||||
public List<FansConsumReturn> queryFansConsumReturnList(FansConsumReturn fansConsumReturn);
|
||||
|
||||
public void saveFansConsumReturn(FansConsumReturn fansConsumReturn);
|
||||
|
||||
public void updateFansConsumReturn(FansConsumReturn fansConsumReturn);
|
||||
|
||||
public void deleteFansConsumReturn(FansConsumReturn fansConsumReturn);
|
||||
|
||||
public List<FansConsumReturn> queryFansConsumReturnPage(Map map);
|
||||
|
||||
public Integer queryFansConsumReturnPageCount(Map map);
|
||||
|
||||
public void saveFansConsumReturnBatch(List<FansConsumReturn> fansConsumReturnList);
|
||||
/**
|
||||
* 统计粉丝消费金额 统计粉丝消费奖励金额
|
||||
* @param merchantCode
|
||||
* @return
|
||||
*/
|
||||
public FansInfoCountVO sumFansConsumReturnInfo(@Param(value="merchantCode") String merchantCode);
|
||||
|
||||
/**
|
||||
* 可提现总金额(提现规则 超过一个月的时间)
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Double sumFansAllowCashMoney(Map map);
|
||||
|
||||
/**
|
||||
* 不可提现总金额(提现规则 不超过一个月)
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Double sumFansNotAllowCashMoney(Map map);
|
||||
|
||||
|
||||
/**
|
||||
* 今日分润
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Double sumNowDayShareMoney(Map map);
|
||||
|
||||
/**
|
||||
* 累计总分润
|
||||
* @param map
|
||||
* @return
|
||||
*/
|
||||
public Double sumAllShareMoney(Map map);
|
||||
|
||||
/**
|
||||
* 累计总奖励
|
||||
* @param merchantCode
|
||||
* @return
|
||||
*/
|
||||
public Double sumShareMoney();
|
||||
|
||||
/**
|
||||
* 今日奖励
|
||||
* @param merchantCode
|
||||
* @return
|
||||
*/
|
||||
public Double sumNowReturnMoney();
|
||||
|
||||
public Double sumReturnMoneyByTime(Map map);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,102 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import cn.pluss.platform.entity.MerchantProfit;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import cn.pluss.platform.entity.Fans;
|
||||
import cn.pluss.platform.vo.FansConsumVO;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
@Mapper
|
||||
public interface FansMapper {
|
||||
|
||||
List<Fans> selectGroupData(@Param("lastMerchantCodeList") List<String> lastMerchantCodeList);
|
||||
|
||||
Fans queryFans(Fans fans);
|
||||
|
||||
List<Fans> queryFansList(Fans fans);
|
||||
|
||||
void saveFans(Fans fans);
|
||||
|
||||
void updateFans(Fans fans);
|
||||
|
||||
void deleteFans(Fans fans);
|
||||
|
||||
List<Fans> queryFansPage(Map map);
|
||||
|
||||
Integer queryFansPageCount(Map map);
|
||||
|
||||
Integer queryFansNoPageCount(Map map);
|
||||
|
||||
void saveFansBatch(List<Fans> fansList);
|
||||
|
||||
Double sumConsumMoneyByMerchantCode(Map map);
|
||||
|
||||
/**
|
||||
* queryNowDateFansList:(获取当天粉丝的集合). <br/>
|
||||
*
|
||||
* @return
|
||||
* @author Administrator
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<Fans> queryNowDateFansList(Map map);
|
||||
|
||||
|
||||
List<Fans> queryFansPageManage(Map map);
|
||||
|
||||
Integer queryFansPageCountManage(Map map);
|
||||
|
||||
/**
|
||||
* queryLastFansByUserId:(查询某一粉丝最后一次消费的时间). <br/>
|
||||
*
|
||||
* @param userId
|
||||
* @return
|
||||
* @author Administrator
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
Fans queryLastFansByUserId(@Param(value = "userId") String userId);
|
||||
|
||||
/**
|
||||
* queryFansConsumPage:(最新粉丝分润记录查询). <br/>
|
||||
*
|
||||
* @param map
|
||||
* @return
|
||||
* @author Administrator
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
List<FansConsumVO> queryFansConsumPage(Map<String, Object> map);
|
||||
|
||||
List<FansConsumVO> queryFansNoConsumPage(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* queryFansConsumPageCount:(最新粉丝分润记录统计). <br/>
|
||||
*
|
||||
* @param map
|
||||
* @return
|
||||
* @author Administrator
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
Integer queryFansConsumPageCount(Map<String, Object> map);
|
||||
|
||||
Integer queryFansNoConsumPageCount(Map<String, Object> map);
|
||||
|
||||
Double queryFansSumConsumMoney(Map<String, Object> map);
|
||||
|
||||
Double queryFansSumShareMoney(Map<String, Object> map);
|
||||
|
||||
/**
|
||||
* 返回今日粉丝奖励总数
|
||||
*
|
||||
* @param fans
|
||||
* @return
|
||||
*/
|
||||
Double queryFansTodayCount(Fans fans);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_fans WHERE orderNumber = #{orderNumber} FOR UPDATE ")
|
||||
Fans getByLockOrderNumber(String orderNumber);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.GuideLabel;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-10-23
|
||||
*/
|
||||
public interface GuideLabelMapper extends BaseMapper<GuideLabel> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.HelpVideo;
|
||||
|
||||
@Mapper
|
||||
public interface HelpVideoMapper extends BaseMapper<HelpVideo> {
|
||||
|
||||
public HelpVideo queryHelpVideo(HelpVideo helpVideo);
|
||||
|
||||
public List<HelpVideo> queryHelpVideoList(HelpVideo helpVideo);
|
||||
|
||||
public void saveHelpVideo(HelpVideo helpVideo);
|
||||
|
||||
public void updateHelpVideo(HelpVideo helpVideo);
|
||||
|
||||
public void deleteHelpVideo(HelpVideo helpVideo);
|
||||
|
||||
public List<HelpVideo> queryHelpVideoPage(Map map);
|
||||
|
||||
public Integer queryHelpVideoPageCount(Map map);
|
||||
|
||||
public void saveHelpVideoBatch(List<HelpVideo> helpVideoList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.Fans;
|
||||
import cn.pluss.platform.entity.MerchantMenber;
|
||||
import cn.pluss.platform.entity.MerchantOrder;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
public interface HomeMapper {
|
||||
//商户数量
|
||||
Integer queryMerchantBaseInfoPageCount(Map map);
|
||||
//粉丝数量
|
||||
Integer queryMerchantFansCount(Map map);
|
||||
//新增粉丝数量,今日/昨日
|
||||
Integer queryTodayFanCount(Map<String, Object> fansMap);
|
||||
//交易总额
|
||||
Double getOrderFeeSum1(Map<String, Object> orderMap);
|
||||
//总交易笔数
|
||||
Integer queryMerchantOrderPageCount(Map map);
|
||||
//会员总数
|
||||
Integer manageQueryMerchantMenberPageCount(Map map);
|
||||
//会员总余额
|
||||
Double manageMerchantMenberSum(Map<String, Object> newMemberMap);
|
||||
//粉丝分润总额
|
||||
List<Fans> queryFansList(Fans fans);
|
||||
//日交易额,今日/昨日
|
||||
Double getToDayTransSum1(Map<String, Object> orderMap);
|
||||
//日支付宝交易额,今日/昨日
|
||||
Double toDayTransZfbSum(Map<String, Object> orderMap);
|
||||
//日微信交易额,今日/昨日
|
||||
Double toDayTransWxSum(Map<String, Object> orderMap);
|
||||
//日云闪付交易额,今日/昨日
|
||||
Double toDayTransYsfSum(Map<String, Object> orderMap);
|
||||
//日支付宝交易笔数,今日/昨日
|
||||
Integer toDayTransZfbCount(Map<String, Object> orderMap);
|
||||
//日微信交易笔数,今日/昨日
|
||||
Integer toDayTransWxCount(Map<String, Object> orderMap);
|
||||
//日云闪付交易笔数,今日/昨日
|
||||
Integer toDayTransYsfCount(Map<String, Object> orderMap);
|
||||
//日退款金额,今日/昨日
|
||||
List<MerchantOrder> queryMerchantOrderPage(Map map);
|
||||
//今日粉丝奖励
|
||||
public Double queryFansTodayCount(Fans fans);
|
||||
//新增会员,今日/昨日
|
||||
Integer queryMerchantMenberPageCount(Map map);
|
||||
//推广分润总额
|
||||
Double queryMerchantProfitSumPrice(Map<String, Object> merchantCodeMap);
|
||||
//推广员数量
|
||||
Integer queryUserAppPageCount(Map<String, Object> appMap);
|
||||
//推广商户数量
|
||||
Integer queryMerchantCount(Map<String, Object> merchantMap);
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.IdCardCache;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author djh
|
||||
*/
|
||||
public interface IdCardCacheMapper extends BaseMapper<IdCardCache> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.IdCard;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 身份证信息表, 图片信息在tb_pluss_merchant_image表中 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-10-16
|
||||
*/
|
||||
public interface IdCardMapper extends BaseMapper<IdCard> {
|
||||
|
||||
/**
|
||||
* 高并发容易发生死锁,不建议使用
|
||||
* 插入唯一数据
|
||||
*
|
||||
* @param idCard 插入数据
|
||||
* @param uniqueValue 唯一值
|
||||
* @return
|
||||
*/
|
||||
Integer insertUniqueData(@Param("data") IdCard idCard, @Param("uniqueData") Map<String, Object> uniqueValue);
|
||||
|
||||
/**
|
||||
* 获取结算身份证信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return
|
||||
*/
|
||||
List<IdCard> getAccountIdCard(@Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 获取结算身份证信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @param channelType 通道类型
|
||||
* @return
|
||||
*/
|
||||
IdCard getAccountIdCard(@Param("userId") String userId,@Param("channelType") String channelType);
|
||||
|
||||
/**
|
||||
* 查询身份证关联的超级服务商帐号个数
|
||||
*
|
||||
* @param certNo 身份证号
|
||||
* @return
|
||||
*/
|
||||
int selectAgentCount(@Param("certNo") String certNo, @Param("userId") String userId);
|
||||
|
||||
/**
|
||||
* 获取未关联结算信息的对私结算身份证信息
|
||||
*
|
||||
* @param userId 用户id
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT ic.* FROM tb_pluss_id_card ic " +
|
||||
"LEFT JOIN tb_pluss_account acc ON acc.userId = ic.userId AND acc.idCardId = ic.id " +
|
||||
"WHERE acc.id IS NULL AND ic.userType = '02' AND ic.userId = #{userId}")
|
||||
IdCard getUnusedIdCard(@Param("userId") String userId);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.InviteRate;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 邀请商户费率阶梯表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2020-11-20
|
||||
*/
|
||||
public interface InviteRateMapper extends BaseMapper<InviteRate> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.IpLocationCache;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author SSS
|
||||
*/
|
||||
public interface IpLocationCacheMapper extends BaseMapper<IpLocationCache> {
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftBankCard;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
public interface JftBankCardMapper extends BaseMapper<JftBankCard> {
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftMercBaseInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 缴费通详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-06-22
|
||||
*/
|
||||
public interface JftMercBaseInfoMapper extends BaseMapper<JftMercBaseInfo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftMercPaymentChannel;
|
||||
import cn.pluss.platform.entity.MerchantChannelStatus;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 银盛一码多户的商户进件记录 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-06-15
|
||||
*/
|
||||
public interface JftMercPaymentChannelMapper extends BaseMapper<JftMercPaymentChannel> {
|
||||
|
||||
/**
|
||||
* @param certNo 身份证号
|
||||
* @return
|
||||
*/
|
||||
Integer selectCountByCertNo(@Param("certNo") String certNo);
|
||||
|
||||
JftMercPaymentChannel selectByChangeFlowId(@Param("changeFlowId") String changeFlowId);
|
||||
|
||||
JftMercPaymentChannel selectBySysFlowId(@Param("sysFlowId") String sysFlowId);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftMerchantRate;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 缴费通商户费率表(新) Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-06-21
|
||||
*/
|
||||
public interface JftMerchantRateMapper extends BaseMapper<JftMerchantRate> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftMerchantRateRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 缴费通商户费率表(新) Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-06-21
|
||||
*/
|
||||
public interface JftMerchantRateRecordMapper extends BaseMapper<JftMerchantRateRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftPaymentInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 缴费通付款基础信息 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-06-16
|
||||
*/
|
||||
public interface JftPaymentInfoMapper extends BaseMapper<JftPaymentInfo> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftReceiptInfo;
|
||||
import cn.pluss.platform.vo.JftReceiptInfoVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 收银呗缴费通收款单 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-06-16
|
||||
*/
|
||||
public interface JftReceiptInfoMapper extends BaseMapper<JftReceiptInfo> {
|
||||
|
||||
/**
|
||||
* 缴费通
|
||||
* @param page
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
Page<JftReceiptInfoVO> pageInfo(@Param("page") Page<JftReceiptInfoVO> page, @Param("condition") JftReceiptInfo condition);
|
||||
|
||||
/**
|
||||
* 根据token查询
|
||||
* @param token
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT * FROM tb_pluss_jft_receipt_info WHERE token = #{token}")
|
||||
JftReceiptInfo getByToken(String token);
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.dto.jft.JftReceiptOrderDTO;
|
||||
import cn.pluss.platform.entity.JftReceiptOrder;
|
||||
import cn.pluss.platform.vo.JftReceiptOrderVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 收款单订单详情 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-06-16
|
||||
*/
|
||||
public interface JftReceiptOrderMapper extends BaseMapper<JftReceiptOrder> {
|
||||
|
||||
/**
|
||||
* 根据收款单id盒状态查询收款单详情
|
||||
* @param rid
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT * FROM tb_pluss_jft_receipt_order WHERE rid = #{rid} and `status` = #{status} order by id desc")
|
||||
List<JftReceiptOrder> listByReceiptId(@Param("rid") Long rid, @Param("status") String status);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_jft_receipt_order WHERE orderNumber = #{orderNumber} limit 1")
|
||||
JftReceiptOrder getOrderByNo(String orderNumber);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_jft_receipt_order WHERE mercOrderNo = #{mercOrderNo} limit 1")
|
||||
JftReceiptOrder getMercOrderByNo(String mercOrderNo);
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page
|
||||
* @param entity
|
||||
* @return
|
||||
*/
|
||||
Page<JftReceiptOrderVO> pageData(@Param("page") Page<JftReceiptOrderVO> page, @Param("entity") JftReceiptOrderDTO entity);
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftReceiptPayment;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 收款单和付款信息关联表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-06-16
|
||||
*/
|
||||
public interface JftReceiptPaymentMapper extends BaseMapper<JftReceiptPayment> {
|
||||
|
||||
@Select("SELECT pid FROM tb_pluss_jft_receipt_payment WHERE rid = #{receiptid}")
|
||||
List<Long> listByReceiptId(Long receiptid);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.JftSmallClass;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 缴费通小课堂信息表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2022-07-06
|
||||
*/
|
||||
public interface JftSmallClassMapper extends BaseMapper<JftSmallClass> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.LeshuaMakeMoney;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Mapper
|
||||
public interface LeshuaMakeMoneyMapper extends BaseMapper<LeshuaMakeMoney> {
|
||||
|
||||
List<LeshuaMakeMoney> queryLeshuaMakeMoneyPage(Map map);
|
||||
|
||||
Integer queryLeshuaMakeMoneyPageCount(Map map);
|
||||
|
||||
void saveLeshuaMakeMoneyBatch(List<LeshuaMakeMoney> leshuaMakeMoneyList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.Level;
|
||||
|
||||
@Mapper
|
||||
public interface LevelMapper extends BaseMapper<Level> {
|
||||
|
||||
Level queryLevel(Level level);
|
||||
|
||||
List<Level> queryLevelList(Level level);
|
||||
|
||||
void saveLevel(Level level);
|
||||
|
||||
void updateLevel(Level level);
|
||||
|
||||
void deleteLevel(Level level);
|
||||
|
||||
List<Level> queryLevelPage(Map map);
|
||||
|
||||
Integer queryLevelPageCount(Map map);
|
||||
|
||||
void saveLevelBatch(List<Level> levelList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.LevelOperateRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 等级变更记录表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-02-08
|
||||
*/
|
||||
public interface LevelOperateRecordMapper extends BaseMapper<LevelOperateRecord> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MakeMoney;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-09-10
|
||||
*/
|
||||
public interface MakeMoneyMapper extends BaseMapper<MakeMoney> {
|
||||
|
||||
/**
|
||||
* 查询商户已经提现的金额
|
||||
* @param merchantId
|
||||
*/
|
||||
BigDecimal getCountNowDateSettleAmt(String merchantId);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MccInfoSort;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* mcc行业对应表,此处的mcc主要还是以随行付的为主,不同通道有差异的通过mcc_reflect表做映射 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-06-23
|
||||
*/
|
||||
public interface MccInfoSortMapper extends BaseMapper<MccInfoSort> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MccInfoYs;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-07-20
|
||||
*/
|
||||
public interface MccInfoYsMapper extends BaseMapper<MccInfoYs> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MccReflect;
|
||||
import cn.pluss.platform.vo.MccReflectVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 主通道(随行付)与其他通道之间mcc的关联表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-02-23
|
||||
*/
|
||||
public interface MccReflectMapper extends BaseMapper<MccReflect> {
|
||||
|
||||
IPage<MccReflectVO> selectPageMccReflectVO(IPage<MccReflectVO> page, @Param(Constants.WRAPPER) MccReflect entity);
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.MapKey;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MemberOrder;
|
||||
|
||||
@Mapper
|
||||
public interface MemberOrderMapper extends BaseMapper<MemberOrder> {
|
||||
|
||||
MemberOrder queryMemberOrder(MemberOrder memberOrder);
|
||||
|
||||
List<MemberOrder> queryMemberOrderList(MemberOrder memberOrder);
|
||||
|
||||
void saveMemberOrder(MemberOrder memberOrder);
|
||||
|
||||
void updateMemberOrder(MemberOrder memberOrder);
|
||||
|
||||
void deleteMemberOrder(MemberOrder memberOrder);
|
||||
|
||||
List<MemberOrder> queryMemberOrderPage(Map map);
|
||||
|
||||
Integer queryMemberOrderPageCount(Map map);
|
||||
|
||||
void saveMemberOrderBatch(List<MemberOrder> memberOrderList);
|
||||
|
||||
Double queryMemberOrderTotalOrderFeeByTime(Map map);
|
||||
|
||||
Integer queryMemberOrderPageCountByTime(Map map);
|
||||
|
||||
List<MemberOrder> queryMemberOrderPageByTime(Map queryMap);
|
||||
|
||||
/**
|
||||
*
|
||||
* sumMemberOrderMoney:(统计商家的会员消费金额 充值金额). <br/>
|
||||
*
|
||||
* @author Administrator
|
||||
* @param merchantCode 商家code
|
||||
* @param orderType 0会员消费 1会员充值
|
||||
* @return
|
||||
* @since JDK 1.8
|
||||
*/
|
||||
Double sumMemberOrderMoney(Map<String, Object> map);
|
||||
|
||||
@MapKey("orderType")
|
||||
Map<String, Map<String, Object>> queryMemberOrderCountByTimeGroupData(Map<String, Object> map);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.MemberSetting;
|
||||
|
||||
@Mapper
|
||||
public interface MemberSettingMapper {
|
||||
|
||||
public MemberSetting queryMemberSetting(MemberSetting memberSetting);
|
||||
|
||||
public List<MemberSetting> queryMemberSettingList(MemberSetting memberSetting);
|
||||
|
||||
public void saveMemberSetting(MemberSetting memberSetting);
|
||||
|
||||
public void updateMemberSetting(MemberSetting memberSetting);
|
||||
|
||||
public void deleteMemberSetting(MemberSetting memberSetting);
|
||||
|
||||
public List<MemberSetting> queryMemberSettingPage(Map map);
|
||||
|
||||
public Integer queryMemberSettingPageCount(Map map);
|
||||
|
||||
public void saveMemberSettingBatch(List<MemberSetting> memberSettingList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MemberTransStatistics;
|
||||
import cn.pluss.platform.entity.MerchantBillStatistics;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 会员消费日记录 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2021-03-17
|
||||
*/
|
||||
public interface MemberTransStatisticsMapper extends BaseMapper<MemberTransStatistics> {
|
||||
|
||||
/**
|
||||
* 保存一天的商户会员流水
|
||||
* @param startDate 统计开始时间
|
||||
* @param endDate 统计截止时间
|
||||
*/
|
||||
void insertDuringBill(@Param("startDate") String startDate, @Param("endDate") String endDate);
|
||||
|
||||
/**
|
||||
* 该查询用于查询实时账单
|
||||
* @param startDate 开始时间
|
||||
* @param endDate 截止时间
|
||||
* @param userId 用户id
|
||||
* @return 单个商户的信息
|
||||
*/
|
||||
MemberTransStatistics selectOneDuringBill(@Param("startDate") String startDate, @Param("endDate") String endDate, @Param("userId") String userId);
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.MenuInfo;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@Mapper
|
||||
public interface MenuInfoMapper extends BaseMapper<MenuInfo> {
|
||||
|
||||
List<MenuInfo> queryRoleMenuInfoList(@Param("entity") MenuInfo menuInfo, @Param("roleId") String roleId);
|
||||
|
||||
MenuInfo queryMenuInfo(MenuInfo menuInfo);
|
||||
|
||||
List<MenuInfo> queryMenuInfoList(MenuInfo menuInfo);
|
||||
|
||||
Integer saveMenuInfo(MenuInfo menuInfo);
|
||||
|
||||
void updateMenuInfo(MenuInfo menuInfo);
|
||||
|
||||
void deleteMenuInfo(MenuInfo menuInfo);
|
||||
|
||||
List<MenuInfo> queryMenuInfoPage(Map map);
|
||||
|
||||
Integer queryMenuInfoPageCount(Map map);
|
||||
|
||||
void saveMenuInfoBatch(List<MenuInfo> menuInfoList);
|
||||
|
||||
List<MenuInfo> getPermissionNames(String loginName);
|
||||
|
||||
List<MenuInfo> queryPermitMenuInfoById(Map map);
|
||||
|
||||
List<MenuInfo> queryMenuInfoListOrderById(MenuInfo menuInfo);
|
||||
|
||||
List<MenuInfo> queryMenuInfoByRoleId(Map map);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercDeviceRefundImage;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户设备订单退款图片表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-03-31
|
||||
*/
|
||||
public interface MercDeviceRefundImageMapper extends BaseMapper<MercDeviceRefundImage> {
|
||||
|
||||
/**
|
||||
* 根据detailId获取图片列表
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT picUrl FROM tb_pluss_merc_device_refund_image WHERE detailId = #{id}")
|
||||
List<String> selectListByDetailId(Serializable id);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercMemberSet;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户会员功能基本设置表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-07-12
|
||||
*/
|
||||
public interface MercMemberSetMapper extends BaseMapper<MercMemberSet> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercOrderDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 订单详情表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-03-17
|
||||
*/
|
||||
public interface MercOrderDetailMapper extends BaseMapper<MercOrderDetail> {
|
||||
|
||||
/**
|
||||
* 获取已经退款的订单额度
|
||||
* @param orderNo
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT IFNULL(SUM(refundAmt),0) FROM tb_pluss_merc_order_detail WHERE orderNo = #{orderNo} AND status = '03' ")
|
||||
BigDecimal getUseRefundAmtByOrderNo(String orderNo);
|
||||
|
||||
/**
|
||||
* 分页查询
|
||||
* @param page
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
Page<MercOrderDetail> pageInfo(Page<MercOrderDetail> page, @Param("condition") MercOrderDetail condition);
|
||||
|
||||
/**
|
||||
* 根据订单号和code查询订单信息
|
||||
* @param orderNo
|
||||
* @param code
|
||||
* @return
|
||||
*/
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_detail WHERE orderNo = #{orderNo} and `code` = #{code}")
|
||||
List<MercOrderDetail> listByOrderNoAndCode(@Param("orderNo") String orderNo, @Param("code")String code);
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercOrderExpressDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 商户订单物流详情 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author crystal
|
||||
* @since 2022-03-24
|
||||
*/
|
||||
public interface MercOrderExpressDetailMapper extends BaseMapper<MercOrderExpressDetail> {
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_express_detail where orderNo = #{orderNo} order by id desc ")
|
||||
List<MercOrderExpressDetail> getByOrderNo(String orderNo);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_express_detail where expressNo = #{expressNo} order by id desc ")
|
||||
List<MercOrderExpressDetail> getByExpressNo(String expressNo);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercOrderExpress;
|
||||
import cn.pluss.platform.vo.MercOrderExpressVO;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
public interface MercOrderExpressMapper extends BaseMapper<MercOrderExpress> {
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_express WHERE orderNo = #{orderNo} ")
|
||||
MercOrderExpressVO getByOrderNo(String orderNo);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_express WHERE logistNo = #{logistNo} ")
|
||||
MercOrderExpress getByLogistNo(String logistNo);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_express WHERE expressNo = #{expressNo} ")
|
||||
MercOrderExpressVO getByExpressNo(String expressNo);
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercOrderNew;
|
||||
import cn.pluss.platform.vo.MercOrderNewVO;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.apache.ibatis.annotations.Select;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 新的订单表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-03-17
|
||||
*/
|
||||
public interface MercOrderNewMapper extends BaseMapper<MercOrderNew> {
|
||||
|
||||
/**
|
||||
* 设备订单分页查询
|
||||
* @param condition
|
||||
* @return
|
||||
*/
|
||||
Page<MercOrderNewVO> pageInfo(Page<MercOrderNewVO> page, @Param("condition")MercOrderNewVO condition);
|
||||
|
||||
@Select("SELECT * FROM tb_pluss_merc_order_new WHERE orderNo = #{orderNumber}")
|
||||
MercOrderNew getOrderByNo(String orderNumber);
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercOrderToken;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备订单token表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author bzg
|
||||
* @since 2022-03-23
|
||||
*/
|
||||
public interface MercOrderTokenMapper extends BaseMapper<MercOrderToken> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercReceiveAddress;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 设备商城用户地址表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-03-21
|
||||
*/
|
||||
public interface MercReceiveAddressMapper extends BaseMapper<MercReceiveAddress> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MercShopTrolley;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 购物车表 Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2022-03-16
|
||||
*/
|
||||
public interface MercShopTrolleyMapper extends BaseMapper<MercShopTrolley> {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import cn.pluss.platform.entity.MerchantAddress;
|
||||
|
||||
@Mapper
|
||||
public interface MerchantAddressMapper {
|
||||
|
||||
public MerchantAddress queryMerchantAddress(MerchantAddress merchantAddress);
|
||||
|
||||
public List<MerchantAddress> queryMerchantAddressList(MerchantAddress merchantAddress);
|
||||
|
||||
public void saveMerchantAddress(MerchantAddress merchantAddress);
|
||||
|
||||
public void updateMerchantAddress(MerchantAddress merchantAddress);
|
||||
|
||||
public void deleteMerchantAddress(MerchantAddress merchantAddress);
|
||||
|
||||
public List<MerchantAddress> queryMerchantAddressPage(Map map);
|
||||
|
||||
public Integer queryMerchantAddressPageCount(Map map);
|
||||
|
||||
public void saveMerchantAddressBatch(List<MerchantAddress> merchantAddressList);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package cn.pluss.platform.mapper;
|
||||
|
||||
import cn.pluss.platform.entity.MerchantAuditRecord;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* Mapper 接口
|
||||
* </p>
|
||||
*
|
||||
* @author Djh
|
||||
* @since 2020-11-27
|
||||
*/
|
||||
public interface MerchantAuditRecordMapper extends BaseMapper<MerchantAuditRecord> {
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user