|
@@ -14,6 +14,7 @@
|
14
|
14
|
<result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
|
15
|
15
|
<result column="update_user" property="updateUser" jdbcType="INTEGER" />
|
16
|
16
|
<result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
|
|
17
|
+ <result column="role_id" property="roleId" jdbcType="INTEGER" />
|
17
|
18
|
</resultMap>
|
18
|
19
|
<sql id="Base_Column_List" >
|
19
|
20
|
id, community_id, ta_user_id, transaction_title, transaction_content,
|
|
@@ -21,9 +22,21 @@
|
21
|
22
|
</sql>
|
22
|
23
|
<select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
|
23
|
24
|
select
|
24
|
|
- <include refid="Base_Column_List" />
|
|
25
|
+ id,
|
|
26
|
+ community_id,
|
|
27
|
+ ta_user_id,
|
|
28
|
+ transaction_title,
|
|
29
|
+ transaction_content,
|
|
30
|
+ view_count,
|
|
31
|
+ status,
|
|
32
|
+ type,
|
|
33
|
+ create_user,
|
|
34
|
+ create_date,
|
|
35
|
+ update_user,
|
|
36
|
+ update_date,
|
|
37
|
+ (SELECT role_id FROM ta_sys_user_role WHERE user_id=ta_user_id) AS role_id
|
25
|
38
|
from tp_transaction
|
26
|
|
- where id = #{id,jdbcType=INTEGER} and #{communityId,jdbcType=INTEGER}
|
|
39
|
+ where id = #{id,jdbcType=INTEGER} and community_id=#{communityId,jdbcType=INTEGER}
|
27
|
40
|
</select>
|
28
|
41
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
|
29
|
42
|
delete from tp_transaction
|