Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-fb
Overview
Overview
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
王衍超
cloud-fb
Commits
fe6a233f
Commit
fe6a233f
authored
Apr 20, 2021
by
焦凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
给三个合同卡片的接口添加购砂单位的副本
parent
e2d1d0e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
ContractController.java
.../java/com/xyst/dinas/contract/web/ContractController.java
+21
-0
No files found.
backend/xyst.dinas.contract/src/main/java/com/xyst/dinas/contract/web/ContractController.java
View file @
fe6a233f
...
@@ -62,6 +62,12 @@ public class ContractController {
...
@@ -62,6 +62,12 @@ public class ContractController {
contractService
.
update
(
kObject
);
contractService
.
update
(
kObject
);
return
CommonResult
.
SUCCESS_RESULT
;
return
CommonResult
.
SUCCESS_RESULT
;
}
}
@GetMapping
(
"/sand/user/contractInfo/{contractInfoId}"
)
public
KObject
queryContractInfoForCompany
(
@PathVariable
UUID
contractInfoId
)
{
KObject
contractInfo
=
contractService
.
queryContractInfo
(
contractInfoId
);
return
contractInfo
;
}
@GetMapping
(
"/contractInfo/{contractInfoId}"
)
@GetMapping
(
"/contractInfo/{contractInfoId}"
)
public
KObject
queryContractInfo
(
@PathVariable
UUID
contractInfoId
)
{
public
KObject
queryContractInfo
(
@PathVariable
UUID
contractInfoId
)
{
...
@@ -77,6 +83,12 @@ public class ContractController {
...
@@ -77,6 +83,12 @@ public class ContractController {
return
ResponseObj
.
success
(
"校验成功"
,
result
);
return
ResponseObj
.
success
(
"校验成功"
,
result
);
}
}
@PostMapping
(
"/sand/user/contract/change/check"
)
public
Object
checkChangeAbledForCompany
(
@RequestBody
BaseEntity
contract
)
{
UUID
id
=
UUID
.
fromString
(
contract
.
getId
());
Boolean
result
=
contractService
.
checkChangeAbled
(
id
);
return
ResponseObj
.
success
(
"校验成功"
,
result
);
}
@PostMapping
(
"/contract/change/check"
)
@PostMapping
(
"/contract/change/check"
)
public
Object
checkChangeAbled
(
@RequestBody
BaseEntity
contract
)
{
public
Object
checkChangeAbled
(
@RequestBody
BaseEntity
contract
)
{
UUID
id
=
UUID
.
fromString
(
contract
.
getId
());
UUID
id
=
UUID
.
fromString
(
contract
.
getId
());
...
@@ -84,6 +96,15 @@ public class ContractController {
...
@@ -84,6 +96,15 @@ public class ContractController {
return
ResponseObj
.
success
(
"校验成功"
,
result
);
return
ResponseObj
.
success
(
"校验成功"
,
result
);
}
}
@PostMapping
(
"/sand/user/contract/change/history"
)
public
Object
getChangeHistoryForCompany
(
@RequestBody
BaseEntity
contract
)
{
UUID
id
=
UUID
.
fromString
(
contract
.
getId
());
List
<
KObject
>
result
=
contractService
.
getChangeHistory
(
id
);
if
(
null
==
result
||
result
.
size
()<=
0
){
return
JSONObjectUtils
.
toJson
(
new
ArrayList
<
KObject
>()).
toString
();
}
return
JSONObjectUtils
.
toJson
(
result
).
toString
();
}
@PostMapping
(
"/contract/change/history"
)
@PostMapping
(
"/contract/change/history"
)
public
Object
getChangeHistory
(
@RequestBody
BaseEntity
contract
)
{
public
Object
getChangeHistory
(
@RequestBody
BaseEntity
contract
)
{
UUID
id
=
UUID
.
fromString
(
contract
.
getId
());
UUID
id
=
UUID
.
fromString
(
contract
.
getId
());
...
...
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