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:
@@ -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);
|
||||
}
|
||||
}
|
||||
@@ -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> {
|
||||
}
|
||||
Reference in New Issue
Block a user