SELECT <includerefid="Base_Column_List"></include> FROM Z_NWA_USER
<where>
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</where>
</select>
<selectid="selectCount"resultType="Integer">
SELECT COUNT(1) FROM Z_NWA_USER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</if>
<iftest="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<selectid="selectList"resultMap="BaseResultMap">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</if>
<iftest="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</if>
<iftest="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<selectid="selectObjs"resultType="Object">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</if>
<iftest="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<selectid="selectPage"resultMap="BaseResultMap">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</if>
<iftest="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">
${ew.sqlSegment}
</if>
</select>
<selectid="selectMapsPage"resultType="HashMap">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_NWA_USER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.userName!=null"> AND USER_NAME=#{ew.entity.userName}</if>
<iftest="ew.entity.firstName!=null"> AND FIRST_NAME=#{ew.entity.firstName}</if>
<iftest="ew.entity.lastName!=null"> AND LAST_NAME=#{ew.entity.lastName}</if>
<iftest="ew.entity.fullName!=null"> AND FULL_NAME=#{ew.entity.fullName}</if>
<iftest="ew.entity.password!=null"> AND PASSWORD=#{ew.entity.password}</if>
<iftest="ew.entity.salt!=null"> AND SALT=#{ew.entity.salt}</if>
<iftest="ew.entity.phone!=null"> AND PHONE=#{ew.entity.phone}</if>
<iftest="ew.entity.avatar!=null"> AND AVATAR=#{ew.entity.avatar}</if>
<iftest="ew.entity.deptId!=null"> AND DEPT_ID=#{ew.entity.deptId}</if>
<iftest="ew.entity.createTime!=null"> AND CREATE_TIME=#{ew.entity.createTime}</if>
<iftest="ew.entity.updateTime!=null"> AND UPDATE_TIME=#{ew.entity.updateTime}</if>
<iftest="ew.entity.lockFlag!=null"> AND LOCK_FLAG=#{ew.entity.lockFlag}</if>
<iftest="ew.entity.delFlag!=null"> AND DEL_FLAG=#{ew.entity.delFlag}</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.deptDesc!=null"> AND DEPT_DESC=#{ew.entity.deptDesc}</if>
<iftest="ew.entity.validFrom!=null"> AND VALID_FROM=#{ew.entity.validFrom}</if>
<iftest="ew.entity.validTo!=null"> AND VALID_TO=#{ew.entity.validTo}</if>
<iftest="ew.entity.jobTitle!=null"> AND JOB_TITLE=#{ew.entity.jobTitle}</if>
<iftest="ew.entity.email!=null"> AND EMAIL=#{ew.entity.email}</if>
</if>
<iftest="ew!=null and ew.sqlSegment!=null and ew.nonEmptyOfWhere">
${ew.sqlSegment}
</if>
</if>
</where>
<iftest="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">