Commit a73b52ca by zhanghj

V1.4.0--提交竞价单代码功能

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@23331 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent bdba3944
package com.glsx.ordercenter.mapper;
import org.apache.ibatis.annotations.Param;
import com.glsx.ordercenter.pojo.SysOrderLabel;
......
......@@ -331,6 +331,7 @@ public class SysOrder {
* 报价截止时间
*/
@NotNull(message="{param.not.null}", groups={GroupC.class})
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")
@Future
private Date quoteLastTime;
/**
......
......@@ -3664,10 +3664,19 @@ public class OrderServiceImpl implements IOrderService {
}
Date now = new Date();
int orderType = OrderTypeEnum.BIDDING.getOrderType();
sysOrder.setOrderType((byte) orderType);
String orderSn = getOrderSn(orderType);
if (org.springframework.util.StringUtils.isEmpty(orderSn)) {
return new ResultObject(ResultCodeEnum.FAIL.getCode(), ResultCodeEnum.FAIL.getMsg());
}
sysOrder.setOrderSn(orderSn);
sysOrder.setShopId(userId);
sysOrder.setActiveStatus((byte) OrderActiveStatusEnum.ORDER_ACTIVE_STATUS_BIDDING.getActiveStatus());
sysOrder.setCreateBy(userId);
sysOrder.setCreateTime(now);
sysOrder.setUpdateTime(now);
sysOrder.setUpdateBy(userId);
int num = orderDao.insertSelective(sysOrder);
/*
* 增加订单状态流水
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!