Skip to content

Commit

Permalink
update additional function
Browse files Browse the repository at this point in the history
  • Loading branch information
i0712326 committed Apr 11, 2015
1 parent 0eaa748 commit 448a3e5
Show file tree
Hide file tree
Showing 35 changed files with 329 additions and 118 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/batch\:/BcnxWebService/batch/batchContext.xml=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<graph>\r\n<element clazz\="JobModelElement" type\="job">\r\n<structure end\="1735" endstart\="1723" start\="1451" startend\="1472"/>\r\n<bounds height\="118" width\="84" x\="15" y\="17"/>\r\n</element>\r\n</graph>
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/batch\:/BcnxWebService/batch/batch_configure.xml=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<graph>\r\n<element clazz\="JobModelElement" type\="job">\r\n<structure end\="2328" endstart\="2316" start\="1346" startend\="1367"/>\r\n<bounds height\="418" width\="164" x\="15" y\="17"/>\r\n</element>\r\n</graph>
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/batch\:/BcnxWebService/webapp/WEB-INF/quartz/batch_context.xml=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<graph/>
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/batch\:/BcnxWebService/webapp/WEB-INF/quartz/batch_job_context.xml=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<graph>\r\n<element clazz\="JobModelElement" type\="job">\r\n<structure end\="2290" endstart\="2278" start\="1308" startend\="1329"/>\r\n<bounds height\="418" width\="164" x\="15" y\="17"/>\r\n</element>\r\n</graph>
//com.springsource.sts.config.flow.coordinates\:http\://www.springframework.org/schema/batch\:/BcnxWebService/webapp/WEB-INF/quartz/batch_job_context.xml=<?xml version\="1.0" encoding\="UTF-8"?>\r\n<graph>\r\n<element clazz\="JobModelElement" type\="job">\r\n<structure end\="2278" endstart\="2266" start\="1308" startend\="1329"/>\r\n<bounds height\="418" width\="164" x\="15" y\="17"/>\r\n</element>\r\n</graph>
eclipse.preferences.version=1
2 changes: 2 additions & 0 deletions BcnxWebService/.springBeans
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
<config>batch/batch_configure.xml</config>
<config>webapp/WEB-INF/quartz/batch_job_context.xml</config>
<config>webapp/WEB-INF/quartz/batch_job_scheduler.xml</config>
<config>webapp/WEB-INF/proccode_context.xml</config>
<config>webapp/WEB-INF/exception_context.xml</config>
</configs>
<autoconfigs>
</autoconfigs>
Expand Down
1 change: 1 addition & 0 deletions BcnxWebService/configure/applicationContext.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,6 @@
<import resource="dispute_context.xml"/>
<import resource="reasoncode_context.xml"/>
<import resource="settleBcnx_context.xml"/>
<import resource="proccode_context.xml"/>
<import resource="quartz/batch_scheduler.xml"/>
</beans>
13 changes: 13 additions & 0 deletions BcnxWebService/configure/proccode_context.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">

<import resource="datasource.xml"/>
<bean id="procCodeDao" class="com.bcnx.web.app.service.dao.ProcCodeDaoImp">
<property name="sessionFactory" ref="sessionFactory"/>
</bean>
<bean id="procCodeService" class="com.bcnx.web.app.service.ProcCodeServiceImp">
<property name="procCodeDao" ref="procCodeDao"/>
</bean>
</beans>
23 changes: 21 additions & 2 deletions BcnxWebService/queries/BcnxSettle.hbm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,32 @@
"-//Hibernate/Hibernate Mapping DTD//EN"
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<query name="getBcnxFinIss">
from BcnxSettle b where b.date = :date and b.iss = :id and b.res = '00' and b.acq != '002587' and b.rrn
not in (select bb.rrn from BcnxSettle bb where bb.date =:date and bb.iss = :id and bb.mti = '0420' )
order by b.time
</query>
<query name="getBcnxFinAcq">
from BcnxSettle b where b.date = :date and b.acq = :id and b.res = '00' and b.iss != '002587' and b.rrn
not in (select bb.rrn from BcnxSettle bb where bb.date =:date and bb.acq = :id and bb.mti = '0420' )
order by b.time
</query>
<query name="getBcnxRev">
from BcnxSettle b where b.date = :date and ( b.acq =:id or b.iss =:id )and b.res = '00' and b.mti = '0420' and
(b.iss!='002587' or b.acq!='002587') order by b.time
</query>
<query name="getBcnxErr">
from BcnxSettle b where b.date = :date and ( b.acq =:id or b.iss =:id )and b.res !='00' and b.mti = '0200'
and (b.iss!='002587' or b.acq!='002587') and b.rrn not in
( select bb.rrn from BcnxSettle bb where bb.date =:date and bb.acq = :id and bb.mti = '0420' ) order by b.time
</query>
<query name="getBcnxSettle">
from BcnxSettle b where b.rrn = :rrn and b.mti = :mti and b.stan = :stan and b.slot = :slot
</query>
<query name="getBcnxSettles">
from BcnxSettle bs where bs.card like :card or bs.rrn like :rrn or bs.stan like :stan or bs.date between :start and :end
from BcnxSettle bs where bs.card like :card and bs.rrn like :rrn and bs.stan like :stan and bs.date between :start and :end
</query>
<query name="countBcnxSettles">
select count(bs) from BcnxSettle bs where bs.card like :card or bs.rrn like :rrn or bs.stan like :stan or bs.date between :start and :end
select count(bs) from BcnxSettle bs where bs.card like :card and bs.rrn like :rrn and bs.stan like :stan and bs.date between :start and :end
</query>
</hibernate-mapping>
Loading

0 comments on commit 448a3e5

Please sign in to comment.