liujie
3 天以前 c3013bb5d539cf08e8faad076c8ad323f9b683ae
ruoyi-system/src/main/resources/mapper/system/TErpProcurementMapper.xml
@@ -35,7 +35,7 @@
        sum(t2.total_price) as totalPrice,
        t1.create_time,
        t2.id tErpProcurementGoodsId,
        t4.user_name,
        t1.create_by as userName,
        t1.status,
        t1.supplier_money,
        t1.money as platformMoney,
@@ -47,7 +47,7 @@
        left join t_crm_clinic t5 on t1.clinic_id = t5.id
        where t1.disabled = 0 and t1.status !=1
        <if test="user.roleType !=null and user.roleType==4">
            and t2.supplier_id =#{supplierClinicId}
            and t2.supplier_id =#{supplierClinicId} and t1.status in(3,4,5)
        </if>
        <if test="query.procurementCode != null and query.procurementCode != ''">
            and t1.procurement_code = #{query.procurementCode}
@@ -56,7 +56,7 @@
            and t3.supplier_name like concat('%',#{query.clinicName},'%')
        </if>
        <if test="query.userName != null and query.userName != ''">
            and t4.user_name like concat('%',#{query.userName},'%')
            and t1.create_by like concat('%',#{query.userName},'%')
        </if>
        <if test="query.status != null">
            and t1.status = #{query.status}
@@ -91,7 +91,8 @@
               t1.logistics_number,
                t1.send_time,
               t1.clinic_id,
               t1.status
               t1.status,
               t1.create_by  userName
               from t_erp_procurement t1
               left JOIN t_crm_clinic t2 on t1.clinic_id = t2.id
        where t1.disabled = 0 and t1.status in(3,4,5) and t1.supplier_id in