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
f6054a48
Commit
f6054a48
authored
Apr 03, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
放款详情附件修改
parent
d57dec0b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
5 deletions
+25
-5
FinancingInfoDto.java
...ejoin/amos/boot/module/hygf/api/dto/FinancingInfoDto.java
+7
-2
FinancingInfoController.java
...t/module/hygf/biz/controller/FinancingInfoController.java
+2
-0
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+16
-3
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/FinancingInfoDto.java
View file @
f6054a48
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.api.dto;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.api.dto;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.annotation.JSONField
;
import
com.alibaba.fastjson.support.spring.annotation.FastJsonFilter
;
import
com.alibaba.fastjson.support.spring.annotation.FastJsonFilter
;
import
com.fasterxml.jackson.annotation.JsonFormat
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
import
com.yeejoin.amos.boot.biz.common.dto.BaseDto
;
...
@@ -37,13 +38,14 @@ public class FinancingInfoDto extends BaseDto {
...
@@ -37,13 +38,14 @@ public class FinancingInfoDto extends BaseDto {
private
Long
peasantHouseholdId
;
private
Long
peasantHouseholdId
;
@ApiModelProperty
(
value
=
"放款时间"
)
@ApiModelProperty
(
value
=
"放款时间"
)
private
String
disbursementTime
;
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"yyyy-MM-dd"
)
private
Date
disbursementTime
;
@ApiModelProperty
(
value
=
"元"
)
@ApiModelProperty
(
value
=
"元"
)
private
Double
disbursementMoney
;
private
Double
disbursementMoney
;
@ApiModelProperty
(
value
=
"附件"
)
@ApiModelProperty
(
value
=
"附件"
)
private
List
<
Object
>
file
;
private
String
file
;
@ApiModelProperty
(
value
=
"状态"
)
@ApiModelProperty
(
value
=
"状态"
)
private
String
status
;
private
String
status
;
...
@@ -53,4 +55,7 @@ public class FinancingInfoDto extends BaseDto {
...
@@ -53,4 +55,7 @@ public class FinancingInfoDto extends BaseDto {
private
String
instanceId
;
private
String
instanceId
;
@ApiModelProperty
(
value
=
"附件"
)
private
List
<
Object
>
files
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/FinancingInfoController.java
View file @
f6054a48
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.controller;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.bean.BeanUtil
;
import
cn.hutool.core.map.MapBuilder
;
import
cn.hutool.core.map.MapBuilder
;
import
com.alibaba.fastjson.JSON
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseNewUtil
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseUtil
;
import
com.yeejoin.amos.boot.module.hygf.api.util.CommonResponseUtil
;
import
org.springframework.beans.BeanUtils
;
import
org.springframework.beans.BeanUtils
;
...
@@ -62,6 +63,7 @@ public class FinancingInfoController extends BaseController {
...
@@ -62,6 +63,7 @@ public class FinancingInfoController extends BaseController {
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"根据sequenceNbr更新"
,
notes
=
"根据sequenceNbr更新"
)
public
ResponseModel
<
FinancingInfoDto
>
updateBySequenceNbrFinancingInfo
(
@RequestBody
FinancingInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
public
ResponseModel
<
FinancingInfoDto
>
updateBySequenceNbrFinancingInfo
(
@RequestBody
FinancingInfoDto
model
,
@PathVariable
(
value
=
"sequenceNbr"
)
Long
sequenceNbr
)
{
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setSequenceNbr
(
sequenceNbr
);
model
.
setFile
(
JSON
.
toJSONString
(
model
.
getFiles
()));
financingInfoServiceImpl
.
updateWithModel
(
model
);
financingInfoServiceImpl
.
updateWithModel
(
model
);
if
(
null
!=
model
.
getDisbursementMoney
()){
if
(
null
!=
model
.
getDisbursementMoney
()){
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
model
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
model
);
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/FinancingInfoServiceImpl.java
View file @
f6054a48
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
package
com
.
yeejoin
.
amos
.
boot
.
module
.
hygf
.
biz
.
service
.
impl
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSONArray
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.CollectionUtils
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
import
com.baomidou.mybatisplus.core.toolkit.ObjectUtils
;
...
@@ -17,6 +18,8 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.FinancingInfo;
...
@@ -17,6 +18,8 @@ import com.yeejoin.amos.boot.module.hygf.api.entity.FinancingInfo;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.FinancingInfoMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.mapper.FinancingInfoMapper
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IFinancingInfoService
;
import
com.yeejoin.amos.boot.module.hygf.api.service.IFinancingInfoService
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.FinancingInfoDto
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.FinancingInfoDto
;
import
com.yeejoin.amos.boot.module.jxiop.api.entity.FinancingRectificationOrder
;
import
com.yeejoin.amos.boot.module.jxiop.biz.service.impl.FinancingRectificationOrderServiceImpl
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowBatchDTO
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
import
com.yeejoin.amos.feign.workflow.model.ActWorkflowStartDTO
;
import
com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO
;
import
com.yeejoin.amos.feign.workflow.model.ProcessTaskDTO
;
...
@@ -50,6 +53,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
...
@@ -50,6 +53,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
private
WorkflowImpl
workflow
;
private
WorkflowImpl
workflow
;
@Autowired
@Autowired
private
FinancingAuditingServiceImpl
financingAuditingService
;
private
FinancingAuditingServiceImpl
financingAuditingService
;
@Autowired
private
FinancingRectificationOrderServiceImpl
financingRectificationOrderService
;
private
static
String
PROCESSKEY
=
"StationFinancing"
;
private
static
String
PROCESSKEY
=
"StationFinancing"
;
...
@@ -142,7 +147,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
...
@@ -142,7 +147,9 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
@Override
@Override
public
FinancingInfoDto
selectDataInfo
(
Long
peasantHouseholdId
)
{
public
FinancingInfoDto
selectDataInfo
(
Long
peasantHouseholdId
)
{
return
this
.
getBaseMapper
().
selectDataInfo
(
peasantHouseholdId
);
FinancingInfoDto
financingInfoDto
=
this
.
getBaseMapper
().
selectDataInfo
(
peasantHouseholdId
);
financingInfoDto
.
setFiles
(
JSONArray
.
parseArray
(
financingInfoDto
.
getFile
()));
return
financingInfoDto
;
}
}
@Override
@Override
...
@@ -174,7 +181,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
...
@@ -174,7 +181,8 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
}
}
financingAuditingService
.
createWithModel
(
financingAuditingDto
);
financingAuditingService
.
createWithModel
(
financingAuditingDto
);
String
statusName
=
FinancingAuditEnum
.
getNameByCode
(
workflowResultDto
.
getNextNodeKey
());
String
nameByCode
=
FinancingAuditEnum
.
getNameByCode
(
workflowResultDto
.
getNextNodeKey
());
String
statusName
=
nameByCode
==
null
||
nameByCode
.
equals
(
""
)
?
"放款完成"
:
nameByCode
;
LambdaQueryWrapper
<
FinancingInfo
>
info
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
FinancingInfo
>
info
=
new
LambdaQueryWrapper
<>();
info
.
eq
(
FinancingInfo:
:
getPeasantHouseholdId
,
financingAuditing
.
getPeasantHouseholdId
());
info
.
eq
(
FinancingInfo:
:
getPeasantHouseholdId
,
financingAuditing
.
getPeasantHouseholdId
());
...
@@ -184,7 +192,12 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
...
@@ -184,7 +192,12 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto,Finan
this
.
updateById
(
financingInfo
);
this
.
updateById
(
financingInfo
);
if
(
params
.
get
(
"approvalStatus"
).
equals
(
"7"
)){
if
(
params
.
get
(
"approvalStatus"
).
equals
(
"7"
)){
FinancingRectificationOrder
financingRectificationOrder
=
new
FinancingRectificationOrder
();
financingRectificationOrder
.
setRectificationOrderCode
(
String
.
valueOf
(
new
Date
().
getTime
()));
financingRectificationOrder
.
setRectificationStatus
(
"待整改"
);
financingRectificationOrder
.
setRectificationDescription
(
params
.
getOrDefault
(
"rectificationDescription"
,
""
).
toString
());
financingRectificationOrder
.
setPeasantHouseholdId
((
Long
)
params
.
get
(
"peasantHouseholdId"
));
financingRectificationOrderService
.
save
(
financingRectificationOrder
);
}
}
...
...
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