Sfoglia il codice sorgente

待审核订单个数修改

rgb 6 anni fa
parent
commit
631fe9bd82

+ 4 - 1
diagbotman-service/src/main/java/com/diagbot/mapper/ProductOrderMapper.java

@@ -27,6 +27,9 @@ public interface ProductOrderMapper extends BaseMapper<ProductOrder> {
 	 */
 	ProductOrder selctOrderTimeByOrderNum(ProductOrder productOrder);
 	
-	
+	/**
+	 * 待审核订单个数
+	 * @return
+	 */
 	int waitExamOrderCou();
 }

+ 6 - 0
diagbotman-service/src/main/resources/mapper/ProductOrderMapper.xml

@@ -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>