张延森 5 years ago
parent
commit
df487db146

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

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

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

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