Commit 2a125726 by xieshixiang

添加注释

parent 3b53e691
......@@ -51,35 +51,4 @@
</dependency>
</dependencies>
<profiles>
<profile>
<!-- 本地开发环境 -->
<id>dev</id>
<properties>
<profiles.active>dev</profiles.active>
</properties>
<activation>
<!-- 设置默认激活这个配置 -->
<activeByDefault>true</activeByDefault>
</activation>
</profile>
<profile>
<!-- 生产环境 -->
<id>pro</id>
<properties>
<profiles.active>pro</profiles.active>
</properties>
</profile>
<profile>
<!-- 测试环境 -->
<id>test</id>
<properties>
<profiles.active>test</profiles.active>
</properties>
</profile>
</profiles>
</project>
......@@ -70,7 +70,7 @@ public class BindServiceImpl extends ServiceImpl<BindInfoMapper, BindInfo> imple
//判断规则1:用户已绑定的车辆不超过3辆,包括已解绑但未过一个月的车辆
QueryWrapper boundQuery = new QueryWrapper();
boundQuery.eq("user_id", info.getUserId());
boundQuery.eq("user_id", info.getPhone());
Integer bound = mapper.selectCount(boundQuery);
if (bound >= 3) {
return ResponseGenerator.fail(StatusCode.BUSINESS_ERROR);
......
......@@ -12,7 +12,8 @@ import javax.validation.Valid;
/**
*
*/
@FeignClient(value = "dcp-service-vem", path = "DrivingLicense", contextId = "dcp-service-vem-drivingLicense")
@FeignClient(url = "http://10.197.236.100:40204", name = "dcp-service-vehicle", path = "dcp/drivingLicense", contextId =
"dcp-service-vehicle-drivingLicense")
public interface DrivingLicenseFeign {
......
......@@ -6,13 +6,15 @@ import com.hikcreate.edl.pub.web.mobile.infra.data.feign.dcp_service_vehicle.par
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import java.util.List;
/**
* @author: xieshixiang
* @time:2020/6/19 14:26
**/
@FeignClient(value = "dcp-service-vem", path = "vehicle",contextId = "dcp-service-vem-vehicle")
@FeignClient(url = "http://10.197.236.100:40204",name = "dcp-service-vehicle", path = "dcp/vehicle", contextId = "dcp" +
"-service-vehicle-vehicle")
public interface VechicleFeign {
/**
......
......@@ -15,7 +15,8 @@ import java.util.List;
* @author: xieshixiang
* @time:2020/6/19 15:26
**/
@FeignClient(value = "dcp-service-vem", path = "violation",contextId = "dcp-service-vem-violation")
@FeignClient(url = "http://10.197.236.100:40204",name = "dcp-service-vehicle", path = "violation",contextId ="dcp" +
"-service-vehicle-violation")
public interface ViolationFeign {
/**
......
......@@ -11,7 +11,7 @@ import org.springframework.web.bind.annotation.RequestBody;
/**
* 短信feign
*/
@FeignClient( value = "edl-pub-service-sms", path = "sms" )
@FeignClient( url = "http://10.197.236.100:40204",name = "dcp-service-vehicle",path = "sms" )
public interface SmsFeign {
@PostMapping( {"send"} )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment