|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.glxp.api.controller.purchase;
|
|
|
|
|
|
|
|
|
|
import cn.hutool.core.util.IdUtil;
|
|
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
|
|
import com.glxp.api.annotation.AuthRuleAnnotation;
|
|
|
|
|
import com.glxp.api.annotation.RepeatSubmit;
|
|
|
|
@ -334,6 +335,7 @@ public class PurOrderController {
|
|
|
|
|
public BaseResponse add() {
|
|
|
|
|
Long userId = customerService.getUserId();
|
|
|
|
|
PurOrderEntity purOrderEntity = new PurOrderEntity();
|
|
|
|
|
purOrderEntity.setId(IdUtil.getSnowflakeNextId());
|
|
|
|
|
purOrderEntity.setCreateUser(userId + "");
|
|
|
|
|
purOrderEntity.setCreateTime(new Date());
|
|
|
|
|
purOrderEntity.setUpdateTime(new Date());
|
|
|
|
|