瀏覽代碼

修复 bug

魏熙美 6 年之前
父節點
當前提交
01bf1fd6c1
共有 29 個檔案被更改,包括 494 行新增30 行删除
  1. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java
  2. 1
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/enums/UserVerifyEnum.java
  3. 26
    0
      CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivitySignup.java
  4. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java
  5. 2
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java
  6. 11
    3
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java
  7. 1
    1
      CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java
  8. 1
    1
      CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml
  9. 27
    5
      CODE/smart-community/app-api/src/main/resources/mapper/TpActivitySignupMapper.xml
  10. 二進制
      CODE/smart-community/community-common/target/community-common-0.0.1.jar
  11. 4
    0
      CODE/smart-community/community-common/target/maven-archiver/pom.properties
  12. 32
    0
      CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst
  13. 29
    0
      CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst
  14. 22
    2
      CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/ActivityController.java
  15. 16
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java
  16. 65
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpActivitySignIn.java
  17. 8
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpActivitySignUp.java
  18. 26
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITpActivitySignInService.java
  19. 2
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java
  20. 2
    5
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivitySignUpServiceImpl.java
  21. 40
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpTpActivitySignInServiceImpl.java
  22. 5
    0
      CODE/smart-community/property-api/src/main/java/com/community/huiju/vo/ActivityVO.java
  23. 5
    0
      CODE/smart-community/property-api/src/main/resources/mapper/TpActivitySignInMapper.xml
  24. 10
    3
      CODE/smart-community/property-api/src/main/resources/mapper/TpActivitySignUpMapper.xml
  25. 15
    0
      VUECODE/smart-property-manage/src/api/activity.js
  26. 10
    2
      VUECODE/smart-property-manage/src/store/modules/activity.js
  27. 2
    2
      VUECODE/smart-property-manage/src/views/social/activity/index.vue
  28. 129
    3
      VUECODE/smart-property-manage/src/views/social/activity/signIn/index.vue
  29. 1
    0
      VUECODE/smart-property-manage/src/views/social/signUp/index.vue

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/controller/SocialController.java 查看文件

@@ -74,7 +74,7 @@ public class SocialController extends BaseController {
74 74
             return responseBean;
75 75
         }
76 76
 
77
-        responseBean = socialServiceI.findTaUserInfo(activityId, communityId, userId,remark);
77
+        responseBean = socialServiceI.findTaUserInfo(userElement, activityId, communityId, userId,remark);
78 78
         return responseBean;
79 79
     }
80 80
     

+ 1
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/enums/UserVerifyEnum.java 查看文件

@@ -17,6 +17,7 @@ public enum UserVerifyEnum {
17 17
 
18 18
     A_MULTIPLE_REAL_ESTATE("1004", "有多个关联房产"),
19 19
 
20
+    NO_OWNER("1005", "该房产,暂无审核通过的业主!"),
20 21
     ;
21 22
 
22 23
     UserVerifyEnum(String code, String msg) {

+ 26
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/model/TpActivitySignup.java 查看文件

@@ -16,6 +16,16 @@ public class TpActivitySignup {
16 16
 
17 17
     private String remark;
18 18
 
19
+    /**
20
+     * 住户地址
21
+     */
22
+    private String address;
23
+
24
+    /**
25
+     * 用户角色名称
26
+     */
27
+    private String userRole;
28
+
19 29
     public Integer getId() {
20 30
         return id;
21 31
     }
@@ -63,4 +73,20 @@ public class TpActivitySignup {
63 73
     public void setRemark(String remark) {
64 74
         this.remark = remark == null ? null : remark.trim();
65 75
     }
76
+
77
+    public String getAddress() {
78
+        return address;
79
+    }
80
+
81
+    public void setAddress(String address) {
82
+        this.address = address;
83
+    }
84
+
85
+    public String getUserRole() {
86
+        return userRole;
87
+    }
88
+
89
+    public void setUserRole(String userRole) {
90
+        this.userRole = userRole;
91
+    }
66 92
 }

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/SocialServiceI.java 查看文件

@@ -68,7 +68,7 @@ public interface SocialServiceI {
68 68
 	 * @param remark
69 69
 	 * @return
70 70
 	 */
71
-	ResponseBean findTaUserInfo(Integer activityId, Integer communityId, Integer userId, String remark);
71
+	ResponseBean findTaUserInfo(UserElement userElement, Integer activityId, Integer communityId, Integer userId, String remark);
72 72
 
73 73
 	/**
74 74
 	 * 修改活动报名

+ 2
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/BuildingOwnerInfoImpl.java 查看文件

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
4 4
 import com.community.commom.mode.ResponseBean;
5 5
 import com.community.commom.session.UserElement;
6 6
 import com.community.huiju.dao.*;
7
+import com.community.huiju.enums.UserVerifyEnum;
7 8
 import com.community.huiju.model.*;
8 9
 import com.community.huiju.service.IBuildingOwnerInfo;
9 10
 import com.github.pagehelper.Page;
@@ -105,7 +106,7 @@ public class BuildingOwnerInfoImpl implements IBuildingOwnerInfo {
105 106
             return responseBean;
106 107
         }
107 108
 
108
-        responseBean.addError("该房产,暂无审核通过的业主!");
109
+        responseBean.addError(UserVerifyEnum.NO_OWNER.getCode(),UserVerifyEnum.NO_OWNER.getMsg());
109 110
         return responseBean;
110 111
     }
111 112
 }

+ 11
- 3
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/SocialServiceImpl.java 查看文件

@@ -247,7 +247,7 @@ public class SocialServiceImpl implements SocialServiceI {
247 247
     }
248 248
 
249 249
     @Override
250
-    public ResponseBean findTaUserInfo(Integer activityId, Integer communityId, Integer userId,String remark) {
250
+    public ResponseBean findTaUserInfo(UserElement userElement, Integer activityId, Integer communityId, Integer userId,String remark) {
251 251
         ResponseBean responseBean = new ResponseBean();
252 252
         TpActivity tpActivity = tpActivityMapper.selectByPrimaryKey(activityId, communityId);
253 253
         //判断是否已经过了报名截至时间
@@ -296,7 +296,8 @@ public class SocialServiceImpl implements SocialServiceI {
296 296
                 || Constant.TENANT.equals(sysRole.getRoleName())
297 297
                 || Constant.OWNER.equals(sysRole.getRoleName()))){
298 298
 
299
-            return insertActivitySignUp(tpActivity, communityId, userId, remark);
299
+
300
+            return insertActivitySignUp(userElement, tpActivity, communityId, userId, remark);
300 301
         }
301 302
         responseBean.addError("9995", "无法确认您的身份,请联系物业");
302 303
         return responseBean;
@@ -758,7 +759,7 @@ public class SocialServiceImpl implements SocialServiceI {
758 759
     }
759 760
 
760 761
 
761
-    public ResponseBean insertActivitySignUp(TpActivity tpActivity, Integer communityId, Integer userId,String remark){
762
+    public ResponseBean insertActivitySignUp(UserElement userElement, TpActivity tpActivity, Integer communityId, Integer userId,String remark){
762 763
         ResponseBean responseBean = new ResponseBean();
763 764
         //判断是否已经报名
764 765
         Integer signNum = tpActivitySignupMapper.findTpActivetitySignByUserId(tpActivity.getId(), communityId, userId);
@@ -773,6 +774,13 @@ public class SocialServiceImpl implements SocialServiceI {
773 774
         tpActivitySignup.setTaUserId(userId);
774 775
         tpActivitySignup.setSignUpTime(new Date());
775 776
         tpActivitySignup.setRemark(remark);
777
+
778
+        TaUserVerify userVerify = taUserVerifyMapper.selectByPrimaryKey(userElement.getUserVerifyId());
779
+        TaSysRole sysRole = taSysRoleMapper.selectByPrimaryKey(userVerify.getRoleId());
780
+
781
+        tpActivitySignup.setAddress(userVerify.getPhaseName() + userVerify.getBuildingName() + userVerify.getUnitName() + userVerify.getLevelName() + userVerify.getRoomNoName());
782
+        tpActivitySignup.setUserRole(sysRole.getRoleName());
783
+
776 784
         tpActivitySignupMapper.insertSelective(tpActivitySignup);
777 785
         //更新报名人数
778 786
         updateActivitySignUpNum(communityId,tpActivity.getId());

+ 1
- 1
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/TaUserVerifyServicelmpl.java 查看文件

@@ -188,7 +188,7 @@ public class TaUserVerifyServicelmpl implements TaUserVerifyServicel {
188 188
             responseBean.addError("无法删除当前登录的房产!");
189 189
             return responseBean;
190 190
         }
191
-        if (null != userVerify && userElement.getId().intValue() == userVerify.getUserId().intValue()) {
191
+        if (null != userVerify && userElement.getId().intValue() != userVerify.getUserId().intValue()) {
192 192
             responseBean.addError("您名下无此房产关联!");
193 193
             return responseBean;
194 194
         }

+ 1
- 1
CODE/smart-community/app-api/src/main/resources/mapper/TaUserVerifyMapper.xml 查看文件

@@ -49,7 +49,7 @@
49 49
       #{roomNoId,jdbcType=INTEGER}, #{roomNoName,jdbcType=VARCHAR}, #{verifyStatus,jdbcType=VARCHAR},
50 50
       #{createDate,jdbcType=TIMESTAMP}, #{verifyName,jdbcType=VARCHAR})
51 51
   </insert>
52
-  <insert id="insertSelective" parameterType="com.community.huiju.model.TaUserVerify" keyColumn="id" useGeneratedKeys="true">
52
+  <insert id="insertSelective" parameterType="com.community.huiju.model.TaUserVerify" keyProperty="id" useGeneratedKeys="true">
53 53
     insert into ta_user_verify
54 54
     <trim prefix="(" suffix=")" suffixOverrides="," >
55 55
       <if test="id != null" >

+ 27
- 5
CODE/smart-community/app-api/src/main/resources/mapper/TpActivitySignupMapper.xml 查看文件

@@ -7,10 +7,11 @@
7 7
     <result column="activity_id" property="activityId" jdbcType="INTEGER" />
8 8
     <result column="ta_user_id" property="taUserId" jdbcType="INTEGER" />
9 9
     <result column="sign_up_time" property="signUpTime" jdbcType="TIMESTAMP" />
10
-    <result column="remark" property="remark" jdbcType="VARCHAR" />
10
+    <result column="address" property="address" jdbcType="VARCHAR" />
11
+    <result column="user_role" property="userRole" jdbcType="VARCHAR" />
11 12
   </resultMap>
12 13
   <sql id="Base_Column_List" >
13
-    id, community_id, activity_id, ta_user_id, sign_up_time, remark
14
+    id, community_id, activity_id, ta_user_id, sign_up_time, remark, address, user_role
14 15
   </sql>
15 16
   <select id="selectByPrimaryKey" resultMap="BaseResultMap" parameterType="java.lang.Integer" >
16 17
     select 
@@ -24,10 +25,11 @@
24 25
   </delete>
25 26
   <insert id="insert" parameterType="com.community.huiju.model.TpActivitySignup" >
26 27
     insert into tp_activity_sign_up (id, community_id, activity_id, 
27
-      ta_user_id, sign_up_time, remark
28
+      ta_user_id, sign_up_time, remark, address, user_role
28 29
       )
29 30
     values (#{id,jdbcType=INTEGER}, #{communityId,jdbcType=INTEGER}, #{activityId,jdbcType=INTEGER}, 
30
-      #{taUserId,jdbcType=INTEGER}, #{signUpTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}
31
+      #{taUserId,jdbcType=INTEGER}, #{signUpTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
32
+      #{address,jdbcType=VARCHAR}, #{userRole,jdbcType=VARCHAR}
31 33
       )
32 34
   </insert>
33 35
   <insert id="insertSelective" parameterType="com.community.huiju.model.TpActivitySignup" >
@@ -51,6 +53,12 @@
51 53
       <if test="remark != null" >
52 54
         remark,
53 55
       </if>
56
+      <if test="address != null">
57
+        address,
58
+      </if>
59
+      <if test="userRole">
60
+        user_role,
61
+      </if>
54 62
     </trim>
55 63
     <trim prefix="values (" suffix=")" suffixOverrides="," >
56 64
       <if test="id != null" >
@@ -71,6 +79,12 @@
71 79
       <if test="remark != null" >
72 80
         #{remark,jdbcType=VARCHAR},
73 81
       </if>
82
+      <if test="address != null">
83
+        #{address,jdbcType=VARCHAR},
84
+      </if>
85
+      <if test="userRole != null">
86
+        #{userRole,jdbcType=VARCHAR},
87
+      </if>
74 88
     </trim>
75 89
   </insert>
76 90
   <update id="updateByPrimaryKeySelective" parameterType="com.community.huiju.model.TpActivitySignup" >
@@ -91,6 +105,12 @@
91 105
       <if test="remark != null" >
92 106
         remark = #{remark,jdbcType=VARCHAR},
93 107
       </if>
108
+      <if test="address != null">
109
+        address = #{address,jdbcType=VARCHAR},
110
+      </if>
111
+      <if test="userRole">
112
+        user_role = #{userRole,jdbcType=VARCHAR},
113
+      </if>
94 114
     </set>
95 115
     where id = #{id,jdbcType=INTEGER}
96 116
   </update>
@@ -100,7 +120,9 @@
100 120
       activity_id = #{activityId,jdbcType=INTEGER},
101 121
       ta_user_id = #{taUserId,jdbcType=INTEGER},
102 122
       sign_up_time = #{signUpTime,jdbcType=TIMESTAMP},
103
-      remark = #{remark,jdbcType=VARCHAR}
123
+      remark = #{remark,jdbcType=VARCHAR},
124
+      address = #{address,jdbcType=VARCHAR},
125
+      user_role = #{userRole,jdbcType=VARCHAR}
104 126
     where id = #{id,jdbcType=INTEGER}
105 127
   </update>
106 128
 

二進制
CODE/smart-community/community-common/target/community-common-0.0.1.jar 查看文件


+ 4
- 0
CODE/smart-community/community-common/target/maven-archiver/pom.properties 查看文件

@@ -0,0 +1,4 @@
1
+#Created by Apache Maven 3.3.9
2
+version=0.0.1
3
+groupId=com.community
4
+artifactId=community-common

+ 32
- 0
CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst 查看文件

@@ -0,0 +1,32 @@
1
+com\community\commom\redis\RedisTemplate.class
2
+com\community\commom\redis\RedisConfiguration.class
3
+com\community\commom\utils\OssUtil.class
4
+com\community\commom\redis\SingleRedisTemplate.class
5
+com\community\commom\utils\EnumUtils.class
6
+com\community\commom\hk\HttpClientSSLUtils$2.class
7
+com\community\commom\redis\RedisJsonSerializer.class
8
+com\community\commom\uuid\IdGen.class
9
+com\community\commom\utils\BeanTools.class
10
+com\community\commom\hk\HttpClientSSLUtils.class
11
+com\community\commom\session\UserElement.class
12
+com\community\commom\utils\CommonUtils.class
13
+com\community\commom\redis\RedisSerializer.class
14
+com\community\commom\utils\StringConverter.class
15
+com\community\commom\mode\ResponseBean.class
16
+com\community\commom\utils\DESUtils.class
17
+com\community\commom\redis\FastJsonSerializer.class
18
+com\community\commom\utils\DateUtils.class
19
+com\community\commom\utils\HttpClientUtils.class
20
+com\community\commom\constant\Constant.class
21
+com\community\commom\utils\CookieUtil.class
22
+com\community\commom\mode\HkResponseBean.class
23
+com\community\commom\ailiyun\AESDecode.class
24
+com\community\commom\uuid\IdGen$IdGenHolder.class
25
+com\community\commom\utils\PayPriceUtils.class
26
+com\community\commom\hk\HttpClientSSLUtils$1.class
27
+com\community\commom\utils\MD5Utils.class
28
+com\community\commom\redis\RedisObjectSerializer.class
29
+com\community\commom\utils\QRCodeGeneratorUtils.class
30
+com\community\commom\redis\SerializationFailedException.class
31
+com\community\commom\hk\Digests.class
32
+com\community\commom\utils\AccountValidatorUtil.class

+ 29
- 0
CODE/smart-community/community-common/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst 查看文件

@@ -0,0 +1,29 @@
1
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisJsonSerializer.java
2
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\ailiyun\AESDecode.java
3
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\hk\HttpClientSSLUtils.java
4
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\PayPriceUtils.java
5
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\DateUtils.java
6
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\HttpClientUtils.java
7
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\DESUtils.java
8
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisSerializer.java
9
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\BeanTools.java
10
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\OssUtil.java
11
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisObjectSerializer.java
12
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\EnumUtils.java
13
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisTemplate.java
14
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\mode\HkResponseBean.java
15
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\SerializationFailedException.java
16
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\CommonUtils.java
17
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\MD5Utils.java
18
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\session\UserElement.java
19
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\SingleRedisTemplate.java
20
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\hk\Digests.java
21
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\QRCodeGeneratorUtils.java
22
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\RedisConfiguration.java
23
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\AccountValidatorUtil.java
24
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\uuid\IdGen.java
25
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\mode\ResponseBean.java
26
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\StringConverter.java
27
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\redis\FastJsonSerializer.java
28
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\constant\Constant.java
29
+E:\weiximei\smartCommunity\CODE\smart-community\community-common\src\main\java\com\community\commom\utils\CookieUtil.java

+ 22
- 2
CODE/smart-community/property-api/src/main/java/com/community/huiju/controller/ActivityController.java 查看文件

@@ -5,6 +5,7 @@ import com.community.commom.mode.ResponseBean;
5 5
 import com.community.commom.session.UserElement;
6 6
 import com.community.huiju.common.base.BaseController;
7 7
 import com.community.huiju.service.ITpActivityService;
8
+import com.community.huiju.service.ITpActivitySignInService;
8 9
 import com.community.huiju.service.ITpActivitySignUpService;
9 10
 import io.swagger.annotations.Api;
10 11
 import io.swagger.annotations.ApiImplicitParam;
@@ -37,6 +38,9 @@ public class ActivityController extends BaseController {
37 38
     @Autowired
38 39
     private ITpActivitySignUpService iTpActivitySignUpService;
39 40
 
41
+    @Autowired
42
+    private ITpActivitySignInService iTpActivitySignInService;
43
+
40 44
     @ApiOperation(value = "查询活动列表数据", notes = "根据条件查询活动列表")
41 45
     @ApiImplicitParams({
42 46
             @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
@@ -116,7 +120,6 @@ public class ActivityController extends BaseController {
116 120
     @ApiOperation(value = "查询 活动报名人", notes = "查询 活动报名人")
117 121
     @ApiImplicitParams({
118 122
 //            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
119
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
120 123
             @ApiImplicitParam(paramType = "body", dataTypeClass = Integer.class, name = "parameter", value = "userName用户名;phone手机号;pageNum第一页;pageSize一页多少行"),
121 124
     })
122 125
     @RequestMapping(value = "/signUp", method = RequestMethod.POST)
@@ -132,7 +135,6 @@ public class ActivityController extends BaseController {
132 135
     @ApiImplicitParams({
133 136
 //            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "X-Auth-Token", value = "Token"),
134 137
             @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "编号id"),
135
-            @ApiImplicitParam(paramType = "header", dataTypeClass = String.class, name = "Login-Type", value = "值为 web"),
136 138
             @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "parameter", value = "true表示发送短信;false表示不发送短信"),
137 139
     })
138 140
     @RequestMapping(value = "/signUp/{id}", method = RequestMethod.DELETE)
@@ -145,6 +147,24 @@ public class ActivityController extends BaseController {
145 147
         return responseBean;
146 148
     }
147 149
 
150
+    @ApiOperation(value = "获取签到人员列表", notes = "获取签到人员列表")
151
+    @ApiImplicitParams({
152
+            @ApiImplicitParam(paramType = "path", dataTypeClass = Integer.class, name = "id", value = "活动id"),
153
+            @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "userName", value = "用户姓名"),
154
+            @ApiImplicitParam(paramType = "query", dataTypeClass = String.class, name = "userTel", value = "用户手机号"),
155
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "pageNum", value = "第几页"),
156
+            @ApiImplicitParam(paramType = "query", dataTypeClass = Integer.class, name = "pageSize", value = "一页多少行"),
157
+    })
158
+    @RequestMapping(value = "/activity/signIn/{id}", method = RequestMethod.GET)
159
+    public ResponseBean getActivitySignIn(@PathVariable("id") Integer activityId,
160
+                                          @RequestParam(value = "userName", required = false) String userName,
161
+                                          @RequestParam(value = "userTel", required = false) String userTel,
162
+                                          @RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
163
+                                          @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize) {
164
+        ResponseBean responseBean = new ResponseBean();
165
+        responseBean = iTpActivitySignInService.getActivitySignIn(activityId, userName, userTel, pageNum, pageSize);
166
+        return responseBean;
167
+    }
148 168
 
149 169
 
150 170
 }

+ 16
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/dao/TpActivitySignInMapper.java 查看文件

@@ -0,0 +1,16 @@
1
+package com.community.huiju.dao;
2
+
3
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
4
+import com.community.huiju.model.TpActivitySignIn;
5
+
6
+/**
7
+ * <p>
8
+ * 活动签到表 Mapper 接口
9
+ * </p>
10
+ *
11
+ * @author jobob
12
+ * @since 2019-04-09
13
+ */
14
+public interface TpActivitySignInMapper extends BaseMapper<TpActivitySignIn> {
15
+
16
+}

+ 65
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpActivitySignIn.java 查看文件

@@ -0,0 +1,65 @@
1
+package com.community.huiju.model;
2
+
3
+import com.baomidou.mybatisplus.annotation.TableName;
4
+import lombok.Data;
5
+import lombok.EqualsAndHashCode;
6
+import lombok.experimental.Accessors;
7
+
8
+import java.io.Serializable;
9
+import java.time.LocalDateTime;
10
+
11
+/**
12
+ * <p>
13
+ * 活动签到表
14
+ * </p>
15
+ *
16
+ * @author jobob
17
+ * @since 2019-04-09
18
+ */
19
+@Data
20
+@EqualsAndHashCode(callSuper = false)
21
+@Accessors(chain = true)
22
+@TableName("tp_activity_sign_in")
23
+public class TpActivitySignIn implements Serializable {
24
+
25
+    private static final long serialVersionUID = 1L;
26
+
27
+    private Integer communityId;
28
+
29
+    /**
30
+     * 活动ID
31
+     */
32
+    private Integer activityId;
33
+
34
+    /**
35
+     * 用户姓名
36
+     */
37
+    private String userName;
38
+
39
+    /**
40
+     * 用户角色
41
+     */
42
+    private String userRole;
43
+
44
+    /**
45
+     * 楼栋信息
46
+     */
47
+    private String buildingInfo;
48
+
49
+    /**
50
+     * APP用户ID
51
+     */
52
+    private Integer taUserId;
53
+
54
+    /**
55
+     * 用户手机号
56
+     */
57
+    private String userTel;
58
+
59
+    /**
60
+     * 签到时间
61
+     */
62
+    private LocalDateTime createDate;
63
+
64
+
65
+}

+ 8
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/model/TpActivitySignUp.java 查看文件

@@ -51,5 +51,13 @@ public class TpActivitySignUp implements Serializable {
51 51
      */
52 52
     private String remark;
53 53
 
54
+    /**
55
+     * 住户地址
56
+     */
57
+    private String address;
54 58
 
59
+    /**
60
+     * 角色名称
61
+     */
62
+    private String userRole;
55 63
 }

+ 26
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/ITpActivitySignInService.java 查看文件

@@ -0,0 +1,26 @@
1
+package com.community.huiju.service;
2
+
3
+import com.baomidou.mybatisplus.extension.service.IService;
4
+import com.community.commom.mode.ResponseBean;
5
+import com.community.huiju.model.TpActivitySignIn;
6
+
7
+/**
8
+ * <p>
9
+ * 活动签到表 服务类
10
+ * </p>
11
+ *
12
+ * @author jobob
13
+ * @since 2019-04-09
14
+ */
15
+public interface ITpActivitySignInService extends IService<TpActivitySignIn> {
16
+
17
+    /**
18
+     * 根据活动id 查询 所有签到人员
19
+     * @param activityId
20
+     * @param userName
21
+     * @param userTel
22
+     * @return
23
+     */
24
+    ResponseBean getActivitySignIn(Integer activityId, String userName, String userTel, Integer pageNum, Integer pageSize);
25
+
26
+}

+ 2
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivityServiceImpl.java 查看文件

@@ -102,6 +102,8 @@ public class TpActivityServiceImpl extends ServiceImpl<TpActivityMapper, TpActiv
102 102
                 User updateUser = iUserService.getById(activity.getUpdateUser());
103 103
                 activityVO.setUpdateUserName(updateUser.getUserName());
104 104
             }
105
+            // TODO 临时数据
106
+            activityVO.setSignInCount(1);
105 107
             return activityVO;
106 108
         }).collect(Collectors.toList());
107 109
 

+ 2
- 5
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpActivitySignUpServiceImpl.java 查看文件

@@ -80,14 +80,11 @@ public class TpActivitySignUpServiceImpl extends ServiceImpl<TpActivitySignUpMap
80 80
             BeanTools.copyProperties(e, activitySignUpVO);
81 81
 
82 82
             TaUser taUser = taUserMapper.selectByPrimaryKey(e.getTaUserId());
83
-            TaSysRole taSysRole = taSysRoleMapper.findRoleByUserId(e.getTaUserId());
84
-            TpBuildingOwnerInfo tpBuildingOwnerInfo = tpBuildingOwnerInfoMapper.selectById(taUser.getBuildingOwnerInfoId());
85 83
 
86 84
             activitySignUpVO.setUserName(taUser.getUserName());
87 85
             activitySignUpVO.setPhone(taUser.getLoginName());
88
-            activitySignUpVO.setRoleName(taSysRole.getRoleName());
89
-            activitySignUpVO.setAddress(tpBuildingOwnerInfo.getPhaseName() + tpBuildingOwnerInfo.getBuildingName()
90
-                    + tpBuildingOwnerInfo.getUnitName() + tpBuildingOwnerInfo.getLevelName() + tpBuildingOwnerInfo.getName());
86
+            activitySignUpVO.setRoleName(e.getUserRole());
87
+            activitySignUpVO.setAddress(e.getAddress());
91 88
 
92 89
             return activitySignUpVO;
93 90
         }).collect(Collectors.toList());

+ 40
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/service/impl/TpTpActivitySignInServiceImpl.java 查看文件

@@ -0,0 +1,40 @@
1
+package com.community.huiju.service.impl;
2
+
3
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
4
+import com.baomidou.mybatisplus.core.metadata.IPage;
5
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
6
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
7
+import com.community.commom.mode.ResponseBean;
8
+import com.community.huiju.dao.TpActivitySignInMapper;
9
+import com.community.huiju.model.TpActivitySignIn;
10
+import com.community.huiju.service.ITpActivitySignInService;
11
+import org.apache.commons.lang3.StringUtils;
12
+import org.springframework.stereotype.Service;
13
+
14
+/**
15
+ * <p>
16
+ * 活动签到表 服务实现类
17
+ * </p>
18
+ *
19
+ * @author jobob
20
+ * @since 2019-04-09
21
+ */
22
+@Service
23
+public class TpTpActivitySignInServiceImpl extends ServiceImpl<TpActivitySignInMapper, TpActivitySignIn> implements ITpActivitySignInService {
24
+
25
+    @Override
26
+    public ResponseBean getActivitySignIn(Integer activityId, String userName, String userTel, Integer pageNum, Integer pageSize) {
27
+        ResponseBean responseBean = new ResponseBean();
28
+
29
+        Page<TpActivitySignIn> page = new Page<>();
30
+        QueryWrapper<TpActivitySignIn> queryWrapper = new QueryWrapper<>();
31
+        queryWrapper.eq("activity_id", activityId);
32
+        queryWrapper.like(StringUtils.isNotBlank(userName), "user_name", userName);
33
+        queryWrapper.like(StringUtils.isNotBlank(userTel), "user_tel", userTel);
34
+
35
+        IPage<TpActivitySignIn> signInIPage = this.page(page, queryWrapper);
36
+
37
+        responseBean.addSuccess(signInIPage);
38
+        return responseBean;
39
+    }
40
+}

+ 5
- 0
CODE/smart-community/property-api/src/main/java/com/community/huiju/vo/ActivityVO.java 查看文件

@@ -16,5 +16,10 @@ public class ActivityVO extends TpActivity {
16 16
      */
17 17
     private String updateUserName;
18 18
 
19
+    /**
20
+     * 签到人数
21
+     */
22
+    private Integer signInCount;
23
+
19 24
 
20 25
 }

+ 5
- 0
CODE/smart-community/property-api/src/main/resources/mapper/TpActivitySignInMapper.xml 查看文件

@@ -0,0 +1,5 @@
1
+<?xml version="1.0" encoding="UTF-8"?>
2
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
3
+<mapper namespace="com.community.huiju.dao.TpActivitySignInMapper">
4
+
5
+</mapper>

+ 10
- 3
CODE/smart-community/property-api/src/main/resources/mapper/TpActivitySignUpMapper.xml 查看文件

@@ -7,9 +7,16 @@
7 7
         tas.*
8 8
         FROM tp_activity_sign_up tas
9 9
         LEFT JOIN ta_user tau on tas.ta_user_id = tau.id
10
-        where tau.user_name like concat('%',#{userName,jdbcType=VARCHAR},'%')
11
-        and tau.login_name LIKE concat('%',#{phone,jdbcType=VARCHAR},'%')
12
-        and tas.activity_id = #{activityId, jdbcType=INTEGER}
10
+        <where>
11
+            tas.activity_id = #{activityId, jdbcType=INTEGER}
12
+            <if test="userName != null and userName != ''">
13
+                and tau.user_name like concat('%',#{userName,jdbcType=VARCHAR},'%')
14
+            </if>
15
+            <if test="phone != null and phone != ''">
16
+                and tau.login_name LIKE concat('%',#{phone,jdbcType=VARCHAR},'%')
17
+            </if>
18
+        </where>
19
+
13 20
     </select>
14 21
 
15 22
 </mapper>

+ 15
- 0
VUECODE/smart-property-manage/src/api/activity.js 查看文件

@@ -96,3 +96,18 @@ export function deleteSignUp(data) {
96 96
     }
97 97
   })
98 98
 }
99
+
100
+// 根据活动id 获取所有签到人员列表
101
+export function getActivitySignIn(data) {
102
+  return request({
103
+    url: '/activity/signIn/' + data.activityId,
104
+    method: 'get',
105
+    params: {
106
+      userName: data.userName,
107
+      userTel: data.userTel,
108
+      pageNum: data.pageNum,
109
+      pageSize: data.pageSize
110
+    }
111
+  })
112
+}
113
+

+ 10
- 2
VUECODE/smart-property-manage/src/store/modules/activity.js 查看文件

@@ -1,4 +1,4 @@
1
-import { activityList, addActivity, updateActivity, activityById, invalidActivity, getSignUp, deleteSignUp } from '@/api/activity'
1
+import { activityList, addActivity, updateActivity, activityById, invalidActivity, getSignUp, deleteSignUp, getActivitySignIn } from '@/api/activity'
2 2
 
3 3
 const activityInfo = {
4 4
   state: {
@@ -68,8 +68,16 @@ const activityInfo = {
68 68
           reject(error)
69 69
         })
70 70
       })
71
+    },
72
+    GetActivitySignIn({ commit }, data) { // 获取签到列表
73
+      return new Promise((resolve, reject) => {
74
+        getActivitySignIn(data).then(response => {
75
+          resolve(response)
76
+        }).catch(error => {
77
+          reject(error)
78
+        })
79
+      })
71 80
     }
72
-
73 81
   }
74 82
 }
75 83
 

+ 2
- 2
VUECODE/smart-property-manage/src/views/social/activity/index.vue 查看文件

@@ -242,7 +242,7 @@ export default {
242 242
           this.$message.error('已作废活动无法修改')
243 243
           return
244 244
         }
245
-        this.$router.push({ name: 'activity-edi', params: { id: ids[0] }})
245
+        this.$router.push({ name: 'activity-edi', query: { id: ids[0] }})
246 246
       }).catch(() => {
247 247
         console.log('error InvalidActivity')
248 248
       })
@@ -271,7 +271,7 @@ export default {
271 271
       })
272 272
     },
273 273
     selectSignUpActivity(id) {
274
-      this.$router.push({ name: 'signUp-info', params: { id: id }})
274
+      this.$router.push({ name: 'signUp-info', query: { id: id }})
275 275
     },
276 276
     activitySignInIndex(id) {
277 277
       this.$router.push({ name: 'activity-signIn-index', query: { id: id }})

+ 129
- 3
VUECODE/smart-property-manage/src/views/social/activity/signIn/index.vue 查看文件

@@ -1,15 +1,141 @@
1 1
 <template>
2 2
   <div id="root">
3
-    签到管理
3
+    <el-form :inline="true" :model="formInline" class="demo-form-inline">
4
+      <el-form-item label="签到人姓名">
5
+        <el-input v-model="formInline.userName" placeholder="签到人姓名"/>
6
+      </el-form-item>
7
+      <el-form-item label="签到人手机号">
8
+        <el-input v-model="formInline.userTel" placeholder="签到人手机号"/>
9
+      </el-form-item>
10
+      <el-form-item>
11
+        <el-button type="info" @click="clear">清空</el-button>
12
+        <el-button type="primary" @click="queryList">查询</el-button>
13
+      </el-form-item>
14
+    </el-form>
15
+    <!-- 表格 -->
16
+    <el-table
17
+      :data="tableData"
18
+      border
19
+      style="width: 100%">
20
+      <el-table-column
21
+        align="center"
22
+        prop="userName"
23
+        label="姓名"/>
24
+      <el-table-column
25
+        align="center"
26
+        prop="userRole"
27
+        label="角色"/>
28
+      <el-table-column
29
+        align="center"
30
+        prop="buildingInfo"
31
+        label="房号"/>
32
+      <el-table-column
33
+        align="center"
34
+        prop="createDate"
35
+        label="签到时间">
36
+        <template slot-scope="scope">{{ formatDate(scope.row.createDate) }}</template>
37
+      </el-table-column>
38
+      <el-table-column
39
+        align="center"
40
+        prop="userTel"
41
+        label="联系电话"/>
42
+    </el-table>
43
+    <!-- 分页 -->
44
+    <div class="footer-page">
45
+      <el-pagination
46
+        :current-page="formInline.pageNum"
47
+        :page-sizes="[100, 200, 300, 400]"
48
+        :page-size="formInline.pageSize"
49
+        :total="total"
50
+        layout="total, sizes, prev, pager, next, jumper"
51
+        @size-change="handleSizeChange"
52
+        @current-change="handleCurrentChange"/>
53
+    </div>
4 54
   </div>
5 55
 </template>
6 56
 
7 57
 <script>
8 58
 export default {
9
-  name: 'SignIn'
59
+  name: 'SignIn',
60
+  data() {
61
+    return {
62
+      formInline: {
63
+        activityId: '',
64
+        pageNum: 1,
65
+        pageSize: 10,
66
+        userName: '',
67
+        userTel: ''
68
+      },
69
+      tableData: [], // 数据集合
70
+      total: 0 // 总数
71
+    }
72
+  },
73
+  mounted() {
74
+    this.formInline.activityId = this.$route.query.id
75
+    this.getData()
76
+  },
77
+  methods: {
78
+    handleSizeChange(val) {
79
+      console.log(`每页 ${val} 条`)
80
+      this.formInline.pageSize = val
81
+      this.getData()
82
+    },
83
+    handleCurrentChange(val) {
84
+      console.log(`当前页: ${val}`)
85
+      this.formInline.pageNum = val
86
+      this.getData()
87
+    },
88
+    getData() { // 回去数据
89
+      this.$store.dispatch('GetActivitySignIn', this.formInline).then((res) => {
90
+        const resCode = res.code
91
+        if (resCode === '0') {
92
+          const resData = res.data
93
+          this.tableData = resData.records
94
+          this.formInline.pageNum = resData.current
95
+          this.formInline.pageSize = resData.size
96
+          this.total = resData.total
97
+        }
98
+      }).catch(() => {
99
+        console.log('GetActivitySignIn error')
100
+      })
101
+    },
102
+    clear() {
103
+      this.formInline.userTel = ''
104
+      this.formInline.userName = ''
105
+      this.formInline.pageNum = 1
106
+      this.formInline.pageSize = 10
107
+      this.getData()
108
+    },
109
+    queryList() {
110
+      this.formInline.pageNum = 1
111
+      this.formInline.pageSize = 10
112
+      this.getData()
113
+    },
114
+    formatDate(val) {
115
+      if (val === null) {
116
+        return ''
117
+      }
118
+      var value = new Date(val)
119
+      var year = value.getFullYear()
120
+      var month = value.getMonth() + 1
121
+      var day = value.getDate()
122
+      // var hour = value.getHours()
123
+      // var minutes = value.getMinutes()
124
+      // var seconds = value.getSeconds()
125
+      // return year + '-' + month + '-' + day + ' ' + hour + ':' + minutes + ':' + seconds
126
+      return year + '-' + month + '-' + day
127
+    },
128
+  }
10 129
 }
11 130
 </script>
12 131
 
13 132
 <style scoped>
14
-
133
+.demo-form-inline {
134
+  margin-top: 20px;
135
+  margin-left: 20px;
136
+}
137
+.footer-page{
138
+  display: flex;
139
+  justify-content: flex-end;
140
+}
15 141
 </style>

+ 1
- 0
VUECODE/smart-property-manage/src/views/social/signUp/index.vue 查看文件

@@ -111,6 +111,7 @@ export default {
111 111
   data() {
112 112
     return {
113 113
       listQuery: {
114
+        id: '',
114 115
         userName: '',
115 116
         phone: '',
116 117
         pageNum: 1,