dingxin před 5 roky
rodič
revize
59e4157ead

+ 1
- 1
src/main/java/com/huiju/estateagents/service/impl/HelpRecordServiceImpl.java Zobrazit soubor

110
 		if (null == helpInitiateRecord.getEnlistNum()){
110
 		if (null == helpInitiateRecord.getEnlistNum()){
111
 			helpInitiateRecord.setEnlistNum(0);
111
 			helpInitiateRecord.setEnlistNum(0);
112
 		}
112
 		}
113
+		helpInitiateRecord.setEnlistNum(helpInitiateRecord.getEnlistNum()+1);
113
 		if (helpInitiateRecord.getEnlistNum().equals(helpActivity.getPersonNum())){
114
 		if (helpInitiateRecord.getEnlistNum().equals(helpActivity.getPersonNum())){
114
 			//发送微信模板消息所有人都发送
115
 			//发送微信模板消息所有人都发送
115
 			try{
116
 			try{
122
 			helpInitiateRecord.setStatus(0);
123
 			helpInitiateRecord.setStatus(0);
123
 		}
124
 		}
124
 		
125
 		
125
-		helpInitiateRecord.setEnlistNum(helpInitiateRecord.getEnlistNum()+1);
126
 		helpInitiateRecordMapper.updateById(helpInitiateRecord);
126
 		helpInitiateRecordMapper.updateById(helpInitiateRecord);
127
 		Map<String,Object> map = new HashMap<>();
127
 		Map<String,Object> map = new HashMap<>();
128
 		map.put("helpRecord",helpRecord);
128
 		map.put("helpRecord",helpRecord);

+ 3
- 0
src/main/java/com/huiju/estateagents/service/impl/TaShareChildRecordServiceImpl.java Zobrazit soubor

180
             taShareRecord.setVerificationCode(String.valueOf(taShareRecord.getRecordId()+System.currentTimeMillis()));
180
             taShareRecord.setVerificationCode(String.valueOf(taShareRecord.getRecordId()+System.currentTimeMillis()));
181
             taShareRecord.setVerificationStatus(CommConstant.STATUS_UNACCALIMED);
181
             taShareRecord.setVerificationStatus(CommConstant.STATUS_UNACCALIMED);
182
             taShareRecord.setStatus(CommConstant.STATUS_UNACCALIMED);
182
             taShareRecord.setStatus(CommConstant.STATUS_UNACCALIMED);
183
+            taShareRecord.setEndTime(LocalDateTime.now());
183
         }
184
         }
184
         tashareRecordmapper.updateById(taShareRecord);
185
         tashareRecordmapper.updateById(taShareRecord);
185
         Map<String,Object> map = new HashMap<>();
186
         Map<String,Object> map = new HashMap<>();
223
      * @param groupActivityId
224
      * @param groupActivityId
224
      */
225
      */
225
     private void changeChildRecord(Integer recordId, Integer orgId, Integer groupActivityId) {
226
     private void changeChildRecord(Integer recordId, Integer orgId, Integer groupActivityId) {
227
+        LocalDateTime dateTime = LocalDateTime.now();
226
         QueryWrapper<TaShareChildRecord> taShareChildRecordQueryWrapper = new QueryWrapper<>();
228
         QueryWrapper<TaShareChildRecord> taShareChildRecordQueryWrapper = new QueryWrapper<>();
227
         taShareChildRecordQueryWrapper.eq("record_id",recordId);
229
         taShareChildRecordQueryWrapper.eq("record_id",recordId);
228
         taShareChildRecordQueryWrapper.eq("org_id",orgId);
230
         taShareChildRecordQueryWrapper.eq("org_id",orgId);
232
             e.setVerificationCode(String.valueOf(e.getChildRecordId()+System.currentTimeMillis()));
234
             e.setVerificationCode(String.valueOf(e.getChildRecordId()+System.currentTimeMillis()));
233
             e.setVerificationStatus(CommConstant.STATUS_UNACCALIMED);
235
             e.setVerificationStatus(CommConstant.STATUS_UNACCALIMED);
234
             e.setStatus(CommConstant.STATUS_UNACCALIMED);
236
             e.setStatus(CommConstant.STATUS_UNACCALIMED);
237
+            e.setEndTime(dateTime);
235
         });
238
         });
236
         this.updateBatchById(shareChildRecordList);
239
         this.updateBatchById(shareChildRecordList);
237
     }
240
     }