|
@@ -28,7 +28,7 @@ public class PlatformApiController {
|
|
private PlatformAapiService platformAapiService;
|
|
private PlatformAapiService platformAapiService;
|
|
@Autowired
|
|
@Autowired
|
|
KafkaTemplate<String, Object> kafkaTemplate;
|
|
KafkaTemplate<String, Object> kafkaTemplate;
|
|
- @Value("${billing.valveStatus.receiving}")
|
|
|
|
|
|
+ @Value("sc_accept_valve_state_topic66666")
|
|
private String billingValveStatusReceiving;
|
|
private String billingValveStatusReceiving;
|
|
@PostMapping ("/updateMeterNo")
|
|
@PostMapping ("/updateMeterNo")
|
|
@ApiOperation(value = "同步档案号")
|
|
@ApiOperation(value = "同步档案号")
|
|
@@ -70,8 +70,11 @@ public class PlatformApiController {
|
|
@GetMapping ("/testKafka")
|
|
@GetMapping ("/testKafka")
|
|
public void testKafka(String meterNo,String meterStatus){
|
|
public void testKafka(String meterNo,String meterStatus){
|
|
Map<String,Object> valveMessage=new HashMap<>();
|
|
Map<String,Object> valveMessage=new HashMap<>();
|
|
- valveMessage.put("meterNo",meterNo);
|
|
|
|
- valveMessage.put("meterStatus",meterStatus);
|
|
|
|
- kafkaTemplate.send(billingValveStatusReceiving, JSONUtils.obj2json(valveMessage));
|
|
|
|
|
|
+
|
|
|
|
+ valveMessage.put("active","prd");
|
|
|
|
+ valveMessage.put("customerId",60);
|
|
|
|
+ valveMessage.put("meterNo","200203717");
|
|
|
|
+ valveMessage.put("valve","0");
|
|
|
|
+ //kafkaTemplate.send(billingValveStatusReceiving, JSONUtils.obj2json(valveMessage));
|
|
}
|
|
}
|
|
}
|
|
}
|