后端修改

This commit is contained in:
linlihong 2024-08-30 15:24:39 +08:00
parent 005063d2e3
commit 1b8734bfa8
2 changed files with 3 additions and 9 deletions

View File

@ -3,9 +3,10 @@ package com.bigdata.wxappserver.entity;
import com.baomidou.mybatisplus.annotation.FieldFill; import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField; import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic; import com.baomidou.mybatisplus.annotation.TableLogic;
import lombok.Data;
import java.time.LocalDateTime; import java.time.LocalDateTime;
@Data
public class Base { public class Base {
@TableField(fill = FieldFill.INSERT) @TableField(fill = FieldFill.INSERT)

View File

@ -1,12 +1,8 @@
package com.bigdata.wxappserver.service; package com.bigdata.wxappserver.service;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bigdata.wxappserver.entity.Goods;
import com.bigdata.wxappserver.entity.Order; import com.bigdata.wxappserver.entity.Order;
import com.bigdata.wxappserver.entity.User; import com.bigdata.wxappserver.entity.User;
import com.bigdata.wxappserver.enums.OrderStatusEnum; import com.bigdata.wxappserver.enums.OrderStatusEnum;
@ -16,12 +12,9 @@ import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils; import org.springframework.util.CollectionUtils;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
import java.util.Collections; import java.util.Collections;
import java.util.List; import java.util.List;
import static com.fasterxml.jackson.databind.type.LogicalType.Collection;
/** /**
* Created with IntelliJ IDEA. * Created with IntelliJ IDEA.
* *
@ -51,7 +44,7 @@ public class OrderService extends ServiceImpl<OrderMapper, Order> {
} }
public JSONObject list(JSONObject jsonObject) { public JSONObject list(JSONObject jsonObject) {
String userId = jsonObject.getString("userId"); Integer userId = jsonObject.getInteger("userId");
// Integer currentPage = jsonObject.getInteger("currentPage"); // Integer currentPage = jsonObject.getInteger("currentPage");
// Integer pageSize = jsonObject.getInteger("pageSize"); // Integer pageSize = jsonObject.getInteger("pageSize");
// IPage<Order> page = new Page<>(currentPage, pageSize); // IPage<Order> page = new Page<>(currentPage, pageSize);