Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
chejia-smart-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 97e9f958
authored
Mar 16, 2021
by
tyfanchz
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
移动mapper和entity到dao中
1 parent
db69f6d4
Hide whitespace changes
Inline
Side-by-side
Showing
63 changed files
with
183 additions
and
145 deletions
src/main/java/com/glsx/smart/SmartServiceApplication.java
src/main/java/com/glsx/smart/controller/ProductController.java
src/main/java/com/glsx/smart/controller/ProductTypeController.java
src/main/java/com/glsx/smart/controller/SceneController.java
src/main/java/com/glsx/smart/controller/SceneTemplateController.java
src/main/java/com/glsx/smart/controller/SysCodeController.java
src/main/java/com/glsx/smart/entity/SmartDevideStatus.java → src/main/java/com/glsx/smart/dao/entity/SmartDevideStatus.java
src/main/java/com/glsx/smart/entity/SmartProduct.java → src/main/java/com/glsx/smart/dao/entity/SmartProduct.java
src/main/java/com/glsx/smart/entity/SmartProductType.java → src/main/java/com/glsx/smart/dao/entity/SmartProductType.java
src/main/java/com/glsx/smart/entity/SmartProductTypeParam.java → src/main/java/com/glsx/smart/dao/entity/SmartProductTypeParam.java
src/main/java/com/glsx/smart/entity/SmartScene.java → src/main/java/com/glsx/smart/dao/entity/SmartScene.java
src/main/java/com/glsx/smart/entity/SmartSceneData.java → src/main/java/com/glsx/smart/dao/entity/SmartSceneData.java
src/main/java/com/glsx/smart/entity/SmartSceneTemplate.java → src/main/java/com/glsx/smart/dao/entity/SmartSceneTemplate.java
src/main/java/com/glsx/smart/entity/SmartSysCode.java → src/main/java/com/glsx/smart/dao/entity/SmartSysCode.java
src/main/java/com/glsx/smart/entity/SmartSysFile.java → src/main/java/com/glsx/smart/dao/entity/SmartSysFile.java
src/main/java/com/glsx/smart/entity/SmartTemplateParam.java → src/main/java/com/glsx/smart/dao/entity/SmartTemplateParam.java
src/main/java/com/glsx/smart/entity/SmartUserRelation.java → src/main/java/com/glsx/smart/dao/entity/SmartUserRelation.java
src/main/java/com/glsx/smart/mapper/SmartDevideStatusMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartDevideStatusMapper.java
src/main/java/com/glsx/smart/mapper/SmartProductMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartProductMapper.java
src/main/java/com/glsx/smart/mapper/SmartProductTypeMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartProductTypeMapper.java
src/main/java/com/glsx/smart/mapper/SmartProductTypeParamMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartProductTypeParamMapper.java
src/main/java/com/glsx/smart/mapper/SmartSceneDataMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartSceneDataMapper.java
src/main/java/com/glsx/smart/mapper/SmartSceneMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartSceneMapper.java
src/main/java/com/glsx/smart/mapper/SmartSceneTemplateMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartSceneTemplateMapper.java
src/main/java/com/glsx/smart/mapper/SmartSysCodeMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartSysCodeMapper.java
src/main/java/com/glsx/smart/mapper/SmartSysFileMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartSysFileMapper.java
src/main/java/com/glsx/smart/mapper/SmartTemplateParamMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartTemplateParamMapper.java
src/main/java/com/glsx/smart/mapper/SmartUserRelationMapper.java → src/main/java/com/glsx/smart/dao/mapper/SmartUserRelationMapper.java
src/main/java/com/glsx/smart/service/BaseService.java
src/main/java/com/glsx/smart/service/SmartDevideStatusService.java
src/main/java/com/glsx/smart/service/SmartProductService.java
src/main/java/com/glsx/smart/service/SmartProductTypeParamService.java
src/main/java/com/glsx/smart/service/SmartProductTypeService.java
src/main/java/com/glsx/smart/service/SmartSceneDataService.java
src/main/java/com/glsx/smart/service/SmartSceneService.java
src/main/java/com/glsx/smart/service/SmartSceneTemplateService.java
src/main/java/com/glsx/smart/service/SmartSysCodeService.java
src/main/java/com/glsx/smart/service/SmartSysFileService.java
src/main/java/com/glsx/smart/service/SmartTemplateParamService.java
src/main/java/com/glsx/smart/service/SmartUserRelationService.java
src/main/java/com/glsx/smart/service/impl/SmartDevideStatusServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartProductTypeParamServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneDataServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSceneTemplateServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSysCodeServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartSysFileServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartTemplateParamServiceImpl.java
src/main/java/com/glsx/smart/service/impl/SmartUserRelationServiceImpl.java
src/main/resources/application.properties
src/main/resources/mapper/SmartDevideStatusMapper.xml
src/main/resources/mapper/SmartProductMapper.xml
src/main/resources/mapper/SmartProductTypeMapper.xml
src/main/resources/mapper/SmartProductTypeParamMapper.xml
src/main/resources/mapper/SmartSceneDataMapper.xml
src/main/resources/mapper/SmartSceneMapper.xml
src/main/resources/mapper/SmartSceneTemplateMapper.xml
src/main/resources/mapper/SmartSysCodeMapper.xml
src/main/resources/mapper/SmartSysFileMapper.xml
src/main/resources/mapper/SmartTemplateParamMapper.xml
src/main/resources/mapper/SmartUserRelationMapper.xml
src/main/java/com/glsx/smart/SmartServiceApplication.java
View file @
97e9f95
...
...
@@ -23,7 +23,7 @@ import tk.mybatis.spring.annotation.MapperScan;
@EnableTransactionManagement
@ServletComponentScan
// 使用通用 Mapper 的注解
@MapperScan
(
basePackages
={
"com.glsx.smart.mapper"
})
@MapperScan
(
basePackages
={
"com.glsx.smart.
dao.
mapper"
})
public
class
SmartServiceApplication
extends
SpringBootServletInitializer
{
/**
* 本地启动 ,内嵌tomcat方式
...
...
src/main/java/com/glsx/smart/controller/ProductController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProduct
;
import
com.glsx.smart.
dao.
entity.SmartProduct
;
import
com.glsx.smart.service.SmartProductService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/ProductTypeController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/SceneController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
import
com.glsx.smart.service.SmartSceneService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/SceneTemplateController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/SysCodeController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.
dao.
entity.SmartSysCode
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
...
@@ -23,6 +23,6 @@ public class SysCodeController {
@RequestMapping
(
value
=
"/getList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
List
<
SmartSysCode
>
getList
(
SmartSysCode
sysCode
)
{
return
sysCodeService
.
selectByExample
(
sysCode
);
return
sysCodeService
.
getList
(
sysCode
);
}
}
src/main/java/com/glsx/smart/entity/SmartDevideStatus.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartDevideStatus.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/entity/SmartProduct.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartProduct.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/entity/SmartProductType.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartProductType.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/entity/SmartProductTypeParam.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartProductTypeParam.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/entity/SmartScene.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartScene.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/entity/SmartSceneData.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartSceneData.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/entity/SmartSceneTemplate.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartSceneTemplate.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/entity/SmartSysCode.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartSysCode.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
java.util.Date
;
import
com.glsx.smart.pojo.BaseDTO
;
/**
* <p>Description:
...
...
@@ -19,7 +20,7 @@ import java.util.Date;
* 车家智能系统代码集表
*/
@Table
(
name
=
"smart_sys_code"
)
public
class
SmartSysCode
{
public
class
SmartSysCode
extends
BaseDTO
{
/**
* 标识ID
*/
...
...
src/main/java/com/glsx/smart/entity/SmartSysFile.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartSysFile.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/entity/SmartTemplateParam.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartTemplateParam.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/entity/SmartUserRelation.java
→
src/main/java/com/glsx/smart/
dao/
entity/SmartUserRelation.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
entity
;
package
com
.
glsx
.
smart
.
dao
.
entity
;
import
javax.persistence.GeneratedValue
;
import
javax.persistence.GenerationType
;
...
...
src/main/java/com/glsx/smart/mapper/SmartDevideStatusMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartDevideStatusMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartDevideStatus
;
import
com.glsx.smart.
dao.
entity.SmartDevideStatus
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartProductMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartProductMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProduct
;
import
com.glsx.smart.
dao.
entity.SmartProduct
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartProductTypeMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartProductTypeMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartProductTypeParamMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartProductTypeParamMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductTypeParam
;
import
com.glsx.smart.
dao.
entity.SmartProductTypeParam
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartSceneDataMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartSceneDataMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneData
;
import
com.glsx.smart.
dao.
entity.SmartSceneData
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartSceneMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartSceneMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartSceneTemplateMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartSceneTemplateMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartSysCodeMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartSysCodeMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.
dao.
entity.SmartSysCode
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartSysFileMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartSysFileMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysFile
;
import
com.glsx.smart.
dao.
entity.SmartSysFile
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartTemplateParamMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartTemplateParamMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartTemplateParam
;
import
com.glsx.smart.
dao.
entity.SmartTemplateParam
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/mapper/SmartUserRelationMapper.java
→
src/main/java/com/glsx/smart/
dao/
mapper/SmartUserRelationMapper.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
mapper
;
package
com
.
glsx
.
smart
.
dao
.
mapper
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartUserRelation
;
import
com.glsx.smart.
dao.
entity.SmartUserRelation
;
import
org.apache.ibatis.annotations.Mapper
;
import
org.apache.ibatis.annotations.Param
;
...
...
src/main/java/com/glsx/smart/service/BaseService.java
0 → 100644
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
com.github.pagehelper.PageHelper
;
import
com.glsx.smart.pojo.BaseDTO
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
/**
* <p>Description: 公共 Service 业务
* <p>Project: chejia-smart
*
* @author wbh
* @date 2021-03-15
*/
public
abstract
class
BaseService
{
protected
Logger
logger
=
LoggerFactory
.
getLogger
(
this
.
getClass
());
/**
* 按需开启分页
*
* @param req 请求体
* @param <T> 继承自 {@link BaseDTO}
*/
protected
<
T
extends
BaseDTO
>
void
startPagination
(
T
req
)
{
int
pageIndex
=
req
.
getPageIndex
();
int
pageSize
=
req
.
getPageSize
();
if
(
pageIndex
>
0
&&
pageSize
>
0
)
{
PageHelper
.
startPage
(
pageIndex
,
pageSize
);
}
}
}
src/main/java/com/glsx/smart/service/SmartDevideStatusService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartDevideStatus
;
import
com.glsx.smart.
dao.
entity.SmartDevideStatus
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartProductService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProduct
;
import
com.glsx.smart.
dao.
entity.SmartProduct
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartProductTypeParamService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductTypeParam
;
import
com.glsx.smart.
dao.
entity.SmartProductTypeParam
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartProductTypeService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSceneDataService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneData
;
import
com.glsx.smart.
dao.
entity.SmartSceneData
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSceneService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSceneTemplateService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSysCodeService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.
dao.
entity.SmartSysCode
;
/**
* <p>Description:
...
...
@@ -12,6 +12,9 @@ import com.glsx.smart.entity.SmartSysCode;
*/
public
interface
SmartSysCodeService
{
List
<
SmartSysCode
>
getList
(
SmartSysCode
sysCode
);
int
deleteByExample
(
SmartSysCode
example
);
int
deleteByPrimaryKey
(
Long
id
);
...
...
src/main/java/com/glsx/smart/service/SmartSysFileService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysFile
;
import
com.glsx.smart.
dao.
entity.SmartSysFile
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartTemplateParamService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartTemplateParam
;
import
com.glsx.smart.
dao.
entity.SmartTemplateParam
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartUserRelationService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartUserRelation
;
import
com.glsx.smart.
dao.
entity.SmartUserRelation
;
/**
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/impl/SmartDevideStatusServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartDevideStatus
;
import
com.glsx.smart.mapper.SmartDevideStatusMapper
;
import
com.glsx.smart.
dao.
entity.SmartDevideStatus
;
import
com.glsx.smart.
dao.
mapper.SmartDevideStatusMapper
;
import
com.glsx.smart.service.SmartDevideStatusService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartProductServiceImpl.java
View file @
97e9f95
...
...
@@ -2,9 +2,9 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.g
ithub.pagehelper.PageHelper
;
import
com.glsx.smart.
entity.SmartProduct
;
import
com.glsx.smart.
mapper.SmartProductMapper
;
import
com.g
lsx.smart.dao.entity.SmartProduct
;
import
com.glsx.smart.
dao.mapper.SmartProductMapper
;
import
com.glsx.smart.
service.BaseService
;
import
com.glsx.smart.service.SmartProductService
;
import
org.springframework.stereotype.Service
;
...
...
@@ -17,20 +17,15 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
SmartProductServiceImpl
implements
SmartProductService
{
public
class
SmartProductServiceImpl
extends
BaseService
implements
SmartProductService
{
@Resource
private
SmartProductMapper
productMapper
;
@Override
public
List
<
SmartProduct
>
getList
(
SmartProduct
product
)
{
int
pageIndex
=
product
.
getPageIndex
();
int
pageSize
=
product
.
getPageSize
();
if
(
pageIndex
>
0
&&
pageSize
>
0
)
{
PageHelper
.
startPage
(
pageIndex
,
pageSize
);
}
List
<
SmartProduct
>
productList
=
productMapper
.
selectAll
();
super
.
startPagination
(
product
);
List
<
SmartProduct
>
productList
=
productMapper
.
select
(
product
);
return
productList
;
}
...
...
src/main/java/com/glsx/smart/service/impl/SmartProductTypeParamServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductTypeParam
;
import
com.glsx.smart.mapper.SmartProductTypeParamMapper
;
import
com.glsx.smart.
dao.
entity.SmartProductTypeParam
;
import
com.glsx.smart.
dao.
mapper.SmartProductTypeParamMapper
;
import
com.glsx.smart.service.SmartProductTypeParamService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartProductTypeServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.mapper.SmartProductTypeMapper
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
import
com.glsx.smart.
dao.
mapper.SmartProductTypeMapper
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartSceneDataServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneData
;
import
com.glsx.smart.mapper.SmartSceneDataMapper
;
import
com.glsx.smart.
dao.
entity.SmartSceneData
;
import
com.glsx.smart.
dao.
mapper.SmartSceneDataMapper
;
import
com.glsx.smart.service.SmartSceneDataService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartSceneServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.mapper.SmartSceneMapper
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
import
com.glsx.smart.
dao.
mapper.SmartSceneMapper
;
import
com.glsx.smart.service.SmartSceneService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartSceneTemplateServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.mapper.SmartSceneTemplateMapper
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
mapper.SmartSceneTemplateMapper
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartSysCodeServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,9 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.mapper.SmartSysCodeMapper
;
import
com.glsx.smart.dao.entity.SmartSysCode
;
import
com.glsx.smart.dao.mapper.SmartSysCodeMapper
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
org.springframework.stereotype.Service
;
...
...
@@ -16,84 +17,91 @@ import org.springframework.stereotype.Service;
*/
@Service
public
class
SmartSysCodeServiceImpl
implements
SmartSysCodeService
{
public
class
SmartSysCodeServiceImpl
extends
BaseService
implements
SmartSysCodeService
{
@Resource
private
SmartSysCodeMapper
smartSysCodeMapper
;
private
SmartSysCodeMapper
sysCodeMapper
;
@Override
public
List
<
SmartSysCode
>
getList
(
SmartSysCode
sysCode
)
{
super
.
startPagination
(
sysCode
);
return
sysCodeMapper
.
selectByExample
(
sysCode
);
}
@Override
public
int
deleteByExample
(
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
deleteByExample
(
example
);
return
sysCodeMapper
.
deleteByExample
(
example
);
}
@Override
public
int
deleteByPrimaryKey
(
Long
id
)
{
return
s
martS
ysCodeMapper
.
deleteByPrimaryKey
(
id
);
return
sysCodeMapper
.
deleteByPrimaryKey
(
id
);
}
@Override
public
int
insert
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insert
(
record
);
return
sysCodeMapper
.
insert
(
record
);
}
@Override
public
int
insertOrUpdate
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insertOrUpdate
(
record
);
return
sysCodeMapper
.
insertOrUpdate
(
record
);
}
@Override
public
int
insertOrUpdateSelective
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insertOrUpdateSelective
(
record
);
return
sysCodeMapper
.
insertOrUpdateSelective
(
record
);
}
@Override
public
int
insertSelective
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insertSelective
(
record
);
return
sysCodeMapper
.
insertSelective
(
record
);
}
@Override
public
List
<
SmartSysCode
>
selectByExample
(
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
selectByExample
(
example
);
return
sysCodeMapper
.
selectByExample
(
example
);
}
@Override
public
SmartSysCode
selectByPrimaryKey
(
Long
id
)
{
return
s
martS
ysCodeMapper
.
selectByPrimaryKey
(
id
);
return
sysCodeMapper
.
selectByPrimaryKey
(
id
);
}
@Override
public
int
updateByExampleSelective
(
SmartSysCode
record
,
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
updateByExampleSelective
(
record
,
example
);
return
sysCodeMapper
.
updateByExampleSelective
(
record
,
example
);
}
@Override
public
int
updateByExample
(
SmartSysCode
record
,
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
updateByExample
(
record
,
example
);
return
sysCodeMapper
.
updateByExample
(
record
,
example
);
}
@Override
public
int
updateByPrimaryKeySelective
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
updateByPrimaryKeySelective
(
record
);
return
sysCodeMapper
.
updateByPrimaryKeySelective
(
record
);
}
@Override
public
int
updateByPrimaryKey
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
updateByPrimaryKey
(
record
);
return
sysCodeMapper
.
updateByPrimaryKey
(
record
);
}
@Override
public
int
updateBatch
(
List
<
SmartSysCode
>
list
)
{
return
s
martS
ysCodeMapper
.
updateBatch
(
list
);
return
sysCodeMapper
.
updateBatch
(
list
);
}
@Override
public
int
updateBatchSelective
(
List
<
SmartSysCode
>
list
)
{
return
s
martS
ysCodeMapper
.
updateBatchSelective
(
list
);
return
sysCodeMapper
.
updateBatchSelective
(
list
);
}
@Override
public
int
batchInsert
(
List
<
SmartSysCode
>
list
)
{
return
s
martS
ysCodeMapper
.
batchInsert
(
list
);
return
sysCodeMapper
.
batchInsert
(
list
);
}
}
src/main/java/com/glsx/smart/service/impl/SmartSysFileServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysFile
;
import
com.glsx.smart.mapper.SmartSysFileMapper
;
import
com.glsx.smart.
dao.
entity.SmartSysFile
;
import
com.glsx.smart.
dao.
mapper.SmartSysFileMapper
;
import
com.glsx.smart.service.SmartSysFileService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartTemplateParamServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartTemplateParam
;
import
com.glsx.smart.mapper.SmartTemplateParamMapper
;
import
com.glsx.smart.
dao.
entity.SmartTemplateParam
;
import
com.glsx.smart.
dao.
mapper.SmartTemplateParamMapper
;
import
com.glsx.smart.service.SmartTemplateParamService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/java/com/glsx/smart/service/impl/SmartUserRelationServiceImpl.java
View file @
97e9f95
...
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartUserRelation
;
import
com.glsx.smart.mapper.SmartUserRelationMapper
;
import
com.glsx.smart.
dao.
entity.SmartUserRelation
;
import
com.glsx.smart.
dao.
mapper.SmartUserRelationMapper
;
import
com.glsx.smart.service.SmartUserRelationService
;
import
org.springframework.stereotype.Service
;
...
...
src/main/resources/application.properties
View file @
97e9f95
...
...
@@ -9,7 +9,7 @@ spring.jackson.time-zone=GMT+8
server.tomcat.uri-
encoding
=
UTF-8
spring.messages.encoding
=
UTF-8
#mybatis\u914D\u7F6E
mybatis.typeAliasesPackage
=
com.glsx.entity
mybatis.typeAliasesPackage
=
com.glsx.
dao.
entity
mybatis.mapperLocations
=
classpath:mapper/*.xml
mybatis.configLocation
=
classpath:/mybatis-config.xml
...
...
src/main/resources/mapper/SmartDevideStatusMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartDevideStatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartDevideStatus"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartDevideStatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartDevideStatus"
>
<!--@mbg.generated-->
<!--@Table smart_devide_status-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
...
...
@@ -145,7 +145,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartDevideStatus"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartDevideStatus"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_devide_status
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -188,7 +188,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartDevideStatus"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartDevideStatus"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_devide_status
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartProductMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartProductMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartProduct"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartProductMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartProduct"
>
<!--@mbg.generated-->
<!--@Table smart_product-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -229,7 +229,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartProduct"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartProduct"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_product
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -290,7 +290,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartProduct"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartProduct"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_product
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartProductTypeMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartProductTypeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartProductType"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartProductTypeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartProductType"
>
<!--@mbg.generated-->
<!--@Table smart_product_type-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -155,7 +155,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartProductType"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartProductType"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_product_type
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -201,7 +201,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartProductType"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartProductType"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_product_type
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartProductTypeParamMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartProductTypeParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartProductTypeParam"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartProductTypeParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartProductTypeParam"
>
<!--@mbg.generated-->
<!--@Table smart_product_type_param-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -115,7 +115,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartProductTypeParam"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartProductTypeParam"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_product_type_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -152,7 +152,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartProductTypeParam"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartProductTypeParam"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_product_type_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneDataMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartSceneDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSceneData"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSceneDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSceneData"
>
<!--@mbg.generated-->
<!--@Table smart_scene_data-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -110,7 +110,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSceneData"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSceneData"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -147,7 +147,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSceneData"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSceneData"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartSceneMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartScene"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSceneMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartScene"
>
<!--@mbg.generated-->
<!--@Table smart_scene-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -227,7 +227,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartScene"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartScene"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -288,7 +288,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartScene"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartScene"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneTemplateMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartSceneTemplateMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSceneTemplate"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSceneTemplateMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSceneTemplate"
>
<!--@mbg.generated-->
<!--@Table smart_scene_template-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -242,7 +242,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_template
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -306,7 +306,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSceneTemplate"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_scene_template
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSysCodeMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartSysCodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSysCode"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSysCodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSysCode"
>
<!--@mbg.generated-->
<!--@Table smart_sys_code-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -210,7 +210,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSysCode"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSysCode"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_code
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -268,7 +268,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSysCode"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSysCode"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_code
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSysFileMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartSysFileMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSysFile"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSysFileMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSysFile"
>
<!--@mbg.generated-->
<!--@Table smart_sys_file-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -97,7 +97,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSysFile"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSysFile"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_file
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -131,7 +131,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartSysFile"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartSysFile"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_sys_file
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartTemplateParamMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartTemplateParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartTemplateParam"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartTemplateParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartTemplateParam"
>
<!--@mbg.generated-->
<!--@Table smart_template_param-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -110,7 +110,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_template_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -147,7 +147,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartTemplateParam"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_template_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartUserRelationMapper.xml
View file @
97e9f95
<?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.glsx.smart.mapper.SmartUserRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartUserRelation"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartUserRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartUserRelation"
>
<!--@mbg.generated-->
<!--@Table smart_user_relation-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
...
@@ -151,7 +151,7 @@
</foreach>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_user_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -197,7 +197,7 @@
</trim>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
parameterType=
"com.glsx.smart.entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
parameterType=
"com.glsx.smart.
dao.
entity.SmartUserRelation"
useGeneratedKeys=
"true"
>
<!--@mbg.generated-->
insert into smart_user_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment