|
@@ -88,7 +88,7 @@ public class PriceListServiceImpl extends ServiceImpl<IPriceListMapper, PriceLis
|
|
|
public void updateStatusByRepairId(String repairId,Integer status) {
|
|
|
LambdaUpdateWrapper<PriceList> wrapper = new LambdaUpdateWrapper<>();
|
|
|
wrapper.eq(PriceList::getRepairId,repairId);
|
|
|
- wrapper.eq(PriceList::getType,0);
|
|
|
+ //wrapper.eq(PriceList::getType,0);
|
|
|
wrapper.set(PriceList::getStatus,status);
|
|
|
this.update(wrapper);
|
|
|
}
|
|
@@ -97,18 +97,9 @@ public class PriceListServiceImpl extends ServiceImpl<IPriceListMapper, PriceLis
|
|
|
public List<PriceList> getByRepairIdAndStatus(String repairId, Integer status) {
|
|
|
LambdaQueryWrapper<PriceList> wrapper = new LambdaQueryWrapper<>();
|
|
|
wrapper.eq(PriceList::getRepairId,repairId);
|
|
|
- wrapper.eq(PriceList::getStatus,1);
|
|
|
+ wrapper.in(PriceList::getStatus,1,2);
|
|
|
return list(wrapper);
|
|
|
}
|
|
|
- public List<PriceList> getByRepairIdsAndStatus(List<String> repairIds, Integer status) {
|
|
|
- if(repairIds.size() >0){
|
|
|
- LambdaQueryWrapper<PriceList> wrapper = new LambdaQueryWrapper<>();
|
|
|
- wrapper.in(PriceList::getRepairId,repairIds);
|
|
|
- wrapper.eq(PriceList::getStatus,1);
|
|
|
- return list(wrapper);
|
|
|
- }
|
|
|
- return new ArrayList<>();
|
|
|
- }
|
|
|
|
|
|
@Override
|
|
|
public List<PriceList> getCheckAmountByRepairId(String repairId) {
|