|
|
@ -8,11 +8,9 @@ import com.epmet.commons.tools.dto.result.CustomerStaffInfoCacheResult; |
|
|
|
import com.epmet.commons.tools.enums.EnvEnum; |
|
|
|
import com.epmet.commons.tools.enums.ExternalApiEnum; |
|
|
|
import com.epmet.commons.tools.enums.ExternalServerEnum; |
|
|
|
import com.epmet.commons.tools.exception.RenException; |
|
|
|
import com.epmet.commons.tools.redis.common.CustomerStaffRedis; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.util.CollectionUtils; |
|
|
|
|
|
|
@ -34,16 +32,17 @@ public class YuShanSysApiService { |
|
|
|
* |
|
|
|
* @return |
|
|
|
*/ |
|
|
|
@Async |
|
|
|
// @Async
|
|
|
|
public void updateUserPoints(String customerId, List<UpdateUserPointsFormDTO> paramList) { |
|
|
|
try { |
|
|
|
/*try { |
|
|
|
Thread.sleep(1000l); |
|
|
|
} catch (InterruptedException e) { |
|
|
|
log.error("调用榆山街道发放积分睡眠发生异常,{}",e); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
}*/ |
|
|
|
if (StringUtils.isBlank(customerId) || CollectionUtils.isEmpty(paramList)) { |
|
|
|
throw new RenException("参数错误"); |
|
|
|
log.warn("updateUserPoints 参数错误"); |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!SpecialCustomerOrgConstant.PING_YIN_CUSTOMER_ID.equals(customerId)) { |
|
|
|
return; |
|
|
|