zhangyuewww 2 years ago
parent
commit
6d7039d487

+ 3 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/SpeedCustomerInfoMapper.xml

@@ -20,6 +20,9 @@
             OR lower(customer_phone) like lower(CONCAT('%',#{searchKeyWord},'%')))
         </if>
         ORDER BY update_date DESC
+        <if test="currentPage != null and currentPage != ''">
+            LIMIT ${startRecord}, ${pageSize}
+        </if>
     </select>
     <select id="getCountByCondition" parameterType="Map" resultType="java.lang.Integer">
         SELECT

+ 5 - 1
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/SpeedExpenseInfoMapper.xml

@@ -31,7 +31,8 @@
         expense_name as expenseName,
         amount_money as amountMoney,
         remark,
-        address_url as addressUrl
+        address_url as addressUrl,
+        create_date as createDate
         FROM speed_expense_info
         WHERE delete_flag = '0'
         and comp_id= #{compId}
@@ -50,6 +51,9 @@
             AND (DATE_FORMAT(create_date ,"%Y%m%d") &lt;=
             DATE_FORMAT(#{endDate},"%Y%m%d"))
         </if>
+        <if test="currentPage != null and currentPage != ''">
+            LIMIT ${startRecord}, ${pageSize}
+        </if>
     </select>
     <select id="getExpenseTotal" parameterType="Map" resultType="com.yh.saas.plugin.yiliangyiyun.entity.SpeedExpenseInfo">
         SELECT

+ 3 - 0
winsea-haixin-plugin-yiliangyiyun/src/main/resources/mapper/SpeedWarehouseInOutInfoMapper.xml

@@ -104,6 +104,9 @@
             DATE_FORMAT(#{endDate},"%Y%m%d"))
         </if>
         ORDER BY create_date DESC
+        <if test="currentPage != null and currentPage != ''">
+            LIMIT ${startRecord}, ${pageSize}
+        </if>
     </select>
     <select id="getTodayCount" parameterType="Map" resultType="java.lang.Integer">
         SELECT