Commit e84e40b6 by fudahua

接口初始化

parent a218fffb
...@@ -11,4 +11,25 @@ public interface StaffClerkRelationService { ...@@ -11,4 +11,25 @@ public interface StaffClerkRelationService {
List<StaffClerkRelationDTO> listBindCodeByStaffId(List<String> enterpriseIdList, String staffId); List<StaffClerkRelationDTO> listBindCodeByStaffId(List<String> enterpriseIdList, String staffId);
/**
* 删除绑定
* @param clerkId
* @return
*/
public boolean delBind(String clerkId);
/**
* 绑定
* @param dto
* @return
*/
public boolean bind(StaffClerkRelationDTO dto);
/**
* 根据clerkId 更新数据
* @param dto
* @return
*/
public boolean updateByClerkId(StaffClerkRelationDTO dto);
} }
...@@ -25,4 +25,18 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService ...@@ -25,4 +25,18 @@ public class StaffClerkRelationServiceImpl implements StaffClerkRelationService
return EntityUtil.changeEntityListByJSON(StaffClerkRelationDTO.class, mapper.listBindCodeByStaffId(enterpriseIdList,staffId)); return EntityUtil.changeEntityListByJSON(StaffClerkRelationDTO.class, mapper.listBindCodeByStaffId(enterpriseIdList,staffId));
} }
@Override
public boolean delBind(String clerkId) {
return false;
}
@Override
public boolean bind(StaffClerkRelationDTO dto) {
return false;
}
@Override
public boolean updateByClerkId(StaffClerkRelationDTO dto) {
return false;
}
} }
...@@ -37,12 +37,12 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor ...@@ -37,12 +37,12 @@ public class KafkaMessageServiceImpl implements MessageListener<String, GicRecor
@Override @Override
public void onMessage(ConsumerRecord<String, GicRecord> record) { public void onMessage(ConsumerRecord<String, GicRecord> record) {
logger.info("message:{}", JSONObject.toJSONString(record.value())); logger.info("message:{}", JSONObject.toJSONString(record.value()));
String message = JSONObject.toJSONString(record.value()); if(record.value()==null){
if(StringUtils.isBlank(message)){ logger.info("数据为空");
return; return;
} }
BinlogBasePojo pojo = binlogChange(record.value()); BinlogBasePojo pojo = binlogChange(record.value());
logger.info("pojo:{}", JSONObject.toJSONString(pojo)); logger.info("binlog数据:{}", JSONObject.toJSONString(pojo));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment