lyhzzz 2 năm trước cách đây
mục cha
commit
26da3e0748

+ 1 - 6
src/main/java/com/fdkankan/sale/service/impl/RepairSupplyService.java

@@ -74,12 +74,7 @@ public class RepairSupplyService {
 
         LambdaQueryWrapper<PartLog> wrapper2 = new LambdaQueryWrapper<>();
         wrapper2.eq(PartLog::getRepairId,repairId);
-        if(type == 0 || type == 2){     //出库
-            wrapper2.eq(PartLog::getStatus,1);
-        }
-        if(type == 1){ //回收
-            wrapper2.eq(PartLog::getStatus,2);
-        }
+        wrapper2.eq(PartLog::getStatus,1);
         List<PartLog> partLogs = partLogService.list(wrapper2);
         HashMap<Integer,PartLog> map = new HashMap<>();
         for (PartLog partLog : partLogs) {