anderx преди 2 седмици
родител
ревизия
e06059dfad
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/goafanti/order/service/impl/ProjectDistributionAsyncService.java

+ 1 - 1
src/main/java/com/goafanti/order/service/impl/ProjectDistributionAsyncService.java

@@ -113,7 +113,7 @@ public class ProjectDistributionAsyncService {
             details.setStockCount(t.getCommodityQuantity());
         }
         //如果不相等就切换
-        if (!details.getDutyDep().equals(a.getDepartmentId())){
+        if (details.getDutyDep()==null||(!details.getDutyDep().equals(a.getDepartmentId()))){
             details.setDutyDep(a.getDepartmentId());
         }
         tTaskMidMapper.updateByTid(details);