init:米东项目初始化
This commit is contained in:
50
src/main/resources/mapper/BankbillGetinfoMapper.xml
Normal file
50
src/main/resources/mapper/BankbillGetinfoMapper.xml
Normal file
@@ -0,0 +1,50 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.saye.hospitalgd.mapper.BankbillGetinfoMapper">
|
||||
|
||||
<!--插入银行交易记录-->
|
||||
<insert id="insertBankbillGetinfo" parameterType="HashMap">
|
||||
insert into bankbill_getinfo(trade_date, quartz_id, quartz_name, is_ok, modify_time, bill_table_name,
|
||||
thirdConfigId)
|
||||
values (#{trade_date}, #{quartz_id}, #{quartz_name}, #{is_ok}, #{modify_time}, #{bill_table_name},
|
||||
#{thirdConfigId})
|
||||
ON DUPLICATE KEY UPDATE quartz_id=values(quartz_id),
|
||||
quartz_name=values(quartz_name),
|
||||
is_ok=values(is_ok),
|
||||
modify_time=values(modify_time),
|
||||
thirdConfigId=values(thirdConfigId)
|
||||
</insert>
|
||||
|
||||
<!--查询银行对账单下载记录-->
|
||||
<select id="findBankbillGetinfoList" parameterType="HashMap" resultType="HashMap">
|
||||
select trade_date,quartz_id,quartz_name,is_ok,modify_time,bill_table_name,thirdConfigId from bankbill_getinfo
|
||||
<where>
|
||||
<if test="startTime!=null and startTime!=''">
|
||||
and trade_date >=#{startTime}
|
||||
</if>
|
||||
<if test="startTime!=null and startTime!=''">
|
||||
and trade_date <=#{endTime}
|
||||
</if>
|
||||
<if test="is_ok!=null and is_ok!=''">
|
||||
and is_ok =#{is_ok}
|
||||
</if>
|
||||
</where>
|
||||
order by trade_date desc
|
||||
</select>
|
||||
|
||||
<!--根据id查询银行对账单下载记录-->
|
||||
<select id="findBankbillGetinfoById" parameterType="HashMap" resultType="HashMap">
|
||||
select trade_date, quartz_id, quartz_name, is_ok, modify_time, bill_table_name, thirdConfigId
|
||||
from bankbill_getinfo
|
||||
where trade_date = #{trade_date}
|
||||
and bill_table_name = #{bill_table_name}
|
||||
</select>
|
||||
|
||||
<select id="findBankbillGetinfoByParam" parameterType="HashMap" resultType="HashMap">
|
||||
select trade_date, quartz_id, quartz_name, is_ok, modify_time, bill_table_name, thirdConfigId
|
||||
from bankbill_getinfo
|
||||
where trade_date = #{trade_date}
|
||||
and is_ok = #{is_ok}
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user