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
e6c00c7e
Commit
e6c00c7e
authored
Dec 22, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新
parent
e838bf6f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
15 deletions
+21
-15
JgTransferNoticeDto.java
...join/amos/boot/module/jg/api/dto/JgTransferNoticeDto.java
+3
-0
JgTransferNotice.java
...join/amos/boot/module/jg/api/entity/JgTransferNotice.java
+2
-0
JgTransferNoticeMapper.xml
...-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
+2
-1
JgTransferNoticeServiceImpl.java
...dule/jg/biz/service/impl/JgTransferNoticeServiceImpl.java
+14
-14
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/JgTransferNoticeDto.java
View file @
e6c00c7e
...
@@ -199,4 +199,7 @@ public class JgTransferNoticeDto extends BaseDto {
...
@@ -199,4 +199,7 @@ public class JgTransferNoticeDto extends BaseDto {
@ApiModelProperty
(
value
=
"办理日期"
)
@ApiModelProperty
(
value
=
"办理日期"
)
private
Date
handleDate
;
private
Date
handleDate
;
private
String
noticeReportUrl
;
}
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgTransferNotice.java
View file @
e6c00c7e
...
@@ -283,6 +283,8 @@ public class JgTransferNotice extends BaseEntity {
...
@@ -283,6 +283,8 @@ public class JgTransferNotice extends BaseEntity {
@TableField
(
"next_execute_ids"
)
@TableField
(
"next_execute_ids"
)
private
String
nextExecuteIds
;
private
String
nextExecuteIds
;
@TableField
(
"notice_report_url"
)
private
String
noticeReportUrl
;
@TableField
(
"status"
)
@TableField
(
"status"
)
private
String
status
;
private
String
status
;
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgTransferNoticeMapper.xml
View file @
e6c00c7e
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
</if>
</if>
</if>
</if>
<if
test=
"type == 'supervision'"
>
<if
test=
"type == 'supervision'"
>
AND tjtn.receive_org_code = #{orgCode}
AND tjtn.receive_org_code = #{orgCode}
AND tjtn.instance_id IS NOT NULL
</if>
</if>
<if
test=
"type == 'enterprise'"
>
<if
test=
"type == 'enterprise'"
>
AND tjtn.install_unit_credit_code = #{orgCode}
AND tjtn.install_unit_credit_code = #{orgCode}
...
@@ -89,6 +89,7 @@
...
@@ -89,6 +89,7 @@
tjtn.city_name AS cityName,
tjtn.city_name AS cityName,
tjtn.county_name AS countyName,
tjtn.county_name AS countyName,
tjtn.promoter AS promoter,
tjtn.promoter AS promoter,
tjtn.equ_register_code AS equRegisterCode,
ri.equ_list AS equList,
ri.equ_list AS equList,
ri.equ_category AS equCategory,
ri.equ_category AS equCategory,
ri.EQU_DEFINE AS equDefine,
ri.EQU_DEFINE AS equDefine,
...
...
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/JgTransferNoticeServiceImpl.java
View file @
e6c00c7e
...
@@ -179,9 +179,9 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -179,9 +179,9 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
throw
new
IllegalArgumentException
(
"参数不能为空"
);
throw
new
IllegalArgumentException
(
"参数不能为空"
);
}
}
JgTransferNotice
jg
Maintain
Notice
=
this
.
getById
(
sequenceNbr
);
JgTransferNotice
jg
Transfer
Notice
=
this
.
getById
(
sequenceNbr
);
List
<
Map
<
String
,
Object
>>
informationList
=
jgTransferNoticeMapper
.
queryEquipInformation
(
sequenceNbr
);
List
<
Map
<
String
,
Object
>>
informationList
=
jgTransferNoticeMapper
.
queryEquipInformation
(
sequenceNbr
);
if
(
Objects
.
isNull
(
jg
Maintain
Notice
)
||
CollectionUtils
.
isEmpty
(
informationList
))
{
if
(
Objects
.
isNull
(
jg
Transfer
Notice
)
||
CollectionUtils
.
isEmpty
(
informationList
))
{
throw
new
IllegalArgumentException
(
"移装告知单不存在"
);
throw
new
IllegalArgumentException
(
"移装告知单不存在"
);
}
}
Map
<
String
,
Object
>
maintain
=
informationList
.
get
(
0
);
Map
<
String
,
Object
>
maintain
=
informationList
.
get
(
0
);
...
@@ -195,18 +195,18 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -195,18 +195,18 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
placeholders
.
put
(
"applyNo"
,
getValue
.
apply
(
"applyNo"
));
placeholders
.
put
(
"applyNo"
,
getValue
.
apply
(
"applyNo"
));
placeholders
.
put
(
"productName"
,
getValue
.
apply
(
"productName"
));
placeholders
.
put
(
"productName"
,
getValue
.
apply
(
"productName"
));
placeholders
.
put
(
"equipType"
,
getValue
.
apply
(
"equType"
));
placeholders
.
put
(
"equipType"
,
getValue
.
apply
(
"equType"
));
//
placeholders.put("equipCode", getValue.apply("equRegisterCode"));
placeholders
.
put
(
"equipCode"
,
getValue
.
apply
(
"equRegisterCode"
));
placeholders
.
put
(
"produceCode"
,
getValue
.
apply
(
"produceCode"
));
// TODO: 制造编号
placeholders
.
put
(
"produceCode"
,
getValue
.
apply
(
"produceCode"
));
// TODO: 制造编号
placeholders
.
put
(
"produceUnitName"
,
getValue
.
apply
(
"produceUnitName"
));
placeholders
.
put
(
"produceUnitName"
,
getValue
.
apply
(
"produceUnitName"
));
placeholders
.
put
(
"produceLicenseNum"
,
getValue
.
apply
(
"produceLicenseNum"
));
placeholders
.
put
(
"produceLicenseNum"
,
getValue
.
apply
(
"produceLicenseNum"
));
placeholders
.
put
(
"fullAddress"
,
getValue
.
apply
(
"provinceName"
)
+
getValue
.
apply
(
"cityName"
)
+
getValue
.
apply
(
"countyName"
)
+
getValue
.
apply
(
"address"
));
placeholders
.
put
(
"fullAddress"
,
getValue
.
apply
(
"provinceName"
)
+
getValue
.
apply
(
"cityName"
)
+
getValue
.
apply
(
"countyName"
)
+
getValue
.
apply
(
"address"
));
// placeholders.put("installStartDate", getValue.apply("installStartDate")
);
placeholders
.
put
(
"installStartDate"
,
""
);
// placeholders.put("installType", getValue.apply("installType")); // TODO: 施工类别
placeholders
.
put
(
"installType"
,
""
);
// placeholders.put("installLicenseNo", getValue.apply("installLicenseNo")
);
placeholders
.
put
(
"installLicenseNo"
,
""
);
// placeholders.put("installLicenseExpirationDate", getValue.apply("installLicenseExpirationDate")
);
placeholders
.
put
(
"installLicenseExpirationDate"
,
""
);
// placeholders.put("installLeaderName", getValue.apply("installLeaderName")
);
placeholders
.
put
(
"installLeaderName"
,
""
);
// placeholders.put("installLeaderPhone", getValue.apply("installLeaderPhone")
);
placeholders
.
put
(
"installLeaderPhone"
,
""
);
// placeholders.put("installUnitAddress", getValue.apply("installUnitAddress")); // TODO: 施工单位地址
placeholders
.
put
(
"installUnitAddress"
,
""
);
placeholders
.
put
(
"useUnitName"
,
getValue
.
apply
(
"useUnitName"
));
placeholders
.
put
(
"useUnitName"
,
getValue
.
apply
(
"useUnitName"
));
placeholders
.
put
(
"useUnitLeaderName"
,
getValue
.
apply
(
"safetyManager"
));
placeholders
.
put
(
"useUnitLeaderName"
,
getValue
.
apply
(
"safetyManager"
));
placeholders
.
put
(
"useUnitLeaderPhone"
,
getValue
.
apply
(
"safetyManagerPhone"
));
placeholders
.
put
(
"useUnitLeaderPhone"
,
getValue
.
apply
(
"safetyManagerPhone"
));
...
@@ -218,7 +218,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -218,7 +218,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
// word转pdf
// word转pdf
File
pdfFile
;
File
pdfFile
;
try
{
try
{
pdfFile
=
this
.
wordToPdf
(
"
transfer
-notification-report.ftl"
,
placeholders
);
pdfFile
=
this
.
wordToPdf
(
"
installation
-notification-report.ftl"
,
placeholders
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -234,8 +234,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -234,8 +234,8 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
}
}
// 更新到数据库
// 更新到数据库
// jgMaintain
Notice.setNoticeReportUrl(url);
jgTransfer
Notice
.
setNoticeReportUrl
(
url
);
// this.updateById(jgMaintain
Notice);
this
.
updateById
(
jgTransfer
Notice
);
return
url
;
return
url
;
}
}
...
@@ -669,7 +669,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
...
@@ -669,7 +669,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
jgTransferNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
jgTransferNotice
.
setPromoter
(
reginParams
.
getUserModel
().
getUserId
());
if
(
"0"
.
equals
(
op
))
{
if
(
"0"
.
equals
(
op
))
{
jgTransferNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()));
jgTransferNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_FINISHED
.
getCode
()));
// this.generateMaintainNoticeReport(J
gTransferNotice.getSequenceNbr());
this
.
generateTransferNoticeReport
(
j
gTransferNotice
.
getSequenceNbr
());
}
else
{
}
else
{
jgTransferNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
jgTransferNotice
.
setNoticeStatus
(
String
.
valueOf
(
FlowStatusEnum
.
TO_BE_SUBMITTED
.
getCode
()));
jgTransferNotice
.
setInstanceStatus
(
String
.
valueOf
(
FlowStatusEnum
.
REJECTED
.
getCode
()));
jgTransferNotice
.
setInstanceStatus
(
String
.
valueOf
(
FlowStatusEnum
.
REJECTED
.
getCode
()));
...
...
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