|
146 | 146 | </include> |
147 | 147 | </when> |
148 | 148 | <when test="condition.name == 'status'"> |
149 | | - <if test="condition.value == true"> |
150 | | - sou.enable is true |
| 149 | + <if test="condition.operator == 'IN'"> |
| 150 | + <if test="condition.value == true"> |
| 151 | + sou.enable is true |
| 152 | + </if> |
| 153 | + <if test="condition.value == false"> |
| 154 | + sou.enable is false |
| 155 | + </if> |
151 | 156 | </if> |
152 | | - <if test="condition.value == false"> |
153 | | - sou.enable is false |
| 157 | + <if test="condition.operator == 'NOT_IN'"> |
| 158 | + <if test="condition.value == true"> |
| 159 | + sou.enable is false |
| 160 | + </if> |
| 161 | + <if test="condition.value == false"> |
| 162 | + sou.enable is true |
| 163 | + </if> |
| 164 | + </if> |
| 165 | + <if test="condition.operator == 'EMPTY'"> |
| 166 | + sou.enable IS NULL |
| 167 | + </if> |
| 168 | + <if test="condition.operator == 'NOT_EMPTY'"> |
| 169 | + sou.enable IS NOT NULL |
154 | 170 | </if> |
155 | 171 | </when> |
156 | 172 | <when test="condition.name == 'gender'"> |
157 | | - <if test="condition.value == 'female'"> |
158 | | - su.gender is true |
| 173 | + <if test="condition.operator == 'IN'"> |
| 174 | + <if test="condition.value == 'female'"> |
| 175 | + su.gender is true |
| 176 | + </if> |
| 177 | + <if test="condition.value == 'male'"> |
| 178 | + su.gender is false |
| 179 | + </if> |
| 180 | + </if> |
| 181 | + <if test="condition.operator == 'NOT_IN'"> |
| 182 | + <if test="condition.value == 'female'"> |
| 183 | + su.gender is false |
| 184 | + </if> |
| 185 | + <if test="condition.value == 'male'"> |
| 186 | + su.gender is true |
| 187 | + </if> |
| 188 | + </if> |
| 189 | + <if test="condition.operator == 'EMPTY'"> |
| 190 | + su.gender IS NULL |
159 | 191 | </if> |
160 | | - <if test="condition.value == 'male'"> |
161 | | - su.gender is false |
| 192 | + <if test="condition.operator == 'NOT_EMPTY'"> |
| 193 | + su.gender IS NOT NULL |
162 | 194 | </if> |
163 | 195 | </when> |
164 | 196 | <when test="condition.name == 'email'"> |
|
200 | 232 | <when test="condition.name == 'updateUser'"> |
201 | 233 | <include refid="cn.cordys.common.mapper.CommonMapper.condition"> |
202 | 234 | <property name="condition" value="condition"/> |
203 | | - <property name="column" value="su.update_user"/> |
| 235 | + <property name="column" value="sou.update_user"/> |
204 | 236 | </include> |
205 | 237 | </when> |
206 | 238 | <when test="condition.name == 'createUser'"> |
207 | 239 | <include refid="cn.cordys.common.mapper.CommonMapper.condition"> |
208 | 240 | <property name="condition" value="condition"/> |
209 | | - <property name="column" value="su.create_user"/> |
| 241 | + <property name="column" value="sou.create_user"/> |
210 | 242 | </include> |
211 | 243 | </when> |
212 | 244 | <when test="condition.name == 'onboardingDate'"> |
|
218 | 250 | <when test="condition.name == 'createTime'"> |
219 | 251 | <include refid="cn.cordys.common.mapper.CommonMapper.condition"> |
220 | 252 | <property name="condition" value="condition"/> |
221 | | - <property name="column" value="su.create_time"/> |
| 253 | + <property name="column" value="sou.create_time"/> |
222 | 254 | </include> |
223 | 255 | </when> |
224 | 256 | <when test="condition.name == 'updateTime'"> |
225 | 257 | <include refid="cn.cordys.common.mapper.CommonMapper.condition"> |
226 | 258 | <property name="condition" value="condition"/> |
227 | | - <property name="column" value="su.update_time"/> |
| 259 | + <property name="column" value="sou.update_time"/> |
228 | 260 | </include> |
229 | 261 | </when> |
230 | 262 | <when test="condition.name == 'workCity'"> |
|
0 commit comments