| | |
| | | left join t_sys_order_goods tsog on tso.id = tsog.order_id |
| | | left join t_erp_goods teg on tepg.goods_id = teg.id |
| | | where tso.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | and tso.clinic_id = #{clinicId} |
| | | and tso.clinic_id in <foreach collection="clinicIds" open="(" separator="," item="id" close=")">#{id}</foreach> |
| | | </select> |
| | | <select id="clinicSalesStatisticsTypeCount" resultType="java.lang.Integer"> |
| | | select count(1) |
| | |
| | | left join t_sys_order_goods tsog on tso.id = tsog.order_id |
| | | left join t_erp_goods teg on tepg.goods_id = teg.id |
| | | where tso.disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} |
| | | and tso.clinic_id = #{clinicId} |
| | | and tso.clinic_id in <foreach collection="clinicIds" open="(" separator="," item="id" close=")">#{id}</foreach> |
| | | group by teg.type_id |
| | | </select> |
| | | <select id="clinicSalesStatisticsMoney" resultType="java.math.BigDecimal"> |