|
@@ -1,5 +1,6 @@
|
1
|
1
|
package com.example.wholeestate.service.impl;
|
2
|
2
|
|
|
3
|
+import com.alibaba.fastjson.JSONObject;
|
3
|
4
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
4
|
5
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
5
|
6
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
@@ -14,6 +15,8 @@ import com.example.wholeestate.service.ITaCollectionService;
|
14
|
15
|
import org.springframework.beans.factory.annotation.Autowired;
|
15
|
16
|
import org.springframework.stereotype.Service;
|
16
|
17
|
|
|
18
|
+import java.time.LocalDateTime;
|
|
19
|
+
|
17
|
20
|
/**
|
18
|
21
|
* <p>
|
19
|
22
|
* 收藏表 服务实现类
|
|
@@ -67,6 +70,11 @@ public class TaCollectionServiceImpl extends ServiceImpl<TaCollectionMapper, TaC
|
67
|
70
|
return responseBean;
|
68
|
71
|
}
|
69
|
72
|
|
|
73
|
+ TaCollection collection = new TaCollection();
|
|
74
|
+ collection.setBuildingId(buildingId);
|
|
75
|
+ collection.setCustomerId(customer.getCustomerId());
|
|
76
|
+ collection.setCreateDate(LocalDateTime.now());
|
|
77
|
+ taCollectionMapper.insert(collection);
|
70
|
78
|
|
71
|
79
|
return responseBean;
|
72
|
80
|
}
|