魏超 5 år sedan
förälder
incheckning
66a82474e6

+ 10
- 10
pom.xml Visa fil

@@ -10,7 +10,7 @@
10 10
 	</parent>
11 11
 	<groupId>com.huiju</groupId>
12 12
 	<artifactId>estateagents</artifactId>
13
-	<version>v3.5.14</version>
13
+	<version>v3.5.16</version>
14 14
 	<name>estateages</name>
15 15
 	<description>置业经纪人</description>
16 16
 
@@ -132,15 +132,15 @@
132 132
 
133 133
 
134 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 144
 		<profile>
145 145
 			<id>green</id>
146 146
 			<properties>

+ 4
- 0
src/main/java/com/huiju/estateagents/sample/controller/TaH5SampleController.java Visa fil

@@ -187,8 +187,12 @@ public class TaH5SampleController extends BaseController {
187 187
         ResponseBean responseBean = new ResponseBean();
188 188
         try {
189 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 193
             IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
191 194
             taH5Sample.setTaContactList(taContactIPage.getRecords());
195
+            taH5Sample.setDemandNum(demandNum);
192 196
             responseBean.addSuccess(taH5Sample);
193 197
         } catch (Exception e) {
194 198
             e.printStackTrace();

+ 6
- 0
src/main/java/com/huiju/estateagents/sample/entity/TaH5Sample.java Visa fil

@@ -127,4 +127,10 @@ public class TaH5Sample implements Serializable {
127 127
      */
128 128
     @TableField(exist = false)
129 129
     private String updateUserName;
130
+
131
+    /**
132
+     * 样例中需求单个数
133
+     */
134
+    @TableField(exist = false)
135
+    private Integer demandNum;
130 136
 }