소스 검색

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