订单管理id问题修改

pro
郑明梁 2 years ago
parent 1ea8e7c2d4
commit 82e46675a9

@ -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());

@ -10,7 +10,7 @@ public class PurOrderResponse {
/**
*
*/
private Integer id;
private Long id;
/**
*
*/

Loading…
Cancel
Save