forked from luyan/epmet-cloud-lingshan
3 changed files with 26 additions and 6 deletions
@ -1,13 +1,34 @@ |
|||||
package com.epmet.processor; |
package com.epmet.processor; |
||||
|
|
||||
|
import com.epmet.commons.rocketmq.messages.IcResiUserAddMQMsg; |
||||
|
import com.epmet.constant.SystemMessageType; |
||||
|
import com.epmet.dto.form.SystemMsgFormDTO; |
||||
|
import com.epmet.feign.EpmetMessageOpenFeignClient; |
||||
|
import lombok.extern.slf4j.Slf4j; |
||||
|
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Component; |
import org.springframework.stereotype.Component; |
||||
|
|
||||
import java.util.Map; |
import java.util.Map; |
||||
|
|
||||
|
@Slf4j |
||||
@Component |
@Component |
||||
public class ResiImportDyzxhPostProcessor extends ResiImportPostProcessor{ |
public class ResiImportDyzxhPostProcessor extends ResiImportPostProcessor{ |
||||
|
@Autowired |
||||
|
private EpmetMessageOpenFeignClient epmetMessageOpenFeignClient; |
||||
|
|
||||
|
|
||||
@Override |
@Override |
||||
public void consume(Map<String, String> resiInfoMap) { |
public void consume(Map<String, String> resiInfoMap) { |
||||
System.out.println(resiInfoMap); |
System.out.println(resiInfoMap); |
||||
|
String customerId=resiInfoMap.get("CUSTOMER_ID"); |
||||
|
String userId=resiInfoMap.get("ID"); |
||||
|
//推送MQ事件
|
||||
|
IcResiUserAddMQMsg mqMsg = new IcResiUserAddMQMsg(); |
||||
|
mqMsg.setCustomerId(customerId); |
||||
|
mqMsg.setIcResiUser(userId); |
||||
|
SystemMsgFormDTO form = new SystemMsgFormDTO(); |
||||
|
form.setMessageType(SystemMessageType.IC_RESI_USER_ADD); |
||||
|
form.setContent(mqMsg); |
||||
|
epmetMessageOpenFeignClient.sendSystemMsgByMQ(form); |
||||
} |
} |
||||
} |
} |
||||
|
Loading…
Reference in new issue