From e706cc37a9643f2aac1791e45e30817ebcb564ae Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期三, 01 五月 2024 10:13:28 +0800 Subject: [PATCH] 费用统计增加时间段搜索 --- inspect-server/src/main/java/com/yuanchu/mom/service/impl/StandardProductListServiceImpl.java | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/inspect-server/src/main/java/com/yuanchu/mom/service/impl/StandardProductListServiceImpl.java b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/StandardProductListServiceImpl.java index 8de102a..f3a44c8 100644 --- a/inspect-server/src/main/java/com/yuanchu/mom/service/impl/StandardProductListServiceImpl.java +++ b/inspect-server/src/main/java/com/yuanchu/mom/service/impl/StandardProductListServiceImpl.java @@ -8,6 +8,7 @@ import com.yuanchu.mom.mapper.StandardTreeMapper; import com.yuanchu.mom.pojo.InsSample; import com.yuanchu.mom.pojo.StandardProductList; +import com.yuanchu.mom.pojo.StandardTree; import com.yuanchu.mom.service.StandardProductListService; import lombok.AllArgsConstructor; import org.springframework.stereotype.Service; @@ -110,6 +111,12 @@ if(sp.getTell()!=null&&!sp.getTell().equals("")){ pl.setTell(sp.getTell()); } + if(sp.getPrice()!=null&&!sp.getPrice().equals("")){ + pl.setPrice(sp.getPrice()); + } + if(sp.getManHour()!=null&&!sp.getManHour().equals("")){ + pl.setManHour(sp.getManHour()); + } break; } } @@ -139,7 +146,13 @@ e.printStackTrace(); return null; }); - ; + switch (trees.length){ + case 3: + standardTreeMapper.selectList(Wrappers.<StandardTree>lambdaQuery().eq(StandardTree::getFactory, trees[0]).eq(StandardTree::getLaboratory, trees[1]).eq(StandardTree::getSampleType, trees[2])); + break; + case 4: + break; + } return list; } } -- Gitblit v1.9.3