|
@@ -1,6 +1,8 @@
|
|
package com.platform.rest.controller.store;
|
|
package com.platform.rest.controller.store;
|
|
|
|
|
|
|
|
+import com.platform.common.model.UserInfo;
|
|
import com.platform.common.util.R;
|
|
import com.platform.common.util.R;
|
|
|
|
+import com.platform.common.util.SecurityUtils;
|
|
import com.platform.dao.dto.sb.SbTypeDTO;
|
|
import com.platform.dao.dto.sb.SbTypeDTO;
|
|
import com.platform.dao.dto.store.StoreDTO;
|
|
import com.platform.dao.dto.store.StoreDTO;
|
|
import com.platform.dao.entity.store.Store;
|
|
import com.platform.dao.entity.store.Store;
|
|
@@ -212,7 +214,8 @@ public class StoreController {
|
|
*/
|
|
*/
|
|
@GetMapping("tableTree")
|
|
@GetMapping("tableTree")
|
|
public R queryTableTree(StoreDTO storeDTO) {
|
|
public R queryTableTree(StoreDTO storeDTO) {
|
|
-
|
|
|
|
|
|
+ String userId= SecurityUtils.getUserInfo().getUserId();
|
|
|
|
+ storeDTO.setUserId(userId);
|
|
List<Store> typeList= storeService.getModelListByDTO(storeDTO);
|
|
List<Store> typeList= storeService.getModelListByDTO(storeDTO);
|
|
List<Store> parentList = new ArrayList<Store>();
|
|
List<Store> parentList = new ArrayList<Store>();
|
|
for(Store type: typeList){
|
|
for(Store type: typeList){
|