Authored by wangshusheng

日志

@@ -12,6 +12,7 @@ public class CutDownPriceUserRecord { @@ -12,6 +12,7 @@ public class CutDownPriceUserRecord {
12 private Integer productSkn; 12 private Integer productSkn;
13 private Integer helpCount; 13 private Integer helpCount;
14 private Integer useCount; 14 private Integer useCount;
  15 + private Integer status=0;
15 16
16 public Integer getId() { 17 public Integer getId() {
17 return id; 18 return id;
@@ -84,4 +85,12 @@ public class CutDownPriceUserRecord { @@ -84,4 +85,12 @@ public class CutDownPriceUserRecord {
84 public void setCutTime(Integer cutTime) { 85 public void setCutTime(Integer cutTime) {
85 this.cutTime = cutTime; 86 this.cutTime = cutTime;
86 } 87 }
  88 +
  89 + public Integer getStatus() {
  90 + return status;
  91 + }
  92 +
  93 + public void setStatus(Integer status) {
  94 + this.status = status;
  95 + }
87 } 96 }
@@ -11,9 +11,10 @@ @@ -11,9 +11,10 @@
11 <result column="create_time" property="createTime" jdbcType="INTEGER" /> 11 <result column="create_time" property="createTime" jdbcType="INTEGER" />
12 <result column="update_time" property="updateTime" jdbcType="INTEGER" /> 12 <result column="update_time" property="updateTime" jdbcType="INTEGER" />
13 <result column="cut_time" property="cutTime" jdbcType="INTEGER" /> 13 <result column="cut_time" property="cutTime" jdbcType="INTEGER" />
  14 + <result column="status" property="status" jdbcType="INTEGER" />
14 </resultMap> 15 </resultMap>
15 <sql id="Base_Column_List" > 16 <sql id="Base_Column_List" >
16 - id, user_id, activity_id, product_skn, help_count, use_count, create_time, update_time, cut_time 17 + id, user_id, activity_id, product_skn, help_count, use_count, create_time, update_time, cut_time, status
17 </sql> 18 </sql>
18 19
19 <insert id="addCutDownUserRecord" parameterType="com.yoho.activity.dal.model.CutDownPriceUserRecord" useGeneratedKeys="true" keyProperty="id"> 20 <insert id="addCutDownUserRecord" parameterType="com.yoho.activity.dal.model.CutDownPriceUserRecord" useGeneratedKeys="true" keyProperty="id">
@@ -34,7 +34,7 @@ import java.util.List; @@ -34,7 +34,7 @@ import java.util.List;
34 @ServiceDesc("activity") 34 @ServiceDesc("activity")
35 public class CutDownProductPriceRest { 35 public class CutDownProductPriceRest {
36 36
37 - private static Logger logger = LoggerFactory.getLogger(CutDownProductPriceRest.class); 37 + private static Logger logger = LoggerFactory.getLogger("cutPriceLog");
38 38
39 @Autowired 39 @Autowired
40 private ICutDownPriceService cutDownPriceService; 40 private ICutDownPriceService cutDownPriceService;
@@ -634,7 +634,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { @@ -634,7 +634,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService {
634 634
635 UicUserReqBO request = new UicUserReqBO(); 635 UicUserReqBO request = new UicUserReqBO();
636 request.setUids(uids); 636 request.setUids(uids);
637 - logger.info("start invoke uic.getUserInfoListByYohoUid, uids is {}", uids); 637 + logger.debug("start invoke uic.getUserInfoListByYohoUid, uids is {}", uids);
638 UserInfoRspBO[] userInfoBoArray = null; 638 UserInfoRspBO[] userInfoBoArray = null;
639 try { 639 try {
640 userInfoBoArray = serviceCaller.call("uic.getUserInfoListByYohoUid", request, UserInfoRspBO[].class); 640 userInfoBoArray = serviceCaller.call("uic.getUserInfoListByYohoUid", request, UserInfoRspBO[].class);
@@ -653,7 +653,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { @@ -653,7 +653,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService {
653 BatchBaseRequest<Integer> productRequest = new BatchBaseRequest<Integer>(); 653 BatchBaseRequest<Integer> productRequest = new BatchBaseRequest<Integer>();
654 productRequest.setParams(productSkns); 654 productRequest.setParams(productSkns);
655 try{ 655 try{
656 - logger.info("start invoke product.batchQueryNamesAndImageBySkns, productSkns is {}", productSkns); 656 + logger.debug("start invoke product.batchQueryNamesAndImageBySkns, productSkns is {}", productSkns);
657 productBoArray = serviceCaller.call("product.batchQueryNamesAndImageBySkns", productRequest, ProductBo[].class); 657 productBoArray = serviceCaller.call("product.batchQueryNamesAndImageBySkns", productRequest, ProductBo[].class);
658 }catch(Exception e){ 658 }catch(Exception e){
659 logger.warn("invoke product.batchQueryNamesAndImageBySkns failed, productSkns is {}, exception is{}", productSkns, e); 659 logger.warn("invoke product.batchQueryNamesAndImageBySkns failed, productSkns is {}, exception is{}", productSkns, e);
@@ -829,7 +829,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { @@ -829,7 +829,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService {
829 } 829 }
830 } 830 }
831 // 商品名称、商品原价、当前价格、activityId、productSkn、uid 831 // 商品名称、商品原价、当前价格、activityId、productSkn、uid
832 - logger.info("cutprice success pushSuccessMessage, uid is{}, activityId is {}, productSkn is {}", userId, activityId, 832 + logger.info("cutprice success pushSuccessMessage, uid is {}, activityId is {}, productSkn is {}", userId, activityId,
833 productSkn); 833 productSkn);
834 SendMessageRspBo sendMessageRsp = groupOrderService.cutPriceSuccess(String.valueOf(userId), productName, 834 SendMessageRspBo sendMessageRsp = groupOrderService.cutPriceSuccess(String.valueOf(userId), productName,
835 String.valueOf(cutDownPriceProductBo.getHighPrice()), 835 String.valueOf(cutDownPriceProductBo.getHighPrice()),