zhaowenxuan
4 天以前 2b2763c83e352f8ffd2ac0b5c46b60c49ee78439
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
<?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.ltkj.hosp.mapper.TjOrderMapper">
 
    <resultMap type="TjOrder" id="TjOrderResult">
        <result property="orderId" column="order_id"/>
        <result property="userId" column="user_id"/>
        <result property="tjType" column="tj_type"/>
        <result property="tjNumber" column="tj_number"/>
        <result property="tjSerialNumber" column="tj_serial_number"/>
        <result property="pacId" column="pac_id"/>
        <result property="createTime" column="create_time"/>
        <result property="finishTime" column="finish_time"/>
        <result property="updateTime" column="update_time"/>
        <result property="reportTime" column="report_time"/>
        <result property="createBy" column="create_by"/>
        <result property="updateBy" column="update_by"/>
        <result property="deleted" column="deleted"/>
        <result property="firmId" column="firm_id"/>
        <result property="firmDeptName" column="firm_dept_name"/>
        <result property="firmWorkId" column="firm_work_id"/>
        <result property="photo" column="photo"/>
        <result property="checkDoctor" column="check_doctor"/>
        <result property="checkTime" column="check_time"/>
        <result property="checkAdvice" column="check_advice"/>
        <result property="releaseTime" column="release_time"/>
        <result property="sendEmail" column="send_email"/>
        <result property="sendMessage" column="send_message"/>
        <result property="isReturn" column="is_return"/>
        <result property="printLastTime" column="print_last_time"/>
        <result property="downloadLastTime" column="download_last_time"/>
        <result property="checkStatus" column="check_status"/>
        <result property="status" column="status"/>
        <result property="confirmDoctor" column="confirm_doctor"/>
        <result property="confirmTime" column="confirm_time"/>
        <result property="confirmStatus" column="confirm_status"/>
        <result property="zhiyeJhgln" column="zhiye_jhgln"/>
        <result property="zhiyeJhgly" column="zhiye_jhgly"/>
        <result property="zhiyeKsjhrq" column="zhiye_ksjhrq"/>
        <result property="zhiyeGh" column="zhiye_gh"/>
        <result property="zhiyeCj" column="zhiye_cj"/>
    </resultMap>
 
    <sql id="selectTjOrderVo">
        select order_id,
               user_id,
               tj_type,
               tj_number,
               tj_serial_number,
               pac_id,
               create_time,
               finish_time,
               update_time,
               report_time,
               create_by,
               update_by,
               deleted,
               firm_id,
               firm_dept_name,
               firm_work_id,
               photo,
               check_doctor,
               check_time,
               check_advice,
               release_time,
               send_email,
               send_message,
               is_return,
               print_last_time,
               download_last_time,
               check_status,
               status,
               confirm_doctor,
               confirm_time,
               confirm_status,
               group_id,
               firm_dept_id,
               heshou_status,
               heshou_doctor,
               heshou_time,
               is_hz,
               get_type,
               tj_category,zhiye_jhgln,zhiye_jhgly,zhiye_ksjhrq,zhiye_gh,zhiye_cj
        from tj_order
    </sql>
 
 
    <select id="getTjOrderList" parameterType="java.util.Map" resultMap="TjOrderResult">
        <include refid="selectTjOrderVo"/>
        <where>
            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
            <if test="checkStatus != null and checkStatus==0 ">and status =288</if>
            <if test="checkStatus != null and checkStatus==1 ">and status =401 or  status= 402 </if>
            <if test="compId != null ">and comp_id = #{compId}</if>
            <if test="beginTime != null and endTime != null ">and create_time BETWEEN #{beginTime} and #{endTime}</if>
            and  deleted =0
        </where>
        and !ISNULL(finish_time)
        order by finish_time desc
    </select>
 
    <select id="getWCsTjOrderList" parameterType="java.util.Map" resultMap="TjOrderResult">
        <include refid="selectTjOrderVo"/>
        <where>
            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
            <if test="compId != null ">and comp_id = #{compId}</if>
            <if test="beginTime != null and endTime != null ">and create_time BETWEEN #{beginTime} and #{endTime}</if>
            and  deleted =0
        </where>
--         and !ISNULL(finish_time) and ISNULL(confirm_status) and ISNULL(confirm_time) and ISNULL(confirm_doctor)
        and  status= 288
        order by finish_time desc
    </select>
 
    <select id="getYCsTjOrderList" parameterType="java.util.Map" resultMap="TjOrderResult">
        <include refid="selectTjOrderVo"/>
        <where>
            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
            <if test="compId != null ">and comp_id = #{compId}</if>
            <if test="beginTime != null and endTime != null ">and create_time BETWEEN #{beginTime} and #{endTime}</if>
            and  deleted =0
        </where>
--         and !ISNULL(finish_time) and !ISNULL(confirm_status) and !ISNULL(confirm_time) and !ISNULL(confirm_doctor)
        and  status= 299 or  status= 301
        order by confirm_time desc
    </select>
 
    <select id="getCsTjOrderList1" parameterType="java.util.Map" resultMap="TjOrderResult">
        <include refid="selectTjOrderVo"/>
        <where>
            <if test="tjNum != null">and tj_number LIKE concat('%', #{tjNum}, '%')</if>
            <if test="checkStatus != null and checkStatus==0 ">and status =301</if>
            <if test="checkStatus != null and checkStatus== 1 ">and status =401 or status= 402 </if>
            <if test="compId != null ">and comp_id = #{compId}</if>
            <if test="beginTime != null and endTime != null ">and create_time BETWEEN #{beginTime} and #{endTime}</if>
            and  deleted =0
        </where>
--         and !ISNULL(finish_time) and !ISNULL(confirm_status) and !ISNULL(confirm_time) and !ISNULL(confirm_doctor) and confirm_status=0
        order by finish_time desc
    </select>
 
 
    <select id="selectTjOrderList" parameterType="TjOrder" resultMap="TjOrderResult">
        <include refid="selectTjOrderVo"/>
        <where>
            <if test="tjNumber != null">and tj_number = #{tjNumber}</if>
            <if test="createTimeList != null ">and create_time BETWEEN #{createTimeList[0]} and #{createTimeList[1]}
            </if>
            <if test="finishTimeList != null ">and finish_time BETWEEN #{finishTimeList[0]} and #{finishTimeList[1]}
            </if>
            <if test="reportTimeList != null ">and report_time BETWEEN #{reportTimeList[0]} and #{reportTimeList[1]}
            </if>
            <if test="firmId != null ">and firm_id = #{firmId}</if>
            and  deleted =0
        </where>
        and !ISNULL(finish_time)
        order by finish_time desc
    </select>
 
    <select id="selectExportOrderList" parameterType="TjOrder" resultMap="TjOrderResult">
        select o.order_id,o.user_id,o.tj_type,o.tj_number,o.tj_serial_number,o.pac_id,o.create_time,o.finish_time,o.update_time,o.report_time,o.create_by,o.update_by,o.deleted,o.firm_id,o.firm_dept_name,o.firm_work_id,o.photo,o.check_doctor,o.check_time,o.check_advice,o.release_time,o.send_email,o.send_message,o.is_return,o.print_last_time,o.download_last_time,o.check_status,o.status,o.confirm_doctor,o.confirm_time,o.confirm_status,
               c.cus_name
        from tj_order o
        left join tj_customer c on c.cus_id=o.user_id
        where o.deleted =0
        order by create_time desc
    </select>
 
    <select id="selectTjOrderByOrderId" parameterType="Long" resultMap="TjOrderResult">
        <include refid="selectTjOrderVo"/>
        where order_id = #{orderId}
    </select>
 
    <insert id="insertTjOrder" parameterType="TjOrder" useGeneratedKeys="true" keyProperty="orderId">
        insert into tj_order
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="userId != null">user_id,</if>
            <if test="tjType != null">tj_type,</if>
            <if test="tjNumber != null">tj_number,</if>
            <if test="tjSerialNumber != null">tj_serial_number,</if>
            <if test="pacId != null">pac_id,</if>
            <if test="createTime != null">create_time,</if>
            <if test="finishTime != null">finish_time,</if>
            <if test="updateTime != null">update_time,</if>
            <if test="reportTime != null">report_time,</if>
            <if test="createBy != null">create_by,</if>
            <if test="updateBy != null">update_by,</if>
            <if test="deleted != null">deleted,</if>
            <if test="firmId != null">firm_id,</if>
            <if test="firmDeptName != null">firm_dept_name,</if>
            <if test="firmWorkId != null">firm_work_id,</if>
            <if test="photo != null">photo,</if>
            <if test="checkDoctor != null">check_doctor,</if>
            <if test="checkTime != null">check_time,</if>
            <if test="checkAdvice != null">check_advice,</if>
            <if test="releaseTime != null">release_time,</if>
            <if test="sendEmail != null">send_email,</if>
            <if test="sendMessage != null">send_message,</if>
            <if test="isReturn != null">is_return,</if>
            <if test="printLastTime != null">print_last_time,</if>
            <if test="downloadLastTime != null">download_last_time,</if>
            <if test="checkStatus != null">check_status,</if>
            <if test="status != null">status,</if>
            <if test="confirmDoctor != null">confirm_doctor,</if>
            <if test="confirmTime != null">confirm_time,</if>
            <if test="confirmStatus != null">confirm_status,</if>
            <if test="groupId != null">group_id,</if>
            <if test="firmDeptId != null">firm_dept_id,</if>
            <if test="heshouStatus != null">heshou)status,</if>
            <if test="heshouDoctor != null">heshou_doctor,</if>
            <if test="heshouTime != null">heshou_time,</if>
            <if test="isHz != null">is_hz,</if>
            <if test="getType != null">get_type,</if>
            <if test="tjCategory != null">tj_category,</if>
            <if test="zhiyeJhgln != null">zhiye_jhgln,</if>
            <if test="zhiyeJhgly != null">zhiye_jhgly,</if>
            <if test="zhiyeKsjhrq != null">zhiye_ksjhrq,</if>
            <if test="zhiyeGh != null">zhiye_gh,</if>
            <if test="zhiyeCj != null">zhiye_cj,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="userId != null">#{userId},</if>
            <if test="tjType != null">#{tjType},</if>
            <if test="tjNumber != null">#{tjNumber},</if>
            <if test="tjSerialNumber != null">#{tjSerialNumber},</if>
            <if test="pacId != null">#{pacId},</if>
            <if test="createTime != null">#{createTime},</if>
            <if test="finishTime != null">#{finishTime},</if>
            <if test="updateTime != null">#{updateTime},</if>
            <if test="reportTime != null">#{reportTime},</if>
            <if test="createBy != null">#{createBy},</if>
            <if test="updateBy != null">#{updateBy},</if>
            <if test="deleted != null">#{deleted},</if>
            <if test="firmId != null">#{firmId},</if>
            <if test="firmDeptName != null">#{firmDeptName},</if>
            <if test="firmWorkId != null">#{firmWorkId},</if>
            <if test="photo != null">#{photo},</if>
            <if test="checkDoctor != null">#{checkDoctor},</if>
            <if test="checkTime != null">#{checkTime},</if>
            <if test="checkAdvice != null">#{checkAdvice},</if>
            <if test="releaseTime != null">#{releaseTime},</if>
            <if test="sendEmail != null">#{sendEmail},</if>
            <if test="sendMessage != null">#{sendMessage},</if>
            <if test="isReturn != null">#{isReturn},</if>
            <if test="printLastTime != null">#{printLastTime},</if>
            <if test="downloadLastTime != null">#{downloadLastTime},</if>
            <if test="checkStatus != null">#{checkStatus},</if>
            <if test="status != null">#{status},</if>
            <if test="confirmDoctor != null">#{confirmDoctor},</if>
            <if test="confirmTime != null">#{confirmTime},</if>
            <if test="confirmStatus != null">#{confirmStatus},</if>
            <if test="groupId != null">#{groupId},</if>
            <if test="firmDeptId != null">#{firmDeptId},</if>
            <if test="heshouStatus != null">#{heshouStatus},</if>
            <if test="heshouDoctor != null">#{heshouDoctor},</if>
            <if test="heshouTime != null">#{heshouTime},</if>
            <if test="isHz != null">#{isHz},</if>
            <if test="getType != null">#{getType},</if>
            <if test="tjCategory != null">#{tjCategory},</if>
            <if test="zhiyeJhgln != null">#{zhiyeJhgln},</if>
            <if test="zhiyeJhgly != null">#{zhiyeJhgly},</if>
            <if test="zhiyeKsjhrq != null">#{zhiyeKsjhrq},</if>
            <if test="zhiyeGh != null">#{zhiyeGh},</if>
            <if test="zhiyeCj != null">#{zhiyeCj},</if>
        </trim>
    </insert>
 
 
    <update id="updateTjOrder" parameterType="TjOrder">
        update tj_order
        <trim prefix="SET" suffixOverrides=",">
            <if test="userId != null">user_id = #{userId},</if>
            <if test="tjType != null">tj_type = #{tjType},</if>
            <if test="tjNumber != null">tj_number = #{tjNumber},</if>
            <if test="tjSerialNumber != null">tj_serial_number = #{tjSerialNumber},</if>
            <if test="pacId != null">pac_id = #{pacId},</if>
            <if test="createTime != null">create_time = #{createTime},</if>
            <if test="finishTime != null">finish_time = #{finishTime},</if>
            <if test="updateTime != null">update_time = #{updateTime},</if>
            <if test="reportTime != null">report_time = #{reportTime},</if>
            <if test="createBy != null">create_by = #{createBy},</if>
            <if test="updateBy != null">update_by = #{updateBy},</if>
            <if test="deleted != null">deleted = #{deleted},</if>
            <if test="firmId != null">firm_id = #{firmId},</if>
            <if test="firmDeptName != null">firm_dept_name = #{firmDeptName},</if>
            <if test="firmWorkId != null">firm_work_id = #{firmWorkId},</if>
            <if test="photo != null">photo = #{photo},</if>
            <if test="checkDoctor != null">check_doctor_id = #{checkDoctor},</if>
            <if test="checkTime != null">check_time = #{checkTime},</if>
            <if test="checkAdvice != null">check_advice = #{checkAdvice},</if>
            <if test="releaseTime != null">release_time = #{releaseTime},</if>
            <if test="sendEmail != null">send_email = #{sendEmail},</if>
            <if test="sendMessage != null">send_message = #{sendMessage},</if>
            <if test="isReturn != null">is_return = #{isReturn},</if>
            <if test="printLastTime != null">print_last_time = #{printLastTime},</if>
            <if test="downloadLastTime != null">download_last_time = #{downloadLastTime},</if>
            <if test="checkStatus != null">check_status = #{checkStatus},</if>
            <if test="status != null">status = #{status},</if>
            <if test="confirmDoctor != null">confirm_doctor = #{confirmDoctor},</if>
            <if test="confirmTime != null">confirm_time = #{confirmTime},</if>
            <if test="confirmStatus != null">confirm_status = #{confirmStatus},</if>
            <if test="groupId != null">group_id = #{groupId},</if>
            <if test="firmDeptId != null">firm_dept_id = #{firmDeptId},</if>
            <if test="heshouStatus != null">heshou_status = #{heshouStatus},</if>
            <if test="heshouDoctor != null">heshou_doctor = #{heshouDoctor},</if>
            <if test="heshouTime != null">heshou_time = #{heshouTime},</if>
            <if test="isHz != null">is_hz = #{isHz},</if>
            <if test="getType != null">get_type = #{getType},</if>
            <if test="tjCategory != null">tj_category = #{tjCategory},</if>
            <if test="zhiyeJhgln != null">zhiye_jhgln = #{zhiyeJhgln},</if>
            <if test="zhiyeJhgly != null">zhiye_jhgly = #{zhiyeJhgly},</if>
            <if test="zhiyeKsjhrq != null">zhiye_ksjhrq = #{zhiyeKsjhrq},</if>
            <if test="zhiyeGh != null">zhiye_gh = #{zhiyeGh},</if>
            <if test="zhiyeCj != null">zhiye_cj = #{zhiyeCj},</if>
        </trim>
        where order_id = #{orderId}
    </update>
 
 
    <delete id="deleteTjOrderByOrderId" parameterType="Long">
        delete
        from tj_order
        where order_id = #{orderId}
    </delete>
 
    <delete id="deleteTjOrderByOrderIds" parameterType="String">
        delete from tj_order where order_id in
        <foreach item="orderId" collection="array" open="(" separator="," close=")">
            #{orderId}
        </foreach>
    </delete>
 
 
<!--    <select id="getOrderList" parameterType="java.lang.Long" resultMap="TjOrderResult">-->
<!--        select *-->
<!--        from tj_order-->
<!--        where 1 = 1-->
<!--          and user_id = #{cusId}-->
<!--    </select>-->
 
 
    <select id="getOrderList1" parameterType="Integer" resultMap="TjOrderResult">
        {call sel_tjorder()}
    </select>
 
 
    <select id="getCunChuGuoChengCustomerList" parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_check_list(
                #{checkStatus,mode=IN,jdbcType=INTEGER},
                #{page,mode=IN,jdbcType=INTEGER},
                #{pageSize,mode=IN,jdbcType=INTEGER},
                #{tjNumber,mode=IN,jdbcType=VARCHAR},
                #{compId,mode=IN,jdbcType=VARCHAR},
                #{tjname,mode=IN,jdbcType=VARCHAR},
                #{beginTime,mode=IN,jdbcType=VARCHAR},
                #{endTime,mode=IN,jdbcType=VARCHAR},
                #{total,mode=OUT,jdbcType=INTEGER}
            )}
    </select>
 
 
    <select id="getCsCunChuGuoChengCustomerList" parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_cs_check_list(
                #{checkStatus,mode=IN,jdbcType=INTEGER},
                #{page,mode=IN,jdbcType=INTEGER},
                #{pageSize,mode=IN,jdbcType=INTEGER},
                #{tjNumber,mode=IN,jdbcType=VARCHAR},
                #{compId,mode=IN,jdbcType=VARCHAR},
                #{tjname,mode=IN,jdbcType=VARCHAR},
                #{beginTime,mode=IN,jdbcType=VARCHAR},
                #{endTime,mode=IN,jdbcType=VARCHAR},
                #{tcm,mode=IN,jdbcType=VARCHAR},
                #{total,mode=OUT,jdbcType=INTEGER}
            )}
    </select>
 
 
    <select id="getSuiFangTongYiMoBanJieKou" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.util.Map">
        {call   tj_PRO_ltkjreport(
                #{checkStatus,mode=IN,jdbcType=INTEGER},
                #{page,mode=IN,jdbcType=INTEGER},
                #{pageSize,mode=IN,jdbcType=INTEGER},
                #{tjNumber,mode=IN,jdbcType=VARCHAR},
                #{compId,mode=IN,jdbcType=VARCHAR},
                #{tjname,mode=IN,jdbcType=VARCHAR},
                #{beginTime,mode=IN,jdbcType=VARCHAR},
                #{endTime,mode=IN,jdbcType=VARCHAR},
                #{total,mode=OUT,jdbcType=INTEGER}
            )}
    </select>
 
 
    <select id="getgetBghsList" parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_bghs_list(
                #{page,mode=IN,jdbcType=INTEGER},
                #{pageSize,mode=IN,jdbcType=INTEGER},
                #{tjNumber,mode=IN,jdbcType=VARCHAR},
                #{compId,mode=IN,jdbcType=VARCHAR},
                #{tjname,mode=IN,jdbcType=VARCHAR},
                #{beginTime,mode=IN,jdbcType=VARCHAR},
                #{endTime,mode=IN,jdbcType=VARCHAR},
                #{total,mode=OUT,jdbcType=INTEGER}
              )}
    </select>
    <select id="tjQiandaodengji"  parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_qiandaodengji(
                #{tjNum,mode=IN,jdbcType=VARCHAR}
              )}
    </select>
    <select id="tjLispacstongbujianyi"  parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_lispacstongbujianyi(
                #{tjNum,mode=IN,jdbcType=VARCHAR},
                #{ksId,mode=IN,jdbcType=VARCHAR},
                #{ysxm,mode=IN,jdbcType=VARCHAR},
                #{ysid,mode=IN,jdbcType=VARCHAR}              )}
    </select>
 
 
    <select id="getTjBgdyList"  parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_bgdy_list(
                #{page,mode=IN,jdbcType=VARCHAR},
                #{pageSize,mode=IN,jdbcType=VARCHAR},
                #{dyzt,mode=IN,jdbcType=VARCHAR},
                #{tjNumber,mode=IN,jdbcType=VARCHAR},
                #{dw,mode=IN,jdbcType=VARCHAR},
                #{tjname,mode=IN,jdbcType=VARCHAR},
                #{beginTime,mode=IN,jdbcType=VARCHAR},
                #{endTime,mode=IN,jdbcType=VARCHAR},
                #{total,mode=OUT,jdbcType=INTEGER}
              )}
    </select>
 
 
 
    <select id="getYxJcList" parameterType="java.util.Map"  statementType="CALLABLE" resultType="java.util.Map">
        {call tj_xdtgmd_list(
                #{checkStatus,mode=IN,jdbcType=INTEGER},
                #{page,mode=IN,jdbcType=INTEGER},
                #{pageSize,mode=IN,jdbcType=INTEGER},
                #{tjNumber,mode=IN,jdbcType=VARCHAR},
                #{compId,mode=IN,jdbcType=VARCHAR},
                #{tjname,mode=IN,jdbcType=VARCHAR},
                #{beginTime,mode=IN,jdbcType=VARCHAR},
                #{endTime,mode=IN,jdbcType=VARCHAR},
                #{tcm,mode=IN,jdbcType=VARCHAR},
                #{ks,mode=IN,jdbcType=VARCHAR},
                #{total,mode=OUT,jdbcType=INTEGER}
              )}
    </select>
 
</mapper>