|
@@ -0,0 +1,49 @@
|
|
|
+<?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="cn.cslg.report.mapper.InvalidRecordMapper">
|
|
|
+<!-- int deleteInvalidRecord(@Param("id") int id);-->
|
|
|
+ <delete id="deleteInvalidRecord">
|
|
|
+ delete from INVALID_RECORD where ID=#{id}
|
|
|
+ </delete>
|
|
|
+<!-- int updateInvalidRecord(InvalidRecord invalidRecord);-->
|
|
|
+ <update id="updateInvalidRecord">
|
|
|
+ update INVALID_RECORD set(PATENT_NO,PERSON,PERSON_ID,INVALID_TIME,JUDGMENT_TIME,`RESULT`,FILE_ID,REPORT_ID)
|
|
|
+ values(#{patentNo},#{person},#{personId},#{invalidTime},#{judgmentTime},#{`result`},#{fileId},#{reportId})
|
|
|
+ where ID=#{id}
|
|
|
+ </update>
|
|
|
+<!-- int addInvalidRecord(InvalidRecord invalidRecord);-->
|
|
|
+ <insert id="addInvalidRecord">
|
|
|
+ insert into INVALID_RECORD(PATENT_NO,PERSON,PERSON_ID,INVALID_TIME,JUDGMENT_TIME,`RESULT`,FILE_ID,REPORT_ID)
|
|
|
+ values(#{patentNo},#{person},#{personId},#{invalidTime},#{judgmentTime},#{`result`},#{fileId},#{reportId})
|
|
|
+ </insert>
|
|
|
+ <select id="select" resultType="cn.cslg.report.entity.InvalidRecord">
|
|
|
+ <bind name="n" value="(pageNO-1)pageSize"/>
|
|
|
+ select * from INVALID_RECORD
|
|
|
+ <where>
|
|
|
+ <if test="patentNo !='' and patentNo !=null">
|
|
|
+ PATENT_NO like concat('%', #{patentNo}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="person !='' and person !=null">
|
|
|
+ and PERSON like concat('%', #{person}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="personId !='' and personId !=null">
|
|
|
+ and PERSON_ID like concat('%', #{personId}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="invalidTime !='' and invalidTime !=null">
|
|
|
+ and INVALID_TIME like concat('%', #{invalidTime}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="judgmentTime !='' and judgmentTime !=null">
|
|
|
+ and `JUDGMENT_TIME` like concat('%', #{judgmentTime}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="`result` !='' and `result` !=null">
|
|
|
+ and `RESULT` like concat('%', #{`result`}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="caseDetails !='' and caseDetails !=null">
|
|
|
+ and CASE_DETAILS like concat('%', #{caseDetails}, '%')
|
|
|
+ </if>
|
|
|
+ <if test="fileId !='' and fileId !=null">
|
|
|
+ and FILE_ID like concat('%', #{fileId}, '%')
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ </select>
|
|
|
+</mapper>
|