Bläddra i källkod

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

pull/380/head
suqin 10 månader sedan
förälder
incheckning
0e922645df
2 ändrade filer med 3 tillägg och 3 borttagningar
  1. +2
    -2
      tuoheng-service/tuoheng-admin/src/main/resources/application-local.yml
  2. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/ReportMapper.xml

+ 2
- 2
tuoheng-service/tuoheng-admin/src/main/resources/application-local.yml Visa fil

# 注册中心consul地址 # 注册中心consul地址
cloud: cloud:
consul: consul:
host: localhost # consul 所在服务地址
host: 192.168.11.13 # consul 所在服务地址
port: 8500 # consul 服务端口 port: 8500 # consul 服务端口
discovery: discovery:
# 是否启用服务发现 # 是否启用服务发现
register: false register: false
deregister: false deregister: false
## consul ip地址 ## consul ip地址
hostname: localhost
hostname: 192.168.11.13
# 注册到consul的服务名称 # 注册到consul的服务名称
service-name: ${spring.application.name} # 服务提供者名称 service-name: ${spring.application.name} # 服务提供者名称
instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} #实例ID instance-id: ${spring.application.name}:${spring.cloud.client.ip-address}:${server.port} #实例ID

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/resources/mapper/ReportMapper.xml Visa fil

<if test="request.tenantId != null and request.tenantId != ''"> and tenant_id = #{request.tenantId} </if> <if test="request.tenantId != null and request.tenantId != ''"> and tenant_id = #{request.tenantId} </if>
<if test="request.inspectionCode!= null and request.inspectionCode != ''"> and inspection_code like concat('%', #{request.inspectionCode}, '%') </if> <if test="request.inspectionCode!= null and request.inspectionCode != ''"> and inspection_code like concat('%', #{request.inspectionCode}, '%') </if>
<if test="request.airportId != null and request.airportId != 0"> and airport_id = #{request.airportId} </if> <if test="request.airportId != null and request.airportId != 0"> and airport_id = #{request.airportId} </if>
<if test="request.type != null and request.type != 0"> and type = #{request.type} </if>
<if test="request.type != null and (request.type == 0 or request.type == 1)"> and type = #{request.type} </if>
<if test="request.deptIdList != null and request.deptIdList.size() > 0"> <if test="request.deptIdList != null and request.deptIdList.size() > 0">
and dept_id in and dept_id in
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")"> <foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")">

Laddar…
Avbryt
Spara