Browse Source

新增证书唯一数据

赵冬冬 4 năm trước cách đây
mục cha
commit
7aad3c4fe4

+ 9 - 2
carbon-h5/carbon-h5-service/src/main/resources/com/hcloud/microserver/h5/dao/GoodsOrderInfoMapper.xml

@@ -112,7 +112,14 @@
             1 = 1
         AND aa.fk_customer_guid = #{customerId}
         <if test="orderStatus!=null and orderStatus!=-1">
-        AND aa.order_status=#{orderStatus}
+            <choose>
+                <when test="orderStatus == 1">
+                    AND aa.order_status=1
+                </when>
+                <otherwise>
+                    AND aa.order_status!=1
+                </otherwise>
+            </choose>
         </if>
       order by aa.create_time desc
   </select>
@@ -311,7 +318,7 @@
         FROM
         t_goods_order_info aa
         WHERE
-        aa.state = 1
+        1=1
         AND aa.guid = #{guid}
     </select>
 </mapper>