Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
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
zengtianlai3
ioc_sixiang_license
Commits
9c1fdb8b
Commit
9c1fdb8b
authored
Jun 09, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除DeviceType
parent
02dc3069
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
102 deletions
+0
-102
DeviceTypeController.java
.../iot/sixiang/license/controller/DeviceTypeController.java
+0
-40
DeviceTypeService.java
...n/java/iot/sixiang/license/service/DeviceTypeService.java
+0
-19
DeviceTypeServiceImpl.java
...t/sixiang/license/service/impl/DeviceTypeServiceImpl.java
+0
-31
DeviceTypeMapper.xml
license/src/main/resources/mapper/DeviceTypeMapper.xml
+0
-12
No files found.
license/src/main/java/iot/sixiang/license/controller/DeviceTypeController.java
deleted
100644 → 0
View file @
02dc3069
package
iot
.
sixiang
.
license
.
controller
;
import
iot.sixiang.license.entity.DeviceType
;
import
iot.sixiang.license.model.ResResult
;
import
iot.sixiang.license.service.DeviceTypeService
;
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
;
import
java.util.List
;
/**
* <p>
* 前端控制器
* </p>
*
* @author m33
* @since 2022-06-08
*/
@RestController
@RequestMapping
(
"/iot_license/device_type"
)
public
class
DeviceTypeController
{
@Autowired
private
DeviceTypeService
deviceTypeService
;
/**
* 查询所有的device_type
* @param
* @return
*/
@GetMapping
(
"type"
)
public
ResResult
getDeviceTypeList
()
{
List
<
DeviceType
>
records
=
deviceTypeService
.
getDeviceTypeList
();
return
ResResult
.
success
().
record
(
records
);
}
}
license/src/main/java/iot/sixiang/license/service/DeviceTypeService.java
deleted
100644 → 0
View file @
02dc3069
package
iot
.
sixiang
.
license
.
service
;
import
iot.sixiang.license.entity.DeviceType
;
import
java.util.List
;
/**
* <p>
* 服务类
* </p>
*
* @author m33
* @since 2022-06-08
*/
public
interface
DeviceTypeService
{
List
<
DeviceType
>
getDeviceTypeList
();
}
license/src/main/java/iot/sixiang/license/service/impl/DeviceTypeServiceImpl.java
deleted
100644 → 0
View file @
02dc3069
package
iot
.
sixiang
.
license
.
service
.
impl
;
import
com.baomidou.mybatisplus.extension.service.impl.ServiceImpl
;
import
iot.sixiang.license.entity.DeviceType
;
import
iot.sixiang.license.mapper.DeviceTypeMapper
;
import
iot.sixiang.license.service.DeviceTypeService
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
import
java.util.List
;
/**
* <p>
* 服务实现类
* </p>
*
* @author m33
* @since 2022-06-08
*/
@Service
public
class
DeviceTypeServiceImpl
extends
ServiceImpl
<
DeviceTypeMapper
,
DeviceType
>
implements
DeviceTypeService
{
@Resource
private
DeviceTypeMapper
deviceTypeMapper
;
@Override
public
List
<
DeviceType
>
getDeviceTypeList
()
{
List
<
DeviceType
>
deviceTypes
=
deviceTypeMapper
.
getDeviceTypeList
();
return
deviceTypes
;
}
}
license/src/main/resources/mapper/DeviceTypeMapper.xml
deleted
100644 → 0
View file @
02dc3069
<?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=
"iot.sixiang.license.mapper.DeviceTypeMapper"
>
<!-- <sql id="DeviceTypeVoColumn">-->
<!-- dt.type_id,dt.type_name,de.sn,us.user_id,us.user_name,us.password,us.company-->
<!-- </sql>-->
<select
id=
"getDeviceTypeList"
resultType=
"iot.sixiang.license.entity.DeviceType"
>
SELECT type_id, type_name FROM device_type
</select>
</mapper>
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