dingxin преди 5 години
родител
ревизия
8a73cdba45

+ 3
- 2
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java Целия файл

@@ -179,7 +179,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
179 179
         taRecommendCustomer.setSex(params.getInteger("sex"));
180 180
         taRecommendCustomer.setDescribe(params.getString("describe"));
181 181
         taRecommendCustomer.setRecommendPerson(params.getString("recommendPerson"));
182
-        taRecommendCustomer.setBuildingId(params.getString("buildingId"));
182
+        taRecommendCustomer.setBuildingId(params.getString("intention"));
183 183
         taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
184 184
         taRecommendCustomer.setReportRecommendStatus(CommConstant.RECOMMENDED);
185 185
         taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_READY);
@@ -276,7 +276,8 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
276 276
 //        taRecommendCustomer.setDescribe(params.getString("describe"));
277 277
         taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
278 278
         taRecommendCustomer.setBuildingId(params.getString("buildingId"));
279
-        taRecommendCustomer.setIntention(params.getString("intention"));
279
+        TaBuilding building = taBuildingMapper.selectById(params.getString("buildingId"));
280
+        taRecommendCustomer.setIntention(building.getBuildingName());
280 281
         taRecommendCustomer.setReportRecommendStatus(CommConstant.VERIFY_AGREE);
281 282
         taRecommendCustomer.setCreateDate(LocalDateTime.now());
282 283
         taRecommendCustomer.setReportDate(LocalDateTime.now());

+ 1
- 1
src/main/java/com/huiju/estateagents/statistic/service/impl/TsCustomerStatisticMonthlyServiceImpl.java Целия файл

@@ -68,7 +68,7 @@ public class TsCustomerStatisticMonthlyServiceImpl extends ServiceImpl<TsCustome
68 68
 				newVisiteMonthList.add(e);
69 69
 			}
70 70
 		});
71
-		statisticMonthlySaveBatch(newVisiteMonthList,nowDate, CommConstant.CUSTOMER_TYPE_FOLLOW);
71
+		statisticMonthlySaveBatch(newVisiteMonthList,nowDate, CommConstant.CUSTOMER_TYPE_VISITE);
72 72
 	}
73 73
 	
74 74
 	/**

+ 2
- 2
src/main/resources/mapper/statistic/TsCustomerStatisticMonthlyMapper.xml Целия файл

@@ -57,8 +57,8 @@
57 57
           org_id = #{orgId}
58 58
         AND customer_type = #{customerType}
59 59
         AND (realty_consultant = #{personId} or realty_consultant = #{userId})
60
-        AND date_format( create_date, '%Y-%m-%d' ) >= date_format( #{beforeDate}, '%Y-%m-%d' )
61
-        AND date_format( create_date, '%Y-%m-%d' ) &lt;= date_format( #{nowDate}, '%Y-%m-%d' )
60
+        AND date_format( create_date, '%Y-%m' ) >= date_format( #{beforeDate}, '%Y-%m' )
61
+        AND date_format( create_date, '%Y-%m' ) &lt;= date_format( #{nowDate}, '%Y-%m' )
62 62
          order by `month`
63 63
     </select>
64 64
 </mapper>