Commit 268b6b06 authored by linruibiao's avatar linruibiao

接口编写

parent ddd09f71
spring:
datasource:
username: syc_dev
password: Test123!
url: jdbc:mysql://${MYSQL_HOST:116.63.67.122}:${MYSQL_PORT:3306}/${MYSQL_DB:slm_bi}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
spring:
datasource:
username: root
password: root
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DB:slm_bi}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
spring: spring:
profiles:
active:
- local
freemarker: freemarker:
cache: false cache: false
template-loader-path: classpath:/templates/ftl/ template-loader-path: classpath:/templates/ftl/
...@@ -21,9 +24,6 @@ spring: ...@@ -21,9 +24,6 @@ spring:
pool-name: HikariCP pool-name: HikariCP
max-lifetime: 1800000 max-lifetime: 1800000
connection-timeout: 30000 connection-timeout: 30000
username: root
password: root
url: jdbc:mysql://${MYSQL_HOST:localhost}:${MYSQL_PORT:3306}/${MYSQL_DB:slm_bi}?characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8&allowMultiQueries=true&allowPublicKeyRetrieval=true
messages: messages:
basename: i18n/messages,i18n/sys basename: i18n/messages,i18n/sys
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
</foreach> </foreach>
) )
</if> </if>
and access_permission='public' and access_permission='public' and record_status=1
union ALL union ALL
select * from instrument_panel_draft where panel_id in select * from instrument_panel_draft where panel_id in
<if test="panelIds!=null"> <if test="panelIds!=null">
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</foreach> </foreach>
) )
</if> </if>
and access_permission='private' and IFNULL(updater,creator)=#{userId} and access_permission='private' and record_status=1 and IFNULL(updater,creator)=#{userId}
union ALL union ALL
select * from instrument_panel_draft where panel_id in select * from instrument_panel_draft where panel_id in
<if test="panelIds!=null"> <if test="panelIds!=null">
...@@ -50,6 +50,6 @@ ...@@ -50,6 +50,6 @@
</foreach> </foreach>
) )
</if> </if>
and access_permission='custom' and check_panel_permissions(#{appId},id,#{officeIds},#{userId},#{roleId})>0 and access_permission='custom' and record_status=1 and check_panel_permissions(#{appId},id,#{officeIds},#{userId},#{roleId})>0
</select> </select>
</mapper> </mapper>
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