Authored by Gino Zhang

修改Mybatis异常

... ... @@ -12,9 +12,9 @@ public interface ProductVectorFeatureMapper {
int selectCount(String generateDate);
List<Integer> selectByGenerateDate(@Param(value = "generateDate")String generateDate, @Param(value = "pageSize")int pageSize);
List<Integer> selectByGenerateDate(@Param(value = "generateDate") String generateDate, @Param(value = "pageSize") int pageSize);
List<ProductVectorFeature> selectBySkns(List<Integer> productSknList, @Param(value = "generateDate") String generateDate);
List<ProductVectorFeature> selectBySkns(@Param(value = "list") List<Integer> productSknList, @Param(value = "generateDate") String generateDate);
void deleteBatch(List<Integer> idList);
... ...
... ... @@ -26,6 +26,7 @@ public class IndexRebuildListenerMgr {
IYohoIndexRebuildListener listener = listeners.get(yohoIndexName);
if (listener != null) {
try {
INDEX_REBUILD_LOG.info("Execute before rebuild for {}.", yohoIndexName);
listener.beforeRebuild();
} catch (Exception e) {
INDEX_REBUILD_LOG.error("Execute before rebuild index " + yohoIndexName + " failed.", e);
... ... @@ -37,6 +38,7 @@ public class IndexRebuildListenerMgr {
IYohoIndexRebuildListener listener = listeners.get(yohoIndexName);
if (listener != null) {
try {
INDEX_REBUILD_LOG.info("Execute after rebuild for {}.", yohoIndexName);
listener.afterRebuild(exception);
} catch (Exception e) {
INDEX_REBUILD_LOG.error("Execute after rebuild index " + yohoIndexName + " failed.", e);
... ...
... ... @@ -45,6 +45,7 @@ public class ProductVectorFeatureLogicService {
public Map<Integer, String> queryProductVectorFeatureMap(List<Integer> skns) {
Map<Integer, String> productVectorFeatureMapBaseSkn = new HashMap<>();
if (this.generateDate == null) {
INDEX_REBUILD_LOG.warn("The generate date for product vector is null.");
return productVectorFeatureMapBaseSkn;
}
... ... @@ -110,8 +111,7 @@ public class ProductVectorFeatureLogicService {
}
}
public synchronized String getGenerateDate()
{
public synchronized String getGenerateDate() {
return this.generateDate;
}
... ...