Commit fda3f5aee2ce04ca6b9a161d11365c207cb94510
1 parent
9309e78570
Exists in
master
and in
6 other branches
出院诊断修改
Showing 1 changed file with 8 additions and 8 deletions
platform-biz-service/src/main/resources/mainOrm/master/BabyDiagnoseMapper.xml
View file @
fda3f5a
... | ... | @@ -91,38 +91,38 @@ |
91 | 91 | <sql id="babyDiagnosesCondition"> |
92 | 92 | <where> |
93 | 93 | 1=1 |
94 | - <if test="startDischargeDate != null"> | |
94 | + <if test="startDischargeDate != null and startDischargeDate!=''"> | |
95 | 95 | AND |
96 | 96 | <![CDATA[ |
97 | 97 | DATEDIFF(#{startDischargeDate},cyrq)<=0 |
98 | 98 | ]]> |
99 | 99 | </if> |
100 | - <if test="endDischargeDate != null"> | |
100 | + <if test="endDischargeDate != null and endDischargeDate!=''"> | |
101 | 101 | AND |
102 | 102 | <![CDATA[ |
103 | 103 | DATEDIFF(#{endDischargeDate},cyrq)>=0 |
104 | 104 | ]]> |
105 | 105 | </if> |
106 | - <if test="startBirthDate != null"> | |
106 | + <if test="startBirthDate != null and startBirthDate!=''"> | |
107 | 107 | AND |
108 | 108 | <![CDATA[ |
109 | 109 | DATEDIFF(#{startBirthDate},birth)>=0 |
110 | 110 | ]]> |
111 | 111 | </if> |
112 | - <if test="endBirthDate != null"> | |
112 | + <if test="endBirthDate != null and endBirthDate!=''"> | |
113 | 113 | AND |
114 | 114 | <![CDATA[ |
115 | 115 | DATEDIFF(#{endBirthDate},birth)>=0 |
116 | 116 | ]]> |
117 | 117 | </if> |
118 | - <if test="hospitalizationNo != null"> | |
118 | + <if test="hospitalizationNo != null and hospitalizationNo != ''"> | |
119 | 119 | and blh = #{hospitalizationNo} |
120 | 120 | </if> |
121 | - <if test="babyName != null"> | |
121 | + <if test="babyName != null and babyName!=''"> | |
122 | 122 | and hzxm =#{babyName} |
123 | 123 | </if> |
124 | - <if test="finalDiagnosis != null"> | |
125 | - and cyzddm like '#{finalDiagnosis}%' | |
124 | + <if test="finalDiagnosis != null and finalDiagnosis!= '' "> | |
125 | + and cyzddm like CONCAT(#{finalDiagnosis},'%') | |
126 | 126 | </if> |
127 | 127 | <if test="isbuild != null"> |
128 | 128 | and isbuild = #{isbuild} |