Browse Source

Merge branch 'v3.5.1' of http://git.ycjcjy.com/zhiyuxing/estateagents into v3.5.1

weiximei 5 years ago
parent
commit
efc414514c

+ 20
- 0
pom.xml View File

108
 			<artifactId>guava</artifactId>
108
 			<artifactId>guava</artifactId>
109
 			<version>26.0-jre</version>
109
 			<version>26.0-jre</version>
110
 		</dependency>
110
 		</dependency>
111
+
112
+		<!-- https://mvnrepository.com/artifact/com.alibaba/easyexcel -->
113
+		<dependency>
114
+			<groupId>com.alibaba</groupId>
115
+			<artifactId>easyexcel</artifactId>
116
+			<version>2.0.4</version>
117
+		</dependency>
118
+
119
+		<!-- swagger2 -->
120
+		<dependency>
121
+			<groupId>io.springfox</groupId>
122
+			<artifactId>springfox-swagger2</artifactId>
123
+			<version>2.7.0</version>
124
+		</dependency>
125
+
126
+		<dependency>
127
+			<groupId>io.springfox</groupId>
128
+			<artifactId>springfox-swagger-ui</artifactId>
129
+			<version>2.7.0</version>
130
+		</dependency>
111
 	</dependencies>
131
 	</dependencies>
112
 
132
 
113
 	<profiles>
133
 	<profiles>

+ 5
- 2
src/main/java/com/huiju/estateagents/controller/TaBuildingDynamicController.java View File

310
                Integer tempIsCheckin = enlist.getIsCheckin();
310
                Integer tempIsCheckin = enlist.getIsCheckin();
311
                enlist.setIsCheckin(CommConstant.STATUS_NORMAL);
311
                enlist.setIsCheckin(CommConstant.STATUS_NORMAL);
312
                if(taActivityDynamicEnlistMapper.updateById(enlist)>0){
312
                if(taActivityDynamicEnlistMapper.updateById(enlist)>0){
313
-                   if (tempIsCheckin.intValue() == CommConstant.STATUS_UNACCALIMED.intValue()){
313
+                   System.out.println("验证1");
314
+                   if (tempIsCheckin.equals(CommConstant.STATUS_UNACCALIMED)){
315
+                       System.out.println("验证2");
314
                        enlist.setEnlistId(Integer.valueOf(enlistId));
316
                        enlist.setEnlistId(Integer.valueOf(enlistId));
315
                        applicationContext.publishEvent(new EventBus(enlist,ActivityCheckin,getOrgId(request)));
317
                        applicationContext.publishEvent(new EventBus(enlist,ActivityCheckin,getOrgId(request)));
316
                        QueryWrapper<TaRecommendCustomer> customerQueryWrapper = new QueryWrapper<>();
318
                        QueryWrapper<TaRecommendCustomer> customerQueryWrapper = new QueryWrapper<>();
317
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
319
                        customerQueryWrapper.eq("person_id",enlist.getPersonId());
318
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
320
                        customerQueryWrapper.eq("building_id",enlist.getBuildingId());
319
                        TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
321
                        TaRecommendCustomer recommendCustomer = recommendCustomerService.getOne(customerQueryWrapper);
320
-                       if (recommendCustomer.getStatus() < CommConstant.CUSTOMER_VISITE){
322
+                       if (recommendCustomer.getStatus().equals(CommConstant.CUSTOMER_REPORT)){
323
+                           System.out.println("验证3");
321
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
324
                            recommendCustomer.setStatus(CommConstant.CUSTOMER_VISITE);
322
                            recommendCustomer.setArrivalDate(LocalDateTime.now());
325
                            recommendCustomer.setArrivalDate(LocalDateTime.now());
323
                            recommendCustomerService.updateById(recommendCustomer);
326
                            recommendCustomerService.updateById(recommendCustomer);