ExpirationMapper.xml
6.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<?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.ruoyi.service.mapper.ExpirationMapper">
<insert id="insert" parameterType="com.ruoyi.service.domain.Expiration">
insert into expiration(
<if test="expirationNo != null and expirationNo != ''">expirationNo,</if>
<if test="foreignKey != null and foreignKey != ''">foreignKey,</if>
createTime
)values(
<if test="expirationNo != null and expirationNo != ''">#{expirationNo},</if>
<if test="foreignKey != null and foreignKey != ''">#{foreignKey},</if>
sysdate()
)
</insert>
<!--<resultMap type="Expiration" id="expiration">
<result property="id" column="id" />
<result property="expirationNo" column="expirationNo" />
<result property="foreignKey" column="foreignKey" />
<result property="examineState" column="examineState" />
<result property="expirationType" column="expirationType" />
<result property="createTime" column="createTime" />
<result property="applicant" column="applicant" />
<result property="applicationTime" column="applicationTime" />
<result property="examineUser" column="examineUser" />
<result property="examineTime" column="examineTime" />
<result property="general" column="general" />
<result property="year" column="year" />
<result property="volumeMark" column="volume_mark" />
<result property="title" column="title" />
<result property="safekeepingDate" column="safekeeping_date" />
<result property="vlimeName" column="vlime_name" />
<result property="vlimeDept" column="vlime_dept" />
<result property="vlimeDate" column="vlime_date" />
<result property="file" column="file" />
<result property="testing" column="testing" />
<result property="fileCheck" column="file_check" />
<result property="expireDate" column="expire_date" />
<result property="deportNodeId" column="deport_node_id" />
<result property="secretLevel" column="secret_level" />
<result property="filingDept" column="filing_dept" />
</resultMap>-->
<resultMap type="Expiration" id="expiration">
<result property="id" column="id" />
<result property="expirationNo" column="expirationNo" />
<result property="foreignKey" column="foreignKey" />
<result property="examineState" column="examineState" />
<result property="expirationType" column="expirationType" />
<result property="createTime" column="createTime" />
<result property="applicant" column="applicant" />
<result property="applicationTime" column="applicationTime" />
<result property="examineUser" column="examineUser" />
<result property="examineTime" column="examineTime" />
<result property="general" column="general" />
<result property="year" column="year" />
<result property="title" column="title" />
<result property="sort" column="sort" />
<result property="safekeepingDate" column="safekeeping_date" />
<result property="secretLevel" column="secret_level" />
<result property="pages" column="pages" />
<result property="filingNumber" column="filing_number" />
<result property="zkNumber" column="zk_number" />
<result property="locationCode" column="location_code" />
<result property="filingDept" column="filing_dept" />
<result property="archivalCode" column="archival_code" />
<result property="responsibilityName" column="responsibility_name" />
<result property="serialMark" column="serial_mark" />
<result property="pieceMark" column="piece_mark" />
<result property="registerMark" column="register_mark" />
<result property="counsellors" column="counsellors" />
<result property="filingName" column="filing_name" />
<result property="summaryName" column="summary_name" />
<result property="recordType" column="record_type" />
<result property="carrierType" column="carrier_type" />
<result property="draftName" column="draft_name" />
<result property="page" column="page" />
<result property="documentMark" column="document_mark" />
<result property="text" column="text" />
<result property="status" column="status" />
<result property="apprvoal" column="apprvoal" />
<result property="belongRole" column="belong_role" />
<result property="boxMark" column="box_mark" />
</resultMap>
<!--<select id="selectList" resultMap="expiration" parameterType="com.ruoyi.service.domain.Expiration">
select a.*,b.* from expiration a,archives_collect_volume b,archives_dept c
where a.foreignKey=b.id and b.filing_dept=c.dept_id
<if test="filingDept != null and filingDept != ''">
AND (b.filing_dept=#{filingDept} or FIND_IN_SET(#{filingDept},c.ancestors))
</if>
<if test="examineState != null">
AND a.examineState =#{examineState}
</if>
<if test="expirationType != null and expirationType != ''">
AND a.expirationType =#{expirationType}
</if>
<if test="expirationNo != null and expirationNo != ''">
AND a.expirationNo =#{expirationNo}
</if>
</select>-->
<select id="selectList" resultMap="expiration" parameterType="com.ruoyi.service.domain.Expiration">
select a.*,b.* from expiration a,archives_collect_box b,archives_dept c
where a.foreignKey=b.id and a.deptId=c.dept_id
<if test="filingDept != null and filingDept != ''">
AND (b.filing_dept=#{filingDept} or FIND_IN_SET(#{filingDept},c.ancestors))
</if>
<if test="examineState != null">
AND a.examineState =#{examineState}
</if>
<if test="expirationType != null and expirationType != ''">
AND a.expirationType =#{expirationType}
</if>
<if test="expirationNo != null and expirationNo != ''">
AND a.expirationNo =#{expirationNo}
</if>
</select>
<update id="apply" parameterType="com.ruoyi.service.domain.Expiration">
update expiration set
examineState = 1, expirationNo = #{expirationNo}, applicant = #{applicant}, applicationTime = sysdate()
where id in
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
<update id="handle" parameterType="com.ruoyi.service.domain.Expiration">
update expiration set
examineState = 3, expirationType = #{expirationType}, examineUser = #{examineUser}, examineTime = sysdate()
where id in
<foreach collection="ids" item="id" open="(" separator="," close=")">
#{id}
</foreach>
</update>
</mapper>