| | |
| | | public boolean complete(Long id) { |
| | | PurchaseTendrOrderEntity orderEntity = baseMapper.selectById(id); |
| | | PurchaseWinningLetterEntity entity = BeanUtil.copyProperties(orderEntity, PurchaseWinningLetterEntity.class); |
| | | entity.setId(null); |
| | | entity.setOrderId(id); |
| | | entity.setWinningName(orderEntity.getOrderName()+"中标通知单"); |
| | | entity.setWinningCode(maxSizeService.nextNo(MaxSizeContant.WINNING_CODE)); |
| | | entity.setWinningPrice(orderEntity.getEstimatePrice()); |
| | | entity.setTotalWinningAmount(orderEntity.getTotalPlanndAmount()); |
| | | purchaseWinningLetterMapper.insert(entity); |
| | | orderEntity.setStatus("2"); |
| | | orderEntity.setStatus("3"); |
| | | baseMapper.updateById(orderEntity); |
| | | return true; |
| | | } |
| | |
| | | @Override |
| | | public boolean approved(Long id) { |
| | | PurchaseTendrOrderEntity orderEntity = baseMapper.selectById(id); |
| | | orderEntity.setStatus("1"); |
| | | orderEntity.setStatus("2"); |
| | | baseMapper.updateById(orderEntity); |
| | | return true; |
| | | } |