<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root
	xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:og="hybs-taglib.tld" 
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions"
	version="2.0">
<jsp:directive.page language="java" contentType="text/html; charset=UTF-8" />

<!-- update -->
<og:equals val1="{@init}" val2="true" notEquals="true">
	<og:value command="SET" key="orderList" value="{@orderList}" />
	<c:forTokens items = "${orderList}" delims = "," var = "col" >
		<og:equals val1="{@position}" val2="left">
			<og:query displayMsg="" notfoundMsg="" dbid="{@SYS.DEV_DBID}">
				update GF92 set
					CLM = '${fn:split(col,'=')[1]}'
				where SYSTEM_ID = '{@systemId}'
				and PGID = '{@pgId}'
				and TABLE_NAME = '{@tableId}'
				and AS_TABLE = '{@asTable}'
				and SEQ = '${fn:split(col,'=')[0]}'
				and ZOKUSEI like '{@joinId}%'
				and NMSYORI = 'JOIN'
			</og:query>
		</og:equals>
		<og:equals val1="{@position}" val2="right">
			<og:query displayMsg="" notfoundMsg="" dbid="{@SYS.DEV_DBID}">
				update GF92 set
					ZOKUSEI = '{@joinId}__{@tableId}__{@asTable}.${fn:split(col,'=')[1]}'
				where SYSTEM_ID = '{@systemId}'
				and PGID = '{@pgId}'
				and SEQ = '${fn:split(col,'=')[0]}'
				and ZOKUSEI like '{@joinId}__{@tableId}__{@asTable}%'
				and NMSYORI = 'JOIN'
			</og:query>
		</og:equals>
	</c:forTokens>
</og:equals>

</jsp:root>
