| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.toolkit.Wrappers; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.by4cloud.platformx.business.dto.ContracQueryDTO; |
| | | import com.by4cloud.platformx.business.dto.ContractAddDTO; |
| | | import com.by4cloud.platformx.business.dto.ContractUpdateDTO; |
| | | import com.by4cloud.platformx.business.dto.DelayOutApprovalDTO; |
| | | import com.by4cloud.platformx.business.dto.*; |
| | | import com.by4cloud.platformx.business.entity.Contract; |
| | | import com.by4cloud.platformx.common.core.util.R; |
| | | import com.by4cloud.platformx.common.data.mybatis.BaseModel; |
| | |
| | | * list 下拉 |
| | | */ |
| | | @GetMapping("/list") |
| | | public R list() { |
| | | return R.ok(contractService.list(Wrappers.<Contract>lambdaQuery().eq(Contract::getContractStatus,2).orderByDesc(Contract::getCreateTime))); |
| | | 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))); |
| | | } |
| | | |
| | | /** |
| | |
| | | contractService.exportContractTFGSGYPMMWord(id,response); |
| | | } |
| | | |
| | | /** |
| | | * 根据模版生成word石煤机工业品买卖合同 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "根据模版生成word合同" , description = "根据模版生成word合同" ) |
| | | @GetMapping("/exportContractSMJGYPMMWord/{id}" ) |
| | | public void exportContractSMJGYPMMWord(@PathVariable("id" ) Long id, HttpServletResponse response) { |
| | | contractService.exportContractSMJGYPMMWord(id,response); |
| | | } |
| | | |
| | | /** |
| | | * 根据模版生成word机械厂销售合同 |
| | | * @param id id |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "根据模版生成word机械厂销售合同" , description = "根据模版生成word机械厂销售合同" ) |
| | | @GetMapping("/exportContractJXCXSWord/{id}" ) |
| | | public void exportContractJXCXSWord(@PathVariable("id" ) Long id, HttpServletResponse response) { |
| | | contractService.exportContractJXCXSWord(id,response); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * 延期出货审批 |
| | |
| | | public R updateContractSgb(@RequestBody ContractUpdateDTO updateDTO) { |
| | | return contractService.updateContractSgb(updateDTO); |
| | | } |
| | | |
| | | /** |
| | | * 终止合同-石工泵 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "终止合同-石工泵" , description = "终止合同-石工泵" ) |
| | | @GetMapping("/abortContractSgb/{dataId}") |
| | | @SysLog("终止合同-石工泵" ) |
| | | public R abortContractSgb(@PathVariable String dataId) { |
| | | return contractService.abortContractSgb(dataId); |
| | | } |
| | | |
| | | /** |
| | | * 删除合同-石工泵 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "删除合同-石工泵" , description = "删除合同-石工泵" ) |
| | | @PostMapping("/delContractSgb/{dataId}") |
| | | @SysLog("删除合同-石工泵" ) |
| | | public R delContractSgb(@PathVariable String dataId) { |
| | | return contractService.delContractSgb(dataId); |
| | | } |
| | | |
| | | /** |
| | | * 四关联查询 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "四关联查询" , description = "四关联查询" ) |
| | | @GetMapping("/fourAssociation") |
| | | public R fourAssociation(@ParameterObject Page page,@ParameterObject ContractQueryDTO queryDTO) { |
| | | return R.ok(contractService.fourAssociation(page,queryDTO)); |
| | | } |
| | | } |