Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
d9f21f97
Commit
d9f21f97
authored
Dec 18, 2023
by
LiuLin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(tcm):tz_base_equip_param_define 代码生成
parent
d55aa064
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
255 additions
and
0 deletions
+255
-0
BaseEquipParamDefineDto.java
...amos/boot/module/tcm/api/dto/BaseEquipParamDefineDto.java
+32
-0
BaseEquipParamDefine.java
...amos/boot/module/tcm/api/entity/BaseEquipParamDefine.java
+42
-0
BaseEquipParamDefineMapper.java
...oot/module/tcm/api/mapper/BaseEquipParamDefineMapper.java
+14
-0
IBaseEquipParamDefineService.java
.../module/tcm/api/service/IBaseEquipParamDefineService.java
+12
-0
BaseEquipParamDefineMapper.xml
.../src/main/resources/mapper/BaseEquipParamDefineMapper.xml
+5
-0
BaseEquipParamDefineController.java
...le/tcm/biz/controller/BaseEquipParamDefineController.java
+116
-0
BaseEquipParamDefineServiceImpl.java
...tcm/biz/service/impl/BaseEquipParamDefineServiceImpl.java
+34
-0
No files found.
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/dto/BaseEquipParamDefineDto.java
0 → 100644
View file @
d9f21f97
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
/**
* 设备定义与技术参数表关联关系表
*
* @author system_generator
* @date 2023-12-18
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"BaseEquipParamDefineDto"
,
description
=
"设备定义与技术参数表关联关系表"
)
public
class
BaseEquipParamDefineDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"参数key"
)
private
String
paramKey
;
@ApiModelProperty
(
value
=
"参数name"
)
private
String
paramName
;
@ApiModelProperty
(
value
=
"设备定义(设备种类_设备类别_设备品种)"
)
private
String
categoryCode
;
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/entity/BaseEquipParamDefine.java
0 → 100644
View file @
d9f21f97
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
/**
* 设备定义与技术参数表关联关系表
*
* @author system_generator
* @date 2023-12-18
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tz_base_equip_param_define"
)
public
class
BaseEquipParamDefine
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 参数key
*/
@TableField
(
"param_key"
)
private
String
paramKey
;
/**
* 参数name
*/
@TableField
(
"param_name"
)
private
String
paramName
;
/**
* 设备定义(设备种类_设备类别_设备品种)
*/
@TableField
(
"category_code"
)
private
String
categoryCode
;
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/mapper/BaseEquipParamDefineMapper.java
0 → 100644
View file @
d9f21f97
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.tcm.api.entity.BaseEquipParamDefine
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 设备定义与技术参数表关联关系表 Mapper 接口
*
* @author system_generator
* @date 2023-12-18
*/
public
interface
BaseEquipParamDefineMapper
extends
BaseMapper
<
BaseEquipParamDefine
>
{
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/java/com/yeejoin/amos/boot/module/tcm/api/service/IBaseEquipParamDefineService.java
0 → 100644
View file @
d9f21f97
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
api
.
service
;
/**
* 设备定义与技术参数表关联关系表接口类
*
* @author system_generator
* @date 2023-12-18
*/
public
interface
IBaseEquipParamDefineService
{
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-api/src/main/resources/mapper/BaseEquipParamDefineMapper.xml
0 → 100644
View file @
d9f21f97
<?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.yeejoin.amos.boot.module.tcm.api.mapper.BaseEquipParamDefineMapper"
>
</mapper>
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/controller/BaseEquipParamDefineController.java
0 → 100644
View file @
d9f21f97
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
biz
.
controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.List
;
import
com.yeejoin.amos.boot.module.tcm.biz.service.impl.BaseEquipParamDefineServiceImpl
;
import
org.typroject.tyboot.core.restful.utils.ResponseHelper
;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.web.bind.annotation.*
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.BaseEquipParamDefineDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 设备定义与技术参数表关联关系表
*
* @author system_generator
* @date 2023-12-18
*/
@RestController
@Api
(
tags
=
"设备定义与技术参数表关联关系表Api"
)
@RequestMapping
(
value
=
"/base-equip-param-define"
)
public
class
BaseEquipParamDefineController
extends
BaseController
{
@Autowired
BaseEquipParamDefineServiceImpl
baseEquipParamDefineServiceImpl
;
/**
* 新增设备定义与技术参数表关联关系表
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增设备定义与技术参数表关联关系表"
,
notes
=
"新增设备定义与技术参数表关联关系表"
)
public
ResponseModel
<
BaseEquipParamDefineDto
>
save
(
@RequestBody
BaseEquipParamDefineDto
model
)
{
model
=
baseEquipParamDefineServiceImpl
.
createWithModel
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新设备定义与技术参数表关联关系表"
,
notes
=
"根据sequenceNbr更新设备定义与技术参数表关联关系表"
)
public
ResponseModel
<
BaseEquipParamDefineDto
>
updateBySequenceNbrBaseEquipParamDefine
(
@RequestBody
BaseEquipParamDefineDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
baseEquipParamDefineServiceImpl
.
updateWithModel
(
model
));
}
/**
* 根据sequenceNbr删除
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@DeleteMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"DELETE"
,
value
=
"根据sequenceNbr删除设备定义与技术参数表关联关系表"
,
notes
=
"根据sequenceNbr删除设备定义与技术参数表关联关系表"
)
public
ResponseModel
<
Boolean
>
deleteBySequenceNbr
(
HttpServletRequest
request
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
){
return
ResponseHelper
.
buildResponse
(
baseEquipParamDefineServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个设备定义与技术参数表关联关系表"
,
notes
=
"根据sequenceNbr查询单个设备定义与技术参数表关联关系表"
)
public
ResponseModel
<
BaseEquipParamDefineDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
baseEquipParamDefineServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备定义与技术参数表关联关系表分页查询"
,
notes
=
"设备定义与技术参数表关联关系表分页查询"
)
public
ResponseModel
<
Page
<
BaseEquipParamDefineDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
BaseEquipParamDefineDto
>
page
=
new
Page
<
BaseEquipParamDefineDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
baseEquipParamDefineServiceImpl
.
queryForBaseEquipParamDefinePage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设备定义与技术参数表关联关系表列表全部数据查询"
,
notes
=
"设备定义与技术参数表关联关系表列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
BaseEquipParamDefineDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
baseEquipParamDefineServiceImpl
.
queryForBaseEquipParamDefineList
());
}
}
amos-boot-system-tzs/amos-boot-module-tcm/amos-boot-module-tcm-biz/src/main/java/com/yeejoin/amos/boot/module/tcm/biz/service/impl/BaseEquipParamDefineServiceImpl.java
0 → 100644
View file @
d9f21f97
package
com
.
yeejoin
.
amos
.
boot
.
module
.
tcm
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.tcm.api.entity.BaseEquipParamDefine
;
import
com.yeejoin.amos.boot.module.tcm.api.mapper.BaseEquipParamDefineMapper
;
import
com.yeejoin.amos.boot.module.tcm.api.service.IBaseEquipParamDefineService
;
import
com.yeejoin.amos.boot.module.tcm.api.dto.BaseEquipParamDefineDto
;
import
org.typroject.tyboot.core.rdbms.service.BaseService
;
import
org.springframework.stereotype.Service
;
import
com.baomidou.mybatisplus.extension.plugins.pagination.Page
;
import
java.util.List
;
/**
* 设备定义与技术参数表关联关系表服务实现类
*
* @author system_generator
* @date 2023-12-18
*/
@Service
public
class
BaseEquipParamDefineServiceImpl
extends
BaseService
<
BaseEquipParamDefineDto
,
BaseEquipParamDefine
,
BaseEquipParamDefineMapper
>
implements
IBaseEquipParamDefineService
{
/**
* 分页查询
*/
public
Page
<
BaseEquipParamDefineDto
>
queryForBaseEquipParamDefinePage
(
Page
<
BaseEquipParamDefineDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
BaseEquipParamDefineDto
>
queryForBaseEquipParamDefineList
()
{
return
this
.
queryForList
(
""
,
false
);
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment