SELECT <includerefid="Base_Column_List"></include> FROM SFC_DATA
<where>
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</where>
</select>
<selectid="selectCount"resultType="Integer">
SELECT COUNT(1) FROM SFC_DATA
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</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 SFC_DATA
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</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="selectMaps"resultType="HashMap">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM SFC_DATA
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</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 SFC_DATA
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</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 SFC_DATA
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</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 SFC_DATA
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.sfcBo!=null"> AND SFC_BO=#{ew.entity.sfcBo}</if>
<iftest="ew.entity.dateTime!=null"> AND DATE_TIME=#{ew.entity.dateTime}</if>
<iftest="ew.entity.dataField!=null"> AND DATA_FIELD=#{ew.entity.dataField}</if>
<iftest="ew.entity.dataAttr!=null"> AND DATA_ATTR=#{ew.entity.dataAttr}</if>
<iftest="ew.entity.userBo!=null"> AND USER_BO=#{ew.entity.userBo}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</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">