Commit bc3fcaff authored by shiyu's avatar shiyu

交换商品

parent f0290e0a
...@@ -75,7 +75,7 @@ public class Result<T> implements Entity { ...@@ -75,7 +75,7 @@ public class Result<T> implements Entity {
} }
public static<T> Result<T> failed(Integer code, String msg) { public static<T> Result<T> failed(Integer code, String msg) {
return new Result<>(code, false,msg, null); return new Result<>(code, false, msg, null);
} }
public static<T> Result<T> failed(ResultCode resultCode) { public static<T> Result<T> failed(ResultCode resultCode) {
return new Result<>(resultCode.getCode(), false,resultCode.getMessage(), null); return new Result<>(resultCode.getCode(), false,resultCode.getMessage(), null);
......
package com.wwdz.ch.db.domain.distribution; package com.wwdz.ch.db.domain.distribution;
import java.io.Serializable;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.Arrays; import java.util.Arrays;
import java.util.Date; import java.util.Date;
import com.xxdxxs.entity.Entity; import com.xxdxxs.entity.Entity;
import lombok.Data; import lombok.Data;
/** /**
* @author shiyu * @author shiyu
* @date 2024/09/03 * @date 2024/09/04
*/ */
@Data @Data
public class ExchangeOrderSnapshot implements Entity { public class ExchangeOrderSnapshot implements Entity {
private Integer id; private Integer id;
/** /**
...@@ -91,6 +90,11 @@ public class ExchangeOrderSnapshot implements Entity { ...@@ -91,6 +90,11 @@ public class ExchangeOrderSnapshot implements Entity {
*/ */
private Date updateTime; private Date updateTime;
/**
* 是否有效
*/
private Boolean isValid;
/** /**
* 商品图片,分号分隔 * 商品图片,分号分隔
*/ */
...@@ -130,6 +134,7 @@ public class ExchangeOrderSnapshot implements Entity { ...@@ -130,6 +134,7 @@ public class ExchangeOrderSnapshot implements Entity {
sb.append(", signedTime=").append(signedTime); sb.append(", signedTime=").append(signedTime);
sb.append(", createTime=").append(createTime); sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime); sb.append(", updateTime=").append(updateTime);
sb.append(", isValid=").append(isValid);
sb.append(", images=").append(images); sb.append(", images=").append(images);
sb.append(", videos=").append(videos); sb.append(", videos=").append(videos);
sb.append(", description=").append(description); sb.append(", description=").append(description);
...@@ -166,6 +171,7 @@ public class ExchangeOrderSnapshot implements Entity { ...@@ -166,6 +171,7 @@ public class ExchangeOrderSnapshot implements Entity {
&& (this.getSignedTime() == null ? other.getSignedTime() == null : this.getSignedTime().equals(other.getSignedTime())) && (this.getSignedTime() == null ? other.getSignedTime() == null : this.getSignedTime().equals(other.getSignedTime()))
&& (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
&& (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime())) && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
&& (this.getIsValid() == null ? other.getIsValid() == null : this.getIsValid().equals(other.getIsValid()))
&& (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages())) && (this.getImages() == null ? other.getImages() == null : this.getImages().equals(other.getImages()))
&& (this.getVideos() == null ? other.getVideos() == null : this.getVideos().equals(other.getVideos())) && (this.getVideos() == null ? other.getVideos() == null : this.getVideos().equals(other.getVideos()))
&& (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription())); && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
...@@ -191,6 +197,7 @@ public class ExchangeOrderSnapshot implements Entity { ...@@ -191,6 +197,7 @@ public class ExchangeOrderSnapshot implements Entity {
result = prime * result + ((getSignedTime() == null) ? 0 : getSignedTime().hashCode()); result = prime * result + ((getSignedTime() == null) ? 0 : getSignedTime().hashCode());
result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode()); result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
result = prime * result + ((getIsValid() == null) ? 0 : getIsValid().hashCode());
result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode()); result = prime * result + ((getImages() == null) ? 0 : getImages().hashCode());
result = prime * result + ((getVideos() == null) ? 0 : getVideos().hashCode()); result = prime * result + ((getVideos() == null) ? 0 : getVideos().hashCode());
result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode()); result = prime * result + ((getDescription() == null) ? 0 : getDescription().hashCode());
...@@ -221,6 +228,7 @@ public class ExchangeOrderSnapshot implements Entity { ...@@ -221,6 +228,7 @@ public class ExchangeOrderSnapshot implements Entity {
signedTime("signed_time", "signedTime", "TIMESTAMP", false), signedTime("signed_time", "signedTime", "TIMESTAMP", false),
createTime("create_time", "createTime", "TIMESTAMP", false), createTime("create_time", "createTime", "TIMESTAMP", false),
updateTime("update_time", "updateTime", "TIMESTAMP", false), updateTime("update_time", "updateTime", "TIMESTAMP", false),
isValid("is_valid", "isValid", "BIT", false),
images("images", "images", "LONGVARCHAR", false), images("images", "images", "LONGVARCHAR", false),
videos("videos", "videos", "LONGVARCHAR", false), videos("videos", "videos", "LONGVARCHAR", false),
description("description", "description", "LONGVARCHAR", false); description("description", "description", "LONGVARCHAR", false);
......
...@@ -2299,6 +2299,138 @@ public class ExchangeOrderSnapshotExample { ...@@ -2299,6 +2299,138 @@ public class ExchangeOrderSnapshotExample {
addCriterion("update_time not between", value1, value2, "updateTime"); addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this; return (Criteria) this;
} }
public Criteria andIsValidIsNull() {
addCriterion("is_valid is null");
return (Criteria) this;
}
public Criteria andIsValidIsNotNull() {
addCriterion("is_valid is not null");
return (Criteria) this;
}
public Criteria andIsValidEqualTo(Boolean value) {
addCriterion("is_valid =", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exchange_order_snapshot
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidEqualToColumn(ExchangeOrderSnapshot.Column column) {
addCriterion(new StringBuilder("is_valid = ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidNotEqualTo(Boolean value) {
addCriterion("is_valid <>", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exchange_order_snapshot
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidNotEqualToColumn(ExchangeOrderSnapshot.Column column) {
addCriterion(new StringBuilder("is_valid <> ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidGreaterThan(Boolean value) {
addCriterion("is_valid >", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exchange_order_snapshot
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidGreaterThanColumn(ExchangeOrderSnapshot.Column column) {
addCriterion(new StringBuilder("is_valid > ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidGreaterThanOrEqualTo(Boolean value) {
addCriterion("is_valid >=", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exchange_order_snapshot
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidGreaterThanOrEqualToColumn(ExchangeOrderSnapshot.Column column) {
addCriterion(new StringBuilder("is_valid >= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidLessThan(Boolean value) {
addCriterion("is_valid <", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exchange_order_snapshot
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidLessThanColumn(ExchangeOrderSnapshot.Column column) {
addCriterion(new StringBuilder("is_valid < ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidLessThanOrEqualTo(Boolean value) {
addCriterion("is_valid <=", value, "isValid");
return (Criteria) this;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table exchange_order_snapshot
*
* @mbg.generated
* @project https://github.com/itfsw/mybatis-generator-plugin
*/
public Criteria andIsValidLessThanOrEqualToColumn(ExchangeOrderSnapshot.Column column) {
addCriterion(new StringBuilder("is_valid <= ").append(column.getEscapedColumnName()).toString());
return (Criteria) this;
}
public Criteria andIsValidIn(List<Boolean> values) {
addCriterion("is_valid in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotIn(List<Boolean> values) {
addCriterion("is_valid not in", values, "isValid");
return (Criteria) this;
}
public Criteria andIsValidBetween(Boolean value1, Boolean value2) {
addCriterion("is_valid between", value1, value2, "isValid");
return (Criteria) this;
}
public Criteria andIsValidNotBetween(Boolean value1, Boolean value2) {
addCriterion("is_valid not between", value1, value2, "isValid");
return (Criteria) this;
}
} }
public static class Criteria extends GeneratedCriteria { public static class Criteria extends GeneratedCriteria {
......
...@@ -7,7 +7,6 @@ import java.util.List; ...@@ -7,7 +7,6 @@ import java.util.List;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param; import org.apache.ibatis.annotations.Param;
@Mapper @Mapper
public interface ExchangeOrderSnapshotMapper { public interface ExchangeOrderSnapshotMapper {
long countByExample(ExchangeOrderSnapshotExample example); long countByExample(ExchangeOrderSnapshotExample example);
......
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
<result column="signed_time" jdbcType="TIMESTAMP" property="signedTime" /> <result column="signed_time" jdbcType="TIMESTAMP" property="signedTime" />
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
<result column="is_valid" jdbcType="BIT" property="isValid" />
</resultMap> </resultMap>
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.distribution.ExchangeOrderSnapshot"> <resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.wwdz.ch.db.domain.distribution.ExchangeOrderSnapshot">
<result column="images" jdbcType="LONGVARCHAR" property="images" /> <result column="images" jdbcType="LONGVARCHAR" property="images" />
...@@ -85,7 +86,7 @@ ...@@ -85,7 +86,7 @@
<sql id="Base_Column_List"> <sql id="Base_Column_List">
id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock, id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock,
distribution_price, official_estimated_price, creator_id, logistics_code, waybill, distribution_price, official_estimated_price, creator_id, logistics_code, waybill,
delivery_time, signed_time, create_time, update_time delivery_time, signed_time, create_time, update_time, is_valid
</sql> </sql>
<sql id="Blob_Column_List"> <sql id="Blob_Column_List">
images, videos, description images, videos, description
...@@ -142,8 +143,8 @@ ...@@ -142,8 +143,8 @@
<otherwise> <otherwise>
id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock, id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock,
distribution_price, official_estimated_price, creator_id, logistics_code, waybill, distribution_price, official_estimated_price, creator_id, logistics_code, waybill,
delivery_time, signed_time, create_time, update_time, images, videos, description delivery_time, signed_time, create_time, update_time, is_valid, images, videos,
description
</otherwise> </otherwise>
</choose> </choose>
from exchange_order_snapshot from exchange_order_snapshot
...@@ -178,8 +179,8 @@ ...@@ -178,8 +179,8 @@
<otherwise> <otherwise>
id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock, id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock,
distribution_price, official_estimated_price, creator_id, logistics_code, waybill, distribution_price, official_estimated_price, creator_id, logistics_code, waybill,
delivery_time, signed_time, create_time, update_time, images, videos, description delivery_time, signed_time, create_time, update_time, is_valid, images, videos,
description
</otherwise> </otherwise>
</choose> </choose>
from exchange_order_snapshot from exchange_order_snapshot
...@@ -204,15 +205,15 @@ ...@@ -204,15 +205,15 @@
stock, distribution_price, official_estimated_price, stock, distribution_price, official_estimated_price,
creator_id, logistics_code, waybill, creator_id, logistics_code, waybill,
delivery_time, signed_time, create_time, delivery_time, signed_time, create_time,
update_time, images, videos, update_time, is_valid, images,
description) videos, description)
values (#{distributionOrderId,jdbcType=VARCHAR}, #{exchangeItemId,jdbcType=BIGINT}, values (#{distributionOrderId,jdbcType=VARCHAR}, #{exchangeItemId,jdbcType=BIGINT},
#{itemId,jdbcType=BIGINT}, #{itemName,jdbcType=VARCHAR}, #{itemNum,jdbcType=INTEGER}, #{itemId,jdbcType=BIGINT}, #{itemName,jdbcType=VARCHAR}, #{itemNum,jdbcType=INTEGER},
#{stock,jdbcType=INTEGER}, #{distributionPrice,jdbcType=BIGINT}, #{officialEstimatedPrice,jdbcType=BIGINT}, #{stock,jdbcType=INTEGER}, #{distributionPrice,jdbcType=BIGINT}, #{officialEstimatedPrice,jdbcType=BIGINT},
#{creatorId,jdbcType=BIGINT}, #{logisticsCode,jdbcType=VARCHAR}, #{waybill,jdbcType=VARCHAR}, #{creatorId,jdbcType=BIGINT}, #{logisticsCode,jdbcType=VARCHAR}, #{waybill,jdbcType=VARCHAR},
#{deliveryTime,jdbcType=TIMESTAMP}, #{signedTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, #{deliveryTime,jdbcType=TIMESTAMP}, #{signedTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{images,jdbcType=LONGVARCHAR}, #{videos,jdbcType=LONGVARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{isValid,jdbcType=BIT}, #{images,jdbcType=LONGVARCHAR},
#{description,jdbcType=LONGVARCHAR}) #{videos,jdbcType=LONGVARCHAR}, #{description,jdbcType=LONGVARCHAR})
</insert> </insert>
<insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.ExchangeOrderSnapshot"> <insert id="insertSelective" parameterType="com.wwdz.ch.db.domain.distribution.ExchangeOrderSnapshot">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer"> <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
...@@ -265,6 +266,9 @@ ...@@ -265,6 +266,9 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time, update_time,
</if> </if>
<if test="isValid != null">
is_valid,
</if>
<if test="images != null"> <if test="images != null">
images, images,
</if> </if>
...@@ -321,6 +325,9 @@ ...@@ -321,6 +325,9 @@
<if test="updateTime != null"> <if test="updateTime != null">
#{updateTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="isValid != null">
#{isValid,jdbcType=BIT},
</if>
<if test="images != null"> <if test="images != null">
#{images,jdbcType=LONGVARCHAR}, #{images,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -389,6 +396,9 @@ ...@@ -389,6 +396,9 @@
<if test="record.updateTime != null"> <if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="record.isValid != null">
is_valid = #{record.isValid,jdbcType=BIT},
</if>
<if test="record.images != null"> <if test="record.images != null">
images = #{record.images,jdbcType=LONGVARCHAR}, images = #{record.images,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -421,6 +431,7 @@ ...@@ -421,6 +431,7 @@
signed_time = #{record.signedTime,jdbcType=TIMESTAMP}, signed_time = #{record.signedTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT},
images = #{record.images,jdbcType=LONGVARCHAR}, images = #{record.images,jdbcType=LONGVARCHAR},
videos = #{record.videos,jdbcType=LONGVARCHAR}, videos = #{record.videos,jdbcType=LONGVARCHAR},
description = #{record.description,jdbcType=LONGVARCHAR} description = #{record.description,jdbcType=LONGVARCHAR}
...@@ -445,7 +456,8 @@ ...@@ -445,7 +456,8 @@
delivery_time = #{record.deliveryTime,jdbcType=TIMESTAMP}, delivery_time = #{record.deliveryTime,jdbcType=TIMESTAMP},
signed_time = #{record.signedTime,jdbcType=TIMESTAMP}, signed_time = #{record.signedTime,jdbcType=TIMESTAMP},
create_time = #{record.createTime,jdbcType=TIMESTAMP}, create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP} update_time = #{record.updateTime,jdbcType=TIMESTAMP},
is_valid = #{record.isValid,jdbcType=BIT}
<if test="_parameter != null"> <if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" /> <include refid="Update_By_Example_Where_Clause" />
</if> </if>
...@@ -498,6 +510,9 @@ ...@@ -498,6 +510,9 @@
<if test="updateTime != null"> <if test="updateTime != null">
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
</if> </if>
<if test="isValid != null">
is_valid = #{isValid,jdbcType=BIT},
</if>
<if test="images != null"> <if test="images != null">
images = #{images,jdbcType=LONGVARCHAR}, images = #{images,jdbcType=LONGVARCHAR},
</if> </if>
...@@ -527,6 +542,7 @@ ...@@ -527,6 +542,7 @@
signed_time = #{signedTime,jdbcType=TIMESTAMP}, signed_time = #{signedTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP}, update_time = #{updateTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT},
images = #{images,jdbcType=LONGVARCHAR}, images = #{images,jdbcType=LONGVARCHAR},
videos = #{videos,jdbcType=LONGVARCHAR}, videos = #{videos,jdbcType=LONGVARCHAR},
description = #{description,jdbcType=LONGVARCHAR} description = #{description,jdbcType=LONGVARCHAR}
...@@ -548,7 +564,8 @@ ...@@ -548,7 +564,8 @@
delivery_time = #{deliveryTime,jdbcType=TIMESTAMP}, delivery_time = #{deliveryTime,jdbcType=TIMESTAMP},
signed_time = #{signedTime,jdbcType=TIMESTAMP}, signed_time = #{signedTime,jdbcType=TIMESTAMP},
create_time = #{createTime,jdbcType=TIMESTAMP}, create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP} update_time = #{updateTime,jdbcType=TIMESTAMP},
is_valid = #{isValid,jdbcType=BIT}
where id = #{id,jdbcType=INTEGER} where id = #{id,jdbcType=INTEGER}
</update> </update>
<select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.distribution.ExchangeOrderSnapshotExample" resultMap="BaseResultMap"> <select id="selectOneByExample" parameterType="com.wwdz.ch.db.domain.distribution.ExchangeOrderSnapshotExample" resultMap="BaseResultMap">
...@@ -606,8 +623,8 @@ ...@@ -606,8 +623,8 @@
<otherwise> <otherwise>
id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock, id, distribution_order_id, exchange_item_id, item_id, item_name, item_num, stock,
distribution_price, official_estimated_price, creator_id, logistics_code, waybill, distribution_price, official_estimated_price, creator_id, logistics_code, waybill,
delivery_time, signed_time, create_time, update_time, images, videos, description delivery_time, signed_time, create_time, update_time, is_valid, images, videos,
description
</otherwise> </otherwise>
</choose> </choose>
from exchange_order_snapshot from exchange_order_snapshot
......
...@@ -78,11 +78,18 @@ public class ExchangeServiceImpl implements ExchangeService { ...@@ -78,11 +78,18 @@ public class ExchangeServiceImpl implements ExchangeService {
public Result findItemList(ExchangeRequestDto dto) { public Result findItemList(ExchangeRequestDto dto) {
try { try {
SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto(); SupplierItemRequestDto supplierItemRequestDto = new SupplierItemRequestDto();
//必须要有官方预估价
supplierItemRequestDto.setOfficialEstimatedPriceNotNull(true);
supplierItemRequestDto.setPage(dto.getPage()); supplierItemRequestDto.setPage(dto.getPage());
supplierItemRequestDto.setLimit(dto.getLimit()); supplierItemRequestDto.setLimit(dto.getLimit());
List<SupplierItem> supplierItemList = new ArrayList<>(); List<SupplierItem> supplierItemList = new ArrayList<>();
PageInfo pageInfo = null; PageInfo pageInfo = null;
Long targetUserId = dto.getUserId(); Long targetUserId = dto.getUserId();
//查询用户已经交换的商品,在列表中去除
// List<ExchangeOrderSnapshot> exchangeOrderSnapshotList = exchangeOrderSnapshotDao.findByOrderId();
//标签id为空则查询所有的藏品 //标签id为空则查询所有的藏品
if (dto.getCollectionBookId() == null) { if (dto.getCollectionBookId() == null) {
//查询所有的上传藏品 //查询所有的上传藏品
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment