Authored by hugufei

consumer拆包

Showing 188 changed files with 117 additions and 39 deletions
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding/<project>=UTF-8
... ...
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="search-consumer-service">
<wb-module deploy-name="search-consumer-index">
<wb-resource deploy-path="/" source-path="/src/main/java"/>
<wb-resource deploy-path="/" source-path="/src/main/resources"/>
</wb-module>
</project-modules>
... ...
disabled=06target
eclipse.preferences.version=1
... ...
... ... @@ -31,7 +31,7 @@
</dependency>
<dependency>
<groupId>com.yoho.search</groupId>
<artifactId>search-core</artifactId>
<artifactId>search-personalized</artifactId>
</dependency>
<dependency>
<groupId>com.yoho.search</groupId>
... ...
package com.yoho.search.index.fullbuild;
import com.yoho.search.dal.ProductMapper;
import com.yoho.search.dal.model.ProductIndex;
import com.yoho.search.service.base.ProductIndexService;
import com.yoho.search.service.logic.ProductIndexLogicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
package com.yoho.search.consumer.index.fullbuild;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.yoho.search.consumer.index.common.IIndexBuilder;
import com.yoho.search.consumer.service.base.ProductIndexService;
import com.yoho.search.consumer.service.logic.ProductIndexLogicService;
import com.yoho.search.dal.ProductMapper;
import com.yoho.search.dal.model.ProductIndex;
@Component
public class ProductIndexIndexBuilder extends IIndexBuilder {
@Autowired
private ProductIndexService productIndexService;
@Autowired
private ProductIndexLogicService productIndexLogicService;
@Autowired
private ProductMapper productMapper;
... ...
package com.yoho.search.index.fullbuild;
package com.yoho.search.consumer.index.fullbuild;
import java.util.ArrayList;
import java.util.List;
import com.yoho.search.dal.StorageMapper;
import com.yoho.search.dal.model.StorageSku;
import com.yoho.search.service.base.Product15DaySalesNumService;
import com.yoho.search.service.base.StorageSkuService;
import com.yoho.search.service.logic.SpecialDealLogicService;
import com.yoho.search.service.logic.StorageSkuLogicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
import com.yoho.search.consumer.index.common.IIndexBuilder;
import com.yoho.search.consumer.service.base.Product15DaySalesNumService;
import com.yoho.search.consumer.service.base.StorageSkuService;
import com.yoho.search.consumer.service.logic.SpecialDealLogicService;
import com.yoho.search.consumer.service.logic.StorageSkuLogicService;
import com.yoho.search.dal.StorageMapper;
import com.yoho.search.dal.model.StorageSku;
@Component
public class StorageSkuIndexBuilder extends IIndexBuilder {
... ...
package com.yoho.search.service.base;
package com.yoho.search.consumer.service.base;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException;
import com.yoho.search.dal.model.ProductIndex;
import com.yoho.search.service.logic.SpecialDealLogicService;
import org.apache.commons.lang.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONException;
import com.yoho.search.consumer.service.logic.SpecialDealLogicService;
import com.yoho.search.dal.model.ProductIndex;
@Component
//@Transactional
public class ProductIndexService {
private final Logger logger = LoggerFactory.getLogger(ProductIndexService.class);
@SuppressWarnings({ "rawtypes", "unchecked" })
public Map<String, Object> beanToMap(ProductIndex productIndex) {
Map map = new HashMap();
... ... @@ -109,7 +109,7 @@ public class ProductIndexService {
map.put("productSkn", productIndex.getProductSkn());
temp = productIndex.getStorageNum();
if (temp != null) {
map.put("storageNum", productIndex.getStorageNum().longValue());
map.put("storageNum", productIndex.getStorageNum().longValue());
}
map.put("islimited", productIndex.getIslimited());
map.put("isnew", productIndex.getIsnew());
... ... @@ -138,20 +138,19 @@ public class ProductIndexService {
map.put("middleSort", productIndex.getMiddleSort());
map.put("smallSort", productIndex.getSmallSort());
map.put("basePinRatio", productIndex.getBasePinRatio());
map.put("breakingRate", productIndex.getBreakingRate());
map.put("discountScore", productIndex.getDiscountScore());
map.put("poolId", productIndex.getPoolId());
map.put("productKeyword", productIndex.getProductKeyword());
SpecialDealLogicService.specialDealProductIndex(productIndex);
SpecialDealLogicService.specialDealProductIndex(productIndex);
String ageLevel = productIndex.getAgeLevel();
map.put("ageLevel", ageLevel);
map.put("isGlobal", productIndex.getIsGlobal());
map.put("isGlobal", productIndex.getIsGlobal());
map.put("appType", productIndex.getAppType());
map.put("studentPrice", productIndex.getStudentPrice());
map.put("isStudentPrice", productIndex.getIsStudentPrice());
map.put("isInstalment", productIndex.getIsInstalment());
... ... @@ -184,5 +183,5 @@ public class ProductIndexService {
map.put("searchPageProdBoost", productIndex.getSearchPageProdBoost());
return map;
}
}
... ...
/target/
... ...
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/webapp"/>
<classpathentry kind="src" path="target/m2e-wtp/web-resources"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject">
<attributes>
<attribute name="hide" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
<classpathentry kind="output" path=""/>
</classpath>
... ...
eclipse.preferences.version=1
encoding//src/main/java=UTF-8
encoding//src/main/resources=UTF-8
encoding//src/test/java=UTF-8
encoding//src/test/resources=UTF-8
encoding/<project>=UTF-8
... ...
eclipse.preferences.version=1
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.8
org.eclipse.jdt.core.compiler.compliance=1.8
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
org.eclipse.jdt.core.compiler.source=1.8
... ...
activeProfiles=
eclipse.preferences.version=1
resolveWorkspaceProjects=true
version=1
... ...
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
<wb-module deploy-name="yoho-search-consumer-web">
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/resources"/>
<dependent-module archiveName="search-consumer-dal-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-dal/search-consumer-dal">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-personalized-2.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-personalized/search-personalized">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-es-2.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-es/search-es">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-consumer-service-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-service/search-consumer-service">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-base-2.0.1-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-base/search-base">
<dependency-type>uses</dependency-type>
</dependent-module>
<dependent-module archiveName="search-consumer-index-2.0.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/search-consumer-index/search-consumer-index">
<dependency-type>uses</dependency-type>
</dependent-module>
<property name="context-root" value="yoho-search-consumer-web"/>
<property name="java-output-path" value="/yoho-search-consumer-web/target/classes"/>
</wb-module>
</project-modules>
... ...
<?xml version="1.0" encoding="UTF-8"?>
<faceted-project>
<fixed facet="wst.jsdt.web"/>
<installed facet="java" version="1.8"/>
<installed facet="jst.web" version="3.0"/>
<installed facet="wst.jsdt.web" version="1.0"/>
</faceted-project>
... ...
org.eclipse.wst.jsdt.launching.baseBrowserLibrary
\ No newline at end of file
... ...
Window
\ No newline at end of file
... ...
disabled=06target
eclipse.preferences.version=1
... ...