<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="COM_BASE_SPLINE_STD">
    <query id="ComBaseSplineStd.query" desc="查询">
        <![CDATA[
SELECT T.*,
       TO_CHAR((SELECT wm_concat(A.STD_NAME)
                 FROM COM_BASE_STD A
                WHERE INSTR(T.SPLINE_STD_CODE, A.STD_CODE) > 0)) SPLINE_STD_NAME
  FROM COM_BASE_SPLINE_STD T
 ORDER BY SPLINE_STD_NAME
        ]]>
    </query>
    
    <query id="ComBaseSplineStd.insert" desc="新增">
        <![CDATA[
insert into com_base_spline_std
  (spline_direction, spline_std_code, id)
values
  ({0}, {1}, {2})
        ]]>
    </query>
    
    <query id="ComBaseSplineStd.getMaxId" desc="获取最大的ID">
        <![CDATA[
SELECT NVL(MAX(B.ID), 1) + 1 ID FROM com_base_spline_std B
        ]]>
    </query>
    
    <query id="ComBaseSplineStd.update" desc="修改">
        <![CDATA[
update com_base_spline_std
   set spline_direction = {0}, spline_std_code = {1}
 where id = {2}
        ]]>
    </query>
    
    <query id="ComBaseSplineStd.delete" desc="删除">
        <![CDATA[
DELETE FROM com_base_spline_std T WHERE T.ID = {0}
        ]]>
    </query>
</queryMap>