| | |
| | | import com.yeshi.fanli.dao.mybatis.homemodule.SuperHomeNavbarMapper;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.HomeNavbar;
|
| | | import com.yeshi.fanli.entity.bus.homemodule.SuperHomeNavbar;
|
| | | import com.yeshi.fanli.entity.system.System;
|
| | | import com.yeshi.fanli.service.inter.config.SystemService;
|
| | | import com.yeshi.fanli.entity.system.BusinessSystem;
|
| | | import com.yeshi.fanli.service.inter.config.BusinessSystemService;
|
| | | import com.yeshi.fanli.service.inter.homemodule.HomeNavbarService;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | |
|
| | |
| | | public class HomeNavbarServiceImpl implements HomeNavbarService {
|
| | |
|
| | | @Resource
|
| | | private SystemService systemService;
|
| | | private BusinessSystemService businessSystemService;
|
| | | @Resource
|
| | | private HomeNavbarMapper homeNavbarMapper;
|
| | | @Resource
|
| | |
| | | return null;
|
| | | }
|
| | |
|
| | | List<System> systemList = systemService.getSystems();
|
| | | List<BusinessSystem> systemList = businessSystemService.getBusinessSystems();
|
| | |
|
| | | List<Long> listId = new ArrayList<Long>();
|
| | | for (HomeNavbar homeNavbar: listObj) {
|
| | |
| | | for (HomeNavbar homeNavbar: listObj) {
|
| | |
|
| | | Long id = homeNavbar.getId();
|
| | | List<System> newList = new ArrayList<System>();
|
| | | List<BusinessSystem> newList = new ArrayList<BusinessSystem>();
|
| | |
|
| | | // 是否有关联系统选项
|
| | | for (System dsystem : systemList) {
|
| | | for (BusinessSystem dsystem : systemList) {
|
| | |
|
| | | System newsystem = new System();
|
| | | BusinessSystem newsystem = new BusinessSystem();
|
| | | try {
|
| | | PropertyUtils.copyProperties(newsystem, dsystem);
|
| | | } catch (Exception e) {
|
| | |
| | |
|
| | | for (SuperHomeNavbar superHomeNavbar : listSuper) {
|
| | | HomeNavbar navbar = superHomeNavbar.getHomeNavbar();
|
| | | System system = superHomeNavbar.getSystem();
|
| | | BusinessSystem system = superHomeNavbar.getSystem();
|
| | |
|
| | | // 当前专题 、当前系统
|
| | | if (navbar != null && system != null && id == navbar.getId()
|