-
Notifications
You must be signed in to change notification settings - Fork 722
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from geekidea/dev
优化代码生成器模板 Former-commit-id: 274377d4ba08f25593116f2d4168f495a6e86c03
- Loading branch information
Showing
30 changed files
with
275 additions
and
489 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
89 changes: 0 additions & 89 deletions
89
src/main/java/io/geekidea/springbootplus/example/redislock/RedisLockController.java
This file was deleted.
Oops, something went wrong.
34 changes: 0 additions & 34 deletions
34
src/main/java/io/geekidea/springbootplus/example/redislock/RedisLockExampleService.java
This file was deleted.
Oops, something went wrong.
61 changes: 0 additions & 61 deletions
61
src/main/java/io/geekidea/springbootplus/example/redislock/RedisLockExampleServiceImpl.java
This file was deleted.
Oops, something went wrong.
24 changes: 15 additions & 9 deletions
24
src/main/java/io/geekidea/springbootplus/system/entity/Ip.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,43 @@ | ||
package io.geekidea.springbootplus.system.entity; | ||
|
||
import com.baomidou.mybatisplus.annotation.IdType; | ||
import com.baomidou.mybatisplus.annotation.TableId; | ||
import io.geekidea.springbootplus.common.entity.BaseEntity; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import lombok.Data; | ||
import lombok.EqualsAndHashCode; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* <p> | ||
* | ||
* </p> | ||
* | ||
* @author geekidea | ||
* @since 2019-06-20 | ||
* @since 2019-07-27 | ||
*/ | ||
@Data | ||
@EqualsAndHashCode(callSuper = true) | ||
@ApiModel(value="Ip对象") | ||
@ApiModel(value="Ip对象", description="") | ||
public class Ip extends BaseEntity { | ||
|
||
private static final long serialVersionUID = 1L; | ||
|
||
private String ipStart; | ||
private String ipStart; | ||
|
||
private String ipEnd; | ||
private String ipEnd; | ||
|
||
private String area; | ||
private String area; | ||
|
||
private String operator; | ||
private String operator; | ||
|
||
private Long id; | ||
@TableId(value = "id", type = IdType.AUTO) | ||
private Long id; | ||
|
||
private Long ipStartNum; | ||
private Long ipStartNum; | ||
|
||
private Long ipEndNum; | ||
private Long ipEndNum; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 17 additions & 4 deletions
21
src/main/java/io/geekidea/springbootplus/system/mapper/IpMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,40 @@ | ||
package io.geekidea.springbootplus.system.mapper; | ||
|
||
import com.baomidou.mybatisplus.core.metadata.IPage; | ||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; | ||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; | ||
import io.geekidea.springbootplus.system.entity.Ip; | ||
import io.geekidea.springbootplus.system.web.vo.IpVo; | ||
import io.geekidea.springbootplus.system.web.param.IpQueryParam; | ||
import io.geekidea.springbootplus.system.web.vo.IpQueryVo; | ||
import org.apache.ibatis.annotations.Param; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* <p> | ||
* Mapper 接口 | ||
* </p> | ||
* | ||
* @author geekidea | ||
* @since 2019-06-20 | ||
* @since 2019-07-27 | ||
*/ | ||
@Repository | ||
public interface IpMapper extends BaseMapper<Ip> { | ||
|
||
/** | ||
* 根据ID获取查询对象 | ||
* @param ip | ||
* @param id | ||
* @return | ||
*/ | ||
IpVo getByIp(String ip); | ||
IpQueryVo getIpById(Serializable id); | ||
|
||
/** | ||
* 获取分页对象 | ||
* @param page | ||
* @param ipQueryParam | ||
* @return | ||
*/ | ||
IPage<IpQueryVo> getIpPageList(@Param("page") Page page, @Param("param") IpQueryParam ipQueryParam); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.