Pārlūkot izejas kodu

Merge remote-tracking branch 'origin/dev' into dev

顾绍勇 5 gadus atpakaļ
vecāks
revīzija
13240466b4

+ 10
- 10
pom.xml Parādīt failu

@@ -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>

+ 7
- 1
src/main/java/com/huiju/estateagents/sample/controller/TaH5SampleController.java Parādīt failu

@@ -188,12 +188,18 @@ public class TaH5SampleController extends BaseController {
188 188
      * @param id 实体ID
189 189
      */
190 190
     @RequestMapping(value = "/admin/taH5Sample/{id}", method = RequestMethod.GET)
191
-    public ResponseBean taH5SampleGet(@PathVariable Integer id) {
191
+    public ResponseBean taH5SampleGet(@PathVariable Integer id, HttpServletRequest request) {
192 192
         ResponseBean responseBean = new ResponseBean();
193 193
         try {
194 194
             TaH5Sample taH5Sample = iTaH5SampleService.getById(id);
195
+            QueryWrapper<TaH5Demand> queryWrapper = new QueryWrapper<>();
196
+            queryWrapper.eq("sample_id", id);
197
+            queryWrapper.ne("demand_status", CommConstant.STATUS_DELETE);
198
+            queryWrapper.eq("org_id", getOrgId(request));
199
+            Integer demandNum = iTaH5DemandService.count(queryWrapper);
195 200
             IPage<TaContact> taContactIPage = taContactService.taContactInfoBySampleId(String.valueOf(id), 1 , 10);
196 201
             taH5Sample.setTaContactList(taContactIPage.getRecords());
202
+            taH5Sample.setDemandNum(demandNum);
197 203
             responseBean.addSuccess(taH5Sample);
198 204
         } catch (Exception e) {
199 205
             e.printStackTrace();

+ 6
- 0
src/main/java/com/huiju/estateagents/sample/entity/TaH5Sample.java Parādīt failu

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