sparestore.id,
sparestore.spare_id,
sparestore.store_id,
sparestore.batch_id,
sparestore.batch_user_id,
sparestore.num,
sparestore.qr_code,
sparestore.init_num,
sparestore.init_price,
sparestore.price,
sparestore.init_purchase_price,
sparestore.sort,
sparestore.del_flag,
sparestore.remark,
sparestore.created_user_id,
sparestore.created_user_name,
sparestore.update_user_id,
sparestore.update_user_name,
sparestore.created_time,
sparestore.update_time
sparestore.spare_id,
sparestore.store_id,
sparestore.batch_id,
sparestore.batch_user_id,
sparestore.qr_code,
sparestore.num,
sparestore.init_num,
sparestore.init_price,
sparestore.price,
sparestore.init_purchase_price,
sparestore.sort,
sparestore.del_flag,
sparestore.remark,
and sparestore.id = #{id}
and sparestore.spare_id = #{spareId}
and sparestore.store_id = #{storeId}
and sparestore.num > #{num}
and sparestore.sort = #{sort}
and sparestore.del_flag = #{delFlag}
and sparestore.remark = #{remark}
and sparestore.created_user_id = #{createdUserId}
and sparestore.created_user_name = #{createdUserName}
and sparestore.update_user_id = #{updateUserId}
and sparestore.update_user_name = #{updateUserName}
and sparestore.created_time =]]>; #{createdTimeStart}
and sparestore.created_time #{createdTimeEnd}
and sparestore.created_time = #{createdTime}
and sparestore.update_time =]]>; #{updateTimeStart}
and sparestore.update_time #{updateTimeEnd}
and sparestore.update_time = #{updateTime}
update t_spare_store
num=#{item.num},
init_num=#{item.initNum},
price=#{item.price},
init_price=#{item.initPrice},
init_purchase_price=#{item.initPurchasePrice}
where id = #{item.id}
update t_spare_store
spare_id=#{item.spareId}
where id = #{item.id}