Showing
1 changed file
with
9 additions
and
0 deletions
1 | package com.yoho.activity.queue.restapi; | 1 | package com.yoho.activity.queue.restapi; |
2 | 2 | ||
3 | +import com.yoho.activity.common.utils.DateUtils; | ||
3 | import com.yoho.activity.dal.model.CutDownPriceProductHelpUser; | 4 | import com.yoho.activity.dal.model.CutDownPriceProductHelpUser; |
4 | import com.yoho.activity.queue.ApiResponse; | 5 | import com.yoho.activity.queue.ApiResponse; |
5 | import com.yoho.activity.queue.service.ICutDownPriceService; | 6 | import com.yoho.activity.queue.service.ICutDownPriceService; |
@@ -16,6 +17,7 @@ import com.yoho.service.model.activity.CutDownPriceActivityProductBo; | @@ -16,6 +17,7 @@ import com.yoho.service.model.activity.CutDownPriceActivityProductBo; | ||
16 | import com.yoho.service.model.activity.CutDownPriceProductHelpUserBo; | 17 | import com.yoho.service.model.activity.CutDownPriceProductHelpUserBo; |
17 | import com.yoho.service.model.activity.CutDownProductQueryRequest; | 18 | import com.yoho.service.model.activity.CutDownProductQueryRequest; |
18 | import com.yoho.service.model.activity.drawline.request.CutPriceHelpUserRequestBO; | 19 | import com.yoho.service.model.activity.drawline.request.CutPriceHelpUserRequestBO; |
20 | +import org.apache.commons.collections.CollectionUtils; | ||
19 | import org.slf4j.Logger; | 21 | import org.slf4j.Logger; |
20 | import org.slf4j.LoggerFactory; | 22 | import org.slf4j.LoggerFactory; |
21 | import org.springframework.beans.factory.annotation.Autowired; | 23 | import org.springframework.beans.factory.annotation.Autowired; |
@@ -120,6 +122,13 @@ public class CutDownProductPriceRest { | @@ -120,6 +122,13 @@ public class CutDownProductPriceRest { | ||
120 | public List<CutDownPriceProductHelpUserBo> queryCutPriceHelpUserInfos(@RequestBody CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO) { | 122 | public List<CutDownPriceProductHelpUserBo> queryCutPriceHelpUserInfos(@RequestBody CutPriceHelpUserRequestBO cutPriceHelpUserRequestBO) { |
121 | logger.info("CutDownProductPriceRest queryCutPriceHelpUserInfos params is{}", cutPriceHelpUserRequestBO); | 123 | logger.info("CutDownProductPriceRest queryCutPriceHelpUserInfos params is{}", cutPriceHelpUserRequestBO); |
122 | List<CutDownPriceProductHelpUserBo> helpUsers = cutDownPriceService.queryHelpInfo(cutPriceHelpUserRequestBO); | 124 | List<CutDownPriceProductHelpUserBo> helpUsers = cutDownPriceService.queryHelpInfo(cutPriceHelpUserRequestBO); |
125 | + // 设置当前时间 | ||
126 | + if(CollectionUtils.isNotEmpty(helpUsers)){ | ||
127 | + int currentTime = DateUtils.getCurrentTimeSecond(); | ||
128 | + for (CutDownPriceProductHelpUserBo bo : helpUsers) { | ||
129 | + bo.setCurrentTime(currentTime); | ||
130 | + } | ||
131 | + } | ||
123 | logger.info("CutDownProductPriceRest queryCutPriceHelpUserInfos success params is{}", cutPriceHelpUserRequestBO); | 132 | logger.info("CutDownProductPriceRest queryCutPriceHelpUserInfos success params is{}", cutPriceHelpUserRequestBO); |
124 | return helpUsers; | 133 | return helpUsers; |
125 | } | 134 | } |
-
Please register or login to post a comment