| | |
| | | import com.moon.server.entity.all.RedisCacheKey; |
| | | import com.moon.server.entity.all.SettingData; |
| | | import com.moon.server.entity.sys.LayerEntity; |
| | | import com.moon.server.entity.sys.ResEntity; |
| | | import com.moon.server.helper.StringHelper; |
| | | import com.moon.server.mapper.sys.LayerMapper; |
| | | import com.moon.server.service.all.RedisService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import javax.annotation.Resource; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectIdByName(String name) { |
| | | Integer id = layerMapper.selectIdByName(name); |
| | | return null == id ? 0 : id; |
| | | } |
| | | |
| | | @Override |
| | | public Integer selectMaxOrderNumByPid(Integer pid) { |
| | | return layerMapper.selectMaxOrderNumByPid(pid); |
| | | } |
| | | |
| | | @Override |
| | | public LayerEntity selectByResId(Integer resid) { |
| | | return layerMapper.selectByResId(resid); |
| | | } |
| | | |
| | | @Override |
| | | public Integer insert(LayerEntity entity) { |
| | | return layerMapper.insert(entity); |
| | | } |