|
@@ -365,7 +365,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -365,7 +365,7 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
365
|
}
|
365
|
}
|
366
|
|
366
|
|
367
|
@Override
|
367
|
@Override
|
368
|
- public int addCutPriceRecord(CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO) {
|
368
|
+ public BigDecimal addCutPriceRecord(CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO) {
|
369
|
Integer activityId = cutPriceHelpUserRequestBO.getActivityId();
|
369
|
Integer activityId = cutPriceHelpUserRequestBO.getActivityId();
|
370
|
Integer productSkn = cutPriceHelpUserRequestBO.getProductSkn();
|
370
|
Integer productSkn = cutPriceHelpUserRequestBO.getProductSkn();
|
371
|
Integer userId = cutPriceHelpUserRequestBO.getUserId();
|
371
|
Integer userId = cutPriceHelpUserRequestBO.getUserId();
|
|
@@ -392,14 +392,15 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
|
@@ -392,14 +392,15 @@ public class CutDownPriceServiceImpl implements ICutDownPriceService { |
392
|
logger.info(" addCutDownUserRecord, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
|
392
|
logger.info(" addCutDownUserRecord, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
|
393
|
int num = cutDownPriceUserRecordMapper.addCutDownUserRecord(record);
|
393
|
int num = cutDownPriceUserRecordMapper.addCutDownUserRecord(record);
|
394
|
// 系统帮助砍第一次价
|
394
|
// 系统帮助砍第一次价
|
|
|
395
|
+ BigDecimal cutPrice = new BigDecimal(0);
|
395
|
try{
|
396
|
try{
|
396
|
logger.info(" system start addHelpUserInfo, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
|
397
|
logger.info(" system start addHelpUserInfo, userId is {}, activityId is {}, productSkn is {}", userId, activityId, productSkn);
|
397
|
- addHelpUserInfo(convertCutDownPriceProductSystemHelpUser(cutPriceHelpUserRequestBO));
|
398
|
+ cutPrice = addHelpUserInfo(convertCutDownPriceProductSystemHelpUser(cutPriceHelpUserRequestBO));
|
398
|
}catch(Exception e){
|
399
|
}catch(Exception e){
|
399
|
logger.warn(" system addHelpUserInfo failed, userId is {}, activityId is {}, productSkn is {}, exception is {}", userId, activityId, productSkn, e);
|
400
|
logger.warn(" system addHelpUserInfo failed, userId is {}, activityId is {}, productSkn is {}, exception is {}", userId, activityId, productSkn, e);
|
400
|
}
|
401
|
}
|
401
|
|
402
|
|
402
|
- return num;
|
403
|
+ return cutPrice;
|
403
|
}
|
404
|
}
|
404
|
|
405
|
|
405
|
private void checkValidActivity(CutDownPriceActivityBo activityBo, Integer activityId) {
|
406
|
private void checkValidActivity(CutDownPriceActivityBo activityBo, Integer activityId) {
|