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
b11c012f
Commit
b11c012f
authored
Jul 03, 2024
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):使用登记证管理代码提交
parent
c1eca543
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
390 additions
and
0 deletions
+390
-0
JgUseRegistrationManageDto.java
...os/boot/module/jg/api/dto/JgUseRegistrationManageDto.java
+79
-0
JgUseRegistrationManage.java
...os/boot/module/jg/api/entity/JgUseRegistrationManage.java
+134
-0
JgUseRegistrationManageMapper.java
...t/module/jg/api/mapper/JgUseRegistrationManageMapper.java
+14
-0
IJgUseRegistrationManageService.java
...odule/jg/api/service/IJgUseRegistrationManageService.java
+9
-0
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+5
-0
JgUseRegistrationManageController.java
.../jg/biz/controller/JgUseRegistrationManageController.java
+115
-0
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+34
-0
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/dto/JgUseRegistrationManageDto.java
0 → 100644
View file @
b11c012f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
org.typroject.tyboot.core.rdbms.model.BaseModel
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
/**
*
*
* @author system_generator
* @date 2024-07-03
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@ApiModel
(
value
=
"JgUseRegistrationManageDto"
,
description
=
""
)
public
class
JgUseRegistrationManageDto
extends
BaseModel
{
private
static
final
long
serialVersionUID
=
1L
;
@ApiModelProperty
(
value
=
"使用单位名称"
)
private
String
useUnitName
;
@ApiModelProperty
(
value
=
"申请编号"
)
private
String
applyNo
;
@ApiModelProperty
(
value
=
"使用登记证状态(登记,注销)"
)
private
String
cretificateStatus
;
@ApiModelProperty
(
value
=
"接收机构"
)
private
String
receiveOrgName
;
@ApiModelProperty
(
value
=
"办理日期"
)
private
Date
auditPassDate
;
@ApiModelProperty
(
value
=
"登记类别"
)
private
String
regType
;
@ApiModelProperty
(
value
=
"申请日期"
)
private
Date
regDate
;
@ApiModelProperty
(
value
=
"设备种类"
)
private
String
equList
;
@ApiModelProperty
(
value
=
"设备品种"
)
private
String
equDefine
;
@ApiModelProperty
(
value
=
"备注"
)
private
String
remark
;
@ApiModelProperty
(
value
=
"创建人ID"
)
private
String
createUserId
;
@ApiModelProperty
(
value
=
"创建时间"
)
private
Date
createDate
;
@ApiModelProperty
(
value
=
"使用登记编号"
)
private
String
useRegistrationCode
;
@ApiModelProperty
(
value
=
"使用单位统一信用代码"
)
private
String
useUnitCreditCode
;
@ApiModelProperty
(
value
=
"接收机构公司代码"
)
private
String
receiveCompanyCode
;
@ApiModelProperty
(
value
=
"使用登记证书参数"
)
private
String
useRegistrationCertificateParam
;
@ApiModelProperty
(
value
=
"登记证书编号"
)
private
String
cretificateNo
;
@ApiModelProperty
(
value
=
"使用标志参数"
)
private
String
useFlagCretificateParam
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgUseRegistrationManage.java
0 → 100644
View file @
b11c012f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
entity
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
/**
*
*
* @author system_generator
* @date 2024-07-03
*/
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"tzs_jg_use_registration_manage"
)
public
class
JgUseRegistrationManage
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
/**
* 使用单位名称
*/
@TableField
(
"use_unit_name"
)
private
String
useUnitName
;
/**
* 申请编号
*/
@TableField
(
"apply_no"
)
private
String
applyNo
;
/**
* 使用登记证状态(登记,注销)
*/
@TableField
(
"cretificate_status"
)
private
String
cretificateStatus
;
/**
* 接收机构
*/
@TableField
(
"receive_org_name"
)
private
String
receiveOrgName
;
/**
* 办理日期
*/
@TableField
(
"audit_pass_date"
)
private
Date
auditPassDate
;
/**
* 登记类别
*/
@TableField
(
"reg_type"
)
private
String
regType
;
/**
* 申请日期
*/
@TableField
(
"reg_date"
)
private
Date
regDate
;
/**
* 设备种类
*/
@TableField
(
"equ_list"
)
private
String
equList
;
/**
* 设备品种
*/
@TableField
(
"equ_define"
)
private
String
equDefine
;
/**
* 备注
*/
@TableField
(
"remark"
)
private
String
remark
;
/**
* 创建人ID
*/
@TableField
(
"create_user_id"
)
private
String
createUserId
;
/**
* 创建时间
*/
@TableField
(
"create_date"
)
private
Date
createDate
;
/**
* 使用登记编号
*/
@TableField
(
"use_registration_code"
)
private
String
useRegistrationCode
;
/**
* 使用单位统一信用代码
*/
@TableField
(
"use_unit_credit_code"
)
private
String
useUnitCreditCode
;
/**
* 接收机构公司代码
*/
@TableField
(
"receive_company_code"
)
private
String
receiveCompanyCode
;
/**
* 使用登记证书参数
*/
@TableField
(
"use_registration_certificate_param"
)
private
String
useRegistrationCertificateParam
;
/**
* 登记证书编号
*/
@TableField
(
"cretificate_no"
)
private
String
cretificateNo
;
/**
* 使用标志参数
*/
@TableField
(
"use_flag_cretificate_param"
)
private
String
useFlagCretificateParam
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/mapper/JgUseRegistrationManageMapper.java
0 → 100644
View file @
b11c012f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
mapper
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
/**
* Mapper 接口
*
* @author system_generator
* @date 2024-07-03
*/
public
interface
JgUseRegistrationManageMapper
extends
BaseMapper
<
JgUseRegistrationManage
>
{
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/service/IJgUseRegistrationManageService.java
0 → 100644
View file @
b11c012f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
api
.
service
;
/**
* 接口类
*
* @author system_generator
* @date 2024-07-03
*/
public
interface
IJgUseRegistrationManageService
{}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
0 → 100644
View file @
b11c012f
<?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.jg.api.mapper.JgUseRegistrationManageMapper"
>
</mapper>
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgUseRegistrationManageController.java
0 → 100644
View file @
b11c012f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
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.jg.biz.service.impl.JgUseRegistrationManageServiceImpl
;
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.jg.api.dto.JgUseRegistrationManageDto
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
/**
*
* @author system_generator
* @date 2024-07-03
*/
@RestController
@Api
(
tags
=
"Api"
)
@RequestMapping
(
value
=
"/jg-use-registration-manage"
)
public
class
JgUseRegistrationManageController
extends
BaseController
{
@Autowired
JgUseRegistrationManageServiceImpl
jgUseRegistrationManageServiceImpl
;
/**
* 新增
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PostMapping
(
value
=
"/save"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"新增"
,
notes
=
"新增"
)
public
ResponseModel
<
JgUseRegistrationManageDto
>
save
(
@RequestBody
JgUseRegistrationManageDto
model
)
{
model
=
jgUseRegistrationManageServiceImpl
.
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
<
JgUseRegistrationManageDto
>
updateBySequenceNbrJgUseRegistrationManage
(
@RequestBody
JgUseRegistrationManageDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
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
(
jgUseRegistrationManageServiceImpl
.
removeById
(
sequenceNbr
));
}
/**
* 根据sequenceNbr查询
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/{sequenceNbr}"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"根据sequenceNbr查询单个"
,
notes
=
"根据sequenceNbr查询单个"
)
public
ResponseModel
<
JgUseRegistrationManageDto
>
selectOne
(
@PathVariable
Long
sequenceNbr
)
{
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
queryBySeq
(
sequenceNbr
));
}
/**
* 列表分页查询
*
* @param current 当前页
* @param current 每页大小
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/page"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"分页查询"
,
notes
=
"分页查询"
)
public
ResponseModel
<
Page
<
JgUseRegistrationManageDto
>>
queryForPage
(
@RequestParam
(
value
=
"current"
)
int
current
,
@RequestParam
(
value
=
"size"
)
int
size
)
{
Page
<
JgUseRegistrationManageDto
>
page
=
new
Page
<
JgUseRegistrationManageDto
>();
page
.
setCurrent
(
current
);
page
.
setSize
(
size
);
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
queryForJgUseRegistrationManagePage
(
page
));
}
/**
* 列表全部数据查询
*
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"列表全部数据查询"
,
notes
=
"列表全部数据查询"
)
@GetMapping
(
value
=
"/list"
)
public
ResponseModel
<
List
<
JgUseRegistrationManageDto
>>
selectForList
()
{
return
ResponseHelper
.
buildResponse
(
jgUseRegistrationManageServiceImpl
.
queryForJgUseRegistrationManageList
());
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/JgUseRegistrationManageServiceImpl.java
0 → 100644
View file @
b11c012f
package
com
.
yeejoin
.
amos
.
boot
.
module
.
jg
.
biz
.
service
.
impl
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgUseRegistrationManage
;
import
com.yeejoin.amos.boot.module.jg.api.mapper.JgUseRegistrationManageMapper
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgUseRegistrationManageService
;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgUseRegistrationManageDto
;
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 2024-07-03
*/
@Service
public
class
JgUseRegistrationManageServiceImpl
extends
BaseService
<
JgUseRegistrationManageDto
,
JgUseRegistrationManage
,
JgUseRegistrationManageMapper
>
implements
IJgUseRegistrationManageService
{
/**
* 分页查询
*/
public
Page
<
JgUseRegistrationManageDto
>
queryForJgUseRegistrationManagePage
(
Page
<
JgUseRegistrationManageDto
>
page
)
{
return
this
.
queryForPage
(
page
,
null
,
false
);
}
/**
* 列表查询 示例
*/
public
List
<
JgUseRegistrationManageDto
>
queryForJgUseRegistrationManageList
()
{
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