文件名从 src/main/java/com/moon/server/service/data/LayerService.java 修改 |
| | |
| | | package com.moon.server.service.data; |
| | | package com.moon.server.service.sys; |
| | | |
| | | import com.moon.server.entity.data.LayerEntity; |
| | | import com.moon.server.entity.sys.LayerEntity; |
| | | import com.moon.server.helper.StringHelper; |
| | | import com.moon.server.mapper.data.LayerMapper; |
| | | import com.moon.server.mapper.sys.LayerMapper; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | |
| | | LayerMapper layerMapper; |
| | | |
| | | @Override |
| | | public Integer selectCount(String cnName) { |
| | | cnName = StringHelper.getLikeUpperStr(cnName); |
| | | public Integer selectCount(String name) { |
| | | name = StringHelper.getLikeUpperStr(name); |
| | | |
| | | return layerMapper.selectCount(cnName); |
| | | return layerMapper.selectCount(name); |
| | | } |
| | | |
| | | @Override |
| | | public List<LayerEntity> selectByPage(String cnName, Integer limit, Integer offset) { |
| | | cnName = StringHelper.getLikeUpperStr(cnName); |
| | | public List<LayerEntity> selectByPage(String name, Integer limit, Integer offset) { |
| | | name = StringHelper.getLikeUpperStr(name); |
| | | |
| | | return layerMapper.selectByPage(cnName, limit, offset); |
| | | return layerMapper.selectByPage(name, limit, offset); |
| | | } |
| | | |
| | | @Override |