From 3aa3f9e730127147236c9e7627920dd8aacf3a36 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期三, 15 七月 2026 15:49:59 +0800
Subject: [PATCH] 1.仓储物流-批次号优化覆盖数据 2.仓储物流-新增自定义出入库流水查询 3.采购管理-清理无用代码和表 4.销售管理-清理无用代码和表 5.销售流程状态字段数据回游
---
yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/brand/MdmBrandMapper.java | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 50 insertions(+), 0 deletions(-)
diff --git a/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/brand/MdmBrandMapper.java b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/brand/MdmBrandMapper.java
new file mode 100644
index 0000000..0b4e107
--- /dev/null
+++ b/yudao-module-mdm/src/main/java/cn/iocoder/yudao/module/mdm/dal/mysql/brand/MdmBrandMapper.java
@@ -0,0 +1,50 @@
+package cn.iocoder.yudao.module.mdm.dal.mysql.brand;
+
+import cn.iocoder.yudao.framework.common.pojo.PageResult;
+import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
+import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
+import cn.iocoder.yudao.module.mdm.controller.admin.brand.vo.MdmBrandPageReqVO;
+import cn.iocoder.yudao.module.mdm.dal.dataobject.brand.MdmBrandDO;
+import org.apache.ibatis.annotations.Mapper;
+
+import java.util.Collection;
+import java.util.List;
+
+/**
+ * MDM 鍝佺墝 Mapper
+ *
+ * @author 鑺嬮亾婧愮爜
+ */
+@Mapper
+public interface MdmBrandMapper extends BaseMapperX<MdmBrandDO> {
+
+ default PageResult<MdmBrandDO> selectPage(MdmBrandPageReqVO reqVO) {
+ return selectPage(reqVO, new LambdaQueryWrapperX<MdmBrandDO>()
+ .likeIfPresent(MdmBrandDO::getCode, reqVO.getCode())
+ .likeIfPresent(MdmBrandDO::getName, reqVO.getName())
+ .eqIfPresent(MdmBrandDO::getStatus, reqVO.getStatus())
+ .betweenIfPresent(MdmBrandDO::getCreateTime, reqVO.getCreateTime())
+ .orderByDesc(MdmBrandDO::getId));
+ }
+
+ default List<MdmBrandDO> selectList(MdmBrandDO reqVO) {
+ return selectList(new LambdaQueryWrapperX<MdmBrandDO>()
+ .likeIfPresent(MdmBrandDO::getCode, reqVO.getCode())
+ .likeIfPresent(MdmBrandDO::getName, reqVO.getName())
+ .eqIfPresent(MdmBrandDO::getStatus, reqVO.getStatus())
+ .orderByDesc(MdmBrandDO::getId));
+ }
+
+ default MdmBrandDO selectByCode(String code) {
+ return selectOne(MdmBrandDO::getCode, code);
+ }
+
+ default MdmBrandDO selectByName(String name) {
+ return selectOne(MdmBrandDO::getName, name);
+ }
+
+ default List<MdmBrandDO> selectListByIds(Collection<Long> ids) {
+ return selectList(MdmBrandDO::getId, ids);
+ }
+
+}
\ No newline at end of file
--
Gitblit v1.9.3