|
|
@ -24,6 +24,7 @@ import org.apache.commons.collections.CollectionUtils;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
import java.time.LocalDate;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
|
import java.time.temporal.ChronoUnit;
|
|
|
@ -396,7 +397,7 @@ public class RetailCompanyService {
|
|
|
|
organizationalVO.setDelRate(check(new Long(allAge), count));
|
|
|
|
organizationalVO.setDelRate(check(new Long(allAge), count));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Integer avgStoreCustomer = organizationalVO.getAllCustomer() / stores.size();
|
|
|
|
Integer avgStoreCustomer = new BigDecimal(organizationalVO.getAllCustomer()).divide(new BigDecimal(stores.size()), BigDecimal.ROUND_HALF_UP).intValue();
|
|
|
|
organizationalVO.setAvgStoreCustomer(avgStoreCustomer);
|
|
|
|
organizationalVO.setAvgStoreCustomer(avgStoreCustomer);
|
|
|
|
list.add(organizationalVO);
|
|
|
|
list.add(organizationalVO);
|
|
|
|
});
|
|
|
|
});
|
|
|
|