|
|
@@ -17,6 +17,7 @@ import com.ydtech.modules.admin.service.SysDeptService;
|
|
|
import com.ydtech.modules.protocol.utils.AssertionUtils;
|
|
|
import com.ydtech.utils.StringUtils;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.ObjectUtils;
|
|
|
@@ -32,7 +33,8 @@ import java.util.stream.Collectors;
|
|
|
public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept>
|
|
|
implements SysDeptService {
|
|
|
|
|
|
-
|
|
|
+ @Autowired
|
|
|
+ private SysDeptMapper sysDeptMapper;
|
|
|
@Override
|
|
|
public List<SysDept> findTree(String deptId,String managementSource) {
|
|
|
if(null == deptId || "".equals(deptId) || "undefined".equals(deptId)){
|
|
|
@@ -366,6 +368,16 @@ public class SysDeptServiceImpl extends ServiceImpl<SysDeptMapper, SysDept>
|
|
|
List<SysDept> sysDeptList = list(lqw);
|
|
|
return sysDeptList;
|
|
|
}
|
|
|
+ /**
|
|
|
+ * @version
|
|
|
+ * @author: hxl
|
|
|
+ * @Date: 2024/4/28 10:24
|
|
|
+ * @Description: 查询省、市、县 、门店的列表
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public List<SysDept> queryListByParentId(String level, String parentId) {
|
|
|
+ return sysDeptMapper.queryListByParentId(level,parentId);
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
|