From 9663ede17e832eb313407791ae5c1c0e0052fc69 Mon Sep 17 00:00:00 2001
From: wuxw7 <wuxw7@asiainfo.com>
Date: 星期五, 13 七月 2018 01:00:06 +0800
Subject: [PATCH] 评论服务开发完成
---
CommentService/src/main/java/com/java110/comment/listener/AbstractCommentBusinessServiceDataFlowListener.java | 271 ------------------------------------------------------
1 files changed, 0 insertions(+), 271 deletions(-)
diff --git a/CommentService/src/main/java/com/java110/comment/listener/AbstractCommentBusinessServiceDataFlowListener.java b/CommentService/src/main/java/com/java110/comment/listener/AbstractCommentBusinessServiceDataFlowListener.java
index c5671e3..f4208a5 100644
--- a/CommentService/src/main/java/com/java110/comment/listener/AbstractCommentBusinessServiceDataFlowListener.java
+++ b/CommentService/src/main/java/com/java110/comment/listener/AbstractCommentBusinessServiceDataFlowListener.java
@@ -26,275 +26,4 @@
*/
public abstract ICommentServiceDao getCommentServiceDaoImpl();
- /**
- * 鍒锋柊 businessShopInfo 鏁版嵁
- * 涓昏灏� 鏁版嵁搴� 涓瓧娈靛拰 鎺ュ彛浼犻�掑瓧娈靛缓绔嬪叧绯�
- * @param businessShopInfo
- */
- protected void flushBusinessShopInfo(Map businessShopInfo,String statusCd){
- businessShopInfo.put("newBId",businessShopInfo.get("b_id"));
- businessShopInfo.put("shopId",businessShopInfo.get("shop_id"));
- businessShopInfo.put("storeId",businessShopInfo.get("store_id"));
- businessShopInfo.put("catalogId",businessShopInfo.get("catalog_id"));
- businessShopInfo.put("hotBuy",businessShopInfo.get("hot_buy"));
- businessShopInfo.put("salePrice",businessShopInfo.get("sale_price"));
- businessShopInfo.put("openShopCount",businessShopInfo.get("open_shop_count"));
- businessShopInfo.put("shopCount",businessShopInfo.get("shop_count"));
- businessShopInfo.put("startDate",businessShopInfo.get("start_date"));
- businessShopInfo.put("endDate",businessShopInfo.get("end_date"));
- businessShopInfo.put("statusCd", statusCd);
- }
-
- /**
- 鍒锋柊 businessShopAttr 鏁版嵁
- * 涓昏灏� 鏁版嵁搴� 涓瓧娈靛拰 鎺ュ彛浼犻�掑瓧娈靛缓绔嬪叧绯�
- * @param businessShopAttr
- * @param statusCd
- */
- protected void flushBusinessShopAttr(Map businessShopAttr,String statusCd){
- businessShopAttr.put("attrId",businessShopAttr.get("attr_id"));
- businessShopAttr.put("specCd",businessShopAttr.get("spec_cd"));
- businessShopAttr.put("shopId",businessShopAttr.get("shop_id"));
- businessShopAttr.put("newBId",businessShopAttr.get("b_id"));
- businessShopAttr.put("statusCd",statusCd);
- }
-
- /**
- * 鍒锋柊 businessShopAttrParam 鏁版嵁
- * @param businessShopAttrParam
- * @param statusCd
- */
- protected void flushBusinessShopAttrParam(Map businessShopAttrParam,String statusCd){
- businessShopAttrParam.put("newBId",businessShopAttrParam.get("b_id"));
- businessShopAttrParam.put("attrParamId",businessShopAttrParam.get("attr_param_id"));
- businessShopAttrParam.put("shopId",businessShopAttrParam.get("shop_id"));
- businessShopAttrParam.put("specCd",businessShopAttrParam.get("spec_cd"));
- businessShopAttrParam.put("statusCd",statusCd);
- }
-
- /**
- * 鍒锋柊 businessShopPhoto 鏁版嵁
- * @param businessShopPhoto
- * @param statusCd
- */
- protected void flushBusinessShopPhoto(Map businessShopPhoto,String statusCd){
- businessShopPhoto.put("shopId",businessShopPhoto.get("shop_id"));
- businessShopPhoto.put("shopPhotoId",businessShopPhoto.get("shop_photo_id"));
- businessShopPhoto.put("shopPhotoTypeCd",businessShopPhoto.get("shop_photo_type_cd"));
- businessShopPhoto.put("newBId",businessShopPhoto.get("b_id"));
- businessShopPhoto.put("statusCd",statusCd);
- }
-
- /**
- * 鍒锋柊 businessShopPreferential 鏁版嵁
- * @param businessShopPreferential
- * @param statusCd
- */
- protected void flushBusinessShopPreferential(Map businessShopPreferential ,String statusCd){
- businessShopPreferential.put("shopPreferentialId",businessShopPreferential.get("shop_preferential_id"));
- businessShopPreferential.put("shopId",businessShopPreferential.get("shop_id"));
- businessShopPreferential.put("originalPrice",businessShopPreferential.get("original_price"));
- businessShopPreferential.put("discountRate",businessShopPreferential.get("discount_rate"));
- businessShopPreferential.put("showOriginalPrice",businessShopPreferential.get("show_original_price"));
- businessShopPreferential.put("preferentialStartDate",businessShopPreferential.get("preferential_start_date"));
- businessShopPreferential.put("preferentialEndDate",businessShopPreferential.get("preferential_end_date"));
- businessShopPreferential.put("newBId",businessShopPreferential.get("b_id"));
- businessShopPreferential.put("statusCd",statusCd);
- }
-
-
- /**
- * 鍒锋柊 businessShopDesc 鏁版嵁
- * @param businessShopDesc
- * @param statusCd
- */
- protected void flushBusinessShopDesc(Map businessShopDesc ,String statusCd){
- businessShopDesc.put("shopDescId",businessShopDesc.get("shop_desc_id"));
- businessShopDesc.put("shopId",businessShopDesc.get("shop_id"));
- businessShopDesc.put("shopDescribe",businessShopDesc.get("shop_describe"));
- businessShopDesc.put("newBId",businessShopDesc.get("b_id"));
- businessShopDesc.put("statusCd",statusCd);
- }
-
- /**
- * 鍒锋柊 businessShopCatalog 鏁版嵁
- * @param businessShopCatalog
- * @param statusCd
- */
- protected void flushBusinessShopCatalog(Map businessShopCatalog ,String statusCd){
- businessShopCatalog.put("catalogId",businessShopCatalog.get("catalog_id"));
- businessShopCatalog.put("storeId",businessShopCatalog.get("store_id"));
- businessShopCatalog.put("parentCatalogId",businessShopCatalog.get("parent_catalog_id"));
- businessShopCatalog.put("newBId",businessShopCatalog.get("b_id"));
- businessShopCatalog.put("statusCd",statusCd);
- }
-
-
- /**
- * 褰撲慨鏀规暟鎹椂锛屾煡璇nstance琛ㄤ腑鐨勬暟鎹� 鑷姩淇濆瓨鍒犻櫎鏁版嵁鍒癰usiness涓�
- * @param businessShop 鍟嗘埛淇℃伅
- */
- protected void autoSaveDelBusinessShop(Business business, JSONObject businessShop){
-//鑷姩鎻掑叆DEL
- Map info = new HashMap();
- info.put("shopId",businessShop.getString("shopId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- Map currentShopInfo = getCommentServiceDaoImpl().getShopInfo(info);
- if(currentShopInfo == null || currentShopInfo.isEmpty()){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
- currentShopInfo.put("bId",business.getbId());
- currentShopInfo.put("shopId",currentShopInfo.get("shop_id"));
- currentShopInfo.put("storeId",currentShopInfo.get("store_id"));
- currentShopInfo.put("catalogId",currentShopInfo.get("catalog_id"));
- currentShopInfo.put("hotBuy",currentShopInfo.get("hot_buy"));
- currentShopInfo.put("salePrice",currentShopInfo.get("sale_price"));
- currentShopInfo.put("openShopCount",currentShopInfo.get("open_shop_count"));
- currentShopInfo.put("shopCount",currentShopInfo.get("shop_count"));
- currentShopInfo.put("startDate",currentShopInfo.get("start_date"));
- currentShopInfo.put("endDate",currentShopInfo.get("end_date"));
- currentShopInfo.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopInfo(currentShopInfo);
- }
-
- /**
- * 褰撲慨鏀规暟鎹椂锛屾煡璇nstance琛ㄤ腑鐨勬暟鎹� 鑷姩淇濆瓨鍒犻櫎鏁版嵁鍒癰usiness涓�
- * @param business 褰撳墠涓氬姟
- * @param shopAttr 鍟嗘埛灞炴��
- */
- protected void autoSaveDelBusinessShopAttr(Business business, JSONObject shopAttr){
- Map info = new HashMap();
- info.put("attrId",shopAttr.getString("attrId"));
- info.put("shopId",shopAttr.getString("shopId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- List<Map> currentShopAttrs = getCommentServiceDaoImpl().getShopAttrs(info);
- if(currentShopAttrs == null || currentShopAttrs.size() != 1){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
- Map currentShopAttr = currentShopAttrs.get(0);
- currentShopAttr.put("bId",business.getbId());
- currentShopAttr.put("attrId",currentShopAttr.get("attr_id"));
- currentShopAttr.put("shopId",currentShopAttr.get("shop_id"));
- currentShopAttr.put("specCd",currentShopAttr.get("spec_cd"));
- currentShopAttr.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopAttr(currentShopAttr);
- }
-
- /**
- * 褰撲慨鏀规暟鎹椂锛屾煡璇nstance琛ㄤ腑鐨勬暟鎹� 鑷姩淇濆瓨鍒犻櫎鏁版嵁鍒癰usiness涓�
- * @param business 褰撳墠涓氬姟
- * @param shopAttrParam 鍟嗗搧灞炴�у弬鏁�
- */
- protected void autoSaveDelBusinessShopAttrParam(Business business,JSONObject shopAttrParam){
- Map info = new HashMap();
- info.put("attrParamId",shopAttrParam.getString("attrParamId"));
- info.put("shopId",shopAttrParam.getString("shopId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- List<Map> currentShopAttrParams = getCommentServiceDaoImpl().getShopAttrParams(info);
- if(currentShopAttrParams == null || currentShopAttrParams.size() != 1){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
- Map currentShopAttrParam = currentShopAttrParams.get(0);
- currentShopAttrParam.put("bId",business.getbId());
- currentShopAttrParam.put("attrParamId",currentShopAttrParam.get("attr_param_id"));
- currentShopAttrParam.put("shopId",currentShopAttrParam.get("shop_id"));
- currentShopAttrParam.put("specCd",currentShopAttrParam.get("spec_cd"));
- currentShopAttrParam.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopAttrParam(currentShopAttrParam);
- }
- /**
- * 褰撲慨鏀规暟鎹椂锛屾煡璇nstance琛ㄤ腑鐨勬暟鎹� 鑷姩淇濆瓨鍒犻櫎鏁版嵁鍒癰usiness涓�
- * @param business
- * @param businessShopPhoto 鍟嗘埛鐓х墖
- */
- protected void autoSaveDelBusinessShopPhoto(Business business,JSONObject businessShopPhoto){
- Map info = new HashMap();
- info.put("shopPhotoId",businessShopPhoto.getString("shopPhotoId"));
- info.put("shopId",businessShopPhoto.getString("shopId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- List<Map> currentShopPhotos = getCommentServiceDaoImpl().getShopPhoto(info);
- if(currentShopPhotos == null || currentShopPhotos.size() != 1){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
- Map currentShopPhoto = currentShopPhotos.get(0);
- currentShopPhoto.put("bId",business.getbId());
- currentShopPhoto.put("shopPhotoId",currentShopPhoto.get("shop_photo_id"));
- currentShopPhoto.put("shopId",currentShopPhoto.get("shop_id"));
- currentShopPhoto.put("shopPhotoTypeCd",currentShopPhoto.get("shop_photo_type_cd"));
- currentShopPhoto.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopPhoto(currentShopPhoto);
- }
-
- /**
- * 褰撲慨鏀规暟鎹椂锛屾煡璇nstance琛ㄤ腑鐨勬暟鎹� 鑷姩淇濆瓨鍒犻櫎鏁版嵁鍒癰usiness涓�
- * @param business
- * @param businessShopPreferentials 鍟嗗搧浼樻儬
- */
- protected void autoSaveDelBusinessShopPreferential(Business business,JSONObject businessShopPreferentials){
- Map info = new HashMap();
- info.put("shopPreferentialId",businessShopPreferentials.getString("shopPreferentialId"));
- info.put("shopId",businessShopPreferentials.getString("shopId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- Map currentShopPreferential = getCommentServiceDaoImpl().getShopPreferential(info);
- if(currentShopPreferential == null || currentShopPreferential.isEmpty()){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
-
- currentShopPreferential.put("bId",business.getbId());
- currentShopPreferential.put("shopPreferentialId",currentShopPreferential.get("shop_preferential_id"));
- currentShopPreferential.put("shopId",currentShopPreferential.get("shop_id"));
- currentShopPreferential.put("originalPrice",currentShopPreferential.get("original_price"));
- currentShopPreferential.put("discountRate",currentShopPreferential.get("discount_rate"));
- currentShopPreferential.put("showOriginalPrice",currentShopPreferential.get("show_original_price"));
- currentShopPreferential.put("preferentialStartDate",currentShopPreferential.get("preferential_start_date"));
- currentShopPreferential.put("preferentialEndDate",currentShopPreferential.get("preferential_end_date"));
- currentShopPreferential.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopPreferential(currentShopPreferential);
- }
-
- /**
- *
- * @param business
- * @param businessShopDesc
- */
- protected void autoSaveDelBusinessShopDesc(Business business,JSONObject businessShopDesc){
- Map info = new HashMap();
- info.put("shopDescId",businessShopDesc.getString("shopDescId"));
- info.put("shopId",businessShopDesc.getString("shopId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- Map currentShopDesc = getCommentServiceDaoImpl().getShopDesc(info);
- if(currentShopDesc == null || currentShopDesc.isEmpty()){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
-
- currentShopDesc.put("bId",business.getbId());
- currentShopDesc.put("shopDescId",currentShopDesc.get("shop_desc_id"));
- currentShopDesc.put("shopId",currentShopDesc.get("shop_id"));
- currentShopDesc.put("shopDescribe",currentShopDesc.get("shop_describe"));
- currentShopDesc.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopDesc(currentShopDesc);
- }
-
- /**
- * 鍟嗗搧鐩綍 鑷姩鍒� DEL鏁版嵁
- * @param business
- * @param businessShopCalalog
- */
- protected void autoSaveDelBusinessShopCatalog(Business business,JSONObject businessShopCalalog){
- Map info = new HashMap();
- info.put("catalogId",businessShopCalalog.getString("catalogId"));
- info.put("storeId",businessShopCalalog.getString("storeId"));
- info.put("statusCd",StatusConstant.STATUS_CD_VALID);
- Map currentShopCatalog = getCommentServiceDaoImpl().getShopCatalog(info);
- if(currentShopCatalog == null || currentShopCatalog.isEmpty()){
- throw new ListenerExecuteException(ResponseConstant.RESULT_PARAM_ERROR,"鏈壘鍒伴渶瑕佷慨鏀规暟鎹俊鎭紝鍏ュ弬閿欒鎴栨暟鎹湁闂锛岃妫�鏌�"+info);
- }
-
- currentShopCatalog.put("bId",business.getbId());
- currentShopCatalog.put("catalogId",currentShopCatalog.get("catalog_id"));
- currentShopCatalog.put("storeId",currentShopCatalog.get("store_id"));
- currentShopCatalog.put("parentCatalogId",currentShopCatalog.get("parent_catalog_id"));
- currentShopCatalog.put("operate",StatusConstant.OPERATE_DEL);
- getCommentServiceDaoImpl().saveBusinessShopCatalog(currentShopCatalog);
- }
}
--
Gitblit v1.8.0