| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="deleted" column="deleted"/> |
| | | <result property="fromBy" column="from_by"/> |
| | | <result property="zzsjj" column="zzsjj" typeHandler="com.ltkj.common.mybatis.JsonStringArrayTypeHandler"/> |
| | | </resultMap> |
| | | |
| | | <resultMap id="TjAskMedicalHistoryTjAskHistorysResult" type="TjAskMedicalHistory" extends="TjAskMedicalHistoryResult"> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectTjAskMedicalHistoryVo"> |
| | | select ask_id, cus_id, cus_name, work, work_status, medical_history, chuchao, jingqi, zhouqi, mociage, zinv, liuchan, zaochan, sichan, yichangtai, xiyan, xiyanpinlv, xiyanyear, yinjiu, yinjiupinlv, yinjiuyear, qita, remark, create_by, create_time, update_by, update_time, deleted,from_by |
| | | select ask_id, cus_id, cus_name, work, work_status, medical_history, chuchao, jingqi, zhouqi, mociage, zinv, liuchan, |
| | | zaochan, sichan, yichangtai, xiyan, xiyanpinlv, xiyanyear, yinjiu, yinjiupinlv, yinjiuyear, qita, remark, create_by, |
| | | create_time, update_by, update_time, deleted,from_by,zzsjj |
| | | from tj_ask_medical_history |
| | | </sql> |
| | | |
| | |
| | | }) |
| | | </foreach> |
| | | </insert> |
| | | |
| | | |
| | | <select id="selectTjAskMedicalHistoryByTjNum" parameterType="String" resultMap="TjAskMedicalHistoryResult"> |
| | | <include refid="selectTjAskMedicalHistoryVo"/> |
| | | where tj_num = #{tjNum} |
| | | and deleted=0 |
| | | </select> |
| | | </mapper> |