主程序

This commit is contained in:
tangw 2025-10-15 18:03:10 +08:00
parent 219363619b
commit d6d2decae0
2 changed files with 105 additions and 63 deletions

View File

@ -35,7 +35,49 @@
<select id="getLabPatJgbz" resultType="String"> <select id="getLabPatJgbz" resultType="String">
select jgbz from lab_pat where yq = #{yq} and jyrq = #{jyrq} and ybh = #{ybh} select jgbz from lab_pat where yq = #{yq} and jyrq = #{jyrq} and ybh = #{ybh}
</select> </select>
<insert id="insertLabPat"> <insert id="insertLabPat" parameterType="com.czlis.common.core.domain.entity.lis.LabPat">
insert into lab_pat (jyrq, yq, ybh,
wyh, yblx, fb, ksdh,
sjys, hdys, yhdh, brdh,
brxm, brxb, brly, ch,
nl, nldw, sqh, sqsj,
dysj, dybz, jgbz, bbbz,
zd, bz, bz1, zjf,
cyrq, bq, czybh,
cjbw, jymd, lastuser,
lastdt, confirmer, confirmdt,
mzdy, fslx, ybzt, instrid,
jzbz, sbbr,
alarmflag, alarmconfirm, alarmconfirmdt,
shcs, mzh, yljg,
finish, send_flag, sfzh, phone,
phone1, addr, faultman,
fault, faults, faultdt,
lstd, zjlx, slzq,
checker, autojgbz
)
values (#{jyrq}, #{yq}, #{ybh},
#{wyh}, #{yblx}, #{fb}, #{ksdh},
#{sjys}, #{hdys}, #{yhdh}, #{brdh},
#{brxm}, #{brxb}, #{brly}, #{ch},
#{nl}, #{nldw}, #{sqh}, #{sqsj},
#{dysj}, #{dybz}, #{jgbz}, #{bbbz},
#{zd}, #{bz}, #{bz1}, #{zjf},
#{cyrq}, #{bq}, #{czybh},
#{cjbw}, #{jymd}, #{lastuser},
#{lastdt}, #{confirmer}, #{confirmdt},
#{mzdy}, #{fslx}, #{ybzt}, #{instrid},
#{jzbz}, #{sbbr},
#{alarmflag}, #{alarmconfirm}, #{alarmconfirmdt},
#{shcs}, #{mzh}, #{yljg},
#{finish}, #{send_flag}, #{sfzh}, #{phone},
#{phone1}, #{addr}, #{faultman},
#{fault}, #{faults}, #{faultdt},
#{lstd}, #{zjlx}, #{slzq},
#{checker}, #{autojgbz}
)
</insert>
<insert id="insertLabPatsort">
insert into lab_pat ( insert into lab_pat (
<if test="wyh != null and wyh !=''">wyh,</if> <if test="wyh != null and wyh !=''">wyh,</if>
<if test="yblx != null and yblx !=''">yblx,</if> <if test="yblx != null and yblx !=''">yblx,</if>
@ -181,187 +223,187 @@
update lab_pat update lab_pat
<set> <set>
<if test="wyh != null"> <if test="wyh != null">
wyh = #{wyh,jdbcType=VARCHAR}, wyh = #{wyh},
</if> </if>
<if test="yblx != null"> <if test="yblx != null">
yblx = #{yblx,jdbcType=VARCHAR}, yblx = #{yblx},
</if> </if>
<if test="fb != null"> <if test="fb != null">
fb = #{fb,jdbcType=VARCHAR}, fb = #{fb},
</if> </if>
<if test="ksdh != null"> <if test="ksdh != null">
ksdh = #{ksdh,jdbcType=VARCHAR}, ksdh = #{ksdh},
</if> </if>
<if test="sjys != null"> <if test="sjys != null">
sjys = #{sjys,jdbcType=VARCHAR}, sjys = #{sjys},
</if> </if>
<if test="hdys != null"> <if test="hdys != null">
hdys = #{hdys,jdbcType=VARCHAR}, hdys = #{hdys},
</if> </if>
<if test="yhdh != null"> <if test="yhdh != null">
yhdh = #{yhdh,jdbcType=VARCHAR}, yhdh = #{yhdh},
</if> </if>
<if test="brdh != null"> <if test="brdh != null">
brdh = #{brdh,jdbcType=VARCHAR}, brdh = #{brdh},
</if> </if>
<if test="brxm != null"> <if test="brxm != null">
brxm = #{brxm,jdbcType=VARCHAR}, brxm = #{brxm},
</if> </if>
<if test="brxb != null"> <if test="brxb != null">
brxb = #{brxb,jdbcType=VARCHAR}, brxb = #{brxb},
</if> </if>
<if test="brly != null"> <if test="brly != null">
brly = #{brly,jdbcType=VARCHAR}, brly = #{brly},
</if> </if>
<if test="ch != null"> <if test="ch != null">
ch = #{ch,jdbcType=VARCHAR}, ch = #{ch},
</if> </if>
<if test="nl != null"> <if test="nl != null">
nl = #{nl,jdbcType=INTEGER}, nl = #{nl},
</if> </if>
<if test="nldw != null"> <if test="nldw != null">
nldw = #{nldw,jdbcType=VARCHAR}, nldw = #{nldw},
</if> </if>
<if test="sqh != null"> <if test="sqh != null">
sqh = #{sqh,jdbcType=VARCHAR}, sqh = #{sqh},
</if> </if>
<if test="sqsj != null"> <if test="sqsj != null">
sqsj = #{sqsj,jdbcType=TIMESTAMP}, sqsj = #{sqsj},
</if> </if>
<if test="dysj != null"> <if test="dysj != null">
dysj = #{dysj,jdbcType=TIMESTAMP}, dysj = #{dysj},
</if> </if>
<if test="dybz != null"> <if test="dybz != null">
dybz = #{dybz,jdbcType=CHAR}, dybz = #{dybz},
</if> </if>
<if test="jgbz != null"> <if test="jgbz != null">
jgbz = #{jgbz,jdbcType=CHAR}, jgbz = #{jgbz},
</if> </if>
<if test="bbbz != null"> <if test="bbbz != null">
bbbz = #{bbbz,jdbcType=CHAR}, bbbz = #{bbbz},
</if> </if>
<if test="zd != null"> <if test="zd != null">
zd = #{zd,jdbcType=VARCHAR}, zd = #{zd},
</if> </if>
<if test="bz != null"> <if test="bz != null">
bz = #{bz,jdbcType=VARCHAR}, bz = #{bz},
</if> </if>
<if test="bz1 != null"> <if test="bz1 != null">
bz1 = #{bz1,jdbcType=VARCHAR}, bz1 = #{bz1},
</if> </if>
<if test="zjf != null"> <if test="zjf != null">
zjf = #{zjf,jdbcType=VARCHAR}, zjf = #{zjf},
</if> </if>
<if test="cyrq != null"> <if test="cyrq != null">
cyrq = #{cyrq,jdbcType=TIMESTAMP}, cyrq = #{cyrq},
</if> </if>
<if test="bq != null"> <if test="bq != null">
bq = #{bq,jdbcType=VARCHAR}, bq = #{bq},
</if> </if>
<if test="czybh != null"> <if test="czybh != null">
czybh = #{czybh,jdbcType=VARCHAR}, czybh = #{czybh},
</if> </if>
<if test="cjbw != null"> <if test="cjbw != null">
cjbw = #{cjbw,jdbcType=VARCHAR}, cjbw = #{cjbw},
</if> </if>
<if test="jymd != null"> <if test="jymd != null">
jymd = #{jymd,jdbcType=VARCHAR}, jymd = #{jymd},
</if> </if>
<if test="lastuser != null"> <if test="lastuser != null">
lastuser = #{lastuser,jdbcType=VARCHAR}, lastuser = #{lastuser},
</if> </if>
<if test="lastdt != null"> <if test="lastdt != null">
lastdt = #{lastdt,jdbcType=TIMESTAMP}, lastdt = #{lastdt},
</if> </if>
<if test="confirmer != null"> <if test="confirmer != null">
confirmer = #{confirmer,jdbcType=VARCHAR}, confirmer = #{confirmer},
</if> </if>
<if test="confirmdt != null"> <if test="confirmdt != null">
confirmdt = #{confirmdt,jdbcType=TIMESTAMP}, confirmdt = #{confirmdt},
</if> </if>
<if test="mzdy != null"> <if test="mzdy != null">
mzdy = #{mzdy,jdbcType=CHAR}, mzdy = #{mzdy},
</if> </if>
<if test="fslx != null"> <if test="fslx != null">
fslx = #{fslx,jdbcType=CHAR}, fslx = #{fslx},
</if> </if>
<if test="ybzt != null"> <if test="ybzt != null">
ybzt = #{ybzt,jdbcType=VARCHAR}, ybzt = #{ybzt},
</if> </if>
<if test="instrid != null"> <if test="instrid != null">
instrid = #{instrid,jdbcType=VARCHAR}, instrid = #{instrid},
</if> </if>
<if test="jzbz != null"> <if test="jzbz != null">
jzbz = #{jzbz,jdbcType=CHAR}, jzbz = #{jzbz},
</if> </if>
<if test="sbbr != null"> <if test="sbbr != null">
sbbr = #{sbbr,jdbcType=VARCHAR}, sbbr = #{sbbr},
</if> </if>
<if test="alarmflag != null"> <if test="alarmflag != null">
alarmflag = #{alarmflag,jdbcType=CHAR}, alarmflag = #{alarmflag},
</if> </if>
<if test="alarmconfirm != null"> <if test="alarmconfirm != null">
alarmconfirm = #{alarmconfirm,jdbcType=VARCHAR}, alarmconfirm = #{alarmconfirm},
</if> </if>
<if test="alarmconfirmdt != null"> <if test="alarmconfirmdt != null">
alarmconfirmdt = #{alarmconfirmdt,jdbcType=TIMESTAMP}, alarmconfirmdt = #{alarmconfirmdt},
</if> </if>
<if test="shcs != null"> <if test="shcs != null">
shcs = #{shcs,jdbcType=INTEGER}, shcs = #{shcs},
</if> </if>
<if test="sn_tss != null"> <if test="sn_tss != null">
sn_tss = #{sn_tss}, sn_tss = #{sn_tss},
</if> </if>
<if test="mzh != null"> <if test="mzh != null">
mzh = #{mzh,jdbcType=VARCHAR}, mzh = #{mzh},
</if> </if>
<if test="yljg != null"> <if test="yljg != null">
yljg = #{yljg,jdbcType=VARCHAR}, yljg = #{yljg},
</if> </if>
<if test="finish != null"> <if test="finish != null">
finish = #{finish,jdbcType=CHAR}, finish = #{finish},
</if> </if>
<if test="send_flag != null"> <if test="send_flag != null">
send_flag = #{sendFlag,jdbcType=CHAR}, send_flag = #{sendFlag},
</if> </if>
<if test="sfzh != null"> <if test="sfzh != null">
sfzh = #{sfzh,jdbcType=VARCHAR}, sfzh = #{sfzh},
</if> </if>
<if test="phone != null"> <if test="phone != null">
phone = #{phone,jdbcType=VARCHAR}, phone = #{phone},
</if> </if>
<if test="phone1 != null"> <if test="phone1 != null">
phone1 = #{phone1,jdbcType=VARCHAR}, phone1 = #{phone1},
</if> </if>
<if test="addr != null"> <if test="addr != null">
addr = #{addr,jdbcType=VARCHAR}, addr = #{addr},
</if> </if>
<if test="faultman != null"> <if test="faultman != null">
faultman = #{faultman,jdbcType=VARCHAR}, faultman = #{faultman},
</if> </if>
<if test="fault != null"> <if test="fault != null">
fault = #{fault,jdbcType=CHAR}, fault = #{fault},
</if> </if>
<if test="faults != null"> <if test="faults != null">
faults = #{faults,jdbcType=VARCHAR}, faults = #{faults},
</if> </if>
<if test="faultdt != null"> <if test="faultdt != null">
faultdt = #{faultdt,jdbcType=TIMESTAMP}, faultdt = #{faultdt},
</if> </if>
<if test="lstd != null"> <if test="lstd != null">
lstd = #{lstd,jdbcType=CHAR}, lstd = #{lstd},
</if> </if>
<if test="zjlx != null"> <if test="zjlx != null">
zjlx = #{zjlx,jdbcType=VARCHAR}, zjlx = #{zjlx},
</if> </if>
<if test="slzq != null"> <if test="slzq != null">
slzq = #{slzq,jdbcType=VARCHAR}, slzq = #{slzq},
</if> </if>
<if test="checker != null"> <if test="checker != null">
checker = #{checker,jdbcType=VARCHAR}, checker = #{checker},
</if> </if>
<if test="autojgbz != null"> <if test="autojgbz != null">
autojgbz = #{autojgbz,jdbcType=CHAR}, autojgbz = #{autojgbz},
</if> </if>
</set> </set>
where jyrq = #{jyrq} where jyrq = #{jyrq}

View File

@ -66,11 +66,11 @@ public class LisWorkOperServiceImpl implements LisWorkOperService {
String brdh1=labPat.getBrdh(); String brdh1=labPat.getBrdh();
if(brdh1==null)brdh1=""; if(brdh1==null)brdh1="";
//通过修改申请号触发病人信息载入 //通过修改申请号触发病人信息载入
if(!"".equals(sqh1)&&sqh1.equals(sqh)){ if(!"".equals(sqh1)&&!sqh1.equals(sqh)){
return lisWorkUtils.newPatInfo(jyrq, ybh, sqh1, yq, problemId); return lisWorkUtils.newPatInfo(jyrq, ybh, sqh1, yq, problemId);
} }
//通过修改住院号触发病人信息载入 //通过修改住院号触发病人信息载入
if(!"".equals(brdh1)&&brdh1.equals(brdh)){ if(!"".equals(brdh1)&&!brdh1.equals(brdh)){
return lisWorkUtils.newPat(jyrq, ybh, yq, brdh1,labPat.getBrly(),labPat.getYljg(), problemId); return lisWorkUtils.newPat(jyrq, ybh, yq, brdh1,labPat.getBrly(),labPat.getYljg(), problemId);
} }
commonUtil.updateLabPat(labPat); commonUtil.updateLabPat(labPat);