Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jz-dmp-service
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姚本章
jz-dmp-service
Commits
a433d9c3
Commit
a433d9c3
authored
Dec 29, 2020
by
mcb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
2ad4f2a4
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
258 additions
and
0 deletions
+258
-0
DmpSyncingDatasourceTypeController.java
...odules/controller/DmpSyncingDatasourceTypeController.java
+40
-0
DmpSyncingDatasourceTypeDao.java
...a/com/jz/dmp/modules/dao/DmpSyncingDatasourceTypeDao.java
+82
-0
DmpSyncingDatasourceTypeService.java
.../dmp/modules/service/DmpSyncingDatasourceTypeService.java
+57
-0
DmpSyncingDatasourceTypeServiceImpl.java
...les/service/impl/DmpSyncingDatasourceTypeServiceImpl.java
+79
-0
11
src/main/resources/mapper/sys/11
+0
-0
No files found.
src/main/java/com/jz/dmp/modules/controller/DmpSyncingDatasourceTypeController.java
0 → 100644
View file @
a433d9c3
package
com
.
jz
.
dmp
.
modules
.
controller
;
import
com.jz.dmp.modules.model.DmpSyncingDatasourceType
;
import
com.jz.dmp.modules.service.DmpSyncingDatasourceTypeService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
/**
* 数据源类型(DmpSyncingDatasourceType)表控制层
*
* @author Bellamy
* @since 2020-12-29 19:24:05
*/
@RestController
@RequestMapping
(
"/dmpSyncingDatasourceType"
)
@Api
(
tags
=
"数据源类型"
)
public
class
DmpSyncingDatasourceTypeController
{
/**
* 服务对象
*/
@Autowired
private
DmpSyncingDatasourceTypeService
dmpSyncingDatasourceTypeService
;
/**
* 通过主键查询单条数据
*
* @param id 主键
* @return 单条数据
*/
@GetMapping
(
"/selectOne"
)
@ApiOperation
(
value
=
"通过主键查询单条数据"
,
notes
=
"通过主键查询单条数据"
)
public
DmpSyncingDatasourceType
selectOne
(
Integer
id
)
{
return
this
.
dmpSyncingDatasourceTypeService
.
queryById
(
id
);
}
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/dao/DmpSyncingDatasourceTypeDao.java
0 → 100644
View file @
a433d9c3
package
com
.
jz
.
dmp
.
modules
.
dao
;
import
com.jz.dmp.modules.model.DmpSyncingDatasourceType
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
* 数据源类型(DmpSyncingDatasourceType)表数据库访问层
*
* @author Bellamy
* @since 2020-12-29 19:24:05
*/
public
interface
DmpSyncingDatasourceTypeDao
{
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
DmpSyncingDatasourceType
queryById
(
Integer
id
);
/**
* 查询指定行数据
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
List
<
DmpSyncingDatasourceType
>
queryAllByLimit
(
@Param
(
"offset"
)
int
offset
,
@Param
(
"limit"
)
int
limit
);
/**
* 通过实体作为筛选条件查询
*
* @param dmpSyncingDatasourceType 实例对象
* @return 对象列表
*/
List
<
DmpSyncingDatasourceType
>
queryAll
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
);
/**
* 新增数据
*
* @param dmpSyncingDatasourceType 实例对象
* @return 影响行数
*/
int
insert
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
);
/**
* 批量新增数据(MyBatis原生foreach方法)
*
* @param entities List<DmpSyncingDatasourceType> 实例对象列表
* @return 影响行数
*/
int
insertBatch
(
@Param
(
"entities"
)
List
<
DmpSyncingDatasourceType
>
entities
);
/**
* 批量新增或按主键更新数据(MyBatis原生foreach方法)
*
* @param entities List<DmpSyncingDatasourceType> 实例对象列表
* @return 影响行数
*/
int
insertOrUpdateBatch
(
@Param
(
"entities"
)
List
<
DmpSyncingDatasourceType
>
entities
);
/**
* 修改数据
*
* @param dmpSyncingDatasourceType 实例对象
* @return 影响行数
*/
int
update
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 影响行数
*/
int
deleteById
(
Integer
id
);
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/service/DmpSyncingDatasourceTypeService.java
0 → 100644
View file @
a433d9c3
package
com
.
jz
.
dmp
.
modules
.
service
;
import
com.jz.dmp.modules.model.DmpSyncingDatasourceType
;
import
java.util.List
;
/**
* 数据源类型(DmpSyncingDatasourceType)表服务接口
*
* @author Bellamy
* @since 2020-12-29 19:24:05
*/
public
interface
DmpSyncingDatasourceTypeService
{
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
DmpSyncingDatasourceType
queryById
(
Integer
id
);
/**
* 查询多条数据
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
List
<
DmpSyncingDatasourceType
>
queryAllByLimit
(
int
offset
,
int
limit
);
/**
* 新增数据
*
* @param dmpSyncingDatasourceType 实例对象
* @return 实例对象
*/
DmpSyncingDatasourceType
insert
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
);
/**
* 修改数据
*
* @param dmpSyncingDatasourceType 实例对象
* @return 实例对象
*/
DmpSyncingDatasourceType
update
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
);
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
boolean
deleteById
(
Integer
id
);
}
\ No newline at end of file
src/main/java/com/jz/dmp/modules/service/impl/DmpSyncingDatasourceTypeServiceImpl.java
0 → 100644
View file @
a433d9c3
package
com
.
jz
.
dmp
.
modules
.
service
.
impl
;
import
com.jz.dmp.modules.dao.DmpSyncingDatasourceTypeDao
;
import
com.jz.dmp.modules.model.DmpSyncingDatasourceType
;
import
com.jz.dmp.modules.service.DmpSyncingDatasourceTypeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
java.util.List
;
/**
* 数据源类型(DmpSyncingDatasourceType)表服务实现类
*
* @author Bellamy
* @since 2020-12-29 19:24:05
*/
@Service
(
"dmpSyncingDatasourceTypeService"
)
public
class
DmpSyncingDatasourceTypeServiceImpl
implements
DmpSyncingDatasourceTypeService
{
@Autowired
private
DmpSyncingDatasourceTypeDao
dmpSyncingDatasourceTypeDao
;
/**
* 通过ID查询单条数据
*
* @param id 主键
* @return 实例对象
*/
@Override
public
DmpSyncingDatasourceType
queryById
(
Integer
id
)
{
return
this
.
dmpSyncingDatasourceTypeDao
.
queryById
(
id
);
}
/**
* 查询多条数据
*
* @param offset 查询起始位置
* @param limit 查询条数
* @return 对象列表
*/
@Override
public
List
<
DmpSyncingDatasourceType
>
queryAllByLimit
(
int
offset
,
int
limit
)
{
return
this
.
dmpSyncingDatasourceTypeDao
.
queryAllByLimit
(
offset
,
limit
);
}
/**
* 新增数据
*
* @param dmpSyncingDatasourceType 实例对象
* @return 实例对象
*/
@Override
public
DmpSyncingDatasourceType
insert
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
)
{
this
.
dmpSyncingDatasourceTypeDao
.
insert
(
dmpSyncingDatasourceType
);
return
dmpSyncingDatasourceType
;
}
/**
* 修改数据
*
* @param dmpSyncingDatasourceType 实例对象
* @return 实例对象
*/
@Override
public
DmpSyncingDatasourceType
update
(
DmpSyncingDatasourceType
dmpSyncingDatasourceType
)
{
this
.
dmpSyncingDatasourceTypeDao
.
update
(
dmpSyncingDatasourceType
);
return
this
.
queryById
(
dmpSyncingDatasourceType
.
getId
());
}
/**
* 通过主键删除数据
*
* @param id 主键
* @return 是否成功
*/
@Override
public
boolean
deleteById
(
Integer
id
)
{
return
this
.
dmpSyncingDatasourceTypeDao
.
deleteById
(
id
)
>
0
;
}
}
\ No newline at end of file
src/main/resources/mapper/sys/11
0 → 100644
View file @
a433d9c3
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