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
de7df117
Commit
de7df117
authored
Aug 23, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加印章管理
parent
84346d8f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
290 additions
and
0 deletions
+290
-0
SealDictionaryDto.java
...join/amos/boot/module/hygf/api/dto/SealDictionaryDto.java
+42
-0
SealDictionary.java
...join/amos/boot/module/hygf/api/entity/SealDictionary.java
+67
-0
SealDictionaryMapper.java
...mos/boot/module/hygf/api/mapper/SealDictionaryMapper.java
+14
-0
ISealDictionaryService.java
.../boot/module/hygf/api/service/ISealDictionaryService.java
+12
-0
SealDictionaryMapper.xml
...gf-api/src/main/resources/mapper/SealDictionaryMapper.xml
+5
-0
SealDictionaryController.java
.../module/hygf/biz/controller/SealDictionaryController.java
+116
-0
SealDictionaryServiceImpl.java
...dule/hygf/biz/service/impl/SealDictionaryServiceImpl.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/SealDictionaryDto.java
0 → 100644
View file @
de7df117
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
dto
;
import
com.baomidou.mybatisplus.annotation.TableField
;
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-08-23
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"SealDictionaryDto"
,
description
=
""
)
public
class
SealDictionaryDto
extends
BaseDto
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"平台公司id"
)
private
Long
amosCompanySeq
;
@ApiModelProperty
(
value
=
"平台公名称"
)
private
String
amosCompanyName
;
@ApiModelProperty
(
value
=
"印章id"
)
private
Long
sealId
;
@ApiModelProperty
(
value
=
"盖章人"
)
private
String
sealedUser
;
@ApiModelProperty
(
value
=
"盖章人手机号"
)
private
String
sealedPhone
;
private
String
category
;
private
String
companyTenantName
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/SealDictionary.java
0 → 100644
View file @
de7df117
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
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-08-23
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_seal_dictionary"
)
public
class
SealDictionary
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 平台公司id
*/
@TableField
(
"amos_company_seq"
)
private
Long
amosCompanySeq
;
/**
* 平台公名称
*/
@TableField
(
"amos_company_name"
)
private
String
amosCompanyName
;
/**
* 印章id
*/
@TableField
(
"seal_id"
)
private
Long
sealId
;
/**
* 盖章人
*/
@TableField
(
"sealed_user"
)
private
String
sealedUser
;
/**
* 盖章人手机号
*/
@TableField
(
"sealed_phone"
)
private
String
sealedPhone
;
/*
契约锁业务分类
* **/
@TableField
(
"category"
)
private
String
category
;
/**
* 契约锁签署公司
* */
@TableField
(
"company_tenant_name"
)
private
String
companyTenantName
;
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/mapper/SealDictionaryMapper.java
0 → 100644
View file @
de7df117
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.SealDictionary
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* Mapper 接口
*
* @author system_generator
* @date 2023-08-23
*/
public
interface
SealDictionaryMapper
extends
BaseMapper
<
SealDictionary
>
{
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/service/ISealDictionaryService.java
0 → 100644
View file @
de7df117
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
api
.
service
;
/**
* 接口类
*
* @author system_generator
* @date 2023-08-23
*/
public
interface
ISealDictionaryService
{
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/resources/mapper/SealDictionaryMapper.xml
0 → 100644
View file @
de7df117
<?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.SealDictionaryMapper"
>
</mapper>
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/SealDictionaryController.java
0 → 100644
View file @
de7df117
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
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.hygf.biz.service.impl.SealDictionaryServiceImpl
;
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.hygf.api.dto.SealDictionaryDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
*
*
* @author system_generator
* @date 2023-08-23
*/
@RestController
@Api
(
tags
=
"Api"
)
@RequestMapping
(
value
=
"/seal-dictionary"
)
public
class
SealDictionaryController
extends
BaseController
{
@Autowired
SealDictionaryServiceImpl
sealDictionaryServiceImpl
;
/**
* 新增
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
SealDictionaryDto
>
save
(
@RequestBody
SealDictionaryDto
model
)
{
model
=
sealDictionaryServiceImpl
.
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
<
SealDictionaryDto
>
updateBySequenceNbrSealDictionary
(
@RequestBody
SealDictionaryDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
sealDictionaryServiceImpl
.
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
(
sealDictionaryServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
SealDictionaryDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
sealDictionaryServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
SealDictionaryDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
SealDictionaryDto
>
page
=
new
Page
<
SealDictionaryDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
sealDictionaryServiceImpl
.
queryForSealDictionaryPage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
SealDictionaryDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
sealDictionaryServiceImpl
.
queryForSealDictionaryList
());
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/SealDictionaryServiceImpl.java
0 → 100644
View file @
de7df117
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.hygf.api.entity.SealDictionary
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.SealDictionaryMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.ISealDictionaryService
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.SealDictionaryDto
;
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-08-23
*/
@Service
public
class
SealDictionaryServiceImpl
extends
BaseService
<
SealDictionaryDto
,
SealDictionary
,
SealDictionaryMapper
>
implements
ISealDictionaryService
{
/**
* 分页查询
*/
public
Page
<
SealDictionaryDto
>
queryForSealDictionaryPage
(
Page
<
SealDictionaryDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
SealDictionaryDto
>
queryForSealDictionaryList
()
{
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