Authored by 胡古飞

fix bug

... ... @@ -49,12 +49,12 @@ public class CsSearchResourceFuzzyDetailMqListener extends AbstractMqListener {
// 更新数据库
CsSearchResourceFuzzyDetail detail = csSearchResourceFuzzyDetailMapper.selectByPrimaryKey(csSearchResourceFuzzyDetail.getId());
if(detail==null){
csSearchResourceFuzzyDetailMapper.insertSelective(detail);
csSearchResourceFuzzyDetailMapper.insertSelective(csSearchResourceFuzzyDetail);
}else{
csSearchResourceFuzzyDetailMapper.updateByPrimaryKeySelective(detail);
csSearchResourceFuzzyDetailMapper.updateByPrimaryKeySelective(csSearchResourceFuzzyDetail);
}
// 更新索引
this.updateCsSearchResourceFuzzyIndex(detail);
this.updateCsSearchResourceFuzzyIndex(csSearchResourceFuzzyDetail);
}
private void updateCsSearchResourceFuzzyIndex(CsSearchResourceFuzzyDetail detail) throws Exception {
... ...