Commit 9480234f authored by shiyu's avatar shiyu

用户下单操作记录

parent 15900302
......@@ -120,6 +120,7 @@ public class ItemServiceImpl implements ItemService {
}
}
itemVo.setCategoryIds(categoryIds);
itemVo.setCategoryNames(categoryNames);
return Result.success(itemVo);
} catch (Exception e) {
logger.error("商品查询明细 error : {}", e);
......
......@@ -77,12 +77,22 @@ public class ConsignSaleServiceImpl implements ConsignSaleService {
consignSale.setSaleTime(now);
consignSale.setCreateTime(now);
consignSale.setUpdateTime(now);
//目前创建了寄售单客户显示的状态就是寄售中
consignSale.setCustomState(ConsignSaleEnum.SaleForUserStateEnum.CONSIGN_SALEING.getCode());
consignSale.setSystemState(ConsignSaleEnum.SaleForSysStateEnum.WAIT_IMG_VALUATE.getCode());
String saleId = IdUtils.getOrderNumber(CONSIGN_SALE_ORDER_PREFIX);
consignSale.setSaleId(saleId);
consignSaleDao.insert(consignSale);
//插入操作记录
ConsignSaleRecord consignSaleRecord = new ConsignSaleRecord();
consignSaleRecord.setSaleId(saleId);
consignSaleRecord.setCreateTime(new Date());
consignSaleRecord.setContent("用户下单成功");
consignSaleRecord.setType(ConsignSaleEnum.OperateTypeEnum.CREATE_ORDER.getCode());
consignSaleRecordDao.insert(consignSaleRecord);
return Result.success();
} catch (Exception e) {
logger.info("用户: {}, 创建寄售单失败 : {}", dto.getUserId(), e);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment