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
Show 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;
...
@@ -23,7 +23,7 @@ import tk.mybatis.spring.annotation.MapperScan;
@EnableTransactionManagement
@EnableTransactionManagement
@ServletComponentScan
@ServletComponentScan
// 使用通用 Mapper 的注解
// 使用通用 Mapper 的注解
@MapperScan
(
basePackages
={
"com.glsx.smart.mapper"
})
@MapperScan
(
basePackages
={
"com.glsx.smart.
dao.
mapper"
})
public
class
SmartServiceApplication
extends
SpringBootServletInitializer
{
public
class
SmartServiceApplication
extends
SpringBootServletInitializer
{
/**
/**
* 本地启动 ,内嵌tomcat方式
* 本地启动 ,内嵌tomcat方式
...
...
src/main/java/com/glsx/smart/controller/ProductController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProduct
;
import
com.glsx.smart.
dao.
entity.SmartProduct
;
import
com.glsx.smart.service.SmartProductService
;
import
com.glsx.smart.service.SmartProductService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/ProductTypeController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/SceneController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
import
com.glsx.smart.service.SmartSceneService
;
import
com.glsx.smart.service.SmartSceneService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/SceneTemplateController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestBody
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
src/main/java/com/glsx/smart/controller/SysCodeController.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
controller
;
package
com
.
glsx
.
smart
.
controller
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.
dao.
entity.SmartSysCode
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
...
@@ -23,6 +23,6 @@ public class SysCodeController {
...
@@ -23,6 +23,6 @@ public class SysCodeController {
@RequestMapping
(
value
=
"/getList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
@RequestMapping
(
value
=
"/getList"
,
method
=
{
RequestMethod
.
GET
,
RequestMethod
.
POST
})
public
List
<
SmartSysCode
>
getList
(
SmartSysCode
sysCode
)
{
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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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:
* <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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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:
* <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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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.GeneratedValue
;
import
javax.persistence.GenerationType
;
import
javax.persistence.GenerationType
;
import
javax.persistence.Id
;
import
javax.persistence.Id
;
import
javax.persistence.Table
;
import
javax.persistence.Table
;
import
java.util.Date
;
import
java.util.Date
;
import
com.glsx.smart.pojo.BaseDTO
;
/**
/**
* <p>Description:
* <p>Description:
...
@@ -19,7 +20,7 @@ import java.util.Date;
...
@@ -19,7 +20,7 @@ import java.util.Date;
* 车家智能系统代码集表
* 车家智能系统代码集表
*/
*/
@Table
(
name
=
"smart_sys_code"
)
@Table
(
name
=
"smart_sys_code"
)
public
class
SmartSysCode
{
public
class
SmartSysCode
extends
BaseDTO
{
/**
/**
* 标识ID
* 标识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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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:
* <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.GeneratedValue
;
import
javax.persistence.GenerationType
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
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.Mapper
;
import
org.apache.ibatis.annotations.Param
;
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
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartDevideStatus
;
import
com.glsx.smart.
dao.
entity.SmartDevideStatus
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartProductService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProduct
;
import
com.glsx.smart.
dao.
entity.SmartProduct
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartProductTypeParamService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductTypeParam
;
import
com.glsx.smart.
dao.
entity.SmartProductTypeParam
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartProductTypeService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSceneDataService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneData
;
import
com.glsx.smart.
dao.
entity.SmartSceneData
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSceneService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSceneTemplateService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartSysCodeService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.
dao.
entity.SmartSysCode
;
/**
/**
* <p>Description:
* <p>Description:
...
@@ -12,6 +12,9 @@ import com.glsx.smart.entity.SmartSysCode;
...
@@ -12,6 +12,9 @@ import com.glsx.smart.entity.SmartSysCode;
*/
*/
public
interface
SmartSysCodeService
{
public
interface
SmartSysCodeService
{
List
<
SmartSysCode
>
getList
(
SmartSysCode
sysCode
);
int
deleteByExample
(
SmartSysCode
example
);
int
deleteByExample
(
SmartSysCode
example
);
int
deleteByPrimaryKey
(
Long
id
);
int
deleteByPrimaryKey
(
Long
id
);
...
...
src/main/java/com/glsx/smart/service/SmartSysFileService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysFile
;
import
com.glsx.smart.
dao.
entity.SmartSysFile
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartTemplateParamService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartTemplateParam
;
import
com.glsx.smart.
dao.
entity.SmartTemplateParam
;
/**
/**
* <p>Description:
* <p>Description:
...
...
src/main/java/com/glsx/smart/service/SmartUserRelationService.java
View file @
97e9f95
package
com
.
glsx
.
smart
.
service
;
package
com
.
glsx
.
smart
.
service
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartUserRelation
;
import
com.glsx.smart.
dao.
entity.SmartUserRelation
;
/**
/**
* <p>Description:
* <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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartDevideStatus
;
import
com.glsx.smart.
dao.
entity.SmartDevideStatus
;
import
com.glsx.smart.mapper.SmartDevideStatusMapper
;
import
com.glsx.smart.
dao.
mapper.SmartDevideStatusMapper
;
import
com.glsx.smart.service.SmartDevideStatusService
;
import
com.glsx.smart.service.SmartDevideStatusService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,9 +2,9 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.g
ithub.pagehelper.PageHelper
;
import
com.g
lsx.smart.dao.entity.SmartProduct
;
import
com.glsx.smart.
entity.SmartProduct
;
import
com.glsx.smart.
dao.mapper.SmartProductMapper
;
import
com.glsx.smart.
mapper.SmartProductMapper
;
import
com.glsx.smart.
service.BaseService
;
import
com.glsx.smart.service.SmartProductService
;
import
com.glsx.smart.service.SmartProductService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -17,20 +17,15 @@ import org.springframework.stereotype.Service;
...
@@ -17,20 +17,15 @@ import org.springframework.stereotype.Service;
*/
*/
@Service
@Service
public
class
SmartProductServiceImpl
implements
SmartProductService
{
public
class
SmartProductServiceImpl
extends
BaseService
implements
SmartProductService
{
@Resource
@Resource
private
SmartProductMapper
productMapper
;
private
SmartProductMapper
productMapper
;
@Override
@Override
public
List
<
SmartProduct
>
getList
(
SmartProduct
product
)
{
public
List
<
SmartProduct
>
getList
(
SmartProduct
product
)
{
int
pageIndex
=
product
.
getPageIndex
();
super
.
startPagination
(
product
);
int
pageSize
=
product
.
getPageSize
();
List
<
SmartProduct
>
productList
=
productMapper
.
select
(
product
);
if
(
pageIndex
>
0
&&
pageSize
>
0
)
{
PageHelper
.
startPage
(
pageIndex
,
pageSize
);
}
List
<
SmartProduct
>
productList
=
productMapper
.
selectAll
();
return
productList
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductTypeParam
;
import
com.glsx.smart.
dao.
entity.SmartProductTypeParam
;
import
com.glsx.smart.mapper.SmartProductTypeParamMapper
;
import
com.glsx.smart.
dao.
mapper.SmartProductTypeParamMapper
;
import
com.glsx.smart.service.SmartProductTypeParamService
;
import
com.glsx.smart.service.SmartProductTypeParamService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartProductType
;
import
com.glsx.smart.
dao.
entity.SmartProductType
;
import
com.glsx.smart.mapper.SmartProductTypeMapper
;
import
com.glsx.smart.
dao.
mapper.SmartProductTypeMapper
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
com.glsx.smart.service.SmartProductTypeService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneData
;
import
com.glsx.smart.
dao.
entity.SmartSceneData
;
import
com.glsx.smart.mapper.SmartSceneDataMapper
;
import
com.glsx.smart.
dao.
mapper.SmartSceneDataMapper
;
import
com.glsx.smart.service.SmartSceneDataService
;
import
com.glsx.smart.service.SmartSceneDataService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartScene
;
import
com.glsx.smart.
dao.
entity.SmartScene
;
import
com.glsx.smart.mapper.SmartSceneMapper
;
import
com.glsx.smart.
dao.
mapper.SmartSceneMapper
;
import
com.glsx.smart.service.SmartSceneService
;
import
com.glsx.smart.service.SmartSceneService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSceneTemplate
;
import
com.glsx.smart.
dao.
entity.SmartSceneTemplate
;
import
com.glsx.smart.mapper.SmartSceneTemplateMapper
;
import
com.glsx.smart.
dao.
mapper.SmartSceneTemplateMapper
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
com.glsx.smart.service.SmartSceneTemplateService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,9 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysCode
;
import
com.glsx.smart.dao.entity.SmartSysCode
;
import
com.glsx.smart.mapper.SmartSysCodeMapper
;
import
com.glsx.smart.dao.mapper.SmartSysCodeMapper
;
import
com.glsx.smart.service.BaseService
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
com.glsx.smart.service.SmartSysCodeService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -16,84 +17,91 @@ import org.springframework.stereotype.Service;
...
@@ -16,84 +17,91 @@ import org.springframework.stereotype.Service;
*/
*/
@Service
@Service
public
class
SmartSysCodeServiceImpl
implements
SmartSysCodeService
{
public
class
SmartSysCodeServiceImpl
extends
BaseService
implements
SmartSysCodeService
{
@Resource
@Resource
private
SmartSysCodeMapper
smartSysCodeMapper
;
private
SmartSysCodeMapper
sysCodeMapper
;
@Override
public
List
<
SmartSysCode
>
getList
(
SmartSysCode
sysCode
)
{
super
.
startPagination
(
sysCode
);
return
sysCodeMapper
.
selectByExample
(
sysCode
);
}
@Override
@Override
public
int
deleteByExample
(
SmartSysCode
example
)
{
public
int
deleteByExample
(
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
deleteByExample
(
example
);
return
sysCodeMapper
.
deleteByExample
(
example
);
}
}
@Override
@Override
public
int
deleteByPrimaryKey
(
Long
id
)
{
public
int
deleteByPrimaryKey
(
Long
id
)
{
return
s
martS
ysCodeMapper
.
deleteByPrimaryKey
(
id
);
return
sysCodeMapper
.
deleteByPrimaryKey
(
id
);
}
}
@Override
@Override
public
int
insert
(
SmartSysCode
record
)
{
public
int
insert
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insert
(
record
);
return
sysCodeMapper
.
insert
(
record
);
}
}
@Override
@Override
public
int
insertOrUpdate
(
SmartSysCode
record
)
{
public
int
insertOrUpdate
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insertOrUpdate
(
record
);
return
sysCodeMapper
.
insertOrUpdate
(
record
);
}
}
@Override
@Override
public
int
insertOrUpdateSelective
(
SmartSysCode
record
)
{
public
int
insertOrUpdateSelective
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insertOrUpdateSelective
(
record
);
return
sysCodeMapper
.
insertOrUpdateSelective
(
record
);
}
}
@Override
@Override
public
int
insertSelective
(
SmartSysCode
record
)
{
public
int
insertSelective
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
insertSelective
(
record
);
return
sysCodeMapper
.
insertSelective
(
record
);
}
}
@Override
@Override
public
List
<
SmartSysCode
>
selectByExample
(
SmartSysCode
example
)
{
public
List
<
SmartSysCode
>
selectByExample
(
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
selectByExample
(
example
);
return
sysCodeMapper
.
selectByExample
(
example
);
}
}
@Override
@Override
public
SmartSysCode
selectByPrimaryKey
(
Long
id
)
{
public
SmartSysCode
selectByPrimaryKey
(
Long
id
)
{
return
s
martS
ysCodeMapper
.
selectByPrimaryKey
(
id
);
return
sysCodeMapper
.
selectByPrimaryKey
(
id
);
}
}
@Override
@Override
public
int
updateByExampleSelective
(
SmartSysCode
record
,
SmartSysCode
example
)
{
public
int
updateByExampleSelective
(
SmartSysCode
record
,
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
updateByExampleSelective
(
record
,
example
);
return
sysCodeMapper
.
updateByExampleSelective
(
record
,
example
);
}
}
@Override
@Override
public
int
updateByExample
(
SmartSysCode
record
,
SmartSysCode
example
)
{
public
int
updateByExample
(
SmartSysCode
record
,
SmartSysCode
example
)
{
return
s
martS
ysCodeMapper
.
updateByExample
(
record
,
example
);
return
sysCodeMapper
.
updateByExample
(
record
,
example
);
}
}
@Override
@Override
public
int
updateByPrimaryKeySelective
(
SmartSysCode
record
)
{
public
int
updateByPrimaryKeySelective
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
updateByPrimaryKeySelective
(
record
);
return
sysCodeMapper
.
updateByPrimaryKeySelective
(
record
);
}
}
@Override
@Override
public
int
updateByPrimaryKey
(
SmartSysCode
record
)
{
public
int
updateByPrimaryKey
(
SmartSysCode
record
)
{
return
s
martS
ysCodeMapper
.
updateByPrimaryKey
(
record
);
return
sysCodeMapper
.
updateByPrimaryKey
(
record
);
}
}
@Override
@Override
public
int
updateBatch
(
List
<
SmartSysCode
>
list
)
{
public
int
updateBatch
(
List
<
SmartSysCode
>
list
)
{
return
s
martS
ysCodeMapper
.
updateBatch
(
list
);
return
sysCodeMapper
.
updateBatch
(
list
);
}
}
@Override
@Override
public
int
updateBatchSelective
(
List
<
SmartSysCode
>
list
)
{
public
int
updateBatchSelective
(
List
<
SmartSysCode
>
list
)
{
return
s
martS
ysCodeMapper
.
updateBatchSelective
(
list
);
return
sysCodeMapper
.
updateBatchSelective
(
list
);
}
}
@Override
@Override
public
int
batchInsert
(
List
<
SmartSysCode
>
list
)
{
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartSysFile
;
import
com.glsx.smart.
dao.
entity.SmartSysFile
;
import
com.glsx.smart.mapper.SmartSysFileMapper
;
import
com.glsx.smart.
dao.
mapper.SmartSysFileMapper
;
import
com.glsx.smart.service.SmartSysFileService
;
import
com.glsx.smart.service.SmartSysFileService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartTemplateParam
;
import
com.glsx.smart.
dao.
entity.SmartTemplateParam
;
import
com.glsx.smart.mapper.SmartTemplateParamMapper
;
import
com.glsx.smart.
dao.
mapper.SmartTemplateParamMapper
;
import
com.glsx.smart.service.SmartTemplateParamService
;
import
com.glsx.smart.service.SmartTemplateParamService
;
import
org.springframework.stereotype.Service
;
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;
...
@@ -2,8 +2,8 @@ package com.glsx.smart.service.impl;
import
javax.annotation.Resource
;
import
javax.annotation.Resource
;
import
java.util.List
;
import
java.util.List
;
import
com.glsx.smart.entity.SmartUserRelation
;
import
com.glsx.smart.
dao.
entity.SmartUserRelation
;
import
com.glsx.smart.mapper.SmartUserRelationMapper
;
import
com.glsx.smart.
dao.
mapper.SmartUserRelationMapper
;
import
com.glsx.smart.service.SmartUserRelationService
;
import
com.glsx.smart.service.SmartUserRelationService
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
...
src/main/resources/application.properties
View file @
97e9f95
...
@@ -9,7 +9,7 @@ spring.jackson.time-zone=GMT+8
...
@@ -9,7 +9,7 @@ spring.jackson.time-zone=GMT+8
server.tomcat.uri-
encoding
=
UTF-8
server.tomcat.uri-
encoding
=
UTF-8
spring.messages.encoding
=
UTF-8
spring.messages.encoding
=
UTF-8
#mybatis\u914D\u7F6E
#mybatis\u914D\u7F6E
mybatis.typeAliasesPackage
=
com.glsx.entity
mybatis.typeAliasesPackage
=
com.glsx.
dao.
entity
mybatis.mapperLocations
=
classpath:mapper/*.xml
mybatis.mapperLocations
=
classpath:mapper/*.xml
mybatis.configLocation
=
classpath:/mybatis-config.xml
mybatis.configLocation
=
classpath:/mybatis-config.xml
...
...
src/main/resources/mapper/SmartDevideStatusMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartDevideStatusMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartDevideStatusMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartDevideStatus"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartDevideStatus"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_devide_status-->
<!--@Table smart_devide_status-->
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"INTEGER"
property=
"id"
/>
...
@@ -145,7 +145,7 @@
...
@@ -145,7 +145,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_devide_status
insert into smart_devide_status
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -188,7 +188,7 @@
...
@@ -188,7 +188,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_devide_status
insert into smart_devide_status
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartProductMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartProductMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartProductMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartProduct"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartProduct"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_product-->
<!--@Table smart_product-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -229,7 +229,7 @@
...
@@ -229,7 +229,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_product
insert into smart_product
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -290,7 +290,7 @@
...
@@ -290,7 +290,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_product
insert into smart_product
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartProductTypeMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartProductTypeMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartProductTypeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartProductType"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartProductType"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_product_type-->
<!--@Table smart_product_type-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -155,7 +155,7 @@
...
@@ -155,7 +155,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_product_type
insert into smart_product_type
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_product_type
insert into smart_product_type
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartProductTypeParamMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartProductTypeParamMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartProductTypeParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartProductTypeParam"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartProductTypeParam"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_product_type_param-->
<!--@Table smart_product_type_param-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_product_type_param
insert into smart_product_type_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -152,7 +152,7 @@
...
@@ -152,7 +152,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_product_type_param
insert into smart_product_type_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneDataMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartSceneDataMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSceneDataMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSceneData"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSceneData"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_scene_data-->
<!--@Table smart_scene_data-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_scene_data
insert into smart_scene_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_scene_data
insert into smart_scene_data
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartSceneMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSceneMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartScene"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartScene"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_scene-->
<!--@Table smart_scene-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -227,7 +227,7 @@
...
@@ -227,7 +227,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_scene
insert into smart_scene
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -288,7 +288,7 @@
...
@@ -288,7 +288,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_scene
insert into smart_scene
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSceneTemplateMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartSceneTemplateMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSceneTemplateMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSceneTemplate"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSceneTemplate"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_scene_template-->
<!--@Table smart_scene_template-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_scene_template
insert into smart_scene_template
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -306,7 +306,7 @@
...
@@ -306,7 +306,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_scene_template
insert into smart_scene_template
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSysCodeMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartSysCodeMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSysCodeMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSysCode"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSysCode"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_sys_code-->
<!--@Table smart_sys_code-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -210,7 +210,7 @@
...
@@ -210,7 +210,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_sys_code
insert into smart_sys_code
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_sys_code
insert into smart_sys_code
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartSysFileMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartSysFileMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartSysFileMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartSysFile"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartSysFile"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_sys_file-->
<!--@Table smart_sys_file-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_sys_file
insert into smart_sys_file
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_sys_file
insert into smart_sys_file
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartTemplateParamMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartTemplateParamMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartTemplateParamMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartTemplateParam"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartTemplateParam"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_template_param-->
<!--@Table smart_template_param-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_template_param
insert into smart_template_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -147,7 +147,7 @@
...
@@ -147,7 +147,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_template_param
insert into smart_template_param
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
src/main/resources/mapper/SmartUserRelationMapper.xml
View file @
97e9f95
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.glsx.smart.mapper.SmartUserRelationMapper"
>
<mapper
namespace=
"com.glsx.smart.
dao.
mapper.SmartUserRelationMapper"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.entity.SmartUserRelation"
>
<resultMap
id=
"BaseResultMap"
type=
"com.glsx.smart.
dao.
entity.SmartUserRelation"
>
<!--@mbg.generated-->
<!--@mbg.generated-->
<!--@Table smart_user_relation-->
<!--@Table smart_user_relation-->
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
<id
column=
"id"
jdbcType=
"BIGINT"
property=
"id"
/>
...
@@ -151,7 +151,7 @@
...
@@ -151,7 +151,7 @@
</foreach>
</foreach>
</insert>
</insert>
<insert
id=
"insertOrUpdate"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_user_relation
insert into smart_user_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
</trim>
</trim>
</insert>
</insert>
<insert
id=
"insertOrUpdateSelective"
keyColumn=
"id"
keyProperty=
"id"
<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-->
<!--@mbg.generated-->
insert into smart_user_relation
insert into smart_user_relation
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
<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