Merge #85 into master from cc_20260331_material_blacklist

fix:小程序门店物料黑名单接口

* cc_20260331_material_blacklist: (1 commits squashed)

  - fix:小程序门店物料黑名单接口

Signed-off-by: 王非凡 <accounts_67eba0c5fee9c49c80c8e2b4@mail.teambition.com>
Merged-by: 正新 <accounts_6964c7bcd2a2c377c5bbd01b@mail.teambition.com>

CR-link: https://codeup.aliyun.com/692ea314dec569489f6f167c/hangzhou/java/custom_zxjp/change/85
This commit is contained in:
王非凡
2026-04-02 09:13:39 +00:00
committed by 正新
parent 6f34da2fb4
commit 8587957f2b
8 changed files with 266 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
package com.cool.store.dao.store;
import com.cool.store.entity.store.StoreMaterialBlacklistDO;
import com.cool.store.mapper.store.StoreMaterialBlacklistMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;
import java.util.List;
/**
* <p>
* 门店物料黑名单
* </p>
*
* @author wangff
* @since 2026/3/31
*/
@Repository
@RequiredArgsConstructor
public class StoreMaterialBlacklistDAO {
private final StoreMaterialBlacklistMapper storeMaterialBlacklistMapper;
public List<StoreMaterialBlacklistDO> getByStoreId(String storeId) {
Example example = new Example(StoreMaterialBlacklistDO.class);
example.createCriteria()
.andEqualTo("storeId", storeId);
example.setOrderByClause("create_time DESC");
return storeMaterialBlacklistMapper.selectByExample(example);
}
}

View File

@@ -0,0 +1,11 @@
package com.cool.store.mapper.store;
import com.cool.store.entity.store.StoreMaterialBlacklistDO;
import tk.mybatis.mapper.common.Mapper;
/**
* @author zhangchenbiao
* @date 2026-03-30 09:31
*/
public interface StoreMaterialBlacklistMapper extends Mapper<StoreMaterialBlacklistDO> {
}