|  |  |  | 
|---|
|  |  |  | <if test="(record.shopId!=null and record.shopId!='') or  (record.shopId!='' and record.shopId==0)  "> | 
|---|
|  |  |  | and shop_id  = #{record.shopId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="(record.companyId!=null and record.companyId!='') or  (record.companyId!='' and record.companyId==0)  "> | 
|---|
|  |  |  | and company_id  = #{record.companyId} | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  |  | 
|---|
|  |  |  | </sql> | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="record.orderId != null "> | 
|---|
|  |  |  | order_id  = #{record.orderId}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.receive_id != null "> | 
|---|
|  |  |  | receive_id  = #{record.receive_id}, | 
|---|
|  |  |  | <if test="record.receiveId != null "> | 
|---|
|  |  |  | receive_id  = #{record.receiveId}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.userId != null and record.userId != '' "> | 
|---|
|  |  |  | user_id  = #{record.userId}, | 
|---|
|  |  |  | 
|---|
|  |  |  | <if test="record.shopId != null "> | 
|---|
|  |  |  | shop_id  = #{record.shopId}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | <if test="record.companyId != null "> | 
|---|
|  |  |  | company_id  = #{record.companyId}, | 
|---|
|  |  |  | </if> | 
|---|
|  |  |  | </set> | 
|---|
|  |  |  | WHERE id=#{record.id} | 
|---|
|  |  |  | </update> | 
|---|