Authored by caoyan

自助尺码

@@ -17,6 +17,7 @@ import org.springframework.stereotype.Service; @@ -17,6 +17,7 @@ import org.springframework.stereotype.Service;
17 import com.google.common.collect.Lists; 17 import com.google.common.collect.Lists;
18 import com.google.common.collect.Maps; 18 import com.google.common.collect.Maps;
19 import com.google.common.collect.Sets; 19 import com.google.common.collect.Sets;
  20 +import com.yoho.core.common.utils.DateUtil;
20 import com.yoho.product.dal.SelfSizeMapper; 21 import com.yoho.product.dal.SelfSizeMapper;
21 import com.yoho.product.dal.SelfSizeUidMapper; 22 import com.yoho.product.dal.SelfSizeUidMapper;
22 import com.yoho.product.model.SelfSize; 23 import com.yoho.product.model.SelfSize;
@@ -201,9 +202,18 @@ public class SelfSizeServiceImpl implements ISelfSizeService { @@ -201,9 +202,18 @@ public class SelfSizeServiceImpl implements ISelfSizeService {
201 if(null == selfSize) { 202 if(null == selfSize) {
202 throw new PlatformException("记录不存在", 400); 203 throw new PlatformException("记录不存在", 400);
203 } 204 }
204 - 205 +
  206 + Storage record = new Storage();
  207 + record.setProductId(selfSize.getProductId());
  208 + record.setGoodsId(selfSize.getGoodsId());
  209 + record.setSizeId(selfSize.getSizeId());
  210 + record.setCreateTime(DateUtil.getCurrentTimeSecond());
  211 + int num = storageMapper.insert(record);
  212 + if(num == 0) {
  213 + return num;
  214 + }
205 UserHelper userInfo = new UserHelper(); 215 UserHelper userInfo = new UserHelper();
206 - int num = selfSizeMapper.upadteAuditResult(req.getId(), req.getStatus(), userInfo.getUserId()); 216 + num = selfSizeMapper.upadteAuditResult(req.getId(), req.getStatus(), userInfo.getUserId());
207 if(num > 0 && req.getStatus().intValue() == 1) {//审核通过 217 if(num > 0 && req.getStatus().intValue() == 1) {//审核通过
208 //发送站内信 218 //发送站内信
209 // inboxService.addInboxForPlatform(pss.getUid(), InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_SELF_SHELVES_AUDIT_PASS.getType(), 219 // inboxService.addInboxForPlatform(pss.getUid(), InboxBusinessTypeEnum.NOTICE_SELLER_WHEN_SELF_SHELVES_AUDIT_PASS.getType(),