SELECT <includerefid="Base_Column_List"></include> FROM Z_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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="selectMaps"resultType="HashMap">
SELECT <choose><whentest="ew != null and ew.sqlSelect != null">${ew.sqlSelect}</when><otherwise><includerefid="Base_Column_List"></include></otherwise></choose> FROM Z_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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="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_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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="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_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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="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_INSPECTION_ITEM_DETAIL
<where>
<iftest="ew!=null">
<iftest="ew.entity!=null">
<iftest="ew.entity.handle!=null">
HANDLE=#{ew.entity.handle}
</if>
<iftest="ew.entity.inspectionItemBo!=null"> AND INSPECTION_ITEM_BO=#{ew.entity.inspectionItemBo}</if>
<iftest="ew.entity.seq!=null"> AND SEQ=#{ew.entity.seq}</if>
<iftest="ew.entity.paramNo!=null"> AND PARAM_NO=#{ew.entity.paramNo}</if>
<iftest="ew.entity.description!=null"> AND DESCRIPTION=#{ew.entity.description}</if>
<iftest="ew.entity.inspectionMethod!=null"> AND INSPECTION_METHOD=#{ew.entity.inspectionMethod}</if>
<iftest="ew.entity.paramType!=null"> AND PARAM_TYPE=#{ew.entity.paramType}</if>
<iftest="ew.entity.paramUnit!=null"> AND PARAM_UNIT=#{ew.entity.paramUnit}</if>
<iftest="ew.entity.decimalNum!=null"> AND DECIMAL_NUM=#{ew.entity.decimalNum}</if>
<iftest="ew.entity.minValue!=null"> AND MIN_VALUE=#{ew.entity.minValue}</if>
<iftest="ew.entity.standardValue!=null"> AND STANDARD_VALUE=#{ew.entity.standardValue}</if>
<iftest="ew.entity.maxValue!=null"> AND MAX_VALUE=#{ew.entity.maxValue}</if>
<iftest="ew.entity.falseValue!=null"> AND FALSE_VALUE=#{ew.entity.falseValue}</if>
<iftest="ew.entity.trueValue!=null"> AND TRUE_VALUE=#{ew.entity.trueValue}</if>
<iftest="ew.entity.isRequired!=null"> AND IS_REQUIRED=#{ew.entity.isRequired}</if>
<iftest="ew.entity.checkNum!=null"> AND CHECK_NUM=#{ew.entity.checkNum}</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">