鲜丰门店下培训人员拉取
This commit is contained in:
@@ -12,6 +12,7 @@ import com.cool.store.dto.ehr.StaffBaseInfoDTO;
|
|||||||
import com.cool.store.dto.ehr.SyncXfsgTrainingPersonInfoDTO;
|
import com.cool.store.dto.ehr.SyncXfsgTrainingPersonInfoDTO;
|
||||||
import com.cool.store.entity.ShopInfoDO;
|
import com.cool.store.entity.ShopInfoDO;
|
||||||
import com.cool.store.entity.TempUserDetailDO;
|
import com.cool.store.entity.TempUserDetailDO;
|
||||||
|
import com.cool.store.enums.RocketMqTagEnum;
|
||||||
import com.cool.store.enums.UserRoleEnum;
|
import com.cool.store.enums.UserRoleEnum;
|
||||||
import com.cool.store.service.XfsgEhrService;
|
import com.cool.store.service.XfsgEhrService;
|
||||||
import com.cool.store.utils.RedisUtilPool;
|
import com.cool.store.utils.RedisUtilPool;
|
||||||
@@ -56,7 +57,11 @@ public class XfsgTrainingPersonSyncListener implements MessageListener {
|
|||||||
boolean lock = redisUtilPool.setNxExpire(lockKey, message.getMsgID(), CommonConstants.NORMAL_LOCK_TIMES);
|
boolean lock = redisUtilPool.setNxExpire(lockKey, message.getMsgID(), CommonConstants.NORMAL_LOCK_TIMES);
|
||||||
if(lock){
|
if(lock){
|
||||||
try {
|
try {
|
||||||
syncXfsgTrainingPerson(text);
|
switch (RocketMqTagEnum.getByTag(message.getTag())){
|
||||||
|
case SYNC_TRAINING_PERSON:
|
||||||
|
syncXfsgTrainingPerson(text);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}catch (Exception e){
|
}catch (Exception e){
|
||||||
log.error("XfsgTrainingPersonSyncListener consume error",e);
|
log.error("XfsgTrainingPersonSyncListener consume error",e);
|
||||||
return Action.ReconsumeLater;
|
return Action.ReconsumeLater;
|
||||||
|
|||||||
Reference in New Issue
Block a user