| | |
| | | <result property="ID" column="ID"/> |
| | | <result property="SourceSystem" column="SourceSystem"/> |
| | | <result property="MessageID" column="MessageID"/> |
| | | <result property="CreateTime" column="CreateTime"/> |
| | | <!-- 原为 property="CreateTime":实体上只有 createTime(其余 ID/SourceSystem/MessageID/ |
| | | PatientID 等大写属性在实体里确有同名字段,只有这个没有), |
| | | 结果映射会抛 ReflectionException: no setter for 'CreateTime'。 --> |
| | | <result property="createTime" column="CreateTime"/> |
| | | <result property="MethodName" column="MethodName"/> |
| | | <result property="ReqIimRules" column="ReqIimRules"/> |
| | | <result property="PatientID" column="PatientID"/> |
| | |
| | | |
| | | <select id="selectHospitalUserinfoList" parameterType="HospitalUserinfo" resultMap="HospitalUserinfoResult"> |
| | | <include refid="selectHospitalUserinfoVo"/> |
| | | <where> |
| | | where 1=1 |
| | | <if test="SourceSystem != null and SourceSystem != ''">and SourceSystem = #{SourceSystem}</if> |
| | | <if test="MessageID != null and MessageID != ''">and MessageID = #{MessageID}</if> |
| | | <if test="CreateTime != null and CreateTime != ''">and CreateTime = #{CreateTime}</if> |
| | | <if test="createTime != null and createTime != ''">and CreateTime = #{createTime}</if> |
| | | <if test="MethodName != null and MethodName != ''">and MethodName like concat('%', #{MethodName}, '%')</if> |
| | | <if test="ReqIimRules != null and ReqIimRules != ''">and ReqIimRules = #{ReqIimRules}</if> |
| | | <if test="PatientID != null and PatientID != ''">and PatientID = #{PatientID}</if> |
| | |
| | | <if test="Bednur != null and Bednur != ''">and Bednur = #{Bednur}</if> |
| | | <if test="Regdoc != null and Regdoc != ''">and Regdoc = #{Regdoc}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectHospitalUserinfoByID" parameterType="Long" resultMap="HospitalUserinfoResult"> |
| | |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="SourceSystem != null">SourceSystem,</if> |
| | | <if test="MessageID != null">MessageID,</if> |
| | | <if test="CreateTime != null and CreateTime != ''">CreateTime,</if> |
| | | <if test="createTime != null and createTime != ''">CreateTime,</if> |
| | | <if test="MethodName != null">MethodName,</if> |
| | | <if test="ReqIimRules != null">ReqIimRules,</if> |
| | | <if test="PatientID != null">PatientID,</if> |
| | |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="SourceSystem != null">#{SourceSystem},</if> |
| | | <if test="MessageID != null">#{MessageID},</if> |
| | | <if test="CreateTime != null and CreateTime != ''">#{CreateTime},</if> |
| | | <if test="createTime != null and createTime != ''">#{createTime},</if> |
| | | <if test="MethodName != null">#{MethodName},</if> |
| | | <if test="ReqIimRules != null">#{ReqIimRules},</if> |
| | | <if test="PatientID != null">#{PatientID},</if> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="SourceSystem != null">SourceSystem = #{SourceSystem},</if> |
| | | <if test="MessageID != null">MessageID = #{MessageID},</if> |
| | | <if test="CreateTime != null">CreateTime = #{CreateTime},</if> |
| | | <if test="createTime != null">CreateTime = #{createTime},</if> |
| | | <if test="MethodName != null">MethodName = #{MethodName},</if> |
| | | <if test="ReqIimRules != null">ReqIimRules = #{ReqIimRules},</if> |
| | | <if test="PatientID != null">PatientID = #{PatientID},</if> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="SourceSystem != null">SourceSystem = #{SourceSystem},</if> |
| | | <if test="MessageID != null">MessageID = #{MessageID},</if> |
| | | <if test="CreateTime != null">CreateTime = #{CreateTime},</if> |
| | | <if test="createTime != null">CreateTime = #{createTime},</if> |
| | | <if test="MethodName != null">MethodName = #{MethodName},</if> |
| | | <if test="ReqIimRules != null">ReqIimRules = #{ReqIimRules},</if> |
| | | <if test="PatientID != null">PatientID = #{PatientID},</if> |