张延森 5 years ago
parent
commit
df487db146

+ 3
- 0
src/main/java/com/huiju/estateagents/service/impl/TaRecommendCustomerServiceImpl.java View File

@@ -177,6 +177,7 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
177 177
         taRecommendCustomer.setRealtyManageType(params.getString("realtyManageType"));
178 178
         taRecommendCustomer.setDemandType(params.getString("demandType"));
179 179
         taRecommendCustomer.setPriceRange(params.getString("priceRange"));
180
+        taRecommendCustomer.setEntryType(CommConstant.ENTRY_INPUT);
180 181
 
181 182
         // 报备日期是今天
182 183
         taRecommendCustomer.setReportDate(LocalDateTime.now());
@@ -277,6 +278,8 @@ public class TaRecommendCustomerServiceImpl extends ServiceImpl<TaRecommendCusto
277 278
     public IPage<TaRecommendCustomer>getCustomersIRecommended(int pageNumber, int pageSize,String customerId,String building){
278 279
         String personId = taRecommendCustomerMapper.getCustomerPersonId(customerId);
279 280
         QueryWrapper<TaRecommendCustomer>queryWrapper = new QueryWrapper<>();
281
+        // todo
282
+        // 此处可能不是 person_id 而是 recommend_person
280 283
         queryWrapper.eq("person_id",personId);
281 284
 //        queryWrapper.eq("building_id",building);
282 285
         queryWrapper.gt("status", CommConstant.MESSAGE_UNREAD);

+ 1
- 1
src/main/resources/mapper/TaRecommendCustomerMapper.xml View File

@@ -7,7 +7,7 @@
7 7
         FROM
8 8
             ta_recommend_customer t
9 9
         WHERE
10
-            t.person_id = #{personId}
10
+            t.recommend_person = #{personId}
11 11
             AND t.status &gt; -1
12 12
     </select>
13 13
     <select id="getCustomerPersonId" resultType="java.lang.String">