| | |
| | | <if test="p.endTime!= null and p.endTime !=''"> |
| | | and DE.create_time <= #{p.endTime} |
| | | </if> |
| | | <include refid="com.kidgrow.oprationcenter.mapper.SysProductMapper.Role_Organization"></include> |
| | | <!-- <include refid="com.kidgrow.oprationcenter.mapper.SysProductMapper.Role_Organization"></include>--> |
| | | </where> |
| | | </sql> |
| | | <select id="groupProductDetail" resultType="com.kidgrow.oprationcenter.vo.GroupProductDetail"> |
| | |
| | | order_id IN ( SELECT id FROM product_order WHERE hospital_id = #{hospitalId} AND department_id = #{departmentId} AND is_del = 0 AND enabled = 1 ) |
| | | AND is_del = 0 |
| | | AND enabled = 1 |
| | | ORDER BY |
| | | create_time DESC |
| | | ORDER BY id DESC |
| | | </select> |
| | | <select id="getUserdProduct" resultType="int"> |
| | | SELECT |