<?xml version="1.0" encoding="UTF-8"?>
<queryMap desc="COM_BASE_INFO">
    <query id="ComBaseSplineStdSize.Query" desc="查询">
        <![CDATA[
select T.*
  from COM_BASE_SPLINE_STD_SIZE T
  LEFT JOIN COM_BASE_PHY_ITEM A
    ON A.ITEM_CODE = T.ITEM_CODE_S
 WHERE T.ID = {0}
 ORDER BY A.ITEM_NAME
        ]]>
    </query>
    
    <query id="ComBaseSplineStdSize.insert" desc="查询">
        <![CDATA[
insert into COM_BASE_SPLINE_STD_SIZE
  (ITEM_CODE_S, MIN_SIZE, MAX_SIZE, RATE, MIN_SIGN, MAX_SIGN, ID, SEQ)
values
  ({0}, {1}, {2}, {3}, {4}, {5}, {6}, 
  (SELECT NVL(MAX(A.SEQ), 0) + 1 FROM COM_BASE_SPLINE_STD_SIZE A WHERE A.ID = {6}))
        ]]>
    </query>
    
    <query id="ComBaseSplineStdSize.update" desc="查询">
        <![CDATA[
update COM_BASE_SPLINE_STD_SIZE
   set ITEM_CODE_S = {0},
       MIN_SIZE = {1},
       MAX_SIZE = {2},
       RATE = {3},
       MIN_SIGN = {4},
       MAX_SIGN = {5}
 where id = {6}
 and seq = {7}
        ]]>
    </query>
    
    <query id="ComBaseSplineStdSize.delete" desc="查询">
        <![CDATA[
DELETE FROM COM_BASE_SPLINE_STD_SIZE T WHERE T.ID = {0} AND T.SEQ = {1}
        ]]>
    </query>
   
    <query id="ComBaseSplineStdSize.deleteById" desc="查询">
        <![CDATA[
DELETE FROM COM_BASE_SPLINE_STD_SIZE T WHERE T.ID = {0}
        ]]>
    </query>
</queryMap>