ShyAudioMapper.xml
3.15 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
<?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.cnlive.shenhe.mapper.ShyAudioMapper">
<resultMap id="BaseResultMap" type="com.cnlive.shenhe.entity.ShyAudio">
<!--
WARNING - @mbg.generated
-->
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="multiplecategory" jdbcType="VARCHAR" property="multiplecategory"/>
<result column="audioClipsName" jdbcType="VARCHAR" property="audioClipsName"/>
<result column="soure" jdbcType="INTEGER" property="soure"/>
<result column="audioId" jdbcType="VARCHAR" property="audioId"/>
<result column="audioTitle" jdbcType="VARCHAR" property="audioTitle"/>
<result column="audioUrl" jdbcType="VARCHAR" property="audioUrl"/>
<result column="audioCoverUrl" jdbcType="VARCHAR" property="audioCoverUrl"/>
<result column="audioIntro" jdbcType="VARCHAR" property="audioIntro"/>
<result column="audioTag" jdbcType="VARCHAR" property="audioTag"/>
<result column="audioKeyword" jdbcType="VARCHAR" property="audioKeyword"/>
<result column="uploadTime" jdbcType="TIMESTAMP" property="uploadTime"/>
<result column="priority" jdbcType="INTEGER" property="priority"/>
<result column="callback" jdbcType="VARCHAR" property="callback"/>
<result column="spId" jdbcType="INTEGER" property="spId"/>
<result column="bucketName" jdbcType="VARCHAR" property="bucketName"/>
<result column="bucketType" jdbcType="INTEGER" property="bucketType"/>
<result column="duration" jdbcType="INTEGER" property="duration"/>
<result column="uploader" jdbcType="VARCHAR" property="uploader"/>
<result column="contactInfo" jdbcType="VARCHAR" property="contactInfo"/>
<result column="extendField" jdbcType="VARCHAR" property="extendField"/>
<result column="auditor_id" jdbcType="VARCHAR" property="auditor_id"/>
<result column="attr_tags" jdbcType="VARCHAR" property="attr_tags"/>
<result column="msg" jdbcType="VARCHAR" property="msg"/>
<result column="shenhe_type" jdbcType="INTEGER" property="shenhe_type"/>
<result column="state" jdbcType="INTEGER" property="state"/>
<result column="createTime" jdbcType="TIMESTAMP" property="createTime"/>
<result column="updateTime" jdbcType="TIMESTAMP" property="updateTime"/>
<result column="receive" jdbcType="INTEGER" property="receive"/>
<result column="receive_user_id" jdbcType="VARCHAR" property="receive_user_id"/>
</resultMap>
<select id="getAudioMsg" resultType="com.cnlive.shenhe.entity.ShyAudio">
SELECT *
FROM shy_audio
where audioId = #{audioId,jdbcType=VARCHAR};
</select>
<select id="getAudioBySpId" resultType="com.cnlive.shenhe.entity.ShyAudio">
select *
from shy_audio
<where>
<if test="id != null">
and id = #{id}
</if>
<if test="spId != null and spId != 0">
and spId = #{spId}
</if>
</where>
</select>
</mapper>