2025-09-10 18:43:11 +08:00

20 lines
1.0 KiB
XML

<?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.czlis.interfaceCommon.mapper.LisPatlogMapper">
<select id="getLisPatlogList" resultType="com.czlis.common.core.domain.entity.lis.LisPatlog">
select * from lis_patlog where yq = #{yq} and jyrq = #{jyrq} and ybh = #{ybh}
</select>
<select id="getLisPatlog" resultType="String">
select * from lis_patlog where yq = #{yq} and jyrq = #{jyrq} and ybh = #{ybh} and xgrq={xgrq}
</select>
<select id="getLisPatlogbz" resultType="String">
select top 1 bz1 from lis_patlog where yq = #{yq} and jyrq = #{jyrq} and ybh = #{ybh} order by xgrq desc
</select>
<insert id="insertLisPatlog" parameterType="com.czlis.common.core.domain.entity.lis.LisPatlog">
insert into lis_patlog (jyrq, yq, ybh, xgrq, xgyhdh, bz1)
values (#{jyrq}, #{yq}, #{ybh},#{xgrq}, #{xgyhdh},#{bz1})
</insert>
</mapper>