|
@@ -59,7 +59,11 @@ public class KuaishouPlanCreateServiceImpl extends ServiceImpl<KuaishouPlanCreat
|
|
|
Integer batch = planCreateMapper.getBatchUnit(accountId, startDate, endDate);
|
|
|
if (batch != 0) {
|
|
|
Integer batchCount = batch - autoUnitCount;
|
|
|
- create.setBatchUnit(batchCount);
|
|
|
+ if (batchCount >= 0) {
|
|
|
+ create.setBatchUnit(batchCount);
|
|
|
+ } else {
|
|
|
+ create.setBatchUnit(0);
|
|
|
+ }
|
|
|
} else {
|
|
|
create.setBatchUnit(0);
|
|
|
}
|