SELECT <includerefid="Base_Column_List"></include> FROM Z_PRINT_LOG
<where>
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.category!=null"> AND CATEGORY=#{ew.entity.category}</if>
<iftest="ew.entity.printName!=null"> AND PRINT_NAME=#{ew.entity.printName}</if>
<iftest="ew.entity.printTemplate!=null"> AND PRINT_TEMPLATE=#{ew.entity.printTemplate}</if>
<iftest="ew.entity.printParam!=null"> AND PRINT_PARAM=#{ew.entity.printParam}</if>
<iftest="ew.entity.sfc!=null"> AND SFC=#{ew.entity.sfc}</if>
<iftest="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
<iftest="ew.entity.stepId!=null"> AND STEP_ID=#{ew.entity.stepId}</if>
<iftest="ew.entity.operation!=null"> AND OPERATION=#{ew.entity.operation}</if>
<iftest="ew.entity.inventory!=null"> AND INVENTORY=#{ew.entity.inventory}</if>
<iftest="ew.entity.comments!=null"> AND COMMENTS=#{ew.entity.comments}</if>
<iftest="ew.entity.other1!=null"> AND OTHER_1=#{ew.entity.other1}</if>
<iftest="ew.entity.other2!=null"> AND OTHER_2=#{ew.entity.other2}</if>
<iftest="ew.entity.other3!=null"> AND OTHER_3=#{ew.entity.other3}</if>
<iftest="ew.entity.other4!=null"> AND OTHER_4=#{ew.entity.other4}</if>
<iftest="ew.entity.other5!=null"> AND OTHER_5=#{ew.entity.other5}</if>
<iftest="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</if>
<iftest="ew.entity.modifiedDateTime!=null"> AND MODIFIED_DATE_TIME=#{ew.entity.modifiedDateTime}</if>
</where>
</select>
<selectid="selectCount"resultType="Integer">
SELECT COUNT(1) FROM Z_PRINT_LOG
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.category!=null"> AND CATEGORY=#{ew.entity.category}</if>
<iftest="ew.entity.printName!=null"> AND PRINT_NAME=#{ew.entity.printName}</if>
<iftest="ew.entity.printTemplate!=null"> AND PRINT_TEMPLATE=#{ew.entity.printTemplate}</if>
<iftest="ew.entity.printParam!=null"> AND PRINT_PARAM=#{ew.entity.printParam}</if>
<iftest="ew.entity.sfc!=null"> AND SFC=#{ew.entity.sfc}</if>
<iftest="ew.entity.resrce!=null"> AND RESRCE=#{ew.entity.resrce}</if>
<iftest="ew.entity.stepId!=null"> AND STEP_ID=#{ew.entity.stepId}</if>
<iftest="ew.entity.operation!=null"> AND OPERATION=#{ew.entity.operation}</if>
<iftest="ew.entity.inventory!=null"> AND INVENTORY=#{ew.entity.inventory}</if>
<iftest="ew.entity.comments!=null"> AND COMMENTS=#{ew.entity.comments}</if>
<iftest="ew.entity.other1!=null"> AND OTHER_1=#{ew.entity.other1}</if>
<iftest="ew.entity.other2!=null"> AND OTHER_2=#{ew.entity.other2}</if>
<iftest="ew.entity.other3!=null"> AND OTHER_3=#{ew.entity.other3}</if>
<iftest="ew.entity.other4!=null"> AND OTHER_4=#{ew.entity.other4}</if>
<iftest="ew.entity.other5!=null"> AND OTHER_5=#{ew.entity.other5}</if>
<iftest="ew.entity.createUser!=null"> AND CREATE_USER=#{ew.entity.createUser}</if>
<iftest="ew.entity.createdDateTime!=null"> AND CREATED_DATE_TIME=#{ew.entity.createdDateTime}</if>
<iftest="ew.entity.modifyUser!=null"> AND MODIFY_USER=#{ew.entity.modifyUser}</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">
<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_PRINT_LOG
SELECT <includerefid="Base_Column_List"></include> FROM PRINTER
<where>
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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 PRINTER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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 PRINTER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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 PRINTER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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 PRINTER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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 PRINTER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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 PRINTER
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.site!=null"> AND SITE=#{ew.entity.site}</if>
<iftest="ew.entity.printer!=null"> AND PRINTER=#{ew.entity.printer}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.enabled!=null"> AND ENABLED=#{ew.entity.enabled}</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">