Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
c1025c45
Commit
c1025c45
authored
Aug 15, 2022
by
李成龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
气瓶数据对接日志文件配置
parent
c0523da7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
45 additions
and
14 deletions
+45
-14
CylinderPageController.java
...n/amos/api/openapi/controller/CylinderPageController.java
+2
-13
application.properties
...ot-data-openapi/src/main/resources/application.properties
+1
-1
logback-cyl.xml
...amos-boot-data-openapi/src/main/resources/logback-cyl.xml
+42
-0
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/controller/CylinderPageController.java
View file @
c1025c45
...
@@ -6,29 +6,18 @@ import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
...
@@ -6,29 +6,18 @@ import com.yeejoin.amos.api.common.restful.utils.ResponseModel;
import
com.yeejoin.amos.api.openapi.face.model.CylinderTableModel
;
import
com.yeejoin.amos.api.openapi.face.model.CylinderTableModel
;
import
com.yeejoin.amos.api.openapi.face.model.CylinderUnitTree
;
import
com.yeejoin.amos.api.openapi.face.model.CylinderUnitTree
;
import
com.yeejoin.amos.api.openapi.face.orm.entity.OpenapiBizToken
;
import
com.yeejoin.amos.api.openapi.face.orm.entity.OpenapiBizToken
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderDateInfoService
;
import
com.yeejoin.amos.api.openapi.face.service.*
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderFillingCheckService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderFillingExamineService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderFillingRecordService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderFillingService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderInfoService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderInspectionService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderTagsService
;
import
com.yeejoin.amos.api.openapi.face.service.CylinderUnitService
;
import
com.yeejoin.amos.api.openapi.face.service.OpenapiBizTokenService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.LogManager
;
import
org.apache.logging.log4j.Logger
;
import
org.apache.logging.log4j.Logger
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.foundation.enumeration.UserType
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudOperation
;
import
org.typroject.tyboot.core.restful.doc.TycloudResource
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
...
@@ -92,7 +81,7 @@ public class CylinderPageController {
...
@@ -92,7 +81,7 @@ public class CylinderPageController {
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"startTime"
,
required
=
false
)
String
startTime
,
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
)
{
@RequestParam
(
value
=
"endTime"
,
required
=
false
)
String
endTime
)
{
// 先同步或者更新今日数据
// 先同步或者更新今日数据
cylinderDateInfoService
.
updateTodayDate
();
//
cylinderDateInfoService.updateTodayDate();
// 查询数据
// 查询数据
List
<
CylinderTableModel
>
result
=
cylinderDateInfoService
.
selectTodayDate
(
serviceName
,
appId
,
startTime
,
endTime
);
List
<
CylinderTableModel
>
result
=
cylinderDateInfoService
.
selectTodayDate
(
serviceName
,
appId
,
startTime
,
endTime
);
return
ResponseHelper
.
buildResponse
(
result
);
return
ResponseHelper
.
buildResponse
(
result
);
...
...
amos-boot-data/amos-boot-data-openapi/src/main/resources/application.properties
View file @
c1025c45
...
@@ -2,7 +2,7 @@ spring.profiles.active=dev
...
@@ -2,7 +2,7 @@ spring.profiles.active=dev
server.compression.enabled
=
true
server.compression.enabled
=
true
spring.jackson.dateFormat
=
yyyy-MM-dd HH:mm:ss
spring.jackson.dateFormat
=
yyyy-MM-dd HH:mm:ss
logging.config
=
classpath:logback-
dev
.xml
logging.config
=
classpath:logback-
${spring.profiles.active}
.xml
#设置文件上传的大小限制
#设置文件上传的大小限制
spring.servlet.multipart.maxFileSize
=
3MB
spring.servlet.multipart.maxFileSize
=
3MB
spring.servlet.multipart.maxRequestSize
=
3MB
spring.servlet.multipart.maxRequestSize
=
3MB
...
...
amos-boot-data/amos-boot-data-openapi/src/main/resources/logback-cyl.xml
0 → 100644
View file @
c1025c45
<?xml version="1.0" encoding="UTF-8"?>
<configuration
debug=
"false"
>
<!--定义日志文件的存储地址 勿在 LogBack 的配置中使用相对路径-->
<property
name=
"LOG_HOME"
value=
"/opt/log/qa"
/>
<!-- 按照每天生成日志文件 -->
<appender
name=
"FILE"
class=
"ch.qos.logback.core.rolling.RollingFileAppender"
>
<rollingPolicy
class=
"ch.qos.logback.core.rolling.TimeBasedRollingPolicy"
>
<!--日志文件输出的文件名-->
<FileNamePattern>
${LOG_HOME}/openapicyl.log.%d{yyyy-MM-dd}.log
</FileNamePattern>
<!--日志文件保留天数-->
<MaxHistory>
7
</MaxHistory>
</rollingPolicy>
<encoder
class=
"ch.qos.logback.classic.encoder.PatternLayoutEncoder"
>
<!--格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符-->
<pattern>
%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n
</pattern>
</encoder>
<!--日志文件最大的大小-->
<triggeringPolicy
class=
"ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy"
>
<MaxFileSize>
20mb
</MaxFileSize>
</triggeringPolicy>
</appender>
<!--myibatis log configure-->
<logger
name=
"com.apache.ibatis"
level=
"ERROR"
/>
<logger
name=
"org.mybatis"
level=
"ERROR"
/>
<logger
name=
"java.sql.Connection"
level=
"ERROR"
/>
<logger
name=
"java.sql.Statement"
level=
"ERROR"
/>
<logger
name=
"java.sql.PreparedStatement"
level=
"ERROR"
/>
<logger
name=
"com.baomidou.mybatisplus"
level=
"ERROR"
/>
<logger
name=
"org.typroject"
level=
"ERROR"
/>
<logger
name=
"com.yeejoin"
level=
"ERROR"
/>
<logger
name=
"org.springframework"
level=
"INFO"
/>
<!-- 日志输出级别 -->
<root
level=
"ERROR"
>
<appender-ref
ref=
"FILE"
/>
</root>
</configuration>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment