|
|
@@ -12,6 +12,7 @@
|
|
|
size,
|
|
|
weight,
|
|
|
`status`,
|
|
|
+ `value`,
|
|
|
create_by,
|
|
|
update_by,
|
|
|
create_time,
|
|
|
@@ -40,6 +41,12 @@
|
|
|
<if test="param.status != null">
|
|
|
and `status` = #{param.status}
|
|
|
</if>
|
|
|
+ <if test="param.startTime != '' and param.startTime != null">
|
|
|
+ and o.create_time >= #{param.startTime}
|
|
|
+ </if>
|
|
|
+ <if test="param.endTime != '' and param.endTime != null">
|
|
|
+ and o.create_time < #{param.endTime}
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by create_time desc
|
|
|
</select>
|
|
|
@@ -58,6 +65,7 @@
|
|
|
<if test="null != param.size and '' != param.size">size = #{param.size},</if>
|
|
|
<if test="null != param.weight">weight = #{param.weight},</if>
|
|
|
<if test="null != param.status">`status` = #{param.status}</if>
|
|
|
+ <if test="null != param.value and '' != param.value">`value` = #{param.value}</if>
|
|
|
</trim>
|
|
|
</set>
|
|
|
WHERE id = #{param.id}
|