| | |
| | | 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, |
| | |
| | | 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} |
| | |
| | | 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} |
| | |
| | | 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 |