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
ae86d535
Commit
ae86d535
authored
Aug 22, 2023
by
tangwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
7b204e5a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
2 deletions
+13
-2
HouseholdContractServiceImpl.java
...e/hygf/biz/service/impl/HouseholdContractServiceImpl.java
+2
-2
QiyuesuoServiceImpl.java
...oot/module/hygf/biz/service/impl/QiyuesuoServiceImpl.java
+11
-0
No files found.
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/HouseholdContractServiceImpl.java
View file @
ae86d535
...
@@ -43,9 +43,9 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
...
@@ -43,9 +43,9 @@ public class HouseholdContractServiceImpl extends BaseService<HouseholdContractD
// @Value("${qiyuesuo.category}")
// @Value("${qiyuesuo.category}")
String
category
=
"智信能源合同"
;
String
category
=
"智信能源合同"
;
// @Value("${qiyuesuo.companyTenantName}")
// @Value("${qiyuesuo.companyTenantName}")
String
companyTenantName
=
"智信能源科技有限公司
-测试
"
;
String
companyTenantName
=
"智信能源科技有限公司"
;
//@Value("${qiyuesuo.companyUsername}")
//@Value("${qiyuesuo.companyUsername}")
String
companyUsername
=
"
唐伟
"
;
String
companyUsername
=
"
于鹏
"
;
@Value
(
"${qiyuesuo.companyContact}"
)
@Value
(
"${qiyuesuo.companyContact}"
)
String
companyContact
;
String
companyContact
;
...
...
amos-boot-system-jxiop/amos-boot-module-hygf-biz/src/main/java/com/yeejoin/amos/boot/module/hygf/biz/service/impl/QiyuesuoServiceImpl.java
View file @
ae86d535
...
@@ -138,6 +138,7 @@ public class QiyuesuoServiceImpl {
...
@@ -138,6 +138,7 @@ public class QiyuesuoServiceImpl {
signatory2
.
setReceiver
(
new
User
(
companyUsername
,
companyContact
,
"MOBILE"
));
signatory2
.
setReceiver
(
new
User
(
companyUsername
,
companyContact
,
"MOBILE"
));
signatory2
.
setSerialNo
(
2
);
signatory2
.
setSerialNo
(
2
);
Action
action
=
new
Action
(
"COMPANY"
,
0
);
Action
action
=
new
Action
(
"COMPANY"
,
0
);
signatory2
.
addAction
(
action
);
signatory2
.
addAction
(
action
);
// 设置签署方
// 设置签署方
contract
.
addSignatory
(
signatory1
);
contract
.
addSignatory
(
signatory1
);
...
@@ -145,10 +146,15 @@ public class QiyuesuoServiceImpl {
...
@@ -145,10 +146,15 @@ public class QiyuesuoServiceImpl {
// 创建合同
// 创建合同
ContractDraftRequest
request
=
new
ContractDraftRequest
(
contract
);
ContractDraftRequest
request
=
new
ContractDraftRequest
(
contract
);
logger
.
info
(
"创建草稿合同调用前"
+
JSON
.
toJSONString
(
request
));
String
response
=
sdkClient
.
service
(
request
);
String
response
=
sdkClient
.
service
(
request
);
SdkResponse
<
Contract
>
responseObj
=
JSONUtils
.
toQysResponse
(
response
,
Contract
.
class
);
SdkResponse
<
Contract
>
responseObj
=
JSONUtils
.
toQysResponse
(
response
,
Contract
.
class
);
// 返回结果
// 返回结果
Contract
result
=
new
Contract
();
Contract
result
=
new
Contract
();
logger
.
info
(
"创建草稿合同调用后"
+
JSON
.
toJSONString
(
responseObj
));
if
(
responseObj
.
getCode
()
==
0
)
{
if
(
responseObj
.
getCode
()
==
0
)
{
result
=
responseObj
.
getResult
();
result
=
responseObj
.
getResult
();
logger
.
info
(
JSON
.
toJSONString
(
responseObj
));
logger
.
info
(
JSON
.
toJSONString
(
responseObj
));
...
@@ -205,8 +211,11 @@ public class QiyuesuoServiceImpl {
...
@@ -205,8 +211,11 @@ public class QiyuesuoServiceImpl {
logger
.
info
(
"合同参数"
+
JSON
.
toJSONString
(
params
));
logger
.
info
(
"合同参数"
+
JSON
.
toJSONString
(
params
));
DocumentAddByTemplateRequest
request
=
new
DocumentAddByTemplateRequest
(
contractId
,
DocumentAddByTemplateRequest
request
=
new
DocumentAddByTemplateRequest
(
contractId
,
emplateId
,
params
,
subject
);
emplateId
,
params
,
subject
);
logger
.
info
(
"添加合同文档前"
,
JSON
.
toJSONString
(
request
));
String
response
=
sdkClient
.
service
(
request
);
String
response
=
sdkClient
.
service
(
request
);
SdkResponse
<
DocumentAddResult
>
responseObj
=
JSONUtils
.
toQysResponse
(
response
,
DocumentAddResult
.
class
);
SdkResponse
<
DocumentAddResult
>
responseObj
=
JSONUtils
.
toQysResponse
(
response
,
DocumentAddResult
.
class
);
logger
.
info
(
"添加合同文档后"
,
JSON
.
toJSONString
(
responseObj
));
DocumentAddResult
result
=
null
;
DocumentAddResult
result
=
null
;
if
(
responseObj
.
getCode
()
==
0
)
{
if
(
responseObj
.
getCode
()
==
0
)
{
result
=
responseObj
.
getResult
();
result
=
responseObj
.
getResult
();
...
@@ -224,8 +233,10 @@ public class QiyuesuoServiceImpl {
...
@@ -224,8 +233,10 @@ public class QiyuesuoServiceImpl {
// 发起合同
// 发起合同
SdkResponse
<
Object
>
responseObj
=
null
;
SdkResponse
<
Object
>
responseObj
=
null
;
ContractSendRequest
request
=
new
ContractSendRequest
(
contractId
,
stampers
);
ContractSendRequest
request
=
new
ContractSendRequest
(
contractId
,
stampers
);
logger
.
info
(
"发起合同前"
,
JSON
.
toJSONString
(
request
));
String
response
=
sdkClient
.
service
(
request
);
String
response
=
sdkClient
.
service
(
request
);
responseObj
=
JSONUtils
.
toQysResponse
(
response
);
responseObj
=
JSONUtils
.
toQysResponse
(
response
);
logger
.
info
(
"发起合同后"
,
JSON
.
toJSONString
(
responseObj
));
if
(
responseObj
.
getCode
()
==
0
)
{
if
(
responseObj
.
getCode
()
==
0
)
{
logger
.
info
(
"合同发起成功"
);
logger
.
info
(
"合同发起成功"
);
}
else
{
}
else
{
...
...
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