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