订单order_id使用时间戳
This commit is contained in:
		| @@ -305,7 +305,7 @@ public class SysOrderServiceImpl implements ISysOrderService { | ||||
|                     continue; | ||||
|                 } | ||||
|                 //判断前一个订单的结束时间是否大于第二个订单的 | ||||
|                 if(lastServerEndTime != null && ChronoUnit.DAYS.between(lastServerEndTime, DateUtils.dateToLocalDate(sysOrder.getStartTime())) != 1){ | ||||
|                 if(lastServerEndTime != null && ChronoUnit.DAYS.between(lastServerEndTime, DateUtils.dateToLocalDate(sysOrder.getStartTime())) <= 0){ | ||||
|                     newStartTime = lastServerEndTime.plusDays(1); | ||||
|                     //本月第一天 | ||||
|                     LocalDate monthStart = LocalDate.now().with(TemporalAdjusters.firstDayOfMonth()); | ||||
|   | ||||
| @@ -183,6 +183,7 @@ | ||||
|     <insert id="insertSysOrder" parameterType="SysOrder" useGeneratedKeys="true" keyProperty="orderId"> | ||||
|         insert into sys_order | ||||
|         <trim prefix="(" suffix=")" suffixOverrides=","> | ||||
|             <if test="orderId != null">order_id,</if> | ||||
|             <if test="customer != null and customer != ''">customer,</if> | ||||
|             <if test="cusId != null">cus_id,</if> | ||||
|             <if test="phone != null">phone,</if> | ||||
| @@ -224,6 +225,7 @@ | ||||
|             <if test="delFlag != null">del_flag,</if> | ||||
|         </trim> | ||||
|         <trim prefix="values (" suffix=")" suffixOverrides=","> | ||||
|             <if test="orderId != null">#{orderId},</if> | ||||
|             <if test="customer != null and customer != ''">#{customer},</if> | ||||
|             <if test="cusId != null">#{cusId},</if> | ||||
|             <if test="phone != null">#{phone},</if> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user