fix:门店账户分页接口新增字段;打标接口完善
This commit is contained in:
@@ -31,10 +31,7 @@ import org.springframework.stereotype.Repository;
|
||||
import tk.mybatis.mapper.entity.Example;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
/**
|
||||
@@ -79,6 +76,17 @@ public class ShopInfoDAO {
|
||||
return shopInfoMapper.selectOne(shopInfoDO);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopInfoByStoreIds(List<String> storeIds) {
|
||||
if (CollectionUtils.isEmpty(storeIds)) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
Example example = new Example(ShopInfoDO.class);
|
||||
example.createCriteria()
|
||||
.andIn("storeId", storeIds)
|
||||
.andEqualTo("deleted", false);
|
||||
return shopInfoMapper.selectByExample(example);
|
||||
}
|
||||
|
||||
public List<ShopInfoDO> getShopList(Long lineId){
|
||||
if(Objects.isNull(lineId)){
|
||||
return new ArrayList<>();
|
||||
|
||||
Reference in New Issue
Block a user