Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-zx-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Jobs
Commits
Open sidebar
项目统一框架
一体化_户用光伏项目代码
amos-boot-zx-biz
Commits
ff62fff1
Commit
ff62fff1
authored
Sep 06, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批量放款录入接口
parent
54f896e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
2 deletions
+52
-2
FinancingInfoController.java
...t/module/hygf/biz/controller/FinancingInfoController.java
+23
-0
FinancingInfoServiceImpl.java
...odule/hygf/biz/service/impl/FinancingInfoServiceImpl.java
+29
-2
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/controller/FinancingInfoController.java
View file @
ff62fff1
...
@@ -12,6 +12,8 @@ import io.swagger.annotations.ApiOperation;
...
@@ -12,6 +12,8 @@ import io.swagger.annotations.ApiOperation;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
com.yeejoin.amos.boot.biz.common.controller.BaseController
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
...
@@ -100,6 +102,27 @@ public class FinancingInfoController extends BaseController {
...
@@ -100,6 +102,27 @@ public class FinancingInfoController extends BaseController {
return
ResponseHelper
.
buildResponse
(
model
);
return
ResponseHelper
.
buildResponse
(
model
);
}
}
/**
* 根据sequenceNbr更新
*
* @param sequenceNbr 主键
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@PutMapping
(
value
=
"/updateMoney"
)
@ApiOperation
(
httpMethod
=
"PUT"
,
value
=
"批量放款录入"
,
notes
=
"批量放款录入"
)
@Transactional
public
ResponseModel
<
FinancingInfoDto
>
updateMoney
(
@RequestParam
List
<
Long
>
stationIds
,
@RequestParam
Double
money
,
@RequestParam
Date
date
)
{
financingInfoServiceImpl
.
upDateMoney
(
stationIds
,
money
,
date
);
return
ResponseHelper
.
buildResponse
();
}
/**
/**
* 根据sequenceNbr删除
* 根据sequenceNbr删除
*
*
...
...
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 @
ff62fff1
...
@@ -374,10 +374,10 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
...
@@ -374,10 +374,10 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
public
void
sendBack
(
Long
peasantHouseholdId
){
public
void
sendBack
(
Long
peasantHouseholdId
){
//
删除
投融资表数据
//投融资表数据
LambdaUpdateWrapper
<
FinancingInfo
>
financingUp
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
FinancingInfo
>
financingUp
=
new
LambdaUpdateWrapper
<>();
financingUp
.
eq
(
FinancingInfo:
:
getPeasantHouseholdId
,
peasantHouseholdId
);
financingUp
.
eq
(
FinancingInfo:
:
getPeasantHouseholdId
,
peasantHouseholdId
);
financingUp
.
set
(
BaseEntity:
:
getIsDelete
,
true
);
financingUp
.
set
(
FinancingInfo:
:
getStatus
,
"重新验收"
);
this
.
update
(
null
,
financingUp
);
this
.
update
(
null
,
financingUp
);
//删除验收审核数据
//删除验收审核数据
...
@@ -409,4 +409,30 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
...
@@ -409,4 +409,30 @@ public class FinancingInfoServiceImpl extends BaseService<FinancingInfoDto, Fina
}
}
public
void
upDateMoney
(
List
<
Long
>
stationIds
,
Double
money
,
Date
date
)
{
LambdaQueryWrapper
<
FinancingInfo
>
up
=
new
LambdaQueryWrapper
<>();
up
.
in
(
FinancingInfo:
:
getPeasantHouseholdId
,
stationIds
);
List
<
FinancingInfo
>
financingInfos
=
this
.
getBaseMapper
().
selectList
(
up
);
financingInfos
.
forEach
(
e
->{
e
.
setDisbursementMoney
(
money
);
e
.
setDisbursementTime
(
date
);
this
.
getBaseMapper
().
updateById
(
e
);
LambdaQueryWrapper
<
FinancingAuditing
>
query
=
new
LambdaQueryWrapper
<>();
query
.
eq
(
FinancingAuditing:
:
getPeasantHouseholdId
,
e
.
getPeasantHouseholdId
());
query
.
orderByDesc
(
BaseEntity:
:
getRecDate
);
query
.
last
(
"limit 1"
);
FinancingAuditing
financingAuditing
=
financingAuditingService
.
getBaseMapper
().
selectOne
(
query
);
Map
<
String
,
Object
>
map
=
BeanUtil
.
beanToMap
(
e
);
map
.
put
(
"approvalStatus"
,
"0"
);
map
.
put
(
"instanceId"
,
financingAuditing
.
getInstanceId
());
this
.
execueFlow
(
map
);
});
}
}
}
\ 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