zjh
2025-05-19 7b93b49469e5dab9ac01dc154b2e3572e9acfb43
ltkj-hosp/src/main/resources/mapper/hosp/TjAskMedicalHistoryMapper.xml
@@ -70,42 +70,10 @@
    <sql id="selectTjAskMedicalHistoryVo">
        select ask_id,
               cus_id,
               cus_name,
               work,
               work_status,
               medical_history_ids,
               medical_history,
               medical_history_other,
               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,
               contact_poison,
               gong_zhong,
               gong_ling,
               jhgl,
               dwmc,
               ygdw
               cus_name, work, work_status, medical_history_ids, medical_history, medical_history_other, 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, contact_poison,
            gong_zhong, gong_ling, jhgl, dwmc, ygdw, tjwhys, jcwhys,yjsfyc
        from tj_ask_medical_history
    </sql>
@@ -176,8 +144,8 @@
                   sub_update_time,
               b.deleted         as
                   sub_deleted,
            a.dwmc,
            a.ygdw
               a.dwmc,
               a.ygdw
        from tj_ask_medical_history a
                 left join tj_ask_historys b on b.ask_id = a.ask_id
        where a.ask_id = #{askId}
@@ -251,6 +219,12 @@
            </if>
            <if test="ygdw != null">ygdw,
            </if>
            <if test="tjwhys != null">tjwhys,
            </if>
            <if test="jcwhys != null">jcwhys,
            </if>
            <if test="yjsfyc != null">yjsfyc,
            </if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="cusId != null">#{cusId},
@@ -317,6 +291,12 @@
            </if>
            <if test="ygdw != null">#{ygdw},
            </if>
            <if test="ygdw != null">#{tjwhys},
            </if>
            <if test="ygdw != null">#{jcwhys},
            </if>
            <if test="ygdw != null">#{yjsfyc},
            </if>
        </trim>
    </insert>