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
1dc176bf
Commit
1dc176bf
authored
Dec 26, 2023
by
lisong
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/develop_tzs_register' into develop_tzs_register
parents
966cebfb
c9b389a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
19 deletions
+39
-19
JgTransferNoticeController.java
.../module/jg/biz/controller/JgTransferNoticeController.java
+25
-5
CommonServiceImpl.java
...os/boot/module/jg/biz/service/impl/CommonServiceImpl.java
+14
-14
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgTransferNoticeController.java
View file @
1dc176bf
...
...
@@ -8,6 +8,8 @@ import com.yeejoin.amos.boot.module.common.biz.utils.CommonResponseUtil;
import
com.yeejoin.amos.boot.module.jg.api.dto.JgTransferNoticeDto
;
import
com.yeejoin.amos.boot.module.jg.api.entity.JgTransferNotice
;
import
com.yeejoin.amos.boot.module.jg.api.service.IJgTransferNoticeService
;
import
com.yeejoin.amos.boot.module.jg.biz.service.ICommonService
;
import
com.yeejoin.amos.boot.module.jg.biz.utils.ImageUtils
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiParam
;
...
...
@@ -19,10 +21,7 @@ import org.typroject.tyboot.core.restful.utils.ResponseHelper;
import
org.typroject.tyboot.core.restful.utils.ResponseModel
;
import
javax.servlet.http.HttpServletRequest
;
import
java.util.LinkedHashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Objects
;
import
java.util.*
;
/**
* 移装造告知
...
...
@@ -38,6 +37,9 @@ public class JgTransferNoticeController extends BaseController {
@Autowired
private
IJgTransferNoticeService
jgTransferNoticeService
;
@Autowired
private
ICommonService
commonService
;
/**
* 新增移装造告知
*
...
...
@@ -158,6 +160,24 @@ public class JgTransferNoticeController extends BaseController {
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"特种设备登记证导出"
,
notes
=
"特种设备登记证导出"
)
@GetMapping
(
value
=
"/certificate/report"
)
public
ResponseModel
<
String
>
generateCertificateReport
()
{
return
ResponseHelper
.
buildResponse
(
""
);
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
// 组装模板变量
map
.
put
(
"useRegistrationCode"
,
"20231225123"
);
// 编号
map
.
put
(
"useUnitName"
,
"西安市高科物业服务有限公司"
);
// 使用单位名称
map
.
put
(
"fullAddress"
,
"西安市曲江新区春临东街南湖意境1单元2号楼"
);
// 设备使用地点
map
.
put
(
"equList"
,
"电梯"
);
// 设备种类
map
.
put
(
"equipDefine"
,
"曳引驱动乘客电梯"
);
// 设备品种
map
.
put
(
"equipCode"
,
""
);
// 设备代码
map
.
put
(
"equipCategory"
,
"曳引电梯"
);
// 设备类别
map
.
put
(
"useInnerCode"
,
"KY-9527"
);
// 单位内编号
map
.
put
(
"factoryNum"
,
"G60001"
);
// 产品编号
map
.
put
(
"receiveOrgName"
,
"西安市曲江新区质检院"
);
// 登记机关
map
.
put
(
"giveOutYear"
,
"2023"
);
// 发证日期-年
map
.
put
(
"giveOutMonth"
,
"12"
);
// 发证日期-月
map
.
put
(
"giveOutDay"
,
"26"
);
// 发证日期-日
// 生成二维码
String
qrCode
=
ImageUtils
.
generateQRCode
(
"YZGZ20231225001"
,
70
,
65
);
map
.
put
(
"supervisoryCode"
,
qrCode
);
// 监管二维码
return
ResponseHelper
.
buildResponse
(
commonService
.
generateCertificateReport
(
map
));
}
}
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/CommonServiceImpl.java
View file @
1dc176bf
...
...
@@ -291,21 +291,21 @@ public class CommonServiceImpl implements ICommonService {
throw
new
IllegalArgumentException
(
"参数不能为空"
);
}
// 组装模板变量
map
.
put
(
"useRegistrationCode"
,
"20231225123"
);
// 编号
map
.
put
(
"useUnitName"
,
"西安市高科物业服务有限公司"
);
// 使用单位名称
map
.
put
(
"fullAddress"
,
"西安市曲江新区春临东街南湖意境1单元2号楼"
);
// 设备使用地点
map
.
put
(
"equList"
,
"电梯"
);
// 设备种类
map
.
put
(
"equipDefine"
,
"曳引驱动乘客电梯"
);
// 设备品种
map
.
put
(
"equipCode"
,
""
);
// 设备代码
map
.
put
(
"equipCategory"
,
"曳引电梯"
);
// 设备类别
map
.
put
(
"useInnerCode"
,
"KY-9527"
);
// 单位内编号
map
.
put
(
"factoryNum"
,
"G60001"
);
// 产品编号
map
.
put
(
"receiveOrgName"
,
"西安市曲江新区质检院"
);
// 登记机关
map
.
put
(
"giveOutYear"
,
"2023"
);
// 发证日期-年
map
.
put
(
"giveOutMonth"
,
"12"
);
// 发证日期-月
map
.
put
(
"giveOutDay"
,
"26"
);
// 发证日期-日
map
.
put
(
"useRegistrationCode"
,
map
.
getOrDefault
(
"useRegistrationCode"
,
""
).
toString
()
);
// 编号
map
.
put
(
"useUnitName"
,
map
.
getOrDefault
(
"useUnitName"
,
""
).
toString
()
);
// 使用单位名称
map
.
put
(
"fullAddress"
,
map
.
getOrDefault
(
"fullAddress"
,
""
).
toString
()
);
// 设备使用地点
map
.
put
(
"equList"
,
map
.
getOrDefault
(
"equList"
,
""
).
toString
()
);
// 设备种类
map
.
put
(
"equipDefine"
,
map
.
getOrDefault
(
"equipDefine"
,
""
).
toString
()
);
// 设备品种
map
.
put
(
"equipCode"
,
map
.
getOrDefault
(
"equipCode"
,
""
).
toString
()
);
// 设备代码
map
.
put
(
"equipCategory"
,
map
.
getOrDefault
(
"equipCategory"
,
""
).
toString
()
);
// 设备类别
map
.
put
(
"useInnerCode"
,
map
.
getOrDefault
(
"useInnerCode"
,
""
).
toString
()
);
// 单位内编号
map
.
put
(
"factoryNum"
,
map
.
getOrDefault
(
"factoryNum"
,
""
).
toString
()
);
// 产品编号
map
.
put
(
"receiveOrgName"
,
map
.
getOrDefault
(
"receiveOrgName"
,
""
).
toString
()
);
// 登记机关
map
.
put
(
"giveOutYear"
,
map
.
getOrDefault
(
"giveOutYear"
,
""
).
toString
()
);
// 发证日期-年
map
.
put
(
"giveOutMonth"
,
map
.
getOrDefault
(
"giveOutMonth"
,
""
).
toString
()
);
// 发证日期-月
map
.
put
(
"giveOutDay"
,
map
.
getOrDefault
(
"giveOutDay"
,
""
).
toString
()
);
// 发证日期-日
// 生成二维码
String
qrCode
=
ImageUtils
.
generateQRCode
(
"YZGZ20231225001"
,
70
,
65
);
String
qrCode
=
ImageUtils
.
generateQRCode
(
map
.
getOrDefault
(
"supervisoryCode"
,
""
).
toString
()
,
70
,
65
);
map
.
put
(
"supervisoryCode"
,
qrCode
);
// 监管二维码
// word转pdf
...
...
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