魏超 5 years ago
parent
commit
66a82474e6

+ 10
- 10
pom.xml View File

10
 	</parent>
10
 	</parent>
11
 	<groupId>com.huiju</groupId>
11
 	<groupId>com.huiju</groupId>
12
 	<artifactId>estateagents</artifactId>
12
 	<artifactId>estateagents</artifactId>
13
-	<version>v3.5.14</version>
13
+	<version>v3.5.16</version>
14
 	<name>estateages</name>
14
 	<name>estateages</name>
15
 	<description>置业经纪人</description>
15
 	<description>置业经纪人</description>
16
 
16
 
132
 
132
 
133
 
133
 
134
 	<profiles>
134
 	<profiles>
135
-		<profile>
136
-			<id>dev</id>
137
-			<activation>
138
-				<activeByDefault>true</activeByDefault>
139
-			</activation>
140
-			<properties>
141
-				<profiles.active>dev</profiles.active>
142
-			</properties>
143
-		</profile>
135
+<!--		<profile>-->
136
+<!--			<id>dev</id>-->
137
+<!--			<activation>-->
138
+<!--				<activeByDefault>true</activeByDefault>-->
139
+<!--			</activation>-->
140
+<!--			<properties>-->
141
+<!--				<profiles.active>dev</profiles.active>-->
142
+<!--			</properties>-->
143
+<!--		</profile>-->
144
 		<profile>
144
 		<profile>
145
 			<id>green</id>
145
 			<id>green</id>
146
 			<properties>
146
 			<properties>

+ 4
- 0
src/main/java/com/huiju/estateagents/sample/controller/TaH5SampleController.java View File

187
         ResponseBean responseBean = new ResponseBean();
187
         ResponseBean responseBean = new ResponseBean();
188
         try {
188
         try {
189
             TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
189
             TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
190
+            QueryWrapper<TaH5Demand> queryWrapper = new QueryWrapper<>();
191
+            queryWrapper.eq("sample_id", id);
192
+            Integer demandNum = iTaH5DemandService.count(queryWrapper);
190
             IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
193
             IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
191
             taH5Sample.setTaContactList(taContactIPage.getRecords());
194
             taH5Sample.setTaContactList(taContactIPage.getRecords());
195
+            taH5Sample.setDemandNum(demandNum);
192
             responseBean.addSuccess(taH5Sample);
196
             responseBean.addSuccess(taH5Sample);
193
         } catch (Exception e) {
197
         } catch (Exception e) {
194
             e.printStackTrace();
198
             e.printStackTrace();

+ 6
- 0
src/main/java/com/huiju/estateagents/sample/entity/TaH5Sample.java View File

127
      */
127
      */
128
     @TableField(exist = false)
128
     @TableField(exist = false)
129
     private String updateUserName;
129
     private String updateUserName;
130
+
131
+    /**
132
+     * 样例中需求单个数
133
+     */
134
+    @TableField(exist = false)
135
+    private Integer demandNum;
130
 }
136
 }