瀏覽代碼

公出统计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);