|
@@ -11,9 +11,12 @@
|
11
|
11
|
<result column="reply_ta_user_id" property="replyTaUserId" jdbcType="INTEGER" />
|
12
|
12
|
<result column="reply_ta_user_name" property="replyTaUserName" jdbcType="VARCHAR" />
|
13
|
13
|
<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
|
14
|
+ <result column="release_identity" property="releaseIdentity" jdbcType="VARCHAR" />
|
|
15
|
+ <result column="ta_user_verify_id" property="taUserVerifyId" jdbcType="INTEGER" />
|
|
16
|
+
|
14
|
17
|
</resultMap>
|
15
|
18
|
<sql id="Base_Column_List" >
|
16
|
|
- id, community_id, transaction_id, ta_user_id, ta_user_name, reply_content, reply_ta_user_id,
|
|
19
|
+ id, community_id, transaction_id, ta_user_id, ta_user_name, reply_content, reply_ta_user_id,ta_user_verify_id
|
17
|
20
|
reply_ta_user_name, create_date
|
18
|
21
|
</sql>
|
19
|
22
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
|
@@ -27,12 +30,12 @@
|
27
|
30
|
where id = #{id,jdbcType=INTEGER}
|
28
|
31
|
</delete>
|
29
|
32
|
<insert id="insert" parameterType="com.community.huiju.model.TpTransactionReply" useGeneratedKeys="true" keyProperty="id" keyColumn="id">
|
30
|
|
- insert into tp_transaction_reply (id, community_id, transaction_id,
|
|
33
|
+ insert into tp_transaction_reply (id, community_id, transaction_id,ta_user_verify_id,release_identity,
|
31
|
34
|
ta_user_id, ta_user_name, reply_content,
|
32
|
35
|
reply_ta_user_id, reply_ta_user_name, create_date
|
33
|
36
|
)
|
34
|
|
- values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},
|
35
|
|
- #{taUserId,jdbcType=INTEGER}, #{taUserName,jdbcType=VARCHAR}, #{replyContent,jdbcType=VARCHAR},
|
|
37
|
+ values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{transactionId,jdbcType=INTEGER},#{taUserVerifyId},#{releaseIdentity},
|
|
38
|
+ #{taUserId,jdbcType=INTEGER}, #{taUserName,jdbcType=VARCHAR}, #{replyContent,jdbcType=VARCHAR},
|
36
|
39
|
#{replyTaUserId,jdbcType=INTEGER}, #{replyTaUserName,jdbcType=VARCHAR}, #{createDate,jdbcType=TIMESTAMP}
|
37
|
40
|
)
|
38
|
41
|
</insert>
|
|
@@ -66,6 +69,12 @@
|
66
|
69
|
<if test="createDate != null" >
|
67
|
70
|
create_date,
|
68
|
71
|
</if>
|
|
72
|
+ <if test="releaseIdentity != null" >
|
|
73
|
+ release_identity,
|
|
74
|
+ </if>
|
|
75
|
+ <if test="taUserVerifyId != null" >
|
|
76
|
+ ta_user_verify_id
|
|
77
|
+ </if>
|
69
|
78
|
</trim>
|
70
|
79
|
<trim prefix="values (" suffix=")" suffixOverrides="," >
|
71
|
80
|
<if test="id != null" >
|
|
@@ -95,6 +104,12 @@
|
95
|
104
|
<if test="createDate != null" >
|
96
|
105
|
#{createDate,jdbcType=TIMESTAMP},
|
97
|
106
|
</if>
|
|
107
|
+ <if test="releaseIdentity != null" >
|
|
108
|
+ #{releaseIdentity},
|
|
109
|
+ </if>
|
|
110
|
+ <if test="taUserVerifyId != null" >
|
|
111
|
+ #{ taUserVerifyId}
|
|
112
|
+ </if>
|
98
|
113
|
</trim>
|
99
|
114
|
</insert>
|
100
|
115
|
<update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpTransactionReply" >
|
|
@@ -141,7 +156,7 @@
|
141
|
156
|
</update>
|
142
|
157
|
<select id="getCommunityIdAndTransactionId" resultMap="BaseResultMap">
|
143
|
158
|
SELECT
|
144
|
|
- tr.*, (SELECT tsr.role_name FROM ta_sys_user_role tsur LEFT JOIN ta_sys_role tsr ON tsur.role_id = tsr.id WHERE tsur.user_id = tr.ta_user_id) AS taRoleName,
|
|
159
|
+ tr.*, (SELECT r.description FROM ta_user_verify uv LEFT JOIN ta_sys_role r ON uv.role_id = r.id WHERE uv.id = tr.ta_user_verify_id) AS taRoleName,
|
145
|
160
|
(SELECT tsr.role_name FROM ta_sys_user_role tsur LEFT JOIN ta_sys_role tsr ON tsur.role_id = tsr.id WHERE tsur.user_id = tr.reply_ta_user_id) AS replyRoleName
|
146
|
161
|
FROM
|
147
|
162
|
tp_transaction_reply tr
|