dingxin 5 年前
父节点
当前提交
8a73cdba45

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

179
         taRecommendCustomer.setSex(params.getInteger("sex"));
179
         taRecommendCustomer.setSex(params.getInteger("sex"));
180
         taRecommendCustomer.setDescribe(params.getString("describe"));
180
         taRecommendCustomer.setDescribe(params.getString("describe"));
181
         taRecommendCustomer.setRecommendPerson(params.getString("recommendPerson"));
181
         taRecommendCustomer.setRecommendPerson(params.getString("recommendPerson"));
182
-        taRecommendCustomer.setBuildingId(params.getString("buildingId"));
182
+        taRecommendCustomer.setBuildingId(params.getString("intention"));
183
         taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
183
         taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
184
         taRecommendCustomer.setReportRecommendStatus(CommConstant.RECOMMENDED);
184
         taRecommendCustomer.setReportRecommendStatus(CommConstant.RECOMMENDED);
185
         taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_READY);
185
         taRecommendCustomer.setVerifyStatus(CommConstant.VERIFY_READY);
276
 //        taRecommendCustomer.setDescribe(params.getString("describe"));
276
 //        taRecommendCustomer.setDescribe(params.getString("describe"));
277
         taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
277
         taRecommendCustomer.setRealtyConsultant(params.getString("realtyConsultant"));
278
         taRecommendCustomer.setBuildingId(params.getString("buildingId"));
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
         taRecommendCustomer.setReportRecommendStatus(CommConstant.VERIFY_AGREE);
281
         taRecommendCustomer.setReportRecommendStatus(CommConstant.VERIFY_AGREE);
281
         taRecommendCustomer.setCreateDate(LocalDateTime.now());
282
         taRecommendCustomer.setCreateDate(LocalDateTime.now());
282
         taRecommendCustomer.setReportDate(LocalDateTime.now());
283
         taRecommendCustomer.setReportDate(LocalDateTime.now());

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

68
 				newVisiteMonthList.add(e);
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
           org_id = #{orgId}
57
           org_id = #{orgId}
58
         AND customer_type = #{customerType}
58
         AND customer_type = #{customerType}
59
         AND (realty_consultant = #{personId} or realty_consultant = #{userId})
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' ) <= 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' ) <= date_format( #{nowDate}, '%Y-%m' )
62
          order by `month`
62
          order by `month`
63
     </select>
63
     </select>
64
 </mapper>
64
 </mapper>