From f15d99d9d4fdaff8b13776e861ce958ec9f26749 Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 29 九月 2025 15:03:50 +0800 Subject: [PATCH] 诊所erp --- ruoyi-system/src/main/resources/mapper/system/TErpMaintenanceReminderMapper.xml | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TErpMaintenanceReminderMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TErpMaintenanceReminderMapper.xml index 8fa456d..d4b980c 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TErpMaintenanceReminderMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TErpMaintenanceReminderMapper.xml @@ -59,5 +59,41 @@ and t1.`status` = #{query.status} </if> </select> + <select id="pageList1" resultType="com.ruoyi.system.vo.TErpMaintenanceReminderListVo"> + select t1.id, + t4.goods_name, + t4.type_id, + t2.batch_number, + t1.maintenance_person_id, + t1.maintenance_time, + t1.`status`, + t3.warehouse_no + from t_erp_maintenance_reminder t1 + LEFT JOIN t_erp_clinic_warehousing_batch t2 on t1.warehousing_batch_id = t2.id + left join t_erp_clinic_warehousing t3 on t2.warehousing_id = t3.id + left join t_erp_goods t4 on t2.goods_id = t4.id + where t1.disabled = 0 and #{tomorrow} >= t1.maintenance_time + <if test="user.roleType !=null and user.roleType==4"> + and t1.clinic_supplier_id = #{supplierClinicId} and t1.maintenance_type=1 + </if> + <if test="user.roleType !=null and user.roleType==5"> + and t1.clinic_supplier_id = #{supplierClinicId} and t1.maintenance_type=2 + </if> + <if test="query.warehouseNo != null and query.warehouseNo != ''"> + and t3.warehouse_no =#{query.warehouseNo} + </if> + <if test="query.goodsName != null and query.goodsName != ''"> + and t4.goods_name like concat('%',#{query.goodsName},'%') + </if> + <if test="query.typeId != null and query.typeId != '' "> + and t4.type_id = #{query.typeId} + </if> + <if test="query.batchNumber != null and query.batchNumber != ''"> + and t2.batch_number = #{query.batchNumber} + </if> + <if test="query.status != null "> + and t1.`status` = #{query.status} + </if> + </select> </mapper> -- Gitblit v1.7.1