Newer
Older
huludao / src / main / java / com / newfiber / api / pc / service / impl / SysMenuServiceImpl.java
@新烽开发者 新烽开发者 on 19 Jul 882 bytes init
package com.newfiber.api.pc.service.impl;

import com.newfiber.api.pc.dao.SysMenuJurisdictionDao;
import com.newfiber.api.pc.model.entity.MenuJurisdiction;
import com.newfiber.api.pc.service.SysMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import java.util.*;

@Service
@Transactional(rollbackFor = Exception.class)
public class SysMenuServiceImpl implements SysMenuService {
	@Autowired
	private SysMenuJurisdictionDao data_Menu_JurisdictDao;

	@Override
	public List<String>  GetMenusjurisdTree(String Jurisdiction_No) {
		List<MenuJurisdiction> list=data_Menu_JurisdictDao.GetMenuJurLast(Jurisdiction_No);
		List<String> result = new ArrayList<>();
		for(MenuJurisdiction m:list){
			result.add(m.getMenuNo());
		}
		return result;
	}
}