| | |
| | | import com.by4cloud.platformx.common.log.annotation.SysLog; |
| | | import com.by4cloud.platformx.device.constant.MaxSizeContant; |
| | | import com.by4cloud.platformx.device.entity.Contract; |
| | | import com.by4cloud.platformx.device.entity.DeviceManufacturer; |
| | | import com.by4cloud.platformx.device.entity.PurchaseTendrOrderEntity; |
| | | import com.by4cloud.platformx.device.entity.PurchaseWinningLetterEntity; |
| | | import com.by4cloud.platformx.device.service.JcMaxSizeService; |
| | |
| | | LambdaQueryWrapper<PurchaseWinningLetterEntity> wrapper = Wrappers.lambdaQuery(); |
| | | wrapper.like(StringUtils.isNotEmpty(purchaseWinningLetter.getPurchasePlanCode()), PurchaseWinningLetterEntity::getPurchasePlanCode,purchaseWinningLetter.getPurchasePlanCode()); |
| | | wrapper.like(StringUtils.isNotEmpty(purchaseWinningLetter.getWinningCode()), PurchaseWinningLetterEntity::getWinningCode,purchaseWinningLetter.getWinningCode()); |
| | | wrapper.orderBy(true,false, PurchaseWinningLetterEntity::getCreateTime); |
| | | wrapper.orderByDesc(PurchaseWinningLetterEntity::getCreateTime); |
| | | return R.ok(purchaseWinningLetterService.page(page, wrapper)); |
| | | } |
| | | |
| | |
| | | public List<PurchaseWinningLetterEntity> export(PurchaseWinningLetterEntity purchaseWinningLetter,Long[] ids) { |
| | | return purchaseWinningLetterService.list(Wrappers.lambdaQuery(purchaseWinningLetter).in(ArrayUtil.isNotEmpty(ids), PurchaseWinningLetterEntity::getId, ids)); |
| | | } |
| | | |
| | | /** |
| | | * 获取下拉列表 |
| | | * @return |
| | | */ |
| | | @GetMapping("/getDropdownnList") |
| | | public R<List<PurchaseWinningLetterEntity>> getDropdownnList() { |
| | | return R.ok(purchaseWinningLetterService.list()); |
| | | } |
| | | } |