首页 金刚区 标签 详情 标签VO一堆

This commit is contained in:
2024-04-11 14:26:35 +08:00
parent 1b9d069bc6
commit 9a6f6eb5b6
21 changed files with 592 additions and 633 deletions

View File

@@ -1,16 +1,14 @@
package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.TagProductDepts;
import com.chaozhanggui.system.cashierservice.entity.vo.TagProductVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* (TagProductDepts)表数据库访问层
* (TagProductDepts) 商品标签 表数据库访问层
*
* @author lyf
* @since 2024-04-08 15:03:49
@@ -18,74 +16,7 @@ import java.util.List;
@Component
@Mapper
public interface TagProductDeptsMapper {
/**
* 通过ID查询单条数据
*
* @param tagId 主键
* @return 实例对象
*/
TagProductDepts queryById(Integer tagId);
/**
* 查询指定行数据
*
* @param tagProductDepts 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TagProductDepts> queryAllByLimit(TagProductDepts tagProductDepts, @Param("pageable") Pageable pageable);
List<TagProductVO> queryTagAndProduct(@Param("list") List<Integer> list);
/**
* 统计总行数
*
* @param tagProductDepts 查询条件
* @return 总行数
*/
long count(TagProductDepts tagProductDepts);
/**
* 新增数据
*
* @param tagProductDepts 实例对象
* @return 影响行数
*/
int insert(TagProductDepts tagProductDepts);
/**
* 批量新增数据MyBatis原生foreach方法
*
* @param entities List<TagProductDepts> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TagProductDepts> entities);
/**
* 批量新增或按主键更新数据MyBatis原生foreach方法
*
* @param entities List<TagProductDepts> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<TagProductDepts> entities);
/**
* 修改数据
*
* @param tagProductDepts 实例对象
* @return 影响行数
*/
int update(TagProductDepts tagProductDepts);
/**
* 通过主键删除数据
*
* @param tagId 主键
* @return 影响行数
*/
int deleteById(Integer tagId);
List<TagProductVO> queryTagByProductId(@Param("productId") String productId);
}

View File

@@ -22,64 +22,9 @@ public interface TbPlatformDictMapper {
*/
TbPlatformDict queryById(Integer id);
/**
* 查询指定行数据
*
* @param tbPlatformDict 查询条件
* @param pageable 分页对象
* @return 对象列表
*/
List<TbPlatformDict> queryAllByLimit(TbPlatformDict tbPlatformDict, @Param("pageable") Pageable pageable);
List<TbPlatformDict> queryByIdList(List<Integer> idList);
List<TbPlatformDict> queryAllByType(@Param("type") String type,@Param("environment") String environment);
/**
* 统计总行数
*
* @param tbPlatformDict 查询条件
* @return 总行数
*/
long count(TbPlatformDict tbPlatformDict);
/**
* 新增数据
*
* @param tbPlatformDict 实例对象
* @return 影响行数
*/
int insert(TbPlatformDict tbPlatformDict);
/**
* 批量新增数据MyBatis原生foreach方法
*
* @param entities List<TbPlatformDict> 实例对象列表
* @return 影响行数
*/
int insertBatch(@Param("entities") List<TbPlatformDict> entities);
/**
* 批量新增或按主键更新数据MyBatis原生foreach方法
*
* @param entities List<TbPlatformDict> 实例对象列表
* @return 影响行数
* @throws org.springframework.jdbc.BadSqlGrammarException 入参是空List的时候会抛SQL语句错误的异常请自行校验入参
*/
int insertOrUpdateBatch(@Param("entities") List<TbPlatformDict> entities);
/**
* 修改数据
*
* @param tbPlatformDict 实例对象
* @return 影响行数
*/
int update(TbPlatformDict tbPlatformDict);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 影响行数
*/
int deleteById(Integer id);
}

View File

@@ -38,4 +38,5 @@ public interface TbProductSkuMapper {
List<TbProductSku> selectDownSku(@Param("list") List<Integer> productId);
List<TbProductSku> selectSkus(@Param("list") List<String> productId);
List<TbProductSku> selectSku(@Param("productId") String productId);
}

View File

@@ -0,0 +1,22 @@
package com.chaozhanggui.system.cashierservice.dao;
import com.chaozhanggui.system.cashierservice.entity.TbPurchaseNotice;
/**
* 购买须知(关联tb_merchant_coupon)(TbPurchaseNotice)表数据库访问层
*
* @author ww
* @since 2024-04-11 10:00:23
*/
public interface TbPurchaseNoticeMapper {
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
TbPurchaseNotice queryById(Integer id);
}