|
@@ -20,7 +20,6 @@ import org.springblade.manager.entity.WbsTreeContract;
|
|
|
import org.springblade.manager.feign.ContractClient;
|
|
|
import org.springblade.manager.feign.WbsTreeContractClient;
|
|
|
import org.springblade.manager.vo.WbsTreeContractTreeVOS;
|
|
|
-import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
@@ -100,8 +99,8 @@ public class ConstructionLedgerController extends BladeController {
|
|
|
@ApiOperationSupport(order = 2)
|
|
|
@ApiOperation(value = "分页(建议)", notes = "传入constructionLedger")
|
|
|
public R<IPage<ConstructionLedgerVO>> list(@Valid @RequestBody ConstructionLedgerVO vo) {
|
|
|
- ConstructionLedger ledger = new ConstructionLedger();
|
|
|
- BeanUtils.copyProperties(vo, ledger);
|
|
|
+// ConstructionLedger ledger = new ConstructionLedger();
|
|
|
+// BeanUtils.copyProperties(vo, ledger);
|
|
|
|
|
|
Query query = new Query();
|
|
|
query.setCurrent(vo.getCurrent());
|
|
@@ -126,9 +125,9 @@ public class ConstructionLedgerController extends BladeController {
|
|
|
vo.setWbsIds(queryDataResult.stream().map(QueryProcessDataVO::getPrimaryKeyId).distinct().collect(Collectors.toList()));
|
|
|
|
|
|
if(vo.getSiteStartTime() != null && vo.getSiteEndTime() != null){
|
|
|
- pages = this.constructionLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(ledger).lambda().in(ConstructionLedger::getWbsId, vo.getWbsIds()).between(ConstructionLedger::getSiteStartTime, ledger.getSiteStartTime(), ledger.getSiteEndTime()));
|
|
|
+ pages = this.constructionLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(new ConstructionLedger()).lambda().in(ConstructionLedger::getWbsId, vo.getWbsIds()).between(ConstructionLedger::getSiteStartTime, vo.getSiteStartTime(), vo.getSiteEndTime()));
|
|
|
} else {
|
|
|
- pages = this.constructionLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(ledger).lambda().in(ConstructionLedger::getWbsId, vo.getWbsIds()));
|
|
|
+ pages = this.constructionLedgerService.page(Condition.getPage(query), Condition.getQueryWrapper(new ConstructionLedger()).lambda().in(ConstructionLedger::getWbsId, vo.getWbsIds()));
|
|
|
}
|
|
|
|
|
|
IPage<ConstructionLedgerVO> voiPage = ConstructionLedgerWrapper.build().pageVO(pages);
|