| | |
| | | <if test="p.id != null and p.id !=''"> |
| | | and id = #{p.id} |
| | | </if> |
| | | <if test="p.parterId != null and p.parterId !=''"> |
| | | and parter_id = #{p.parterId} |
| | | <if test="p.partnerId != null and p.partnerId !=''"> |
| | | and partner_id = #{p.partnerId} |
| | | </if> |
| | | <if test="p.parterName != null and p.parterName !=''"> |
| | | and parter_name = #{p.parterName} |
| | | <if test="p.partnerName != null and p.partnerName !=''"> |
| | | and partner_name like CONCAT('%',#{p.partnerName},'%') |
| | | </if> |
| | | <if test="p.hospitalId != null and p.hospitalId !=''"> |
| | | and hospital_id = #{p.hospitalId} |
| | | </if> |
| | | <if test="p.hospitalName != null and p.hospitalName !=''"> |
| | | and hospital_name = #{p.hospitalName} |
| | | and hospital_name like CONCAT('%', #{p.hospitalName},'%') |
| | | </if> |
| | | <if test="p.departmentId != null and p.departmentId !=''"> |
| | | and department_id = #{p.departmentId} |
| | |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.PartnerDockingInfo"> |
| | | select |
| | | <include refid="Column_List"/> |
| | | from parter_docking_info |
| | | from partner_docking_info |
| | | <include refid="where"/> |
| | | order by id desc |
| | | limit 1 |
| | |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.PartnerDockingInfo"> |
| | | select |
| | | <include refid="Column_List"/> |
| | | from parter_docking_info |
| | | from partner_docking_info |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |