<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="权限功能表查询">
	<query id="CoreOrderPrice.doQuery" desc="查询">
		<![CDATA[
			SELECT 'FALSE' CHK,MANAG_NO,ORDER_NO,PRICE_NO,PRICE_BASE FROM SLM_ORDER_PRICE
			WHERE MANAG_NO=? AND ORDER_NO=?
		]]>
	</query>
	
	<query id="CoreOrderPrice.GetMaxIndexSeq" desc="">
		<![CDATA[
			SELECT 
			MAX(PRICE_NO)
			FROM SLM_ORDER_PRICE
			WHERE MANAG_NO=? AND ORDER_NO=?
		]]>
	</query>
	
	<query id="CoreOrderPrice.ADD" desc="新增">
		<![CDATA[
			 INSERT INTO SLM_ORDER_PRICE(
					            MANAG_NO,
					            ORDER_NO,
					            PRICE_BASE,
					            CREATE_NAME,
					            CREATE_TIME,
					            PRICE_NO
								) 
					            VALUES
					            (
					            ?,?,?,?,
					            SYSDATE,?)
		]]>
	</query>
	
	<query id="CoreOrderPrice.MODIFY" desc="修改">
		<![CDATA[
			 UPDATE SLM_ORDER_PRICE set
							PRICE_BASE=?,
							UPDATE_NAME=?, 
							UPDATE_TIME=SYSDATE
							WHERE 
							MANAG_NO=? AND ORDER_NO=? AND PRICE_NO=?
		]]>
	</query>
	
	
	<query id="CoreOrderPrice.UpdateOrderSts" desc="更改合同行状态">
		<![CDATA[
			 UPDATE SLM_ORDER_HEAD 
			 SET ORDER_STS='120211',ORDER_STS_DESC='待审批' 
			 WHERE MANAG_NO=? AND ORDER_NO=?
		]]>
	</query>
	
	<query id="CoreOrderPrice.doDelete" desc="删除">
		<![CDATA[
			 DELETE SLM_ORDER_PRICE WHERE MANAG_NO=? AND ORDER_NO=? AND PRICE_NO=?
		]]>
	</query>
	
</queryMap>