大规模优化
This commit is contained in:
@@ -61,12 +61,13 @@
|
||||
<if test="diameter != null ">and diameter = #{diameter}</if>
|
||||
<if test="batchId != null ">and batch_id = #{batchId}</if>
|
||||
<if test="sort != null ">and sort = #{sort}</if>
|
||||
<if test="state != null ">and state = #{state} or state=3</if>
|
||||
<if test="state != null ">and (state = #{state} or state=3)</if>
|
||||
<if test="stepSize != null ">and step_size = #{stepSize}</if>
|
||||
<if test="finalWidth != null and finalWidth != ''">and final_width = #{finalWidth}</if>
|
||||
<if test="finalDiameter != null and finalDiameter != ''">and final_diameter = #{finalDiameter}</if>
|
||||
<if test="weight != null and weight != ''">and weight = #{weight}</if>
|
||||
<if test="width != null and width != ''">and width = #{width}</if>
|
||||
<if test="delFlag != null and delFlag != ''">and del_flag = #{delFlag}</if>
|
||||
</where>
|
||||
order by sort
|
||||
</select>
|
||||
@@ -292,7 +293,9 @@
|
||||
<if test="delFlag != null">del_flag,</if>
|
||||
<if test="stepSize != null">step_size,</if>
|
||||
<if test="finalWidth != null">final_width,</if>
|
||||
<if test="finalWidth2 != null">final_width2,</if>
|
||||
<if test="finalDiameter != null">final_diameter,</if>
|
||||
<if test="finalDiameter2 != null">final_diameter2,</if>
|
||||
<if test="weight != null">weight,</if>
|
||||
<if test="width != null">width,</if>
|
||||
</trim>
|
||||
@@ -312,7 +315,9 @@
|
||||
<if test="state != null">#{state},</if>
|
||||
<if test="stepSize != null">#{stepSize},</if>
|
||||
<if test="finalWidth != null">#{finalWidth},</if>
|
||||
<if test="finalWidth2 != null">#{finalWidth2},</if>
|
||||
<if test="finalDiameter != null">#{finalDiameter},</if>
|
||||
<if test="finalDiameter2 != null">#{finalDiameter2},</if>
|
||||
<if test="weight != null">#{weight},</if>
|
||||
<if test="width != null">#{width},</if>
|
||||
</trim>
|
||||
@@ -335,7 +340,9 @@
|
||||
<if test="state != null">state = #{state},</if>
|
||||
<if test="stepSize != null">step_size = #{stepSize},</if>
|
||||
<if test="finalWidth != null">final_width = #{finalWidth},</if>
|
||||
<if test="finalWidth2 != null">final_width2 = #{finalWidth2},</if>
|
||||
<if test="finalDiameter != null">final_diameter = #{finalDiameter},</if>
|
||||
<if test="finalDiameter2 != null">final_diameter2 = #{finalDiameter2},</if>
|
||||
<if test="weight != null">weight = #{weight},</if>
|
||||
<if test="width != null">width = #{width},</if>
|
||||
</trim>
|
||||
@@ -349,7 +356,7 @@
|
||||
<if test="state == 0">state =1,</if>
|
||||
<if test="state == 1">state =2,</if>
|
||||
<if test="state == 3">state =4,</if>
|
||||
<if test="state == 4">state =5,</if>
|
||||
<if test="state == 4 and delFlag ==1">state =5,</if>
|
||||
<if test="state == 5">state =6,</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
|
||||
Reference in New Issue
Block a user