Commit fe6a233f by 焦凯

给三个合同卡片的接口添加购砂单位的副本

parent e2d1d0e7
......@@ -62,6 +62,12 @@ public class ContractController {
contractService.update(kObject);
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}")
public KObject queryContractInfo(@PathVariable UUID contractInfoId) {
......@@ -77,6 +83,12 @@ public class ContractController {
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")
public Object checkChangeAbled(@RequestBody BaseEntity contract) {
UUID id = UUID.fromString(contract.getId());
......@@ -84,6 +96,15 @@ public class ContractController {
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")
public Object getChangeHistory(@RequestBody BaseEntity contract) {
UUID id = UUID.fromString(contract.getId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment