Commit 5bea06c0 by xiaoyj

工单批量绑定商户create by xiaoyj 2018/4/26

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@21065 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent b1cc7a05
...@@ -1000,7 +1000,16 @@ ...@@ -1000,7 +1000,16 @@
sor.sub_order_id = #{orderId} sor.sub_order_id = #{orderId}
</select> </select>
<update id="updateOrdersBindShop" parameterType="com.glsx.ordercenter.pojo.SysOrder"> <update id="updateOrdersBindShop" parameterType="com.glsx.ordercenter.pojo.SysOrder">
UPDATE sys_order so SET so.shop_id=#{shopId},so.service_type=#{serviceType} where so.work_order_no=#{workOrderNo} AND so.channel=#{channel} UPDATE sys_order so SET so.shop_id=#{shopId},so.service_type=#{serviceType}
<choose>
<when test="workOrderNo!=null and channel!=null">
where so.work_order_no=#{workOrderNo} AND so.channel=#{channel}
</when>
<otherwise>
where so.id=#{id}
</otherwise>
</choose>
</update> </update>
</mapper> </mapper>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!