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
e0f36b11
Commit
e0f36b11
authored
Dec 19, 2023
by
yangyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(改造告知):接口测试问题修复
parent
ea4c8999
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
38 additions
and
13 deletions
+38
-13
JgReformNoticeDto.java
...eejoin/amos/boot/module/jg/api/dto/JgReformNoticeDto.java
+14
-5
JgReformNotice.java
...eejoin/amos/boot/module/jg/api/entity/JgReformNotice.java
+16
-2
JgReformByWorkFlowController.java
...odule/jg/biz/controller/JgReformByWorkFlowController.java
+2
-2
JgReformNoticeController.java
...ot/module/jg/biz/controller/JgReformNoticeController.java
+1
-1
JgReformNoticeServiceImpl.java
...module/jg/biz/service/impl/JgReformNoticeServiceImpl.java
+5
-3
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/JgReformNoticeDto.java
View file @
e0f36b11
...
...
@@ -2,6 +2,8 @@ package com.yeejoin.amos.boot.module.jg.api.dto;
import
com.alibaba.fastjson.JSONObject
;
import
com.baomidou.mybatisplus.annotation.TableField
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
...
@@ -91,6 +93,7 @@ public class JgReformNoticeDto extends BaseDto {
private
String
address
;
@ApiModelProperty
(
value
=
"计划施工日期"
)
@JsonFormat
(
pattern
=
"yyyy-MM-dd"
)
private
Date
planDate
;
@ApiModelProperty
(
value
=
"接收机构单位代码"
)
...
...
@@ -121,10 +124,12 @@ public class JgReformNoticeDto extends BaseDto {
private
String
entrustingUnitName
;
@ApiModelProperty
(
value
=
"委托书附件"
)
private
JSONObject
powerOfAttorney
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
JSONObject
>
powerOfAttorney
;
@ApiModelProperty
(
value
=
"施工合同附件"
)
private
JSONObject
constructionContract
;
@TableField
(
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
JSONObject
>
constructionContract
;
@ApiModelProperty
(
value
=
"施工合同是否本单位与甲方直接签署"
)
private
String
isSignedWithA
;
...
...
@@ -167,7 +172,11 @@ public class JgReformNoticeDto extends BaseDto {
+
(
StringUtils
.
isEmpty
(
this
.
countyName
)
?
""
:
this
.
countyName
)
+
(
StringUtils
.
isEmpty
(
this
.
address
)
?
""
:
this
.
address
);
}
//
// @ApiModelProperty (value = "设备注册代码")
// private String equRegisterCode;
@ApiModelProperty
(
value
=
"设备使用地点-街道(镇)"
)
private
String
factoryUseSiteStreet
;
@ApiModelProperty
(
value
=
"设备使用地点-街道(镇)"
)
private
String
streetName
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/java/com/yeejoin/amos/boot/module/jg/api/entity/JgReformNotice.java
View file @
e0f36b11
...
...
@@ -10,6 +10,7 @@ import lombok.Data;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.List
;
/**
* 改造告知
...
...
@@ -209,13 +210,13 @@ public class JgReformNotice extends BaseEntity {
* 委托书附件
*/
@TableField
(
value
=
"power_of_attorney"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
JSONObject
powerOfAttorney
;
private
List
<
JSONObject
>
powerOfAttorney
;
/**
* 施工合同附件
*/
@TableField
(
value
=
"construction_contract"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
JSONObject
constructionContract
;
private
List
<
JSONObject
>
constructionContract
;
/**
* 施工合同是否本单位与甲方直接签署
...
...
@@ -262,4 +263,17 @@ public class JgReformNotice extends BaseEntity {
@TableField
(
"is_xixian"
)
private
String
isXixian
;
/**
* * 设备使用地点-街道(镇)
* */
@TableField
(
value
=
"\"factory_use_site_street\""
)
private
String
factoryUseSiteStreet
;
/**
* * 设备使用地点-街道(镇)-名称
* */
@TableField
(
value
=
"\"street_name\""
)
private
String
streetName
;
}
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgReformByWorkFlowController.java
View file @
e0f36b11
...
...
@@ -57,7 +57,7 @@ public class JgReformByWorkFlowController {
@PostMapping
(
value
=
"/cancel"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"改造告知撤销"
,
notes
=
"改造告知撤销"
)
public
ResponseModel
<
JgReformNoticeDto
>
cancel
(
@RequestBody
Map
<
String
,
Object
>
model
)
{
JgReformNoticeDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"
installation
Info"
)),
JgReformNoticeDto
.
class
,
true
);
JgReformNoticeDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"
reform
Info"
)),
JgReformNoticeDto
.
class
,
true
);
if
(
Objects
.
isNull
(
installationInfo
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
...
...
@@ -76,7 +76,7 @@ public class JgReformByWorkFlowController {
public
ResponseModel
<
JgReformNoticeDto
>
accept
(
@RequestBody
Map
<
String
,
Object
>
model
,
String
op
)
{
// TODO 受理改造告知流程
LinkedHashMap
model1
=
(
LinkedHashMap
)
model
.
get
(
"model"
);
LinkedHashMap
installationInfo
=
(
LinkedHashMap
)
model1
.
get
(
"
installation
Info"
);
LinkedHashMap
installationInfo
=
(
LinkedHashMap
)
model1
.
get
(
"
reform
Info"
);
JgReformNoticeDto
JgReformNoticeDto
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
installationInfo
),
JgReformNoticeDto
.
class
);
jgReformNoticeService
.
accept
(
JgReformNoticeDto
,
op
);
return
ResponseHelper
.
buildResponse
(
null
);
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/JgReformNoticeController.java
View file @
e0f36b11
...
...
@@ -67,7 +67,7 @@ public class JgReformNoticeController extends BaseController {
@PutMapping
(
value
=
"/update"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新改造告知"
,
notes
=
"根据sequenceNbr更新改造告知"
)
public
ResponseModel
<
JgReformNoticeDto
>
updateBySequenceNbrJgReformNotice
(
@RequestParam
String
submitType
,
@RequestBody
Map
<
String
,
Object
>
model
,
@RequestParam
(
value
=
"op"
,
required
=
false
)
String
op
)
{
JgReformNoticeDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"
installation
Info"
)),
JgReformNoticeDto
.
class
,
true
);
JgReformNoticeDto
installationInfo
=
BeanUtil
.
mapToBean
(((
LinkedHashMap
)
model
.
get
(
"
reform
Info"
)),
JgReformNoticeDto
.
class
,
true
);
if
(
Objects
.
isNull
(
installationInfo
))
{
throw
new
IllegalArgumentException
(
"参数installationInfo不能为空"
);
}
...
...
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/JgReformNoticeServiceImpl.java
View file @
e0f36b11
...
...
@@ -77,7 +77,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
private
static
final
String
SUBMIT_TYPE_FLOW
=
"1"
;
private
static
final
String
PROCESS_DEFINITION_KEY
=
"renovationNotice"
;
private
static
final
String
TABLE_PAGE_ID
=
"
1736649208330481666
"
;
private
static
final
String
TABLE_PAGE_ID
=
"
reformNoticeAdd
"
;
// 西安行政区划code
...
...
@@ -163,7 +163,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
}
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"installationInfo"
,
installationInfo
);
this
.
put
(
TABLE_PAGE_ID
,
installationInfo
);
this
.
put
(
"equipmentInfo"
,
equipmentInfos
.
get
(
0
));
}};
}
...
...
@@ -497,7 +497,9 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
// if (!ValidationUtil.isEmpty(model.getInstallContractAttachmentList())) {
// model.setInstallContractAttachment(JSON.toJSONString(model.getInstallContractAttachmentList()));
// }
if
(
model
==
null
)
{
return
;
}
// 分割省市区字段
String
province
=
model
.
getProvince
();
if
(!
ObjectUtils
.
isEmpty
(
province
))
{
...
...
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