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
4eec9180
Commit
4eec9180
authored
Jul 05, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复发货详情bug
parent
f462b681
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
26 deletions
+14
-26
HygfReplenishment.java
...n/amos/boot/module/hygf/api/entity/HygfReplenishment.java
+3
-2
PreparationMoney.java
...in/amos/boot/module/hygf/api/entity/PreparationMoney.java
+2
-1
PreparationMoneyServiceImpl.java
...le/hygf/biz/service/impl/PreparationMoneyServiceImpl.java
+9
-23
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HygfReplenishment.java
View file @
4eec9180
...
@@ -10,6 +10,7 @@ import lombok.Value;
...
@@ -10,6 +10,7 @@ import lombok.Value;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
/**
/**
*
*
...
@@ -20,7 +21,7 @@ import java.util.List;
...
@@ -20,7 +21,7 @@ import java.util.List;
@Data
@Data
@EqualsAndHashCode
(
callSuper
=
true
)
@EqualsAndHashCode
(
callSuper
=
true
)
@Accessors
(
chain
=
true
)
@Accessors
(
chain
=
true
)
@TableName
(
"hygf_replenishment"
)
@TableName
(
value
=
"hygf_replenishment"
,
autoResultMap
=
true
)
public
class
HygfReplenishment
extends
BaseEntity
{
public
class
HygfReplenishment
extends
BaseEntity
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
...
@@ -41,6 +42,6 @@ public class HygfReplenishment extends BaseEntity {
...
@@ -41,6 +42,6 @@ public class HygfReplenishment extends BaseEntity {
* 补货文件
* 补货文件
*/
*/
@TableField
(
value
=
"file"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
value
=
"file"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
file
;
private
List
<
Map
>
file
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/PreparationMoney.java
View file @
4eec9180
...
@@ -151,7 +151,8 @@ public class PreparationMoney extends BaseEntity {
...
@@ -151,7 +151,8 @@ public class PreparationMoney extends BaseEntity {
private
List
<
PreparationMoneyLog
>
preparationMoneyLog
;
//发货单流水
private
List
<
PreparationMoneyLog
>
preparationMoneyLog
;
//发货单流水
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
HygfReplenishmentDto
>
files
;
//发货单流水
private
List
<
HygfReplenishment
>
files
;
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
String
instanceId
;
//发货单流水
private
String
instanceId
;
//发货单流水
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/PreparationMoneyServiceImpl.java
View file @
4eec9180
...
@@ -190,19 +190,13 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
...
@@ -190,19 +190,13 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
List
<
DocumentStation
>
li
=
documentStationMapper
.
selectList
(
q
);
List
<
DocumentStation
>
li
=
documentStationMapper
.
selectList
(
q
);
preparationMoney
.
setPeasantHouseholdId
(
li
);
preparationMoney
.
setPeasantHouseholdId
(
li
);
List
<
HygfReplenishment
>
hygfReplenishments
=
new
ArrayList
<>();
List
<
HygfReplenishmentDto
>
hygfReplenishmentDtos
=
hygfReplenishmentMapper
.
selectData
(
sequenceNbr
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishmentDtos
)
&&
!
hygfReplenishmentDtos
.
isEmpty
()
){
LambdaQueryWrapper
<
HygfReplenishment
>
files
=
new
LambdaQueryWrapper
<>();
files
.
eq
(
HygfReplenishment:
:
getPreparationMoneyId
,
sequenceNbr
);
List
<
HygfReplenishment
>
hygfReplenishments1
=
hygfReplenishmentMapper
.
selectList
(
files
);
hygfReplenishmentDtos
.
forEach
(
e
->{
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishments1
)
&&
!
hygfReplenishments1
.
isEmpty
()
){
HygfReplenishment
hygfReplenishment
=
new
HygfReplenishment
();
preparationMoney
.
setFiles
(
hygfReplenishments1
);
BeanUtils
.
copyProperties
(
e
,
hygfReplenishment
);
hygfReplenishment
.
setFile
(
JSON
.
parseArray
(
e
.
getFile
()));
hygfReplenishments
.
add
(
hygfReplenishment
);
});
preparationMoney
.
setFiles
(
hygfReplenishmentDtos
);
}
}
return
preparationMoney
;
return
preparationMoney
;
...
@@ -321,22 +315,14 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
...
@@ -321,22 +315,14 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
Map
<
String
,
Object
>
map2
=
Bean
.
BeantoMap
(
preparationMoney
);
Map
<
String
,
Object
>
map2
=
Bean
.
BeantoMap
(
preparationMoney
);
List
<
HygfReplenishment
>
hygfReplenishments
=
new
ArrayList
<>();
LambdaQueryWrapper
<
HygfReplenishment
>
files
=
new
LambdaQueryWrapper
<>();
List
<
HygfReplenishmentDto
>
hygfReplenishmentDtos
=
hygfReplenishmentMapper
.
selectData
(
Long
.
valueOf
(
sequenceNbr
));
files
.
eq
(
HygfReplenishment:
:
getPreparationMoneyId
,
sequenceNbr
);
List
<
HygfReplenishment
>
hygfReplenishments
=
hygfReplenishmentMapper
.
selectList
(
files
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishmentDtos
)
&&
!
hygfReplenishmentDtos
.
isEmpty
()
)
{
hygfReplenishmentDtos
.
forEach
(
e
->
{
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishments
)
&&
!
hygfReplenishments
.
isEmpty
()
){
HygfReplenishment
hygfReplenishment
=
new
HygfReplenishment
();
BeanUtils
.
copyProperties
(
e
,
hygfReplenishment
);
hygfReplenishment
.
setFile
(
JSON
.
parseArray
(
e
.
getFile
()));
hygfReplenishments
.
add
(
hygfReplenishment
);
});
map2
.
put
(
"files"
,
hygfReplenishments
);
map2
.
put
(
"files"
,
hygfReplenishments
);
}
}
map
.
put
(
"preparationMoney"
,
map2
);
map
.
put
(
"preparationMoney"
,
map2
);
map
.
put
(
"designInformation"
,
designInformation
);
map
.
put
(
"designInformation"
,
designInformation
);
Map
<
String
,
Object
>
map1
=
new
HashMap
<>();
Map
<
String
,
Object
>
map1
=
new
HashMap
<>();
...
...
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