Browse Source

Merge branch 'master' of http://git.ycjcjy.com/xiangsong/xs-service

张延森 4 years ago
parent
commit
48cd55da39

+ 4
- 0
src/main/java/com/huiju/estateagents/controller/TaPersonController.java View File

19
 import com.huiju.estateagents.service.*;
19
 import com.huiju.estateagents.service.*;
20
 import com.huiju.estateagents.third.entity.TaThirdPartyMiniappConfig;
20
 import com.huiju.estateagents.third.entity.TaThirdPartyMiniappConfig;
21
 import com.huiju.estateagents.third.service.ITaThirdPartyMiniappConfigService;
21
 import com.huiju.estateagents.third.service.ITaThirdPartyMiniappConfigService;
22
+import io.swagger.annotations.Api;
23
+import io.swagger.annotations.ApiOperation;
22
 import org.springframework.beans.factory.annotation.Autowired;
24
 import org.springframework.beans.factory.annotation.Autowired;
23
 import org.springframework.web.bind.annotation.*;
25
 import org.springframework.web.bind.annotation.*;
24
 import org.springframework.web.client.RestTemplate;
26
 import org.springframework.web.client.RestTemplate;
40
  */
42
  */
41
 @RestController
43
 @RestController
42
 @RequestMapping("/api")
44
 @RequestMapping("/api")
45
+@Api(value = "微信人员相关API", tags = "微信人员相关API")
43
 public class TaPersonController extends BaseController {
46
 public class TaPersonController extends BaseController {
44
     @Autowired
47
     @Autowired
45
     ITaPersonService taPersonService;
48
     ITaPersonService taPersonService;
420
      * @param request
423
      * @param request
421
      * @return
424
      * @return
422
      */
425
      */
426
+    @ApiOperation(value = "人员签到", notes = "人员签到")
423
     @PostMapping("/wx/user/signin")
427
     @PostMapping("/wx/user/signin")
424
     public ResponseBean userSign(HttpServletRequest request) {
428
     public ResponseBean userSign(HttpServletRequest request) {
425
         String openid = getOpenId(request);
429
         String openid = getOpenId(request);

+ 4
- 57
src/main/java/com/huiju/estateagents/property/model/TpSocialView.java View File

1
 package com.huiju.estateagents.property.model;
1
 package com.huiju.estateagents.property.model;
2
 
2
 
3
+import lombok.Data;
4
+
3
 import java.util.Date;
5
 import java.util.Date;
4
 
6
 
7
+@Data
5
 public class TpSocialView {
8
 public class TpSocialView {
6
     private Integer id;
9
     private Integer id;
7
 
10
 
8
-    private Integer communityId;
11
+    private Integer orgId;
9
 
12
 
10
     private Integer uuid;
13
     private Integer uuid;
11
 
14
 
16
     private String remark;
19
     private String remark;
17
 
20
 
18
     private Date createDate;
21
     private Date createDate;
19
-
20
-    public Integer getId() {
21
-        return id;
22
-    }
23
-
24
-    public void setId(Integer id) {
25
-        this.id = id;
26
-    }
27
-
28
-    public Integer getCommunityId() {
29
-        return communityId;
30
-    }
31
-
32
-    public void setCommunityId(Integer communityId) {
33
-        this.communityId = communityId;
34
-    }
35
-
36
-    public Integer getUuid() {
37
-        return uuid;
38
-    }
39
-
40
-    public void setUuid(Integer uuid) {
41
-        this.uuid = uuid;
42
-    }
43
-
44
-    public String getSocialType() {
45
-        return socialType;
46
-    }
47
-
48
-    public void setSocialType(String socialType) {
49
-        this.socialType = socialType == null ? null : socialType.trim();
50
-    }
51
-
52
-    public Integer getTaUserId() {
53
-        return taUserId;
54
-    }
55
-
56
-    public void setTaUserId(Integer taUserId) {
57
-        this.taUserId = taUserId;
58
-    }
59
-
60
-    public String getRemark() {
61
-        return remark;
62
-    }
63
-
64
-    public void setRemark(String remark) {
65
-        this.remark = remark == null ? null : remark.trim();
66
-    }
67
-
68
-    public Date getCreateDate() {
69
-        return createDate;
70
-    }
71
-
72
-    public void setCreateDate(Date createDate) {
73
-        this.createDate = createDate;
74
-    }
75
 }
22
 }

+ 1
- 1
src/main/java/com/huiju/estateagents/property/service/impl/SocialServiceImpl.java View File

101
         TpSocialView tpSocialView = new TpSocialView();
101
         TpSocialView tpSocialView = new TpSocialView();
102
         tpSocialView.setTaUserId(userId);
102
         tpSocialView.setTaUserId(userId);
103
         tpSocialView.setSocialType(socialType);
103
         tpSocialView.setSocialType(socialType);
104
-        tpSocialView.setCommunityId(orgId);
104
+        tpSocialView.setOrgId(orgId);
105
         tpSocialView.setUuid(uuid);
105
         tpSocialView.setUuid(uuid);
106
         Integer viewNum = tpSocialViewMapper.selectViewNum(tpSocialView);
106
         Integer viewNum = tpSocialViewMapper.selectViewNum(tpSocialView);
107
 
107
 

+ 0
- 4
src/main/java/com/huiju/estateagents/property/vo/TpTicketVO.java View File

22
 @Data
22
 @Data
23
 public class TpTicketVO extends TpTicket {
23
 public class TpTicketVO extends TpTicket {
24
 
24
 
25
-    /** 小区编号 **/
26
-    private Integer communityId;
27
-
28
-
29
     /**
25
     /**
30
      * 报修类型的名字
26
      * 报修类型的名字
31
      */
27
      */

+ 17
- 0
src/main/resources/mapper/property/TpAnnouncementMapper.xml View File

101
     a.update_date DESC,
101
     a.update_date DESC,
102
     a.create_date DESC
102
     a.create_date DESC
103
   </select>
103
   </select>
104
+
105
+  <update id="updateByPrimaryKeySelective" >
106
+    update tp_announcement
107
+    <set >
108
+      <if test="viewCount != null" >
109
+        view_count = #{viewCount,jdbcType=INTEGER},
110
+      </if>
111
+    </set>
112
+    where id = #{id,jdbcType=INTEGER}
113
+  </update>
114
+
115
+  <select id="selectByPrimaryKey" resultType="com.huiju.estateagents.property.model.TpAnnouncement">
116
+    select
117
+    <include refid="Base_Column_List" />
118
+    from tp_announcement
119
+    where id = #{id,jdbcType=INTEGER} and org_id = #{orgId,jdbcType=INTEGER}
120
+  </select>
104
 </mapper>
121
 </mapper>

+ 7
- 7
src/main/resources/mapper/property/TpSocialViewMapper.xml View File

3
 <mapper namespace="com.huiju.estateagents.property.dao.TpSocialViewMapper" >
3
 <mapper namespace="com.huiju.estateagents.property.dao.TpSocialViewMapper" >
4
   <resultMap id="BaseResultMap" type="com.huiju.estateagents.property.model.TpSocialView" >
4
   <resultMap id="BaseResultMap" type="com.huiju.estateagents.property.model.TpSocialView" >
5
     <id column="id" property="id" jdbcType="INTEGER" />
5
     <id column="id" property="id" jdbcType="INTEGER" />
6
-    <result column="community_id" property="communityId" jdbcType="INTEGER" />
6
+    <result column="org_id" property="orgId" jdbcType="INTEGER" />
7
     <result column="uuid" property="uuid" jdbcType="INTEGER" />
7
     <result column="uuid" property="uuid" jdbcType="INTEGER" />
8
     <result column="social_type" property="socialType" jdbcType="VARCHAR" />
8
     <result column="social_type" property="socialType" jdbcType="VARCHAR" />
9
     <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
9
     <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
11
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
11
     <result column="create_date" property="createDate" jdbcType="TIMESTAMP" />
12
   </resultMap>
12
   </resultMap>
13
   <sql id="Base_Column_List" >
13
   <sql id="Base_Column_List" >
14
-    id, community_id, uuid, social_type, ta_user_id, remark, create_date
14
+    id, org_id, uuid, social_type, ta_user_id, remark, create_date
15
   </sql>
15
   </sql>
16
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
16
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
17
     select 
17
     select 
37
       <if test="id != null" >
37
       <if test="id != null" >
38
         id,
38
         id,
39
       </if>
39
       </if>
40
-      <if test="communityId != null" >
41
-        community_id,
40
+      <if test="orgId != null" >
41
+        org_id,
42
       </if>
42
       </if>
43
       <if test="uuid != null" >
43
       <if test="uuid != null" >
44
         uuid,
44
         uuid,
60
       <if test="id != null" >
60
       <if test="id != null" >
61
         #{id,jdbcType=INTEGER},
61
         #{id,jdbcType=INTEGER},
62
       </if>
62
       </if>
63
-      <if test="communityId != null" >
64
-        #{communityId,jdbcType=INTEGER},
63
+      <if test="orgId != null" >
64
+        #{orgId,jdbcType=INTEGER},
65
       </if>
65
       </if>
66
       <if test="uuid != null" >
66
       <if test="uuid != null" >
67
         #{uuid,jdbcType=INTEGER},
67
         #{uuid,jdbcType=INTEGER},
122
       and ta_user_id = #{taUserId}
122
       and ta_user_id = #{taUserId}
123
     </if>
123
     </if>
124
     and uuid = #{uuid}
124
     and uuid = #{uuid}
125
-    and community_id = #{communityId}
125
+    and org_id = #{orgId}
126
     and social_type = #{socialType}
126
     and social_type = #{socialType}
127
   </select>
127
   </select>
128
 </mapper>
128
 </mapper>

+ 2
- 2
src/main/resources/mapper/property/TpTicketRecordMapper.xml View File

45
         t.id,
45
         t.id,
46
         t.status,
46
         t.status,
47
         t.ticket_id AS ticketId,
47
         t.ticket_id AS ticketId,
48
-        t.community_id AS communityId,
48
+        t.org_id AS orgId,
49
         t.content AS content,
49
         t.content AS content,
50
         t.create_date AS createDate,
50
         t.create_date AS createDate,
51
         d.NAME AS ticketStatusName
51
         d.NAME AS ticketStatusName
54
         LEFT JOIN sys_dictionary d ON t.STATUS = d.CODE
54
         LEFT JOIN sys_dictionary d ON t.STATUS = d.CODE
55
         AND d.group_id = ( SELECT id FROM sys_dictionary WHERE CODE = "ticket_status" )
55
         AND d.group_id = ( SELECT id FROM sys_dictionary WHERE CODE = "ticket_status" )
56
     WHERE
56
     WHERE
57
-        community_id = #{communityId,jdbcType=INTEGER}
57
+        org_id = #{orgId,jdbcType=INTEGER}
58
         AND ticket_id = #{ticketId,jdbcType=INTEGER}
58
         AND ticket_id = #{ticketId,jdbcType=INTEGER}
59
     order by t.status
59
     order by t.status
60
   </select>
60
   </select>