Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SiEn
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hewei
SiEn
Commits
7be595f9
Commit
7be595f9
authored
Oct 10, 2020
by
lanpingxiong
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev/lanpingxiong' into 'master'
Dev/lanpingxiong See merge request hewei/Jumeirah!11
parents
ced56c6f
aa4c25f8
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
552 additions
and
3 deletions
+552
-3
api-app/src/main/java/com/jumeirah/api/app/controller/PlainTypeController.java
+74
-0
api-app/src/main/java/com/jumeirah/api/app/entity/bo/PlainTypeBo.java
+37
-0
common/src/main/java/com/jumeirah/common/controller/PlainTypeController.java
+95
-0
common/src/main/java/com/jumeirah/common/entity/PlainType.java
+69
-0
common/src/main/java/com/jumeirah/common/entity/Stroke.java
+1
-1
common/src/main/java/com/jumeirah/common/mapper/PlainTypeMapper.java
+42
-0
common/src/main/java/com/jumeirah/common/param/PlainTypePageParam.java
+23
-0
common/src/main/java/com/jumeirah/common/service/PlainTypeService.java
+69
-0
common/src/main/java/com/jumeirah/common/service/impl/PlainTypeServiceImpl.java
+72
-0
common/src/main/java/com/jumeirah/common/vo/PlainTypeQueryVo.java
+45
-0
common/src/main/resources/mapper/PlainTypeMapper.xml
+23
-0
config/src/main/resources/config/application-dev.yml
+1
-1
generator/src/main/java/io/geekidea/springbootplus/generator/SpringBootPlusGenerator.java
+1
-1
No files found.
api-app/src/main/java/com/jumeirah/api/app/controller/PlainTypeController.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
api
.
app
.
controller
;
import
com.jumeirah.api.app.entity.bo.PlainTypeBo
;
import
com.jumeirah.common.entity.PlainType
;
import
com.jumeirah.common.service.PlainTypeService
;
import
com.jumeirah.common.vo.PlainTypeQueryVo
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.common.controller.BaseController
;
import
io.geekidea.springbootplus.framework.log.annotation.Module
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLog
;
import
io.geekidea.springbootplus.framework.log.enums.OperationLogType
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.collections.list.PredicatedList
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.util.CollectionUtils
;
import
org.springframework.validation.annotation.Validated
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
/**
* 飞机型号表 控制器
*
* @author wei
* @since 2020-10-09
*/
@Slf4j
@RestController
@RequestMapping
(
"/plainType"
)
@Module
(
"${cfg.module}"
)
@Api
(
value
=
"飞机型号表API"
,
tags
=
{
"飞机型号表"
})
public
class
PlainTypeController
extends
BaseController
{
@Autowired
private
PlainTypeService
plainTypeService
;
/**
* 飞机型号表分页列表
*/
@GetMapping
(
"/getAllMap"
)
@OperationLog
(
name
=
"分组获取飞机型号列表"
,
type
=
OperationLogType
.
PAGE
)
@ApiOperation
(
value
=
"分组获取飞机型号列表"
,
response
=
PlainTypeQueryVo
.
class
)
public
ApiResult
<
List
<
PlainTypeBo
>>
getAllMap
()
throws
Exception
{
List
<
PlainType
>
plainTypeList
=
plainTypeService
.
getAllMap
();
Map
<
Integer
,
List
<
PlainType
>>
resultMap
;
List
<
PlainTypeBo
>
plainTypeBoList
=
new
ArrayList
<>();
if
(!
CollectionUtils
.
isEmpty
(
plainTypeList
))
{
resultMap
=
plainTypeList
.
stream
().
collect
(
Collectors
.
groupingBy
(
PlainType:
:
getSeriesType
));
PlainTypeBo
plainTypeBo
;
for
(
List
<
PlainType
>
listTemp:
resultMap
.
values
())
{
plainTypeBo
=
new
PlainTypeBo
();
plainTypeBo
.
setTitle
(
listTemp
.
get
(
0
).
getSeriesName
())
.
setPlainTypeList
(
listTemp
);
plainTypeBoList
.
add
(
plainTypeBo
);
}
}
return
ApiResult
.
ok
(
plainTypeBoList
);
}
}
api-app/src/main/java/com/jumeirah/api/app/entity/bo/PlainTypeBo.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
api
.
app
.
entity
.
bo
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.jumeirah.common.entity.PlainType
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
java.util.List
;
/**
* 飞机型号表
*
* @author wei
* @since 2020-10-09
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"分组获取飞机类型对象"
)
public
class
PlainTypeBo
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"系列名称"
)
private
String
title
;
@ApiModelProperty
(
"系列名称"
)
private
List
<
PlainType
>
plainTypeList
;
}
common/src/main/java/com/jumeirah/common/controller/PlainTypeController.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
controller
;
import
com.jumeirah.common.entity.PlainType
;
import
com.jumeirah.common.service.PlainTypeService
;
import
lombok.extern.slf4j.Slf4j
;
import
com.jumeirah.common.param.PlainTypePageParam
;
import
io.geekidea.springbootplus.framework.common.controller.BaseController
;
import
com.jumeirah.common.vo.PlainTypeQueryVo
;
import
io.geekidea.springbootplus.framework.common.api.ApiResult
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.common.param.IdParam
;
import
io.geekidea.springbootplus.framework.log.annotation.Module
;
import
io.geekidea.springbootplus.framework.log.annotation.OperationLog
;
import
io.geekidea.springbootplus.framework.log.enums.OperationLogType
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Add
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
import
org.springframework.validation.annotation.Validated
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.*
;
/**
* 飞机型号表 控制器
*
* @author wei
* @since 2020-10-09
*/
/*@Slf4j
@RestController
@RequestMapping("/plainType")
@Module("${cfg.module}")
@Api(value = "飞机型号表API", tags = {"飞机型号表"})*/
public
class
PlainTypeController
extends
BaseController
{
@Autowired
private
PlainTypeService
plainTypeService
;
/**
* 添加飞机型号表
*/
@PostMapping
(
"/add"
)
@OperationLog
(
name
=
"添加飞机型号表"
,
type
=
OperationLogType
.
ADD
)
@ApiOperation
(
value
=
"添加飞机型号表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
addPlainType
(
@Validated
(
Add
.
class
)
@RequestBody
PlainType
plainType
)
throws
Exception
{
boolean
flag
=
plainTypeService
.
savePlainType
(
plainType
);
return
ApiResult
.
result
(
flag
);
}
/**
* 修改飞机型号表
*/
@PostMapping
(
"/update"
)
@OperationLog
(
name
=
"修改飞机型号表"
,
type
=
OperationLogType
.
UPDATE
)
@ApiOperation
(
value
=
"修改飞机型号表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
updatePlainType
(
@Validated
(
Update
.
class
)
@RequestBody
PlainType
plainType
)
throws
Exception
{
boolean
flag
=
plainTypeService
.
updatePlainType
(
plainType
);
return
ApiResult
.
result
(
flag
);
}
/**
* 删除飞机型号表
*/
@PostMapping
(
"/delete/{id}"
)
@OperationLog
(
name
=
"删除飞机型号表"
,
type
=
OperationLogType
.
DELETE
)
@ApiOperation
(
value
=
"删除飞机型号表"
,
response
=
ApiResult
.
class
)
public
ApiResult
<
Boolean
>
deletePlainType
(
@PathVariable
(
"id"
)
Long
id
)
throws
Exception
{
boolean
flag
=
plainTypeService
.
deletePlainType
(
id
);
return
ApiResult
.
result
(
flag
);
}
/**
* 获取飞机型号表详情
*/
@GetMapping
(
"/info/{id}"
)
@OperationLog
(
name
=
"飞机型号表详情"
,
type
=
OperationLogType
.
INFO
)
@ApiOperation
(
value
=
"飞机型号表详情"
,
response
=
PlainTypeQueryVo
.
class
)
public
ApiResult
<
PlainTypeQueryVo
>
getPlainType
(
@PathVariable
(
"id"
)
Long
id
)
throws
Exception
{
PlainTypeQueryVo
plainTypeQueryVo
=
plainTypeService
.
getPlainTypeById
(
id
);
return
ApiResult
.
ok
(
plainTypeQueryVo
);
}
/**
* 飞机型号表分页列表
*/
@PostMapping
(
"/getPageList"
)
@OperationLog
(
name
=
"飞机型号表分页列表"
,
type
=
OperationLogType
.
PAGE
)
@ApiOperation
(
value
=
"飞机型号表分页列表"
,
response
=
PlainTypeQueryVo
.
class
)
public
ApiResult
<
Paging
<
PlainTypeQueryVo
>>
getPlainTypePageList
(
@Validated
@RequestBody
PlainTypePageParam
plainTypePageParam
)
throws
Exception
{
Paging
<
PlainTypeQueryVo
>
paging
=
plainTypeService
.
getPlainTypePageList
(
plainTypePageParam
);
return
ApiResult
.
ok
(
paging
);
}
}
common/src/main/java/com/jumeirah/common/entity/PlainType.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
entity
;
import
io.geekidea.springbootplus.framework.common.entity.BaseEntity
;
import
com.baomidou.mybatisplus.annotation.IdType
;
import
com.baomidou.mybatisplus.annotation.Version
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
javax.validation.constraints.NotBlank
;
import
javax.validation.constraints.NotNull
;
import
io.geekidea.springbootplus.framework.core.validator.groups.Update
;
/**
* 飞机型号表
*
* @author wei
* @since 2020-10-09
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"PlainType对象"
)
public
class
PlainType
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
@NotNull
(
message
=
"id不能为空"
,
groups
=
{
Update
.
class
})
@ApiModelProperty
(
"主键ID"
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Long
id
;
@NotNull
(
message
=
"系列类型不能为空"
)
@ApiModelProperty
(
"系列类型"
)
private
Integer
seriesType
;
@ApiModelProperty
(
"系列名称"
)
private
String
seriesName
;
@NotBlank
(
message
=
"飞机名称不能为空"
)
@ApiModelProperty
(
"飞机名称"
)
private
String
name
;
@NotBlank
(
message
=
"飞机图片地址不能为空"
)
@ApiModelProperty
(
"飞机图片地址"
)
private
String
imgUrl
;
@NotNull
(
message
=
"状态,0-正常,1-禁用,99-删除不能为空"
)
@ApiModelProperty
(
"状态,0-正常,1-禁用,99-删除"
)
private
Integer
status
;
@NotNull
(
message
=
"创建时间(时间戳)不能为空"
)
@ApiModelProperty
(
"创建时间(时间戳)"
)
private
Long
createTime
;
@ApiModelProperty
(
"更新时间(时间戳)"
)
private
Long
updateTime
;
@ApiModelProperty
(
"宽 单位:像素"
)
private
Integer
width
;
@ApiModelProperty
(
"高 单位:像素"
)
private
Integer
height
;
}
common/src/main/java/com/jumeirah/common/entity/Stroke.java
View file @
7be595f9
...
...
@@ -140,6 +140,6 @@ public class Stroke extends BaseEntity {
@NotNull
(
message
=
"用户选择机型不能为空"
)
@ApiModelProperty
(
"用户选择机型"
)
private
Lo
ng
choosePlainType
;
private
Stri
ng
choosePlainType
;
}
common/src/main/java/com/jumeirah/common/mapper/PlainTypeMapper.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
mapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.jumeirah.common.entity.PlainType
;
import
com.jumeirah.common.param.PlainTypePageParam
;
import
com.jumeirah.common.vo.PlainTypeQueryVo
;
import
org.springframework.stereotype.Repository
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.apache.ibatis.annotations.Param
;
import
java.io.Serializable
;
/**
* 飞机型号表 Mapper 接口
*
* @author wei
* @since 2020-10-09
*/
@Repository
public
interface
PlainTypeMapper
extends
BaseMapper
<
PlainType
>
{
/**
* 根据ID获取查询对象
*
* @param id
* @return
*/
PlainTypeQueryVo
getPlainTypeById
(
Serializable
id
);
/**
* 获取分页对象
*
* @param page
* @param plainTypePageParam
* @return
*/
IPage
<
PlainTypeQueryVo
>
getPlainTypePageList
(
@Param
(
"page"
)
Page
page
,
@Param
(
"param"
)
PlainTypePageParam
plainTypePageParam
);
}
common/src/main/java/com/jumeirah/common/param/PlainTypePageParam.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
param
;
import
io.swagger.annotations.ApiModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
io.geekidea.springbootplus.framework.core.pagination.BasePageOrderParam
;
/**
* <pre>
* 飞机型号表 分页参数对象
* </pre>
*
* @author wei
* @date 2020-10-09
*/
@Data
@Accessors
(
chain
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"飞机型号表分页参数"
)
public
class
PlainTypePageParam
extends
BasePageOrderParam
{
private
static
final
long
serialVersionUID
=
1L
;
}
common/src/main/java/com/jumeirah/common/service/PlainTypeService.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
service
;
import
com.jumeirah.common.entity.PlainType
;
import
com.jumeirah.common.param.PlainTypePageParam
;
import
io.geekidea.springbootplus.framework.common.service.BaseService
;
import
com.jumeirah.common.vo.PlainTypeQueryVo
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
java.util.List
;
/**
* 飞机型号表 服务类
*
* @author wei
* @since 2020-10-09
*/
public
interface
PlainTypeService
extends
BaseService
<
PlainType
>
{
/**
* 保存
*
* @param plainType
* @return
* @throws Exception
*/
boolean
savePlainType
(
PlainType
plainType
)
throws
Exception
;
/**
* 修改
*
* @param plainType
* @return
* @throws Exception
*/
boolean
updatePlainType
(
PlainType
plainType
)
throws
Exception
;
/**
* 删除
*
* @param id
* @return
* @throws Exception
*/
boolean
deletePlainType
(
Long
id
)
throws
Exception
;
/**
* 根据ID获取查询对象
*
* @param id
* @return
* @throws Exception
*/
PlainTypeQueryVo
getPlainTypeById
(
Long
id
)
throws
Exception
;
/**
* 获取分页对象
*
* @param plainTypePageParam
* @return
* @throws Exception
*/
Paging
<
PlainTypeQueryVo
>
getPlainTypePageList
(
PlainTypePageParam
plainTypePageParam
)
throws
Exception
;
/**
* 获取所有飞机类型
* @return
*/
List
<
PlainType
>
getAllMap
();
}
common/src/main/java/com/jumeirah/common/service/impl/PlainTypeServiceImpl.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
service
.
impl
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
com.jumeirah.common.entity.PlainType
;
import
com.jumeirah.common.mapper.PlainTypeMapper
;
import
com.jumeirah.common.service.PlainTypeService
;
import
com.jumeirah.common.param.PlainTypePageParam
;
import
com.jumeirah.common.vo.PlainTypeQueryVo
;
import
io.geekidea.springbootplus.framework.common.service.impl.BaseServiceImpl
;
import
io.geekidea.springbootplus.framework.core.pagination.Paging
;
import
io.geekidea.springbootplus.framework.core.pagination.PageInfo
;
import
com.baomidou.mybatisplus.core.metadata.IPage
;
import
com.baomidou.mybatisplus.core.metadata.OrderItem
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
org.springframework.transaction.annotation.Transactional
;
import
lombok.extern.slf4j.Slf4j
;
import
org.springframework.stereotype.Service
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
java.util.List
;
/**
* 飞机型号表 服务实现类
*
* @author wei
* @since 2020-10-09
*/
@Slf4j
@Service
public
class
PlainTypeServiceImpl
extends
BaseServiceImpl
<
PlainTypeMapper
,
PlainType
>
implements
PlainTypeService
{
@Autowired
private
PlainTypeMapper
plainTypeMapper
;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
boolean
savePlainType
(
PlainType
plainType
)
throws
Exception
{
return
super
.
save
(
plainType
);
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
boolean
updatePlainType
(
PlainType
plainType
)
throws
Exception
{
return
super
.
updateById
(
plainType
);
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Override
public
boolean
deletePlainType
(
Long
id
)
throws
Exception
{
return
super
.
removeById
(
id
);
}
@Override
public
PlainTypeQueryVo
getPlainTypeById
(
Long
id
)
throws
Exception
{
return
plainTypeMapper
.
getPlainTypeById
(
id
);
}
@Override
public
Paging
<
PlainTypeQueryVo
>
getPlainTypePageList
(
PlainTypePageParam
plainTypePageParam
)
throws
Exception
{
Page
<
PlainTypeQueryVo
>
page
=
new
PageInfo
<>(
plainTypePageParam
,
OrderItem
.
desc
(
getLambdaColumn
(
PlainType:
:
getCreateTime
)));
IPage
<
PlainTypeQueryVo
>
iPage
=
plainTypeMapper
.
getPlainTypePageList
(
page
,
plainTypePageParam
);
return
new
Paging
<
PlainTypeQueryVo
>(
iPage
);
}
@Override
public
List
<
PlainType
>
getAllMap
()
{
return
this
.
list
(
new
QueryWrapper
<
PlainType
>().
lambda
()
.
orderByAsc
(
PlainType:
:
getSeriesType
,
PlainType:
:
getCreateTime
)
);
}
}
common/src/main/java/com/jumeirah/common/vo/PlainTypeQueryVo.java
0 → 100644
View file @
7be595f9
package
com
.
jumeirah
.
common
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
import
lombok.experimental.Accessors
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
* <pre>
* 飞机型号表 查询结果对象
* </pre>
*
* @author wei
* @date 2020-10-09
*/
@Data
@Accessors
(
chain
=
true
)
@ApiModel
(
value
=
"PlainTypeQueryVo对象"
)
public
class
PlainTypeQueryVo
implements
Serializable
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
"主键ID"
)
private
Long
id
;
@ApiModelProperty
(
"系列类型"
)
private
Integer
seriesType
;
@ApiModelProperty
(
"飞机名称"
)
private
String
name
;
@ApiModelProperty
(
"飞机图片地址"
)
private
String
imgUrl
;
@ApiModelProperty
(
"状态,0-正常,1-禁用,99-删除"
)
private
Integer
status
;
@ApiModelProperty
(
"创建时间(时间戳)"
)
private
Long
createTime
;
@ApiModelProperty
(
"更新时间(时间戳)"
)
private
Long
updateTime
;
}
common/src/main/resources/mapper/PlainTypeMapper.xml
0 → 100644
View file @
7be595f9
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.jumeirah.common.mapper.PlainTypeMapper"
>
<!-- 通用查询结果列 -->
<sql
id=
"Base_Column_List"
>
id, series_type, name, img_url, status, create_time, update_time
</sql>
<select
id=
"getPlainTypeById"
resultType=
"com.jumeirah.common.vo.PlainTypeQueryVo"
>
select
<include
refid=
"Base_Column_List"
/>
from plain_type where id = #{id}
</select>
<select
id=
"getPlainTypePageList"
parameterType=
"com.jumeirah.common.param.PlainTypePageParam"
resultType=
"com.jumeirah.common.vo.PlainTypeQueryVo"
>
select
<include
refid=
"Base_Column_List"
/>
from plain_type
</select>
</mapper>
config/src/main/resources/config/application-dev.yml
View file @
7be595f9
...
...
@@ -22,7 +22,7 @@ spring:
redis
:
database
:
0
host
:
localhost
password
:
password
:
123456
port
:
6379
# 打印SQL语句和结果集,本地开发环境可开启,线上注释掉
...
...
generator/src/main/java/io/geekidea/springbootplus/generator/SpringBootPlusGenerator.java
View file @
7be595f9
...
...
@@ -40,7 +40,7 @@ public class SpringBootPlusGenerator {
* @param args
*/
public
static
void
main
(
String
[]
args
)
{
getCode
(
"
123
"
);
getCode
(
"
plain_type
"
);
}
private
static
void
getCode
(
String
tableName
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment