Browse Source

合并冲突

weiximei 6 years ago
parent
commit
c38a7edcc0

+ 8
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpTransaction.java View File

30
 
30
 
31
     private List<String> imgList;
31
     private List<String> imgList;
32
 
32
 
33
+    private  Integer roleId;
34
+
35
+    public Integer getRoleId() {
36
+        return roleId;
37
+    }
38
+    public void setRoleId(Integer roleId) {
39
+        this.roleId = roleId;
40
+    }
33
     public Integer getId() {
41
     public Integer getId() {
34
         return id;
42
         return id;
35
     }
43
     }

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java View File

129
 
129
 
130
              /*推送海康*/
130
              /*推送海康*/
131
             String data=HKOpenApi.HKpersonGroupId(uploadFile, user.getHkUserId(), user.getId(), user.getUserName(), user.getHkCardNo());
131
             String data=HKOpenApi.HKpersonGroupId(uploadFile, user.getHkUserId(), user.getId(), user.getUserName(), user.getHkCardNo());
132
+
132
               /*boolean isA为true进行添加,为false进行修改*/
133
               /*boolean isA为true进行添加,为false进行修改*/
133
             if (0 == type && 1 == faceNum) {
134
             if (0 == type && 1 == faceNum) {
134
                 if (null == data) {
135
                 if (null == data) {

+ 15
- 2
CODE/smart-community/app-api/src/main/resources/mapper/TpTransactionMapper.xml View File

14
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
14
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
15
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
15
     <result column="update_user" property="updateUser" jdbcType="INTEGER" />
16
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
16
     <result column="update_date" property="updateDate" jdbcType="TIMESTAMP" />
17
+    <result column="role_id" property="roleId" jdbcType="INTEGER" />
17
   </resultMap>
18
   </resultMap>
18
   <sql id="Base_Column_List" >
19
   <sql id="Base_Column_List" >
19
     id, community_id, ta_user_id, transaction_title, transaction_content,
20
     id, community_id, ta_user_id, transaction_title, transaction_content,
21
   </sql>
22
   </sql>
22
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
23
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
23
     select 
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
     from tp_transaction
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
   </select>
40
   </select>
28
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
41
   <delete id="deleteByPrimaryKey" parameterType="java.lang.Integer" >
29
     delete from tp_transaction
42
     delete from tp_transaction