魏超 5 yıl önce
ebeveyn
işleme
c708e03ca9

+ 6
- 2
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java Dosyayı Görüntüle

@@ -190,8 +190,12 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
190 190
 
191 191
         String status = params.getString("status");
192 192
         int statusInt = 0;
193
-        if (null == status) statusInt = Integer.parseInt(status);
194
-        taRecommendCustomer.setStatus(statusInt);
193
+        if (StringUtils.isEmpty(status)){
194
+            taRecommendCustomer.setStatus(statusInt);
195
+        }else{
196
+            taRecommendCustomer.setStatus(statusInt);
197
+        }
198
+
195 199
         taRecommendCustomer.setRecommendPerson(taPerson.getPersonId());
196 200
 
197 201
         // 报备有 10 天有效期