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
a42afe0a
Commit
a42afe0a
authored
Jul 05, 2024
by
chenzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复发货单详情接口
parent
4afaaf13
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
8 deletions
+29
-8
HygfReplenishmentDto.java
...n/amos/boot/module/hygf/api/dto/HygfReplenishmentDto.java
+2
-1
HygfReplenishment.java
...n/amos/boot/module/hygf/api/entity/HygfReplenishment.java
+1
-1
PreparationMoney.java
...in/amos/boot/module/hygf/api/entity/PreparationMoney.java
+2
-1
PreparationMoneyServiceImpl.java
...le/hygf/biz/service/impl/PreparationMoneyServiceImpl.java
+24
-5
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/dto/HygfReplenishmentDto.java
View file @
a42afe0a
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
...
@@ -6,6 +6,7 @@ import com.yeejoin.amos.boot.biz.common.dto.BaseDto;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
/**
/**
*
*
...
@@ -28,6 +29,6 @@ public class HygfReplenishmentDto extends BaseDto {
...
@@ -28,6 +29,6 @@ public class HygfReplenishmentDto extends BaseDto {
private
String
comment
;
private
String
comment
;
@ApiModelProperty
(
value
=
"补货文件"
)
@ApiModelProperty
(
value
=
"补货文件"
)
private
String
file
;
private
List
<
Object
>
file
;
}
}
amos-boot-system-jxiop/amos-boot-module-hygf-api/src/main/java/com/yeejoin/amos/boot/module/hygf/api/entity/HygfReplenishment.java
View file @
a42afe0a
...
@@ -41,6 +41,6 @@ public class HygfReplenishment extends BaseEntity {
...
@@ -41,6 +41,6 @@ public class HygfReplenishment extends BaseEntity {
* 补货文件
* 补货文件
*/
*/
@TableField
(
value
=
"file"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
@TableField
(
value
=
"file"
,
typeHandler
=
FastjsonTypeHandler
.
class
)
private
List
<
Object
>
file
;
private
String
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 @
a42afe0a
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
...
@@ -4,6 +4,7 @@ import com.baomidou.mybatisplus.annotation.TableField;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.baomidou.mybatisplus.extension.handlers.FastjsonTypeHandler
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.biz.common.entity.BaseEntity
;
import
com.yeejoin.amos.boot.module.hygf.api.dto.HygfReplenishmentDto
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
lombok.experimental.Accessors
;
import
lombok.experimental.Accessors
;
...
@@ -150,7 +151,7 @@ public class PreparationMoney extends BaseEntity {
...
@@ -150,7 +151,7 @@ public class PreparationMoney extends BaseEntity {
private
List
<
PreparationMoneyLog
>
preparationMoneyLog
;
//发货单流水
private
List
<
PreparationMoneyLog
>
preparationMoneyLog
;
//发货单流水
@TableField
(
exist
=
false
)
@TableField
(
exist
=
false
)
private
List
<
HygfReplenishment
>
files
;
//发货单流水
private
List
<
HygfReplenishment
Dto
>
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 @
a42afe0a
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.service.impl;
...
@@ -2,6 +2,7 @@ package com.yeejoin.amos.boot.module.hygf.biz.service.impl;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
cn.hutool.core.collection.CollectionUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONArray
;
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.conditions.query.QueryWrapper
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
...
@@ -189,11 +190,20 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
...
@@ -189,11 +190,20 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
List
<
DocumentStation
>
li
=
documentStationMapper
.
selectList
(
q
);
List
<
DocumentStation
>
li
=
documentStationMapper
.
selectList
(
q
);
preparationMoney
.
setPeasantHouseholdId
(
li
);
preparationMoney
.
setPeasantHouseholdId
(
li
);
Lambda
UpdateWrapper
<
HygfReplenishment
>
h
=
new
LambdaUpdate
Wrapper
<>();
Lambda
QueryWrapper
<
HygfReplenishment
>
h
=
new
LambdaQuery
Wrapper
<>();
h
.
eq
(
HygfReplenishment:
:
getPreparationMoneyId
,
sequenceNbr
);
h
.
eq
(
HygfReplenishment:
:
getPreparationMoneyId
,
sequenceNbr
);
List
<
HygfReplenishment
>
hygfReplenishments
=
hygfReplenishmentMapper
.
selectList
(
h
);
List
<
HygfReplenishment
>
hygfReplenishments
=
hygfReplenishmentMapper
.
selectList
(
h
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishments
)
&&
hygfReplenishments
.
size
()>
0
){
List
<
HygfReplenishmentDto
>
hygfReplenishmentDtos
=
new
ArrayList
<>();
preparationMoney
.
setFiles
(
hygfReplenishments
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishments
)
&&
!
hygfReplenishments
.
isEmpty
()
){
hygfReplenishments
.
forEach
(
e
->{
HygfReplenishmentDto
hygfReplenishmentDto
=
new
HygfReplenishmentDto
();
BeanUtils
.
copyProperties
(
e
,
hygfReplenishmentDto
);
hygfReplenishmentDto
.
setFile
(
JSON
.
parseArray
(
e
.
getFile
()));
hygfReplenishmentDtos
.
add
(
hygfReplenishmentDto
);
});
preparationMoney
.
setFiles
(
hygfReplenishmentDtos
);
}
}
return
preparationMoney
;
return
preparationMoney
;
...
@@ -314,8 +324,17 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
...
@@ -314,8 +324,17 @@ public class PreparationMoneyServiceImpl extends BaseService<PreparationMoneyDto
LambdaUpdateWrapper
<
HygfReplenishment
>
h
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
HygfReplenishment
>
h
=
new
LambdaUpdateWrapper
<>();
h
.
eq
(
HygfReplenishment:
:
getPreparationMoneyId
,
sequenceNbr
);
h
.
eq
(
HygfReplenishment:
:
getPreparationMoneyId
,
sequenceNbr
);
List
<
HygfReplenishment
>
hygfReplenishments
=
hygfReplenishmentMapper
.
selectList
(
h
);
List
<
HygfReplenishment
>
hygfReplenishments
=
hygfReplenishmentMapper
.
selectList
(
h
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishments
)
&&
hygfReplenishments
.
size
()>
0
){
List
<
HygfReplenishmentDto
>
hygfReplenishmentDtos
=
new
ArrayList
<>();
map2
.
put
(
"files"
,
hygfReplenishments
);
if
(
CollectionUtil
.
isNotEmpty
(
hygfReplenishments
)
&&
!
hygfReplenishments
.
isEmpty
()
){
hygfReplenishments
.
forEach
(
e
->{
HygfReplenishmentDto
hygfReplenishmentDto
=
new
HygfReplenishmentDto
();
BeanUtils
.
copyProperties
(
e
,
hygfReplenishmentDto
);
hygfReplenishmentDto
.
setFile
(
JSON
.
parseArray
(
e
.
getFile
()));
hygfReplenishmentDtos
.
add
(
hygfReplenishmentDto
);
});
map2
.
put
(
"files"
,
hygfReplenishmentDtos
);
}
}
map
.
put
(
"preparationMoney"
,
map2
);
map
.
put
(
"preparationMoney"
,
map2
);
...
...
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