dingxin 5 年前
父节点
当前提交
316bdf2e4f

+ 1
- 1
src/main/java/com/huiju/estateagents/controller/HelpInitiateRecordController.java 查看文件

@@ -202,7 +202,7 @@ public class HelpInitiateRecordController extends BaseController {
202 202
         }
203 203
         TaPerson person = taPersons.get(0);
204 204
         try {
205
-            helpInitiateRecord.setPersionId(person.getPersonId());
205
+            helpInitiateRecord.setPersonId(person.getPersonId());
206 206
             helpInitiateRecord.setCreateDate(LocalDateTime.now());
207 207
             helpInitiateRecord.setOrgId(orgId);
208 208
             if (taHelpInitiateRecordService.save(helpInitiateRecord)){

+ 1
- 1
src/main/java/com/huiju/estateagents/entity/HelpActivity.java 查看文件

@@ -72,7 +72,7 @@ public class HelpActivity implements Serializable {
72 72
     /**
73 73
      * 助力人数
74 74
      */
75
-    private Integer persionNum;
75
+    private Integer personNum;
76 76
 
77 77
     /**
78 78
      * 助力次数 0不限制,大于零表示限制次数

+ 1
- 1
src/main/java/com/huiju/estateagents/entity/HelpInitiateRecord.java 查看文件

@@ -56,7 +56,7 @@ public class HelpInitiateRecord implements Serializable {
56 56
     /**
57 57
      * 人员Id 人员自己
58 58
      */
59
-    private String persionId;
59
+    private String personId;
60 60
 
61 61
     /**
62 62
      * 人员姓名

+ 1
- 1
src/main/java/com/huiju/estateagents/service/impl/HelpActivityServiceImpl.java 查看文件

@@ -73,7 +73,7 @@ public class HelpActivityServiceImpl extends ServiceImpl<HelpActivityMapper, Hel
73 73
         //查询当前助力成功所需的人数限制(persion_num)
74 74
         HelpActivity helpActivity = taHelpActivityMapper.selectById(helpActivityId);
75 75
         // 得到活动限制助力的总数
76
-        int persionNumCount = helpActivity.getPersionNum();
76
+        int persionNumCount = helpActivity.getPersonNum();
77 77
         IPage<HelpInitiateRecord> pg = new Page<>(pageNum, pageSize);
78 78
         IPage<HelpInitiateRecord> list = helpInitiateRecordMapper.selectPageList(pg,helpActivityId,status);
79 79
 

+ 2
- 2
src/main/java/com/huiju/estateagents/service/impl/HelpRecordServiceImpl.java 查看文件

@@ -56,7 +56,7 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
56 56
 		
57 57
 		HelpActivity helpActivity = helpActivityMapper.selectById(helpRecord.getHelpActivityId());
58 58
 		//是否助力成功
59
-		if (helpActivity.getEnlistNum() >= helpActivity.getPersionNum()){
59
+		if (helpActivity.getEnlistNum() >= helpActivity.getPersonNum()){
60 60
 			return ResponseBean.error("已经助力成功", ResponseBean.ERROR_UNAVAILABLE);
61 61
 		}
62 62
 		if (helpActivity.getEndDate().isBefore(LocalDateTime.now())){
@@ -90,7 +90,7 @@ public class HelpRecordServiceImpl extends ServiceImpl<HelpRecordMapper, HelpRec
90 90
 		helpRecord.setCreateDate(LocalDateTime.now());
91 91
 		helpRecord.setPersionId(person.getPersonId());
92 92
 		helpRecordMapper.insert(helpRecord);
93
-		if (helpActivity.getEnlistNum().equals(helpActivity.getPersionNum())){
93
+		if (helpActivity.getEnlistNum().equals(helpActivity.getPersonNum())){
94 94
 			//发送微信模板消息所有人都发送--todo
95 95
 			
96 96
 			//生成核销码