Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
李苗
/
Vion-DevOps
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0b0788a4
authored
Jan 08, 2025
by
HlQ
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[feat] 巡检签收单添加多人签字的字段
[fix] 修复空指针异常
1 parent
b9019fd8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
6 deletions
src/main/java/vion/dto/FormDTO.java
src/main/java/vion/model/Form.java
src/main/java/vion/service/impl/StoreServiceImpl.java
src/main/java/vion/vo/FormVO.java
src/main/java/vion/dto/FormDTO.java
View file @
0b0788a
...
...
@@ -29,7 +29,7 @@ public class FormDTO extends BaseDTO {
/**
* 具体内容
*/
private
String
info
;
private
Object
info
;
/**
* 签字图片
...
...
@@ -37,6 +37,11 @@ public class FormDTO extends BaseDTO {
private
String
signPic
;
/**
* 存放多人签名
*/
private
Object
signJson
;
/**
* 签字时间
*/
private
LocalDateTime
signTime
;
...
...
src/main/java/vion/model/Form.java
View file @
0b0788a
...
...
@@ -48,7 +48,7 @@ public class Form {
* 具体内容
*/
@TableField
(
value
=
"info"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
String
info
;
private
Object
info
;
/**
* 签字图片
...
...
@@ -57,6 +57,12 @@ public class Form {
private
String
signPic
;
/**
* 存放多人签名
*/
@TableField
(
value
=
"sign_json"
,
typeHandler
=
JsonbTypeHandler
.
class
)
private
Object
signJson
;
/**
* 签字时间
*/
@TableField
(
value
=
"sign_time"
)
...
...
src/main/java/vion/service/impl/StoreServiceImpl.java
View file @
0b0788a
...
...
@@ -146,7 +146,7 @@ public class StoreServiceImpl extends MPJBaseServiceImpl<StoreMapper, Store> imp
.
select
(
Contract:
:
getId
,
Contract:
:
getName
,
Contract:
:
getContractNo
,
Contract:
:
getType
,
Contract:
:
getSignDate
,
Contract:
:
getWarrantyPeriod
,
Contract:
:
getFinalDate
,
Contract:
:
getStatus
,
Contract:
:
getSaleName
,
Contract:
:
getCustomerName
,
Contract:
:
getMaintainSdate
,
Contract:
:
getMaintainEdate
)
.
in
(
Contract:
:
getId
,
l
).
list
())
.
map
(
contractList
->
contractList
.
stream
().
collect
(
Collectors
.
toMap
(
Contract:
:
getId
,
Function
.
identity
())))
.
orElse
(
Map
.
of
());
.
orElse
(
Map
Util
.
empty
());
// contractId -> 合同付款约定
var
contractId2CpMap
=
Opt
.
ofEmptyAble
(
contractIdList
)
...
...
@@ -442,7 +442,7 @@ public class StoreServiceImpl extends MPJBaseServiceImpl<StoreMapper, Store> imp
var
contractStoreList
=
contractStoreService
.
lambdaQuery
().
in
(
RContractStore:
:
getStoreId
,
storeIdList
).
list
();
var
contractIdList
=
contractStoreList
.
stream
().
map
(
RContractStore:
:
getContractId
).
toList
();
return
fileService
.
lambdaQuery
()
.
in
(
FileInfo:
:
getSourceId
,
contractIdList
)
.
in
(
FileInfo:
:
getSourceId
,
CollUtil
.
defaultIfEmpty
(
contractIdList
,
List
.
of
(-
1L
))
)
.
in
(
FileInfo:
:
getStoreId
,
-
1L
)
.
in
(
FileInfo:
:
getSourceType
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
33
,
34
)
.
list
();
...
...
@@ -453,7 +453,7 @@ public class StoreServiceImpl extends MPJBaseServiceImpl<StoreMapper, Store> imp
var
contractStoreList
=
contractStoreService
.
lambdaQuery
().
in
(
RContractStore:
:
getStoreId
,
storeIdList
).
list
();
var
contractIdList
=
contractStoreList
.
stream
().
map
(
RContractStore:
:
getContractId
).
toList
();
var
fileList
=
fileService
.
lambdaQuery
()
.
in
(
FileInfo:
:
getSourceId
,
contractIdList
)
.
in
(
FileInfo:
:
getSourceId
,
CollUtil
.
defaultIfEmpty
(
contractIdList
,
List
.
of
(-
1L
))
)
.
in
(
FileInfo:
:
getStoreId
,
-
1L
)
.
in
(
FileInfo:
:
getSourceType
,
7
,
8
,
9
,
10
,
11
,
12
,
13
,
14
,
33
,
34
)
.
list
();
...
...
src/main/java/vion/vo/FormVO.java
View file @
0b0788a
...
...
@@ -32,7 +32,7 @@ public class FormVO {
/**
* 具体内容
*/
private
String
info
;
private
Object
info
;
/**
* 签字图片
...
...
@@ -40,6 +40,11 @@ public class FormVO {
private
String
signPic
;
/**
* 存放多人签名
*/
private
Object
signJson
;
/**
* 签字时间
*/
private
LocalDateTime
signTime
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment