|
@@ -69,6 +69,29 @@ public class StoreServiceImpl extends BaseServiceImpl<StoreMapper, Store, StoreD
|
|
private final String useCompany = "6063f905eb190003685af6d4";
|
|
private final String useCompany = "6063f905eb190003685af6d4";
|
|
private final String useProject = "6063f92ceb190003685af6d9";
|
|
private final String useProject = "6063f92ceb190003685af6d9";
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
+ public List<StoreVO> getStoreListByPositionId(String id) {
|
|
|
|
+ Store store = new Store();
|
|
|
|
+ store.setFactoryArea(id);
|
|
|
|
+ List<Store> stores = mapper.select(store);
|
|
|
|
+ List<StoreVO> storeVOS = BeanConverterUtil.copyListProperties(stores,StoreVO.class);
|
|
|
|
+ return storeVOS;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public List<StoreVO> getStoreListByStoreId(String id) {
|
|
|
|
+
|
|
|
|
+ Store store = new Store();
|
|
|
|
+ Store queryStore = mapper.selectByPrimaryKey(id);
|
|
|
|
+ if (!queryStore.getExistPosition()){
|
|
|
|
+ return new ArrayList<StoreVO>();
|
|
|
|
+ }
|
|
|
|
+ store.setParentId(id);
|
|
|
|
+
|
|
|
|
+ List<StoreVO> storeVOS = BeanConverterUtil.copyListProperties(mapper.select(store),StoreVO.class);
|
|
|
|
+ return storeVOS;
|
|
|
|
+ }
|
|
|
|
+
|
|
@Override
|
|
@Override
|
|
public int batchDelete(List<String> ids) {
|
|
public int batchDelete(List<String> ids) {
|
|
Weekend<Store> weekend = new Weekend<>(Store.class);
|
|
Weekend<Store> weekend = new Weekend<>(Store.class);
|