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
c4396c2d
Commit
c4396c2d
authored
Jul 14, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设计信息表
parent
494a6b67
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
464 additions
and
0 deletions
+464
-0
DesignInformationDto.java
...n/amos/boot/module/hygf/api/dto/DesignInformationDto.java
+102
-0
DesignInformation.java
...n/amos/boot/module/hygf/api/entity/DesignInformation.java
+181
-0
DesignInformationMapper.java
.../boot/module/hygf/api/mapper/DesignInformationMapper.java
+14
-0
IDesignInformationService.java
...ot/module/hygf/api/service/IDesignInformationService.java
+12
-0
DesignInformationMapper.xml
...api/src/main/resources/mapper/DesignInformationMapper.xml
+5
-0
DesignInformationController.java
...dule/hygf/biz/controller/DesignInformationController.java
+116
-0
DesignInformationServiceImpl.java
...e/hygf/biz/service/impl/DesignInformationServiceImpl.java
+34
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/DesignInformationDto.java
0 → 100644
View file @
c4396c2d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
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
;
import
java.util.Date
;
/**
* 设计信息
*
* @author system_generator
* @date 2023-07-14
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"DesignInformationDto"
,
description
=
"设计信息"
)
public
class
DesignInformationDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"典型设计图信息"
)
private
String
typicalDiagram
;
@ApiModelProperty
(
value
=
"组件排布图"
)
private
String
componentLayout
;
@ApiModelProperty
(
value
=
"组件支架图"
)
private
String
componentBracket
;
@ApiModelProperty
(
value
=
"组串接线图"
)
private
String
connectionLine
;
@ApiModelProperty
(
value
=
"一次接线图"
)
private
String
onceLine
;
@ApiModelProperty
(
value
=
"组件"
)
private
String
assembly
;
@ApiModelProperty
(
value
=
"逆变器"
)
private
String
inverter
;
@ApiModelProperty
(
value
=
"电表箱"
)
private
String
electricityMeter
;
@ApiModelProperty
(
value
=
"支架"
)
private
String
support
;
@ApiModelProperty
(
value
=
" 防滑雪措施"
)
private
String
antiSkiing
;
@ApiModelProperty
(
value
=
" 防滑雪措施备注"
)
private
String
antiSkiingNotes
;
@ApiModelProperty
(
value
=
" 抽检"
)
private
String
spotCheck
;
@ApiModelProperty
(
value
=
" 抽检意见"
)
private
String
spotCheckOpinion
;
@ApiModelProperty
(
value
=
"是否定制"
)
private
String
isokCustomized
;
@ApiModelProperty
(
value
=
"是否加固"
)
private
String
windResistant
;
@ApiModelProperty
(
value
=
"试点方案"
)
private
String
pilotProgram
;
@ApiModelProperty
(
value
=
" s试点物料"
)
private
String
pilotMaterials
;
@ApiModelProperty
(
value
=
"方位角"
)
private
String
azimuth
;
@ApiModelProperty
(
value
=
"倾角"
)
private
String
dipAngle
;
@ApiModelProperty
(
value
=
" 应用场景"
)
private
String
applicationScenario
;
@ApiModelProperty
(
value
=
"应用场景数量"
)
private
Integer
applicationScenarioNum
;
@ApiModelProperty
(
value
=
"支架方案"
)
private
String
supportScheme
;
@ApiModelProperty
(
value
=
"支架方案数量"
)
private
Integer
supportSchemeNum
;
@ApiModelProperty
(
value
=
"特殊方案"
)
private
String
specialPlan
;
@ApiModelProperty
(
value
=
"特殊方案数量"
)
private
Integer
specialPlanNum
;
@ApiModelProperty
(
value
=
"勘察表id"
)
private
Long
surveyInformationId
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/DesignInformation.java
0 → 100644
View file @
c4396c2d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
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
;
import
java.util.Date
;
/**
* 设计信息
*
* @author system_generator
* @date 2023-07-14
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_design_information"
)
public
class
DesignInformation
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 典型设计图信息
*/
@TableField
(
"typical_diagram"
)
private
String
typicalDiagram
;
/**
* 组件排布图
*/
@TableField
(
"component_layout"
)
private
String
componentLayout
;
/**
* 组件支架图
*/
@TableField
(
"component_bracket"
)
private
String
componentBracket
;
/**
* 组串接线图
*/
@TableField
(
"connection_line"
)
private
String
connectionLine
;
/**
* 一次接线图
*/
@TableField
(
"once_line"
)
private
String
onceLine
;
/**
* 组件
*/
@TableField
(
"assembly"
)
private
String
assembly
;
/**
* 逆变器
*/
@TableField
(
"inverter"
)
private
String
inverter
;
/**
* 电表箱
*/
@TableField
(
"electricity_meter"
)
private
String
electricityMeter
;
/**
* 支架
*/
@TableField
(
"support"
)
private
String
support
;
/**
* 防滑雪措施
*/
@TableField
(
"anti_skiing"
)
private
String
antiSkiing
;
/**
* 防滑雪措施备注
*/
@TableField
(
"anti_skiing_notes"
)
private
String
antiSkiingNotes
;
/**
* 抽检
*/
@TableField
(
"spot_check"
)
private
String
spotCheck
;
/**
* 抽检意见
*/
@TableField
(
"spot_check_opinion"
)
private
String
spotCheckOpinion
;
/**
* 是否定制
*/
@TableField
(
"isok_customized"
)
private
String
isokCustomized
;
/**
* 是否加固
*/
@TableField
(
"wind_resistant"
)
private
String
windResistant
;
/**
* 试点方案
*/
@TableField
(
"pilot_program"
)
private
String
pilotProgram
;
/**
* s试点物料
*/
@TableField
(
"pilot_materials"
)
private
String
pilotMaterials
;
/**
* 方位角
*/
@TableField
(
"azimuth"
)
private
String
azimuth
;
/**
* 倾角
*/
@TableField
(
"dip_angle"
)
private
String
dipAngle
;
/**
* 应用场景
*/
@TableField
(
"application_scenario"
)
private
String
applicationScenario
;
/**
* 应用场景数量
*/
@TableField
(
"application_scenario_num"
)
private
Integer
applicationScenarioNum
;
/**
* 支架方案
*/
@TableField
(
"support_scheme"
)
private
String
supportScheme
;
/**
* 支架方案数量
*/
@TableField
(
"support_scheme_num"
)
private
Integer
supportSchemeNum
;
/**
* 特殊方案
*/
@TableField
(
"special_plan"
)
private
String
specialPlan
;
/**
* 特殊方案数量
*/
@TableField
(
"special_plan_num"
)
private
Integer
specialPlanNum
;
/**
* 勘察表id
*/
@TableField
(
"survey_information_id"
)
private
Long
surveyInformationId
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/DesignInformationMapper.java
0 → 100644
View file @
c4396c2d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.DesignInformation
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* 设计信息 Mapper 接口
*
* @author system_generator
* @date 2023-07-14
*/
public
interface
DesignInformationMapper
extends
BaseMapper
<
DesignInformation
>
{
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/service/IDesignInformationService.java
0 → 100644
View file @
c4396c2d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
api
.
service
;
/**
* 设计信息接口类
*
* @author system_generator
* @date 2023-07-14
*/
public
interface
IDesignInformationService
{
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/DesignInformationMapper.xml
0 → 100644
View file @
c4396c2d
<?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.jxiop.api.mapper.DesignInformationMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/DesignInformationController.java
0 → 100644
View file @
c4396c2d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
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.jxiop.biz.service.impl.DesignInformationServiceImpl
;
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.jxiop.api.dto.DesignInformationDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
* 设计信息
*
* @author system_generator
* @date 2023-07-14
*/
@RestController
@Api
(
tags
=
"设计信息Api"
)
@RequestMapping
(
value
=
"/design-information"
)
public
class
DesignInformationController
extends
BaseController
{
@Autowired
DesignInformationServiceImpl
designInformationServiceImpl
;
/**
* 新增设计信息
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增设计信息"
,
notes
=
"新增设计信息"
)
public
ResponseModel
<
DesignInformationDto
>
save
(
@RequestBody
DesignInformationDto
model
)
{
model
=
designInformationServiceImpl
.
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
<
DesignInformationDto
>
updateBySequenceNbrDesignInformation
(
@RequestBody
DesignInformationDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
designInformationServiceImpl
.
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
(
designInformationServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个设计信息"
,
notes
=
"根据sequenceNbr查询单个设计信息"
)
public
ResponseModel
<
DesignInformationDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
designInformationServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设计信息分页查询"
,
notes
=
"设计信息分页查询"
)
public
ResponseModel
<
Page
<
DesignInformationDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
DesignInformationDto
>
page
=
new
Page
<
DesignInformationDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
designInformationServiceImpl
.
queryForDesignInformationPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"设计信息列表全部数据查询"
,
notes
=
"设计信息列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
DesignInformationDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
designInformationServiceImpl
.
queryForDesignInformationList
());
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/DesignInformationServiceImpl.java
0 → 100644
View file @
c4396c2d
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jxiop
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.DesignInformation
;
import
com.yeejoin.amos.boot.module.jxiop.api.mapper.DesignInformationMapper
;
import
com.yeejoin.amos.boot.module.jxiop.api.service.IDesignInformationService
;
import
com.yeejoin.amos.boot.module.jxiop.api.dto.DesignInformationDto
;
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-07-14
*/
@Service
public
class
DesignInformationServiceImpl
extends
BaseService
<
DesignInformationDto
,
DesignInformation
,
DesignInformationMapper
>
implements
IDesignInformationService
{
/**
* 分页查询
*/
public
Page
<
DesignInformationDto
>
queryForDesignInformationPage
(
Page
<
DesignInformationDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
DesignInformationDto
>
queryForDesignInformationList
()
{
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