| | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.dto.*; |
| | | import com.by4cloud.platformx.business.entity.Contract; |
| | | import com.by4cloud.platformx.business.entity.PaymentConfirm; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 通过id手动推送合同中心 |
| | | * @param id id |
| | | * 手动推送合同中心 |
| | | * @param dto |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id手动推送合同中心" , description = "通过id手动推送合同中心" ) |
| | | @GetMapping("/pushCenter/{id}" ) |
| | | public R pushCenter(@PathVariable("id" ) Long id) { |
| | | return contractService.pushCenter(id); |
| | | @Operation(summary = "手动推送合同中心" , description = "手动推送合同中心" ) |
| | | @PostMapping("/pushCenter" ) |
| | | public R pushCenter(@RequestBody PushCenterDTO dto) { |
| | | return contractService.pushCenter(dto); |
| | | } |
| | | |
| | | |
| | |
| | | public R list(@ParameterObject Contract contract) { |
| | | return R.ok(contractService.listByScope(Wrappers.<Contract>lambdaQuery().eq(Contract::getContractStatus,2) |
| | | .eq(ObjUtil.isNotNull(contract.getPartyAId()),Contract::getPartyAId,contract.getPartyAId()) |
| | | .orderByDesc(Contract::getCreateTime))); |
| | | } |
| | | |
| | | @GetMapping("/listAssoci") |
| | | public R listAssoci(@ParameterObject Contract contract) { |
| | | return R.ok(contractService.listByScope(Wrappers.<Contract>lambdaQuery().eq(Contract::getContractStatus,2) |
| | | .and(wrapper -> wrapper |
| | | .eq(ObjUtil.isNotNull(contract.getPartyAId()),Contract::getPartyAId,contract.getPartyAId()) |
| | | .or() |
| | | .eq(ObjUtil.isNotNull(contract.getPartyAId()),Contract::getPartyCId,contract.getPartyAId()) |
| | | ) |
| | | .orderByDesc(Contract::getCreateTime))); |
| | | } |
| | | |
| | |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "删除合同-石工泵" , description = "删除合同-石工泵" ) |
| | | @PostMapping("/delContractSgb/{dataId}") |
| | | @GetMapping("/delContractSgb/{dataId}") |
| | | @SysLog("删除合同-石工泵" ) |
| | | public R delContractSgb(@PathVariable String dataId) { |
| | | return contractService.delContractSgb(dataId); |
| | |
| | | return contractService.finallyPdf(attDTO); |
| | | } |
| | | |
| | | @PostMapping("/associationPartyC") |
| | | public R associationPartyC(@RequestBody ContractAssociationPartyCyDTO associationPartyCyDTO) { |
| | | return contractService.associationPartyC(associationPartyCyDTO); |
| | | } |
| | | |
| | | @GetMapping("/getFinallyInfo/{id}") |
| | | public R getFinallyInfo(@PathVariable("id") Long id) { |
| | | return contractService.getFinallyInfo(id); |
| | | } |
| | | |
| | | @Inner(value = false) |
| | | @GetMapping("/erpPush/{id}") |
| | | public R erpPush(@PathVariable("id") Long id) { |
| | | return contractService.erpPush(id); |
| | | } |
| | | |
| | | @GetMapping("/getInvoiceObj/{id}") |
| | | public R getInvoiceObj(@PathVariable("id") Long id) { |
| | | return contractService.getInvoiceObj(id); |
| | | } |
| | | |
| | | /** |
| | | * 新增合同-石工泵 |