ソースを参照

公出统计sql优化

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);