B端 部分接口3
This commit is contained in:
@@ -5,6 +5,7 @@ import com.cool.store.entity.HyOpenAreaInfoDO;
|
||||
import com.cool.store.entity.HyPartnerBaseInfoDO;
|
||||
import com.cool.store.mapper.HyOpenAreaInfoMapper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.google.common.collect.Lists;
|
||||
import org.apache.commons.collections4.CollectionUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Repository;
|
||||
@@ -56,4 +57,27 @@ public class HyOpenAreaInfoDAO {
|
||||
}
|
||||
return hyOpenAreaInfoMapper.getChildrenList(type,parentId);
|
||||
}
|
||||
|
||||
|
||||
public int batchUpdateById(String backgroundBanner,String detailBanner,String areaStatus,String updateUserId,List<Long> ids){
|
||||
if (StringUtils.isEmpty(areaStatus)){
|
||||
return 0;
|
||||
}
|
||||
return hyOpenAreaInfoMapper.batchUpdateById(backgroundBanner,detailBanner,areaStatus,updateUserId,ids);
|
||||
}
|
||||
|
||||
public int batchUpdateByParentId(String backgroundBanner,String detailBanner,String areaStatus,String updateUserId,List<Long> ids){
|
||||
if (StringUtils.isEmpty(areaStatus)){
|
||||
return 0;
|
||||
}
|
||||
return hyOpenAreaInfoMapper.batchUpdateByParentId(backgroundBanner,detailBanner,areaStatus,updateUserId,ids);
|
||||
}
|
||||
|
||||
|
||||
public List<HyOpenAreaInfoDO> selectByIds(List<Long> ids){
|
||||
if (CollectionUtils.isEmpty(ids)){
|
||||
return Lists.newArrayList();
|
||||
}
|
||||
return hyOpenAreaInfoMapper.selectByIds(ids);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.cool.store.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
@@ -16,7 +17,7 @@ public class ZoneVO {
|
||||
|
||||
private String zoneName;
|
||||
|
||||
private String updateTime;
|
||||
private Date updateTime;
|
||||
|
||||
private String updateUserId;
|
||||
|
||||
@@ -24,7 +25,7 @@ public class ZoneVO {
|
||||
|
||||
private List<OrganizationVO> orgVos;
|
||||
|
||||
private List<OpenAreaVO> openAreaVOS;
|
||||
private List<OpenAreaSingleVO> openAreaVOS;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.cool.store.Service;
|
||||
|
||||
import com.cool.store.request.OpenAreaRequest;
|
||||
import com.cool.store.vo.OpenAreaTreeVO;
|
||||
import com.cool.store.vo.OpenAreaVO;
|
||||
|
||||
@@ -29,4 +30,12 @@ public interface OpenAreaService {
|
||||
*/
|
||||
List<OpenAreaVO> getChildrenList(String type, Long parentId);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param userId
|
||||
* @param openAreaRequest
|
||||
* @return
|
||||
*/
|
||||
Boolean batchUpdate(String userId, OpenAreaRequest openAreaRequest);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user