| | |
| | | * 状态 |
| | | */ |
| | | @Schema(description="状态") |
| | | @Column(columnDefinition="varchar(32) comment '状态'") |
| | | @Column(columnDefinition="varchar(32) default '1' comment '状态'") |
| | | private String status; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | /** |
| | | * 通过id审核招标采购单 |
| | | * @param id id列表 |
| | | * @return R |
| | | */ |
| | | @Operation(summary = "通过id审核招标采购单" , description = "通过id审核招标采购单" ) |
| | | @SysLog("通过id审核招标采购单" ) |
| | | @GetMapping("/approved/{id}") |
| | | @PreAuthorize("@pms.hasPermission('platformx_purchaseTendrOrder_approved')" ) |
| | | public R approved(@PathVariable("id")Long id) { |
| | | return R.ok(purchaseTendrOrderService.approved(id)); |
| | | } |
| | | |
| | | /** |
| | | * 通过id删除招标采购单 |
| | | * @param ids id列表 |
| | | * @return R |
| | |
| | | boolean complete(Long id); |
| | | |
| | | List<PurchaseTendrOrderEntity> getPurchaseRenderList(); |
| | | |
| | | boolean approved(Long id); |
| | | } |
| | |
| | | return list; |
| | | } |
| | | |
| | | @Override |
| | | public boolean approved(Long id) { |
| | | PurchaseTendrOrderEntity orderEntity = baseMapper.selectById(id); |
| | | orderEntity.setStatus("1"); |
| | | baseMapper.updateById(orderEntity); |
| | | return true; |
| | | } |
| | | |
| | | } |