Authored by caoyan

自助尺码

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