| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367 |
- <?xml version="1.0" encoding='UTF-8'?>
-
- <queryMap desc="配置管理">
- <query id="frmSysdate.select" desc="获取服务器系统时间" fetchSize="10">
- <![CDATA[
- select to_char(sysdate,'yyyy-mm-dd hh24:mi:ss') vdate from dual
- ]]>
- </query>
- <query id="frmBaseInfo.select" desc="基础信息" fetchSize="10">
- <![CDATA[
-
- select t.basecode, t.sortcode pid, t.basename
- from COM_BASE_INFO t
- where t.flag = '1'
- and length(t.basecode) > 1
- $
- order by t.basecode
- ]]>
- </query>
-
- <query id="frmBaseInfo_Parent.select" desc=" 获取父节点信息" fetchSize="10">
- <![CDATA[
- SELECT BASECODE,
- BASENAME,
- SORTCODE,
- ISVISIBLE,
- MNEMONIC_CODE,
- SEQ,
- FLAG,
- CREATE_NAME,
- CREATE_TIME,
- UPDATE_NAME,
- UPDATE_TIME,
- DELETE_NAME,
- DELETE_TIME,
- VALIDFLAG,
- MEMO,
- COEFFICIENT
- FROM COM_BASE_INFO
- WHERE BASECODE = ?
- AND VALIDFLAG = '1'
- ]]>
- </query>
- <query id="frmBaseInfo_Children.select" desc=" 获取对应结点的子节点信息" fetchSize="10">
- <![CDATA[
- SELECT BASECODE,
- BASENAME,
- SORTCODE,
- ISVISIBLE,
- MNEMONIC_CODE,
- SEQ,
- FLAG,
- CREATE_NAME,
- CREATE_TIME,
- UPDATE_NAME,
- UPDATE_TIME,
- DELETE_NAME,
- DELETE_TIME,
- VALIDFLAG,
- MEMO,
- COEFFICIENT
- FROM COM_BASE_INFO
- WHERE SORTCODE = ?
- AND VALIDFLAG = '1'
- ]]>
- </query>
- <query id="frmJJBBase_Query.select" desc="交接班配置管理" fetchSize="10">
- <![CDATA[
- select a.itemcode,
- decode(a.itemtype, '0', '设备运行', '1', '耗材消耗') itemtype,
- a.itemname,
- a.stationcode,
- b.description
- from com_item_maintenance a, com_process_info b
- where a.stationcode = b.processname(+) $
- order by a.itemcode
-
- ]]>
- </query>
-
- <query id="frmJJBMgt.Query" desc="交接班配置类型查询" fetchSize="10">
- <![CDATA[
- select a.itemcode,
- decode(a.itemtype, '0', '设备运行', '1', '耗材消耗') itemtype,
- a.itemname,
- a.stationcode
- from com_item_maintenance a
- where a.itemtype = ?
- and a.stationcode = ?
- order by a.itemcode
-
- ]]>
- </query>
-
- <query id="frmGetJJBInfo.Query" desc="交接班信息查询" fetchSize="10">
- <![CDATA[
- select t.numid,
- t.stationcode,
- t.shiftcode,
- t.esdate,
- t.esname,
- t.affirmflag,
- t.esmemo,
- t.mastername,
- t.abnormityflag,
- t1.itemcode,
- t1.itemdatatype,
- t1.itemvalue,
- t2.itemtype,
- t2.itemname
- from stl_es_maininfo t, stl_es_detailinfo t1, com_Item_Maintenance t2
- where t1.itemcode = t2.itemcode
- and t.numid = t1.numid
- and t.stationcode = ?
- and to_char(t.esdate, 'yyyy-MM-dd') = ?
- and t.shiftcode = ?
-
- ]]>
- </query>
-
- <query id="frmJJBDetailInfo.select" desc="判断交接班项目信息是否存在" fetchSize="10">
- <![CDATA[
- select count(1)
- from STL_ES_DETAILINFO t
- where t.numid = ?
- and t.itemcode = ?
- and t.itemdatatype=?
-
- ]]>
- </query>
-
- <query id="frmJJBJudgeESState.select" desc="判断是否交接班" fetchSize="10">
- <![CDATA[
- select t.NUMID,t.AFFIRMFLAG
- from STL_ES_MAININFO t
- where t.stationcode = ?
- and t.shiftcode = ?
- and to_char(t.esdate, 'yyyy-MM-dd') = ?
-
- ]]>
- </query>
-
- <query id="frmJJBBase.select" desc="交接班配置管理-查询" fetchSize="10">
- <![CDATA[
- SELECT * FROM com_ITEM_MAINTENANCE T WHERE T.ITEMCODE=?
-
- ]]>
- </query>
- <query id="frmJJBBase_Add.select" desc="交接班配置管理-添加" fetchSize="10">
- <![CDATA[
- INSERT INTO com_item_maintenance
- (itemcode, itemtype, itemname, stationcode)
- VALUES
- (?,?,?,?)
-
- ]]>
- </query>
-
- <query id="frmJJBBase_Update.select" desc="交接班配置管理-修改" fetchSize="10">
- <![CDATA[
- UPDATE com_item_maintenance
- SET itemname = ?,
- itemtype = ?,
- stationcode = ?
- WHERE itemcode = ?
-
- ]]>
- </query>
-
- <query id="frmJJBBase_Del.select" desc="交接班配置管理-删除" fetchSize="10">
- <![CDATA[
- DELETE com_item_maintenance WHERE itemcode = ?
-
- ]]>
- </query>
-
- <query id="frmJJBDetailInfo.add" desc="新增交接班从表数据" fetchSize="10">
- <![CDATA[
- RES_LG_LFSMANAGE.savejjbdetail
- ]]>
- </query>
-
- <query id="frmStoresProject.select" desc="物料项目配置" fetchSize="10">
- <![CDATA[
- select MaterielCode,
- MaterielType,
- MaterielName,
- MaterielforShort,
- MaterielUnits,
- JmType
- from COM_MATERIEL t where MATERIELTYPE LIKE ? || '%'
-
- ]]>
- </query>
-
- <query id="frmStoresProject_Save.select" desc="物料项目配置-保存" fetchSize="10">
- <![CDATA[
- INSERT INTO COM_MATERIEL
- (MaterielCode, MaterielType, MaterielName, MaterielforShort,MaterielUnits,JmType)
- VALUES
- (?,?,?,?,?,?)
-
- ]]>
- </query>
- <query id="frmStoresProject_Update.select" desc="物料项目配置-修改" fetchSize="10">
- <![CDATA[
- UPDATE COM_MATERIEL
- SET MaterielType = ?,
- MaterielforShort = ?
- WHERE MaterielCode = ?
-
- ]]>
- </query>
- <query id="frmStoresProject_Del.select" desc="物料项目配置-删除" fetchSize="10">
- <![CDATA[
- DELETE COM_MATERIEL WHERE MaterielCode = ?
-
- ]]>
- </query>
- <query id="frmStationconMateriel.select" desc="岗位与物料配置-物料" fetchSize="10">
- <![CDATA[
- select craftposid,
- materielcode,
- materieltype,
- materielname,
- memo
- from COM_STATIONCONMATERIEL where CRAFTPOSID LIKE ? ||'%' and MATERIELTYPE LIKE ? ||'%'
-
- ]]>
- </query>
-
- <query id="frmSMateriel_AddPInfo.select" desc="岗位与物料配置-新增岗位" fetchSize="10">
- <![CDATA[
- INSERT INTO COM_STATIONCONMATERIEL( CRAFTPOSID,MATERIELCODE,MATERIELTYPE,MATERIELNAME,MATERIELFORSHORT) VALUES (?,?,?,?,?)
-
- ]]>
- </query>
-
- <query id="frmSMateriel_DelPInfo.select" desc="岗位与物料配置-删除岗位" fetchSize="10">
- <![CDATA[
- DELETE COM_STATIONCONMATERIEL WHERE craftposid = ? and materielcode= ?
-
- ]]>
- </query>
-
- <query id="frmAdditStat_Load.select" desc="物料消耗加载" fetchSize="10">
- <![CDATA[
- select distinct (a.materielcode) materielcode,
- a.MATERIELTYPE,
- b.materielforshort
- from STL_additives a, COM_MATERIEL b
- where a.materielcode = b.materielcode
- and b.MATERIELTYPE= ? and to_char(a.updatetime, 'yyyy-MM-dd')
- between ? and ?
-
- ]]>
- </query>
-
- <query id="frmAdditStat_Query.select" desc="物料消耗查询" fetchSize="10">
- <![CDATA[
-
- select v.heatprocessno,
- v.heatno,
- v.PLANSTEEL STEEL,
- v.STATIONCODE,
- substr(v.stationcode,3,1) ||'#'|| decode(substr(v.STATIONCODE, 1, 1),
- 'C','转炉',decode(substr(v.STATIONCODE, 1, 1),
- 'D','吹氩站',decode(substr(v.STATIONCODE, 1, 1),
- 'E','精炼炉',decode(substr(v.STATIONCODE, 1, 1),
- 'F','RH炉', decode(substr(v.STATIONCODE, 1, 1),'B','脱硫',''))))) wsid,
- v.SHIFTCODE,
- v.MATERIELCODE,
- d.materielname,
- v.MATERIELTYPE,
- round(v.JMWGT,2) JMWGT,
- v.optdate $
- from (select distinct a.heatprocessno,
- a.heatno,
- a.optdate,
- a.PLANSTEEL,
- b.STATIONCODE,
- a.wsid,
- a.SHIFTCODE,
- b.MATERIELCODE,
- b.MATERIELTYPE,
- round(sum(nvl(b.JMWGT,0)) over (partition by b.HEATNO, b.STATIONCODE, b.DISPOSALTIME, b.MATERIELTYPE, b.MATERIELCODE),2) JMWGT $
- from (select * from $ union select * from J#$ ) a, stl_additives b $ $)v
- left join (select * from COM_MATERIEL) d on d.materielcode = v.materielcode order by v.heatprocessno desc
-
-
- ]]>
- </query>
- <query id="frmLTemp_Del.select" desc="液相线温度标准-删除" fetchSize="10">
- <![CDATA[
- DELETE com_LIQUIDUS_TEMP WHERE ID_ = ?
-
- ]]>
- </query>
-
- <query id="frmLTemp_Save.select" desc="液相线温度标准-保存" fetchSize="10">
- <![CDATA[
- INSERT INTO com_LIQUIDUS_TEMP
- (ID_, STEELNAME, LIQUIDUSTEMP)
- VALUES
- (?,?,?)
-
- ]]>
- </query>
-
- <query id="frmLTemp_Update.select" desc="液相线温度标准-修改" fetchSize="10">
- <![CDATA[
- UPDATE com_LIQUIDUS_TEMP
- SET LIQUIDUSTEMP = ?
- WHERE ID_ = ?
-
- ]]>
- </query>
-
- <query id="frmLTemp.select" desc="液相线温度标准查询" fetchSize="10">
- <![CDATA[
- select ID_,
- STEELNAME,
- LIQUIDUSTEMP
- from com_LIQUIDUS_TEMP t where t.steelname=
- decode(?, null, steelname, ?) $ order by ID_
-
-
- ]]>
- </query>
-
- <query id="LTemp_MaxID.select" desc="获取液相线温度最大ID值" fetchSize="10">
- <![CDATA[
- select max(ID_) from com_LIQUIDUS_TEMP t
- ]]>
- </query>
- </queryMap>
|