| | |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.CollectionUtils; |
| | | |
| | | import java.util.*; |
| | | |
| | |
| | | return dmModuleDao.selectById(id); |
| | | } |
| | | |
| | | @Override |
| | | public DmModuleEntity getModuleByItemId(String itemId) { |
| | | List<DmModuleEntity> list = dmModuleDao.getModuleByItemId(itemId); |
| | | if (CollectionUtils.isEmpty(list)) { |
| | | return null; |
| | | } |
| | | return list.get(0); |
| | | } |
| | | |
| | | private QueryWrapper<DmModuleEntity> getWrapper(Map<String, Object> params) { |
| | | String modulename = (String) params.get("modulename"); |
| | | String moduletype = (String) params.get("moduletype"); |