@@ -27,6 +27,9 @@ public interface ProductOrderMapper extends BaseMapper<ProductOrder> {
*/
ProductOrder selctOrderTimeByOrderNum(ProductOrder productOrder);
-
+ /**
+ * 待审核订单个数
+ * @return
+ */
int waitExamOrderCou();
}
@@ -40,6 +40,12 @@
</if>
</select>
+ <select id="waitExamOrderCou" resultType="int">
+ SELECT
+ count(DISTINCT a.num)
+ from diag_product_order a join diag_order_details b on a.num=b.order_num
+ where b.audit_status is null
+ </select>
</mapper>