前言 大家可能遇到了这种情况.调用Camera,然后指定自己定义的保存路径,结果返回的Intent为空.我们来分析一下原因. 分析 首先看Camera的部分逻辑,在源代码中的Camera.java的doAttach()方法里面. // First handle the no crop case -- just return the value. If the // caller specifies a "save uri" then write the data to it's //…
目标 当传入参数 @OrderId为空时 不做过滤 sql语句如下 SELECT o.* FROM `order` AS o LEFT JOIN receivemoneyconfirm AS re ON o.OrderID=re.FK_Order WHERE re.FK_Order=IFNULL(@OrderId,re.FK_Order) 起先一直以为 当 @OrderId为空时 对receivemoneyconfirm 表是不做过滤的 也就是 SELECT o.* FROM `order` A…