Procházet zdrojové kódy

和省平台对接审批填报

mengy před 3 roky
rodič
revize
1b5df5feee

+ 68 - 0
src/main/java/com/chinaitop/depot/business/controller/AuditRecordsController.java

@@ -0,0 +1,68 @@
1
+package com.chinaitop.depot.business.controller;
2
+
3
+import com.chinaitop.depot.business.model.AuditRecords;
4
+import com.chinaitop.depot.business.model.AuditRecordsExample;
5
+import com.chinaitop.depot.business.service.AuditRecordsService;
6
+import com.chinaitop.depot.utils.HTTPUtils;
7
+import com.chinaitop.depot.utils.ParameterUtil;
8
+import com.fasterxml.jackson.databind.ObjectMapper;
9
+import com.github.pagehelper.PageHelper;
10
+import com.github.pagehelper.PageInfo;
11
+import io.swagger.annotations.ApiImplicitParam;
12
+import io.swagger.annotations.ApiImplicitParams;
13
+import io.swagger.annotations.ApiOperation;
14
+import org.springframework.beans.factory.annotation.Value;
15
+import org.springframework.http.MediaType;
16
+import org.springframework.web.bind.annotation.*;
17
+
18
+import javax.annotation.Resource;
19
+import java.io.IOException;
20
+import java.net.URLEncoder;
21
+import java.util.HashMap;
22
+import java.util.List;
23
+import java.util.Map;
24
+
25
+@RestController
26
+@RequestMapping(value="/auditRecords")
27
+public class AuditRecordsController {
28
+	
29
+	@Resource
30
+	private AuditRecordsService auditRecordsService;
31
+
32
+	
33
+
34
+	/**
35
+	 * 获取ById
36
+	 * @return
37
+	 */
38
+	@RequestMapping(value = "/getAuditRecordsById" ,produces = MediaType.APPLICATION_JSON_VALUE, method = RequestMethod.GET)
39
+	@ApiOperation(value="根据bid和btype查询对应报表审批", notes = "获取ById")
40
+	@ApiImplicitParams({
41
+			@ApiImplicitParam(name = "id", value = "id", paramType = "query"),
42
+			@ApiImplicitParam(name = "btype", value = "btype", paramType = "query")
43
+			//报表类型 0:周报表 、1:月报表
44
+	})
45
+	public AuditRecords getAuditRecordsById(Integer id,Integer btype){
46
+		return auditRecordsService.findById(id,btype);
47
+	}
48
+
49
+
50
+	@PostMapping("/audit")
51
+	public Map<String, Object> audit(@RequestBody AuditRecords audit) {
52
+		Integer i = auditRecordsService.save(audit);
53
+		Map<String,Object> map = new HashMap();
54
+
55
+		if (i >0 ) {
56
+			map.put("code","200");
57
+			map.put("status","成功");
58
+			return map;
59
+		}else {
60
+			map.put("code","500");
61
+			map.put("status","失败");
62
+			return map;
63
+		}
64
+
65
+	}
66
+
67
+
68
+}

+ 2 - 5
src/main/java/com/chinaitop/depot/business/controller/ReportMonthlyController.java

@@ -1,6 +1,5 @@
1 1
 package com.chinaitop.depot.business.controller;
2 2
 
3
-import com.chinaitop.depot.business.model.BusinessPlan;
4 3
 import com.chinaitop.depot.business.model.ReportMonthly;
5 4
 import com.chinaitop.depot.business.model.ReportMonthlyExample;
6 5
 import com.chinaitop.depot.business.service.ReportMonthlyService;
@@ -21,7 +20,6 @@ import org.springframework.web.bind.annotation.RestController;
21 20
 import javax.annotation.Resource;
22 21
 import java.io.IOException;
23 22
 import java.net.URLEncoder;
24
-import java.util.Date;
25 23
 import java.util.HashMap;
26 24
 import java.util.List;
27 25
 import java.util.Map;
@@ -135,11 +133,10 @@ public class ReportMonthlyController {
135 133
 		StringBuffer req = new StringBuffer();
136 134
 		try {
137 135
 			String mon = URLEncoder.encode(reportMonthly, "UTF-8");
138
-
139 136
 			String url = reportPath+"/rotation/report/monthly/save";//省平台月报表接口地址
140
-			String count= HTTPUtils.doGet(url+"?reportMonthly="+mon);
137
+			String count= HTTPUtils.doPost(url,"?monthlyReport="+mon);
141 138
 			System.out.println("返回值:"+count+"---"+"请求地址:"+url);
142
-			System.out.println("请求地址以及参数:--"+url+"?reportMonthly="+mon);
139
+			System.out.println("请求地址以及参数:--"+url+"?monthlyReport="+mon);
143 140
 			if(count.contains("Success") || count.contains("200")){
144 141
 				modelMap.put("status", "success");
145 142
 				modelMap.put("msg", "成功!");

+ 2 - 3
src/main/java/com/chinaitop/depot/business/controller/ReportWeeklyController.java

@@ -133,11 +133,10 @@ public class ReportWeeklyController {
133 133
 		StringBuffer req = new StringBuffer();
134 134
 		try {
135 135
 			String weekly = URLEncoder.encode(reportWeekly, "UTF-8");
136
-
137 136
 			String url = reportPath+"/rotation/report/weekly/save";//省平台周报表接口地址
138
-			String count= HTTPUtils.doGet(url+"?reportWeekly="+weekly);
137
+			String count= HTTPUtils.doPost(url,"?weeklyReport="+weekly);
139 138
 			System.out.println("返回值:"+count+"---"+"请求地址:"+url);
140
-			System.out.println("请求地址以及参数:--"+url+"?reportWeekly="+weekly);
139
+			System.out.println("请求地址以及参数:--"+url+"?weeklyReport="+weekly);
141 140
 			if(count.contains("Success") || count.contains("200")){
142 141
 				modelMap.put("status", "success");
143 142
 				modelMap.put("msg", "成功!");

+ 32 - 0
src/main/java/com/chinaitop/depot/business/mapper/AuditRecordsMapper.java

@@ -0,0 +1,32 @@
1
+package com.chinaitop.depot.business.mapper;
2
+
3
+import com.chinaitop.depot.business.model.AuditRecords;
4
+import com.chinaitop.depot.business.model.AuditRecordsExample;
5
+import java.util.List;
6
+import org.apache.ibatis.annotations.Param;
7
+
8
+public interface AuditRecordsMapper {
9
+    int countByExample(AuditRecordsExample example);
10
+
11
+    int deleteByExample(AuditRecordsExample example);
12
+
13
+    int deleteByPrimaryKey(Integer id);
14
+
15
+    int insert(AuditRecords record);
16
+
17
+    int insertSelective(AuditRecords record);
18
+
19
+    List<AuditRecords> selectByExample(AuditRecordsExample example);
20
+
21
+    AuditRecords selectByPrimaryKey(Integer id);
22
+
23
+    int updateByExampleSelective(@Param("record") AuditRecords record, @Param("example") AuditRecordsExample example);
24
+
25
+    int updateByExample(@Param("record") AuditRecords record, @Param("example") AuditRecordsExample example);
26
+
27
+    int updateByPrimaryKeySelective(AuditRecords record);
28
+
29
+    int updateByPrimaryKey(AuditRecords record);
30
+
31
+    AuditRecords selectByType(Integer id, Integer btype);
32
+}

+ 266 - 0
src/main/java/com/chinaitop/depot/business/mapper/AuditRecordsMapper.xml

@@ -0,0 +1,266 @@
1
+<?xml version="1.0" encoding="UTF-8" ?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
3
+<mapper namespace="com.chinaitop.depot.business.mapper.AuditRecordsMapper" >
4
+  <resultMap id="BaseResultMap" type="com.chinaitop.depot.business.model.AuditRecords" >
5
+    <id column="id" property="id" jdbcType="INTEGER" />
6
+    <result column="b_type" property="bType" jdbcType="INTEGER" />
7
+    <result column="bid" property="bid" jdbcType="VARCHAR" />
8
+    <result column="shr_name" property="shrName" jdbcType="VARCHAR" />
9
+    <result column="shdw_name" property="shdwName" jdbcType="VARCHAR" />
10
+    <result column="sh_result" property="shResult" jdbcType="VARCHAR" />
11
+    <result column="sh_time" property="shTime" jdbcType="VARCHAR" />
12
+    <result column="sh_opinion" property="shOpinion" jdbcType="VARCHAR" />
13
+  </resultMap>
14
+  <sql id="Example_Where_Clause" >
15
+    <where >
16
+      <foreach collection="oredCriteria" item="criteria" separator="or" >
17
+        <if test="criteria.valid" >
18
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
19
+            <foreach collection="criteria.criteria" item="criterion" >
20
+              <choose >
21
+                <when test="criterion.noValue" >
22
+                  and ${criterion.condition}
23
+                </when>
24
+                <when test="criterion.singleValue" >
25
+                  and ${criterion.condition} #{criterion.value}
26
+                </when>
27
+                <when test="criterion.betweenValue" >
28
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
29
+                </when>
30
+                <when test="criterion.listValue" >
31
+                  and ${criterion.condition}
32
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
33
+                    #{listItem}
34
+                  </foreach>
35
+                </when>
36
+              </choose>
37
+            </foreach>
38
+          </trim>
39
+        </if>
40
+      </foreach>
41
+    </where>
42
+  </sql>
43
+  <sql id="Update_By_Example_Where_Clause" >
44
+    <where >
45
+      <foreach collection="example.oredCriteria" item="criteria" separator="or" >
46
+        <if test="criteria.valid" >
47
+          <trim prefix="(" suffix=")" prefixOverrides="and" >
48
+            <foreach collection="criteria.criteria" item="criterion" >
49
+              <choose >
50
+                <when test="criterion.noValue" >
51
+                  and ${criterion.condition}
52
+                </when>
53
+                <when test="criterion.singleValue" >
54
+                  and ${criterion.condition} #{criterion.value}
55
+                </when>
56
+                <when test="criterion.betweenValue" >
57
+                  and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
58
+                </when>
59
+                <when test="criterion.listValue" >
60
+                  and ${criterion.condition}
61
+                  <foreach collection="criterion.value" item="listItem" open="(" close=")" separator="," >
62
+                    #{listItem}
63
+                  </foreach>
64
+                </when>
65
+              </choose>
66
+            </foreach>
67
+          </trim>
68
+        </if>
69
+      </foreach>
70
+    </where>
71
+  </sql>
72
+  <sql id="Base_Column_List" >
73
+    id, b_type, bid, shr_name, shdw_name, sh_result, sh_time, sh_opinion
74
+  </sql>
75
+  <select id="selectByExample" resultMap="BaseResultMap" parameterType="com.chinaitop.depot.business.model.AuditRecordsExample" >
76
+    select
77
+    <if test="distinct" >
78
+      distinct
79
+    </if>
80
+    <include refid="Base_Column_List" />
81
+    from audit_records
82
+    <if test="_parameter != null" >
83
+      <include refid="Example_Where_Clause" />
84
+    </if>
85
+    <if test="orderByClause != null" >
86
+      order by ${orderByClause}
87
+    </if>
88
+  </select>
89
+  <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
90
+    select
91
+    <include refid="Base_Column_List" />
92
+    from audit_records
93
+    where id = #{id,jdbcType=INTEGER}
94
+  </select>
95
+
96
+  <select id="selectByType" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
97
+    select
98
+    <include refid="Base_Column_List" />
99
+    from audit_records
100
+    where id = #{bid,jdbcType=INTEGER} and b_type = #{bType,jdbcType=INTEGER}
101
+  </select>
102
+
103
+  <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
104
+    delete from audit_records
105
+    where id = #{id,jdbcType=INTEGER}
106
+  </delete>
107
+  <delete id="deleteByExample" parameterType="com.chinaitop.depot.business.model.AuditRecordsExample" >
108
+    delete from audit_records
109
+    <if test="_parameter != null" >
110
+      <include refid="Example_Where_Clause" />
111
+    </if>
112
+  </delete>
113
+  <insert id="insert" parameterType="com.chinaitop.depot.business.model.AuditRecords" >
114
+    insert into audit_records (id, b_type, bid,
115
+                               shr_name, shdw_name, sh_result,
116
+                               sh_time, sh_opinion)
117
+    values (#{id,jdbcType=INTEGER}, #{bType,jdbcType=INTEGER}, #{bid,jdbcType=VARCHAR},
118
+            #{shrName,jdbcType=VARCHAR}, #{shdwName,jdbcType=VARCHAR}, #{shResult,jdbcType=VARCHAR},
119
+            #{shTime,jdbcType=VARCHAR}, #{shOpinion,jdbcType=VARCHAR})
120
+  </insert>
121
+  <insert id="insertSelective" parameterType="com.chinaitop.depot.business.model.AuditRecords" >
122
+    insert into audit_records
123
+    <trim prefix="(" suffix=")" suffixOverrides="," >
124
+      <if test="id != null" >
125
+        id,
126
+      </if>
127
+      <if test="bType != null" >
128
+        b_type,
129
+      </if>
130
+      <if test="bid != null" >
131
+        bid,
132
+      </if>
133
+      <if test="shrName != null" >
134
+        shr_name,
135
+      </if>
136
+      <if test="shdwName != null" >
137
+        shdw_name,
138
+      </if>
139
+      <if test="shResult != null" >
140
+        sh_result,
141
+      </if>
142
+      <if test="shTime != null" >
143
+        sh_time,
144
+      </if>
145
+      <if test="shOpinion != null" >
146
+        sh_opinion,
147
+      </if>
148
+    </trim>
149
+    <trim prefix="values (" suffix=")" suffixOverrides="," >
150
+      <if test="id != null" >
151
+        #{id,jdbcType=INTEGER},
152
+      </if>
153
+      <if test="bType != null" >
154
+        #{bType,jdbcType=INTEGER},
155
+      </if>
156
+      <if test="bid != null" >
157
+        #{bid,jdbcType=VARCHAR},
158
+      </if>
159
+      <if test="shrName != null" >
160
+        #{shrName,jdbcType=VARCHAR},
161
+      </if>
162
+      <if test="shdwName != null" >
163
+        #{shdwName,jdbcType=VARCHAR},
164
+      </if>
165
+      <if test="shResult != null" >
166
+        #{shResult,jdbcType=VARCHAR},
167
+      </if>
168
+      <if test="shTime != null" >
169
+        #{shTime,jdbcType=VARCHAR},
170
+      </if>
171
+      <if test="shOpinion != null" >
172
+        #{shOpinion,jdbcType=VARCHAR},
173
+      </if>
174
+    </trim>
175
+  </insert>
176
+  <select id="countByExample" parameterType="com.chinaitop.depot.business.model.AuditRecordsExample" resultType="java.lang.Integer" >
177
+    select count(*) from audit_records
178
+    <if test="_parameter != null" >
179
+      <include refid="Example_Where_Clause" />
180
+    </if>
181
+  </select>
182
+  <update id="updateByExampleSelective" parameterType="map" >
183
+    update audit_records
184
+    <set >
185
+      <if test="record.id != null" >
186
+        id = #{record.id,jdbcType=INTEGER},
187
+      </if>
188
+      <if test="record.bType != null" >
189
+        b_type = #{record.bType,jdbcType=INTEGER},
190
+      </if>
191
+      <if test="record.bid != null" >
192
+        bid = #{record.bid,jdbcType=VARCHAR},
193
+      </if>
194
+      <if test="record.shrName != null" >
195
+        shr_name = #{record.shrName,jdbcType=VARCHAR},
196
+      </if>
197
+      <if test="record.shdwName != null" >
198
+        shdw_name = #{record.shdwName,jdbcType=VARCHAR},
199
+      </if>
200
+      <if test="record.shResult != null" >
201
+        sh_result = #{record.shResult,jdbcType=VARCHAR},
202
+      </if>
203
+      <if test="record.shTime != null" >
204
+        sh_time = #{record.shTime,jdbcType=VARCHAR},
205
+      </if>
206
+      <if test="record.shOpinion != null" >
207
+        sh_opinion = #{record.shOpinion,jdbcType=VARCHAR},
208
+      </if>
209
+    </set>
210
+    <if test="_parameter != null" >
211
+      <include refid="Update_By_Example_Where_Clause" />
212
+    </if>
213
+  </update>
214
+  <update id="updateByExample" parameterType="map" >
215
+    update audit_records
216
+    set id = #{record.id,jdbcType=INTEGER},
217
+    b_type = #{record.bType,jdbcType=INTEGER},
218
+    bid = #{record.bid,jdbcType=VARCHAR},
219
+    shr_name = #{record.shrName,jdbcType=VARCHAR},
220
+    shdw_name = #{record.shdwName,jdbcType=VARCHAR},
221
+    sh_result = #{record.shResult,jdbcType=VARCHAR},
222
+    sh_time = #{record.shTime,jdbcType=VARCHAR},
223
+    sh_opinion = #{record.shOpinion,jdbcType=VARCHAR}
224
+    <if test="_parameter != null" >
225
+      <include refid="Update_By_Example_Where_Clause" />
226
+    </if>
227
+  </update>
228
+  <update id="updateByPrimaryKeySelective" parameterType="com.chinaitop.depot.business.model.AuditRecords" >
229
+    update audit_records
230
+    <set >
231
+      <if test="bType != null" >
232
+        b_type = #{bType,jdbcType=INTEGER},
233
+      </if>
234
+      <if test="bid != null" >
235
+        bid = #{bid,jdbcType=VARCHAR},
236
+      </if>
237
+      <if test="shrName != null" >
238
+        shr_name = #{shrName,jdbcType=VARCHAR},
239
+      </if>
240
+      <if test="shdwName != null" >
241
+        shdw_name = #{shdwName,jdbcType=VARCHAR},
242
+      </if>
243
+      <if test="shResult != null" >
244
+        sh_result = #{shResult,jdbcType=VARCHAR},
245
+      </if>
246
+      <if test="shTime != null" >
247
+        sh_time = #{shTime,jdbcType=VARCHAR},
248
+      </if>
249
+      <if test="shOpinion != null" >
250
+        sh_opinion = #{shOpinion,jdbcType=VARCHAR},
251
+      </if>
252
+    </set>
253
+    where id = #{id,jdbcType=INTEGER}
254
+  </update>
255
+  <update id="updateByPrimaryKey" parameterType="com.chinaitop.depot.business.model.AuditRecords" >
256
+    update audit_records
257
+    set b_type = #{bType,jdbcType=INTEGER},
258
+        bid = #{bid,jdbcType=VARCHAR},
259
+        shr_name = #{shrName,jdbcType=VARCHAR},
260
+        shdw_name = #{shdwName,jdbcType=VARCHAR},
261
+        sh_result = #{shResult,jdbcType=VARCHAR},
262
+        sh_time = #{shTime,jdbcType=VARCHAR},
263
+        sh_opinion = #{shOpinion,jdbcType=VARCHAR}
264
+    where id = #{id,jdbcType=INTEGER}
265
+  </update>
266
+</mapper>

+ 156 - 0
src/main/java/com/chinaitop/depot/business/model/AuditRecords.java

@@ -0,0 +1,156 @@
1
+package com.chinaitop.depot.business.model;
2
+
3
+public class AuditRecords {
4
+    private Integer id;
5
+
6
+    public Integer getReportType() {
7
+        return reportType;
8
+    }
9
+
10
+    public void setReportType(Integer reportType) {
11
+        this.reportType = reportType;
12
+    }
13
+
14
+    private Integer reportType;
15
+    private Integer bType;
16
+
17
+    private String bid;
18
+
19
+    private String shrName;
20
+
21
+    private String shdwName;
22
+
23
+    private String shResult;
24
+
25
+    private String shTime;
26
+
27
+    private String shOpinion;
28
+
29
+    /**
30
+     * 审核填报记录id
31
+     * @return id 审核填报记录id
32
+     */
33
+    public Integer getId() {
34
+        return id;
35
+    }
36
+
37
+    /**
38
+     * 审核填报记录id
39
+     * @param id 审核填报记录id
40
+     */
41
+    public void setId(Integer id) {
42
+        this.id = id;
43
+    }
44
+
45
+    /**
46
+     * 报表类型 0:周报表 、1:月报表
47
+     * @return b_type 报表类型 0:周报表 、1:月报表
48
+     */
49
+    public Integer getbType() {
50
+        return bType;
51
+    }
52
+
53
+    /**
54
+     * 报表类型 0:周报表 、1:月报表
55
+     * @param bType 报表类型 0:周报表 、1:月报表
56
+     */
57
+    public void setbType(Integer bType) {
58
+        this.bType = bType;
59
+    }
60
+
61
+    /**
62
+     * 报表id
63
+     * @return bid 报表id
64
+     */
65
+    public String getBid() {
66
+        return bid;
67
+    }
68
+
69
+    /**
70
+     * 报表id
71
+     * @param bid 报表id
72
+     */
73
+    public void setBid(String bid) {
74
+        this.bid = bid == null ? null : bid.trim();
75
+    }
76
+
77
+    /**
78
+     * 审核人姓名
79
+     * @return shr_name 审核人姓名
80
+     */
81
+    public String getShrName() {
82
+        return shrName;
83
+    }
84
+
85
+    /**
86
+     * 审核人姓名
87
+     * @param shrName 审核人姓名
88
+     */
89
+    public void setShrName(String shrName) {
90
+        this.shrName = shrName == null ? null : shrName.trim();
91
+    }
92
+
93
+    /**
94
+     * 审核单位名称
95
+     * @return shdw_name 审核单位名称
96
+     */
97
+    public String getShdwName() {
98
+        return shdwName;
99
+    }
100
+
101
+    /**
102
+     * 审核单位名称
103
+     * @param shdwName 审核单位名称
104
+     */
105
+    public void setShdwName(String shdwName) {
106
+        this.shdwName = shdwName == null ? null : shdwName.trim();
107
+    }
108
+
109
+    /**
110
+     * 审核结果(通过、驳回
111
+     * @return sh_result 审核结果(通过、驳回
112
+     */
113
+    public String getShResult() {
114
+        return shResult;
115
+    }
116
+
117
+    /**
118
+     * 审核结果(通过、驳回
119
+     * @param shResult 审核结果(通过、驳回
120
+     */
121
+    public void setShResult(String shResult) {
122
+        this.shResult = shResult == null ? null : shResult.trim();
123
+    }
124
+
125
+    /**
126
+     * 审核时间
127
+     * @return sh_time 审核时间
128
+     */
129
+    public String getShTime() {
130
+        return shTime;
131
+    }
132
+
133
+    /**
134
+     * 审核时间
135
+     * @param shTime 审核时间
136
+     */
137
+    public void setShTime(String shTime) {
138
+        this.shTime = shTime == null ? null : shTime.trim();
139
+    }
140
+
141
+    /**
142
+     * 审核意见
143
+     * @return sh_opinion 审核意见
144
+     */
145
+    public String getShOpinion() {
146
+        return shOpinion;
147
+    }
148
+
149
+    /**
150
+     * 审核意见
151
+     * @param shOpinion 审核意见
152
+     */
153
+    public void setShOpinion(String shOpinion) {
154
+        this.shOpinion = shOpinion == null ? null : shOpinion.trim();
155
+    }
156
+}

+ 758 - 0
src/main/java/com/chinaitop/depot/business/model/AuditRecordsExample.java

@@ -0,0 +1,758 @@
1
+package com.chinaitop.depot.business.model;
2
+
3
+import java.util.ArrayList;
4
+import java.util.List;
5
+
6
+public class AuditRecordsExample {
7
+    /**
8
+     * audit_records
9
+     */
10
+    protected String orderByClause;
11
+
12
+    /**
13
+     * audit_records
14
+     */
15
+    protected boolean distinct;
16
+
17
+    /**
18
+     * audit_records
19
+     */
20
+    protected List<Criteria> oredCriteria;
21
+
22
+    public AuditRecordsExample() {
23
+        oredCriteria = new ArrayList<Criteria>();
24
+    }
25
+
26
+    public void setOrderByClause(String orderByClause) {
27
+        this.orderByClause = orderByClause;
28
+    }
29
+
30
+    public String getOrderByClause() {
31
+        return orderByClause;
32
+    }
33
+
34
+    public void setDistinct(boolean distinct) {
35
+        this.distinct = distinct;
36
+    }
37
+
38
+    public boolean isDistinct() {
39
+        return distinct;
40
+    }
41
+
42
+    public List<Criteria> getOredCriteria() {
43
+        return oredCriteria;
44
+    }
45
+
46
+    public void or(Criteria criteria) {
47
+        oredCriteria.add(criteria);
48
+    }
49
+
50
+    public Criteria or() {
51
+        Criteria criteria = createCriteriaInternal();
52
+        oredCriteria.add(criteria);
53
+        return criteria;
54
+    }
55
+
56
+    public Criteria createCriteria() {
57
+        Criteria criteria = createCriteriaInternal();
58
+        if (oredCriteria.size() == 0) {
59
+            oredCriteria.add(criteria);
60
+        }
61
+        return criteria;
62
+    }
63
+
64
+    protected Criteria createCriteriaInternal() {
65
+        Criteria criteria = new Criteria();
66
+        return criteria;
67
+    }
68
+
69
+    public void clear() {
70
+        oredCriteria.clear();
71
+        orderByClause = null;
72
+        distinct = false;
73
+    }
74
+
75
+    /**
76
+     * audit_records 2022-04-25
77
+     */
78
+    protected abstract static class GeneratedCriteria {
79
+        protected List<Criterion> criteria;
80
+
81
+        protected GeneratedCriteria() {
82
+            super();
83
+            criteria = new ArrayList<Criterion>();
84
+        }
85
+
86
+        public boolean isValid() {
87
+            return criteria.size() > 0;
88
+        }
89
+
90
+        public List<Criterion> getAllCriteria() {
91
+            return criteria;
92
+        }
93
+
94
+        public List<Criterion> getCriteria() {
95
+            return criteria;
96
+        }
97
+
98
+        protected void addCriterion(String condition) {
99
+            if (condition == null) {
100
+                throw new RuntimeException("Value for condition cannot be null");
101
+            }
102
+            criteria.add(new Criterion(condition));
103
+        }
104
+
105
+        protected void addCriterion(String condition, Object value, String property) {
106
+            if (value == null) {
107
+                throw new RuntimeException("Value for " + property + " cannot be null");
108
+            }
109
+            criteria.add(new Criterion(condition, value));
110
+        }
111
+
112
+        protected void addCriterion(String condition, Object value1, Object value2, String property) {
113
+            if (value1 == null || value2 == null) {
114
+                throw new RuntimeException("Between values for " + property + " cannot be null");
115
+            }
116
+            criteria.add(new Criterion(condition, value1, value2));
117
+        }
118
+
119
+        public Criteria andIdIsNull() {
120
+            addCriterion("id is null");
121
+            return (Criteria) this;
122
+        }
123
+
124
+        public Criteria andIdIsNotNull() {
125
+            addCriterion("id is not null");
126
+            return (Criteria) this;
127
+        }
128
+
129
+        public Criteria andIdEqualTo(Integer value) {
130
+            addCriterion("id =", value, "id");
131
+            return (Criteria) this;
132
+        }
133
+
134
+        public Criteria andIdNotEqualTo(Integer value) {
135
+            addCriterion("id <>", value, "id");
136
+            return (Criteria) this;
137
+        }
138
+
139
+        public Criteria andIdGreaterThan(Integer value) {
140
+            addCriterion("id >", value, "id");
141
+            return (Criteria) this;
142
+        }
143
+
144
+        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
145
+            addCriterion("id >=", value, "id");
146
+            return (Criteria) this;
147
+        }
148
+
149
+        public Criteria andIdLessThan(Integer value) {
150
+            addCriterion("id <", value, "id");
151
+            return (Criteria) this;
152
+        }
153
+
154
+        public Criteria andIdLessThanOrEqualTo(Integer value) {
155
+            addCriterion("id <=", value, "id");
156
+            return (Criteria) this;
157
+        }
158
+
159
+        public Criteria andIdIn(List<Integer> values) {
160
+            addCriterion("id in", values, "id");
161
+            return (Criteria) this;
162
+        }
163
+
164
+        public Criteria andIdNotIn(List<Integer> values) {
165
+            addCriterion("id not in", values, "id");
166
+            return (Criteria) this;
167
+        }
168
+
169
+        public Criteria andIdBetween(Integer value1, Integer value2) {
170
+            addCriterion("id between", value1, value2, "id");
171
+            return (Criteria) this;
172
+        }
173
+
174
+        public Criteria andIdNotBetween(Integer value1, Integer value2) {
175
+            addCriterion("id not between", value1, value2, "id");
176
+            return (Criteria) this;
177
+        }
178
+
179
+        public Criteria andBTypeIsNull() {
180
+            addCriterion("b_type is null");
181
+            return (Criteria) this;
182
+        }
183
+
184
+        public Criteria andBTypeIsNotNull() {
185
+            addCriterion("b_type is not null");
186
+            return (Criteria) this;
187
+        }
188
+
189
+        public Criteria andBTypeEqualTo(Integer value) {
190
+            addCriterion("b_type =", value, "bType");
191
+            return (Criteria) this;
192
+        }
193
+
194
+        public Criteria andBTypeNotEqualTo(Integer value) {
195
+            addCriterion("b_type <>", value, "bType");
196
+            return (Criteria) this;
197
+        }
198
+
199
+        public Criteria andBTypeGreaterThan(Integer value) {
200
+            addCriterion("b_type >", value, "bType");
201
+            return (Criteria) this;
202
+        }
203
+
204
+        public Criteria andBTypeGreaterThanOrEqualTo(Integer value) {
205
+            addCriterion("b_type >=", value, "bType");
206
+            return (Criteria) this;
207
+        }
208
+
209
+        public Criteria andBTypeLessThan(Integer value) {
210
+            addCriterion("b_type <", value, "bType");
211
+            return (Criteria) this;
212
+        }
213
+
214
+        public Criteria andBTypeLessThanOrEqualTo(Integer value) {
215
+            addCriterion("b_type <=", value, "bType");
216
+            return (Criteria) this;
217
+        }
218
+
219
+        public Criteria andBTypeIn(List<Integer> values) {
220
+            addCriterion("b_type in", values, "bType");
221
+            return (Criteria) this;
222
+        }
223
+
224
+        public Criteria andBTypeNotIn(List<Integer> values) {
225
+            addCriterion("b_type not in", values, "bType");
226
+            return (Criteria) this;
227
+        }
228
+
229
+        public Criteria andBTypeBetween(Integer value1, Integer value2) {
230
+            addCriterion("b_type between", value1, value2, "bType");
231
+            return (Criteria) this;
232
+        }
233
+
234
+        public Criteria andBTypeNotBetween(Integer value1, Integer value2) {
235
+            addCriterion("b_type not between", value1, value2, "bType");
236
+            return (Criteria) this;
237
+        }
238
+
239
+        public Criteria andBidIsNull() {
240
+            addCriterion("bid is null");
241
+            return (Criteria) this;
242
+        }
243
+
244
+        public Criteria andBidIsNotNull() {
245
+            addCriterion("bid is not null");
246
+            return (Criteria) this;
247
+        }
248
+
249
+        public Criteria andBidEqualTo(String value) {
250
+            addCriterion("bid =", value, "bid");
251
+            return (Criteria) this;
252
+        }
253
+
254
+        public Criteria andBidNotEqualTo(String value) {
255
+            addCriterion("bid <>", value, "bid");
256
+            return (Criteria) this;
257
+        }
258
+
259
+        public Criteria andBidGreaterThan(String value) {
260
+            addCriterion("bid >", value, "bid");
261
+            return (Criteria) this;
262
+        }
263
+
264
+        public Criteria andBidGreaterThanOrEqualTo(String value) {
265
+            addCriterion("bid >=", value, "bid");
266
+            return (Criteria) this;
267
+        }
268
+
269
+        public Criteria andBidLessThan(String value) {
270
+            addCriterion("bid <", value, "bid");
271
+            return (Criteria) this;
272
+        }
273
+
274
+        public Criteria andBidLessThanOrEqualTo(String value) {
275
+            addCriterion("bid <=", value, "bid");
276
+            return (Criteria) this;
277
+        }
278
+
279
+        public Criteria andBidLike(String value) {
280
+            addCriterion("bid like", value, "bid");
281
+            return (Criteria) this;
282
+        }
283
+
284
+        public Criteria andBidNotLike(String value) {
285
+            addCriterion("bid not like", value, "bid");
286
+            return (Criteria) this;
287
+        }
288
+
289
+        public Criteria andBidIn(List<String> values) {
290
+            addCriterion("bid in", values, "bid");
291
+            return (Criteria) this;
292
+        }
293
+
294
+        public Criteria andBidNotIn(List<String> values) {
295
+            addCriterion("bid not in", values, "bid");
296
+            return (Criteria) this;
297
+        }
298
+
299
+        public Criteria andBidBetween(String value1, String value2) {
300
+            addCriterion("bid between", value1, value2, "bid");
301
+            return (Criteria) this;
302
+        }
303
+
304
+        public Criteria andBidNotBetween(String value1, String value2) {
305
+            addCriterion("bid not between", value1, value2, "bid");
306
+            return (Criteria) this;
307
+        }
308
+
309
+        public Criteria andShrNameIsNull() {
310
+            addCriterion("shr_name is null");
311
+            return (Criteria) this;
312
+        }
313
+
314
+        public Criteria andShrNameIsNotNull() {
315
+            addCriterion("shr_name is not null");
316
+            return (Criteria) this;
317
+        }
318
+
319
+        public Criteria andShrNameEqualTo(String value) {
320
+            addCriterion("shr_name =", value, "shrName");
321
+            return (Criteria) this;
322
+        }
323
+
324
+        public Criteria andShrNameNotEqualTo(String value) {
325
+            addCriterion("shr_name <>", value, "shrName");
326
+            return (Criteria) this;
327
+        }
328
+
329
+        public Criteria andShrNameGreaterThan(String value) {
330
+            addCriterion("shr_name >", value, "shrName");
331
+            return (Criteria) this;
332
+        }
333
+
334
+        public Criteria andShrNameGreaterThanOrEqualTo(String value) {
335
+            addCriterion("shr_name >=", value, "shrName");
336
+            return (Criteria) this;
337
+        }
338
+
339
+        public Criteria andShrNameLessThan(String value) {
340
+            addCriterion("shr_name <", value, "shrName");
341
+            return (Criteria) this;
342
+        }
343
+
344
+        public Criteria andShrNameLessThanOrEqualTo(String value) {
345
+            addCriterion("shr_name <=", value, "shrName");
346
+            return (Criteria) this;
347
+        }
348
+
349
+        public Criteria andShrNameLike(String value) {
350
+            addCriterion("shr_name like", value, "shrName");
351
+            return (Criteria) this;
352
+        }
353
+
354
+        public Criteria andShrNameNotLike(String value) {
355
+            addCriterion("shr_name not like", value, "shrName");
356
+            return (Criteria) this;
357
+        }
358
+
359
+        public Criteria andShrNameIn(List<String> values) {
360
+            addCriterion("shr_name in", values, "shrName");
361
+            return (Criteria) this;
362
+        }
363
+
364
+        public Criteria andShrNameNotIn(List<String> values) {
365
+            addCriterion("shr_name not in", values, "shrName");
366
+            return (Criteria) this;
367
+        }
368
+
369
+        public Criteria andShrNameBetween(String value1, String value2) {
370
+            addCriterion("shr_name between", value1, value2, "shrName");
371
+            return (Criteria) this;
372
+        }
373
+
374
+        public Criteria andShrNameNotBetween(String value1, String value2) {
375
+            addCriterion("shr_name not between", value1, value2, "shrName");
376
+            return (Criteria) this;
377
+        }
378
+
379
+        public Criteria andShdwNameIsNull() {
380
+            addCriterion("shdw_name is null");
381
+            return (Criteria) this;
382
+        }
383
+
384
+        public Criteria andShdwNameIsNotNull() {
385
+            addCriterion("shdw_name is not null");
386
+            return (Criteria) this;
387
+        }
388
+
389
+        public Criteria andShdwNameEqualTo(String value) {
390
+            addCriterion("shdw_name =", value, "shdwName");
391
+            return (Criteria) this;
392
+        }
393
+
394
+        public Criteria andShdwNameNotEqualTo(String value) {
395
+            addCriterion("shdw_name <>", value, "shdwName");
396
+            return (Criteria) this;
397
+        }
398
+
399
+        public Criteria andShdwNameGreaterThan(String value) {
400
+            addCriterion("shdw_name >", value, "shdwName");
401
+            return (Criteria) this;
402
+        }
403
+
404
+        public Criteria andShdwNameGreaterThanOrEqualTo(String value) {
405
+            addCriterion("shdw_name >=", value, "shdwName");
406
+            return (Criteria) this;
407
+        }
408
+
409
+        public Criteria andShdwNameLessThan(String value) {
410
+            addCriterion("shdw_name <", value, "shdwName");
411
+            return (Criteria) this;
412
+        }
413
+
414
+        public Criteria andShdwNameLessThanOrEqualTo(String value) {
415
+            addCriterion("shdw_name <=", value, "shdwName");
416
+            return (Criteria) this;
417
+        }
418
+
419
+        public Criteria andShdwNameLike(String value) {
420
+            addCriterion("shdw_name like", value, "shdwName");
421
+            return (Criteria) this;
422
+        }
423
+
424
+        public Criteria andShdwNameNotLike(String value) {
425
+            addCriterion("shdw_name not like", value, "shdwName");
426
+            return (Criteria) this;
427
+        }
428
+
429
+        public Criteria andShdwNameIn(List<String> values) {
430
+            addCriterion("shdw_name in", values, "shdwName");
431
+            return (Criteria) this;
432
+        }
433
+
434
+        public Criteria andShdwNameNotIn(List<String> values) {
435
+            addCriterion("shdw_name not in", values, "shdwName");
436
+            return (Criteria) this;
437
+        }
438
+
439
+        public Criteria andShdwNameBetween(String value1, String value2) {
440
+            addCriterion("shdw_name between", value1, value2, "shdwName");
441
+            return (Criteria) this;
442
+        }
443
+
444
+        public Criteria andShdwNameNotBetween(String value1, String value2) {
445
+            addCriterion("shdw_name not between", value1, value2, "shdwName");
446
+            return (Criteria) this;
447
+        }
448
+
449
+        public Criteria andShResultIsNull() {
450
+            addCriterion("sh_result is null");
451
+            return (Criteria) this;
452
+        }
453
+
454
+        public Criteria andShResultIsNotNull() {
455
+            addCriterion("sh_result is not null");
456
+            return (Criteria) this;
457
+        }
458
+
459
+        public Criteria andShResultEqualTo(String value) {
460
+            addCriterion("sh_result =", value, "shResult");
461
+            return (Criteria) this;
462
+        }
463
+
464
+        public Criteria andShResultNotEqualTo(String value) {
465
+            addCriterion("sh_result <>", value, "shResult");
466
+            return (Criteria) this;
467
+        }
468
+
469
+        public Criteria andShResultGreaterThan(String value) {
470
+            addCriterion("sh_result >", value, "shResult");
471
+            return (Criteria) this;
472
+        }
473
+
474
+        public Criteria andShResultGreaterThanOrEqualTo(String value) {
475
+            addCriterion("sh_result >=", value, "shResult");
476
+            return (Criteria) this;
477
+        }
478
+
479
+        public Criteria andShResultLessThan(String value) {
480
+            addCriterion("sh_result <", value, "shResult");
481
+            return (Criteria) this;
482
+        }
483
+
484
+        public Criteria andShResultLessThanOrEqualTo(String value) {
485
+            addCriterion("sh_result <=", value, "shResult");
486
+            return (Criteria) this;
487
+        }
488
+
489
+        public Criteria andShResultLike(String value) {
490
+            addCriterion("sh_result like", value, "shResult");
491
+            return (Criteria) this;
492
+        }
493
+
494
+        public Criteria andShResultNotLike(String value) {
495
+            addCriterion("sh_result not like", value, "shResult");
496
+            return (Criteria) this;
497
+        }
498
+
499
+        public Criteria andShResultIn(List<String> values) {
500
+            addCriterion("sh_result in", values, "shResult");
501
+            return (Criteria) this;
502
+        }
503
+
504
+        public Criteria andShResultNotIn(List<String> values) {
505
+            addCriterion("sh_result not in", values, "shResult");
506
+            return (Criteria) this;
507
+        }
508
+
509
+        public Criteria andShResultBetween(String value1, String value2) {
510
+            addCriterion("sh_result between", value1, value2, "shResult");
511
+            return (Criteria) this;
512
+        }
513
+
514
+        public Criteria andShResultNotBetween(String value1, String value2) {
515
+            addCriterion("sh_result not between", value1, value2, "shResult");
516
+            return (Criteria) this;
517
+        }
518
+
519
+        public Criteria andShTimeIsNull() {
520
+            addCriterion("sh_time is null");
521
+            return (Criteria) this;
522
+        }
523
+
524
+        public Criteria andShTimeIsNotNull() {
525
+            addCriterion("sh_time is not null");
526
+            return (Criteria) this;
527
+        }
528
+
529
+        public Criteria andShTimeEqualTo(String value) {
530
+            addCriterion("sh_time =", value, "shTime");
531
+            return (Criteria) this;
532
+        }
533
+
534
+        public Criteria andShTimeNotEqualTo(String value) {
535
+            addCriterion("sh_time <>", value, "shTime");
536
+            return (Criteria) this;
537
+        }
538
+
539
+        public Criteria andShTimeGreaterThan(String value) {
540
+            addCriterion("sh_time >", value, "shTime");
541
+            return (Criteria) this;
542
+        }
543
+
544
+        public Criteria andShTimeGreaterThanOrEqualTo(String value) {
545
+            addCriterion("sh_time >=", value, "shTime");
546
+            return (Criteria) this;
547
+        }
548
+
549
+        public Criteria andShTimeLessThan(String value) {
550
+            addCriterion("sh_time <", value, "shTime");
551
+            return (Criteria) this;
552
+        }
553
+
554
+        public Criteria andShTimeLessThanOrEqualTo(String value) {
555
+            addCriterion("sh_time <=", value, "shTime");
556
+            return (Criteria) this;
557
+        }
558
+
559
+        public Criteria andShTimeLike(String value) {
560
+            addCriterion("sh_time like", value, "shTime");
561
+            return (Criteria) this;
562
+        }
563
+
564
+        public Criteria andShTimeNotLike(String value) {
565
+            addCriterion("sh_time not like", value, "shTime");
566
+            return (Criteria) this;
567
+        }
568
+
569
+        public Criteria andShTimeIn(List<String> values) {
570
+            addCriterion("sh_time in", values, "shTime");
571
+            return (Criteria) this;
572
+        }
573
+
574
+        public Criteria andShTimeNotIn(List<String> values) {
575
+            addCriterion("sh_time not in", values, "shTime");
576
+            return (Criteria) this;
577
+        }
578
+
579
+        public Criteria andShTimeBetween(String value1, String value2) {
580
+            addCriterion("sh_time between", value1, value2, "shTime");
581
+            return (Criteria) this;
582
+        }
583
+
584
+        public Criteria andShTimeNotBetween(String value1, String value2) {
585
+            addCriterion("sh_time not between", value1, value2, "shTime");
586
+            return (Criteria) this;
587
+        }
588
+
589
+        public Criteria andShOpinionIsNull() {
590
+            addCriterion("sh_opinion is null");
591
+            return (Criteria) this;
592
+        }
593
+
594
+        public Criteria andShOpinionIsNotNull() {
595
+            addCriterion("sh_opinion is not null");
596
+            return (Criteria) this;
597
+        }
598
+
599
+        public Criteria andShOpinionEqualTo(String value) {
600
+            addCriterion("sh_opinion =", value, "shOpinion");
601
+            return (Criteria) this;
602
+        }
603
+
604
+        public Criteria andShOpinionNotEqualTo(String value) {
605
+            addCriterion("sh_opinion <>", value, "shOpinion");
606
+            return (Criteria) this;
607
+        }
608
+
609
+        public Criteria andShOpinionGreaterThan(String value) {
610
+            addCriterion("sh_opinion >", value, "shOpinion");
611
+            return (Criteria) this;
612
+        }
613
+
614
+        public Criteria andShOpinionGreaterThanOrEqualTo(String value) {
615
+            addCriterion("sh_opinion >=", value, "shOpinion");
616
+            return (Criteria) this;
617
+        }
618
+
619
+        public Criteria andShOpinionLessThan(String value) {
620
+            addCriterion("sh_opinion <", value, "shOpinion");
621
+            return (Criteria) this;
622
+        }
623
+
624
+        public Criteria andShOpinionLessThanOrEqualTo(String value) {
625
+            addCriterion("sh_opinion <=", value, "shOpinion");
626
+            return (Criteria) this;
627
+        }
628
+
629
+        public Criteria andShOpinionLike(String value) {
630
+            addCriterion("sh_opinion like", value, "shOpinion");
631
+            return (Criteria) this;
632
+        }
633
+
634
+        public Criteria andShOpinionNotLike(String value) {
635
+            addCriterion("sh_opinion not like", value, "shOpinion");
636
+            return (Criteria) this;
637
+        }
638
+
639
+        public Criteria andShOpinionIn(List<String> values) {
640
+            addCriterion("sh_opinion in", values, "shOpinion");
641
+            return (Criteria) this;
642
+        }
643
+
644
+        public Criteria andShOpinionNotIn(List<String> values) {
645
+            addCriterion("sh_opinion not in", values, "shOpinion");
646
+            return (Criteria) this;
647
+        }
648
+
649
+        public Criteria andShOpinionBetween(String value1, String value2) {
650
+            addCriterion("sh_opinion between", value1, value2, "shOpinion");
651
+            return (Criteria) this;
652
+        }
653
+
654
+        public Criteria andShOpinionNotBetween(String value1, String value2) {
655
+            addCriterion("sh_opinion not between", value1, value2, "shOpinion");
656
+            return (Criteria) this;
657
+        }
658
+    }
659
+
660
+    /**
661
+     * audit_records
662
+     */
663
+    public static class Criteria extends GeneratedCriteria {
664
+
665
+        protected Criteria() {
666
+            super();
667
+        }
668
+    }
669
+
670
+    /**
671
+     * audit_records 2022-04-25
672
+     */
673
+    public static class Criterion {
674
+        private String condition;
675
+
676
+        private Object value;
677
+
678
+        private Object secondValue;
679
+
680
+        private boolean noValue;
681
+
682
+        private boolean singleValue;
683
+
684
+        private boolean betweenValue;
685
+
686
+        private boolean listValue;
687
+
688
+        private String typeHandler;
689
+
690
+        public String getCondition() {
691
+            return condition;
692
+        }
693
+
694
+        public Object getValue() {
695
+            return value;
696
+        }
697
+
698
+        public Object getSecondValue() {
699
+            return secondValue;
700
+        }
701
+
702
+        public boolean isNoValue() {
703
+            return noValue;
704
+        }
705
+
706
+        public boolean isSingleValue() {
707
+            return singleValue;
708
+        }
709
+
710
+        public boolean isBetweenValue() {
711
+            return betweenValue;
712
+        }
713
+
714
+        public boolean isListValue() {
715
+            return listValue;
716
+        }
717
+
718
+        public String getTypeHandler() {
719
+            return typeHandler;
720
+        }
721
+
722
+        protected Criterion(String condition) {
723
+            super();
724
+            this.condition = condition;
725
+            this.typeHandler = null;
726
+            this.noValue = true;
727
+        }
728
+
729
+        protected Criterion(String condition, Object value, String typeHandler) {
730
+            super();
731
+            this.condition = condition;
732
+            this.value = value;
733
+            this.typeHandler = typeHandler;
734
+            if (value instanceof List<?>) {
735
+                this.listValue = true;
736
+            } else {
737
+                this.singleValue = true;
738
+            }
739
+        }
740
+
741
+        protected Criterion(String condition, Object value) {
742
+            this(condition, value, null);
743
+        }
744
+
745
+        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
746
+            super();
747
+            this.condition = condition;
748
+            this.value = value;
749
+            this.secondValue = secondValue;
750
+            this.typeHandler = typeHandler;
751
+            this.betweenValue = true;
752
+        }
753
+
754
+        protected Criterion(String condition, Object value, Object secondValue) {
755
+            this(condition, value, secondValue, null);
756
+        }
757
+    }
758
+}

+ 48 - 0
src/main/java/com/chinaitop/depot/business/service/AuditRecordsService.java

@@ -0,0 +1,48 @@
1
+package com.chinaitop.depot.business.service;
2
+
3
+import com.chinaitop.depot.business.model.AuditRecords;
4
+import com.chinaitop.depot.business.model.AuditRecordsExample;
5
+
6
+import java.util.List;
7
+import java.util.Map;
8
+
9
+public interface AuditRecordsService {
10
+	
11
+	/**
12
+	 * 根据条件查询列表
13
+	 * @param example
14
+	 * @return
15
+	 */
16
+	List<AuditRecords> queryByExample(AuditRecordsExample example);
17
+	
18
+	/**
19
+	 * 根据编号获取信息
20
+	 * @param Id
21
+	 * @return
22
+	 */
23
+	AuditRecords findById(Integer Id);
24
+	
25
+	/**
26
+	 * 新增
27
+	 * @param auditRecords
28
+	 */
29
+	void add(AuditRecords auditRecords);
30
+	
31
+	/**
32
+	 * 更新信息
33
+	 * @param auditRecords
34
+	 */
35
+	void update(AuditRecords auditRecords);
36
+	
37
+	/**
38
+	 * 根据编号删除
39
+	 * @param Id
40
+	 */
41
+	void remove(Integer Id);
42
+
43
+    void updateWeeklyStatus(AuditRecords week);
44
+
45
+	Integer save(AuditRecords audit);
46
+
47
+	AuditRecords findById(Integer id, Integer btype);
48
+}

+ 1 - 1
src/main/java/com/chinaitop/depot/business/service/ReportMonthlyService.java

@@ -35,7 +35,7 @@ public interface ReportMonthlyService {
35 35
 	void update(ReportMonthly reportMonthly);
36 36
 	
37 37
 	/**
38
-	 * 根据编号删除角色信息
38
+	 * 根据编号删除
39 39
 	 * @param Id
40 40
 	 */
41 41
 	void remove(Integer Id);

+ 1 - 1
src/main/java/com/chinaitop/depot/business/service/ReportWeeklyService.java

@@ -34,7 +34,7 @@ public interface ReportWeeklyService {
34 34
 	void update(ReportWeekly reportWeekly);
35 35
 	
36 36
 	/**
37
-	 * 根据编号删除角色信息
37
+	 * 根据编号删除
38 38
 	 * @param Id
39 39
 	 */
40 40
 	void remove(Integer Id);

+ 74 - 0
src/main/java/com/chinaitop/depot/business/service/impl/AuditRecordsServiceImpl.java

@@ -0,0 +1,74 @@
1
+package com.chinaitop.depot.business.service.impl;
2
+
3
+import com.alibaba.fastjson.JSONObject;
4
+import com.chinaitop.depot.business.mapper.AuditRecordsMapper;
5
+import com.chinaitop.depot.business.model.AuditRecords;
6
+import com.chinaitop.depot.business.model.AuditRecordsExample;
7
+import com.chinaitop.depot.business.service.AuditRecordsService;
8
+import org.apache.commons.lang.ObjectUtils;
9
+import org.springframework.stereotype.Service;
10
+
11
+import javax.annotation.Resource;
12
+import java.math.BigDecimal;
13
+import java.text.SimpleDateFormat;
14
+import java.util.Date;
15
+import java.util.HashMap;
16
+import java.util.List;
17
+import java.util.Map;
18
+
19
+
20
+@Service
21
+public class AuditRecordsServiceImpl implements AuditRecordsService {
22
+	
23
+	@Resource
24
+	private AuditRecordsMapper auditRecordsMapper;
25
+
26
+	@Override
27
+	public List<AuditRecords> queryByExample(AuditRecordsExample example) {
28
+		// TODO Auto-generated method stub
29
+		return auditRecordsMapper.selectByExample(example);
30
+	}
31
+
32
+	@Override
33
+	public AuditRecords findById(Integer Id) {
34
+		// TODO Auto-generated method stub
35
+		return auditRecordsMapper.selectByPrimaryKey(Id);
36
+	}
37
+
38
+	@Override
39
+	public void add(AuditRecords auditRecords) {
40
+		// TODO Auto-generated method stub
41
+		auditRecordsMapper.insert(auditRecords);
42
+	}
43
+
44
+	@Override
45
+	public void update(AuditRecords auditRecords) {
46
+		// TODO Auto-generated method stub
47
+		auditRecordsMapper.updateByPrimaryKey(auditRecords);
48
+	}
49
+
50
+	@Override
51
+	public void remove(Integer Id) {
52
+		// TODO Auto-generated method stub
53
+		auditRecordsMapper.deleteByPrimaryKey(Id);
54
+	}
55
+
56
+	@Override
57
+	public void updateWeeklyStatus(AuditRecords auditRecords) {
58
+		// TODO Auto-generated method stub
59
+		auditRecordsMapper.updateByPrimaryKeySelective(auditRecords);
60
+	}
61
+
62
+	@Override
63
+	public Integer save(AuditRecords audit) {
64
+		audit.setbType(audit.getReportType());
65
+		return auditRecordsMapper.insert(audit);
66
+	}
67
+
68
+	@Override
69
+	public AuditRecords findById(Integer Id, Integer btype){
70
+		// TODO Auto-generated method stub
71
+		return auditRecordsMapper.selectByType(Id,btype);
72
+	}
73
+
74
+}

+ 1 - 1
src/main/java/com/chinaitop/depot/utils/CustomFilter.java

@@ -32,7 +32,7 @@ public class CustomFilter implements Filter {
32 32
 		if (!orgId.isEmpty()) {
33 33
 			DataPolicyEngine.set(orgId);
34 34
 			arg2.doFilter(arg0, arg1);//放行,通过了当前过滤器,递交给下一个filter进行过滤
35
-		}else if ("/depot/business/plan/audit/getDataByZJId".equals(request.getServletPath())||"/business/uploadNoticeData".equals(request.getServletPath()+request.getPathInfo())
35
+		}else if ("/depot/business/plan/audit/getDataByZJId".equals(request.getServletPath())||"/auditRecords/audit".equals(request.getServletPath())||"/business/uploadNoticeData".equals(request.getServletPath()+request.getPathInfo())
36 36
 				||"/business/uploadNoticeData".equals(request.getServletPath()+request.getPathInfo())||"/business/uploadContractData".equals(request.getServletPath()+request.getPathInfo())
37 37
 				||"/business/selectContractData".equals(request.getServletPath()+request.getPathInfo())||"/business/updateChangeStorageHouse".equals(request.getServletPath()+request.getPathInfo())) {
38 38
 			arg2.doFilter(arg0, arg1);//放行,通过了当前过滤器,递交给下一个filter进行过滤