Authored by wangshusheng

修改

@@ -55,11 +55,11 @@ public class CutDownProductPriceRest { @@ -55,11 +55,11 @@ public class CutDownProductPriceRest {
55 */ 55 */
56 @RequestMapping("/addCutPriceRecord") 56 @RequestMapping("/addCutPriceRecord")
57 @ResponseBody 57 @ResponseBody
58 - public Integer addCutPriceRecord(@RequestBody CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO) { 58 + public BigDecimal addCutPriceRecord(@RequestBody CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO) {
59 logger.info("CutDownProductPriceRest addCutPriceRecord params is{}", cutPriceHelpUserRequestBO); 59 logger.info("CutDownProductPriceRest addCutPriceRecord params is{}", cutPriceHelpUserRequestBO);
60 - int num = cutDownPriceService.addCutPriceRecord(cutPriceHelpUserRequestBO); 60 + BigDecimal cutPrice = cutDownPriceService.addCutPriceRecord(cutPriceHelpUserRequestBO);
61 logger.info("CutDownProductPriceRest addCutPriceRecord success params is{}", cutPriceHelpUserRequestBO); 61 logger.info("CutDownProductPriceRest addCutPriceRecord success params is{}", cutPriceHelpUserRequestBO);
62 - return num; 62 + return cutPrice;
63 } 63 }
64 64
65 /** 65 /**
@@ -22,7 +22,7 @@ public interface ICutDownPriceService { @@ -22,7 +22,7 @@ public interface ICutDownPriceService {
22 22
23 BigDecimal addHelpUserInfo(CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO); 23 BigDecimal addHelpUserInfo(CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO);
24 24
25 - int addCutPriceRecord(CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO); 25 + BigDecimal addCutPriceRecord(CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO);
26 26
27 PageResponseBo<CutDownPriceActivityProductBo> queryMyCutPriceListByPage(CutDownProductQueryRequest request); 27 PageResponseBo<CutDownPriceActivityProductBo> queryMyCutPriceListByPage(CutDownProductQueryRequest request);
28 28
@@ -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) {