## Sprint 9 Implementation (100% Complete) ### New Features 1. **Behavioral Recommendation Engine** - Priority scoring algorithm: (Severity × 0.5) + (Feasibility × 0.3) + (User Attention × 0.2) - 4 recommendation strategies: Exercise, Sleep, Diet, Attention - Top 5 prioritized recommendations per user - Automatic behavioral profile generation (scheduled daily 03:30) 2. **Trend Analysis System** - 30-day trend analysis with linear regression - Trend classification: IMPROVING/STABLE/DECLINING - Time series data extraction for visualization - Milestone identification (best/worst dates) ### New APIs (6 endpoints) - POST /api/health/behavioral-recommendations/generate - GET /api/health/behavioral-recommendations/query - POST /api/health/behavioral-recommendations/batch-generate - GET /api/health/behavioral-trends/query ### Deliverables - 20 new files: 4 DTOs, 5 strategies, 3 services, 3 controllers, 5 test files - 3,800+ lines of production code - 62+ unit test cases, 10 integration test cases - Architecture documentation (450 lines) - Sprint 9 completion summary (700+ lines) ## Compilation Fixes (Pre-existing Code) ### Fixed Errors 1. **Java 11+ Compatibility** - Replaced deprecated @Resource with @Autowired (8 files) - Fixed javax.annotation.Resource → org.springframework.beans.factory.annotation.Autowired 2. **Import Path Corrections** - Fixed SysUserMapper path: com.ljwx.modules.system.mapper → com.ljwx.modules.system.repository.mapper - Fixed SysUser entity path: com.ljwx.modules.system.entity → com.ljwx.modules.system.domain.entity 3. **Result API Alignment** - Fixed Result.ok() method calls in RiskProfileController - Updated import: com.ljwx.common.api.Result → com.ljwx.common.api.vo.Result - Aligned Sprint 9 controllers with correct Result API 4. **User Entity Field Mapping** - Calculated age from birthday instead of using non-existent getAge() - Used position field instead of non-existent getPositionType() 5. **Dependency Injection** - Added BehavioralProfileService as @Autowired field in HealthBaselineScoreTasks - Removed manual bean lookup via non-existent ApplicationContextProvider ### Modified Files (Compilation Fixes) - RiskProfileService.java - RiskProfileController.java - RiskProfileServiceTest.java - CardiovascularRiskAssessor.java - RespiratoryRiskAssessor.java - SleepRiskAssessor.java - ExerciseRiskAssessor.java - RiskTrendAnalysisService.java - HealthBaselineScoreTasks.java - BehavioralProfileController.java - BehavioralRecommendationController.java - BehavioralTrendController.java ## Test Results - ✅ Compilation: SUCCESS (Java 21) - ✅ Application: Started successfully on port 9998 - ✅ OpenAPI: Exported (458 endpoints, 550 schemas) ## Reference - Sprint 9 Summary: docs/02-architecture/sprint9-completion-summary.md - Architecture Doc: docs/02-architecture/phase2-behavioral-recommendation-architecture.md Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
363 lines
7.6 KiB
CSS
363 lines
7.6 KiB
CSS
/*大屏*/
|
|
*{
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
body{
|
|
background: url("../images/bj.png") no-repeat center;
|
|
background-size:100% 100%;
|
|
background-attachment:fixed;
|
|
-webkit-background-size: cover;
|
|
|
|
}
|
|
|
|
/*a,p,h1,h2,h3,h4,h5,h6,body,span,label,div{padding:0;margin:0;font-family:'瀵邦喛钂嬮梿鍛寸拨';}
|
|
div{font-family:'瀵邦喛钂嬮梿鍛寸拨';}
|
|
ul{padding:0;margin:0;}
|
|
a{text-decoration:none !important;}*/
|
|
@font-face{
|
|
font-family: yjsz;
|
|
src:url('../fonts/yjsz.ttf');
|
|
/* url('../fonts/yjsz.eot'); *//* IE9+,可以是具体的实际链接 */
|
|
}
|
|
|
|
.fl{
|
|
float: left;
|
|
}
|
|
.fr{
|
|
float: right;
|
|
}
|
|
|
|
/*头部*/
|
|
#header{
|
|
width: 100%;
|
|
height: 105px;
|
|
position: relative;
|
|
/*border-bottom: 1px solid #00fbfe;*/
|
|
background: url("../images/head_bg.png") no-repeat center center;
|
|
background-size: 100%;
|
|
box-shadow: 0 0 25px #037581;
|
|
min-width: 1366px;
|
|
}
|
|
#header .header{
|
|
width: 400px;
|
|
height: 105px;
|
|
/*background: red;*/
|
|
margin: 0 auto;
|
|
text-align: center;
|
|
line-height: 80px;
|
|
font-size: 24px;
|
|
|
|
}
|
|
#header .header h1{
|
|
color: #ffffff;
|
|
text-shadow: 0 0 25px #00d8ff;
|
|
font-size: 46px;
|
|
font-family:"Adobe 楷体 Std R";
|
|
|
|
}
|
|
.title-container {
|
|
text-align: center;
|
|
margin-top: 20px;
|
|
}
|
|
|
|
.title-container h1 {
|
|
color: #00FF00;
|
|
text-shadow: 2px 2px 4px #000;
|
|
font-size: 36px;
|
|
}
|
|
/*#data_content {
|
|
width: 100%;
|
|
height: calc(100% - 105px);
|
|
padding-top: 20px;
|
|
background: red;
|
|
}*/
|
|
.data_content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: stretch; /* Ensure children stretch to the same height */
|
|
height: 100vh;
|
|
background-color: transparent; /* 背景设置为透明 */
|
|
}
|
|
|
|
.data_left, .data_right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background-color: transparent; /* 设置背景色为半透明 */
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.data_left {
|
|
width: 24%;
|
|
}
|
|
|
|
.data_right {
|
|
width: 30%;
|
|
}
|
|
|
|
|
|
#data_content .data_info{
|
|
width: calc(100% - 80px);
|
|
height: 10px;
|
|
/*background: red;*/
|
|
margin-left: 20px;
|
|
margin-bottom: 30px;
|
|
margin-top: 20px;
|
|
min-width: 1366px;
|
|
|
|
}
|
|
|
|
.data_info img {
|
|
margin-left: 40px;
|
|
}
|
|
|
|
/*左边*/
|
|
.data_content .data_left{
|
|
width: 24%;
|
|
height: 100%;
|
|
|
|
/*background: green;*/
|
|
}
|
|
.data_content .data_left .left_top{
|
|
width: 100% ;
|
|
height: 100% ;
|
|
/*background: green;*/
|
|
|
|
}
|
|
|
|
/*四个角的*/
|
|
.public:before,
|
|
.public:after{ position:absolute; width: 20px; height: 20px; content: ""; border-top: 2px solid #02a6b5; top: 0;}
|
|
.public:before,.boxfoot:before{border-left: 2px solid #02a6b5;left: 0;}
|
|
.public:after,.boxfoot:after{border-right: 2px solid #02a6b5; right: 0;}
|
|
|
|
|
|
.boxfoot{ position:absolute; bottom: 0; width: 100%; left: 0;}
|
|
.boxfoot:before,
|
|
.boxfoot:after{ position:absolute; width: 20px; height: 20px; content: "";border-bottom: 2px solid #02a6b5; bottom: 0;}
|
|
/*四个角的*/
|
|
|
|
|
|
|
|
|
|
|
|
/*左边第一部分*/
|
|
.data_content .data_left .left_top .info{
|
|
width: 100%;
|
|
height: 100%;
|
|
background: rgba(1,33,44,0.3);
|
|
border: 1px solid #0c1629 ;
|
|
position: relative;
|
|
margin-bottom: 35px;
|
|
/*box-shadow: -10px 0px 15px #034c6a inset, !*左边阴影*!
|
|
0px -10px 15px #034c6a inset, !*上边阴影*!
|
|
10px 0px 15px #034c6a inset, !*å³è¾¹é˜´å½±*!
|
|
0px 10px 15px #034c6a inset;*/
|
|
}
|
|
|
|
.min-title{
|
|
width: 200px;
|
|
height: 40px;
|
|
background: #0c1629;
|
|
/*margin: 0 auto;*/
|
|
top: -20px;
|
|
position: absolute;
|
|
left: 50%;
|
|
border-radius: 20px;
|
|
text-align: center;
|
|
margin-left: -90px;
|
|
|
|
}
|
|
.min-title span{
|
|
display: inline-block;
|
|
line-height: 40px;
|
|
color: white;
|
|
}
|
|
|
|
/*左边第二部分*/
|
|
.data_content .data_left .left_top .top_bottom{
|
|
width: 100%;
|
|
height: calc(50% - 20px);
|
|
/*background: purple;*/
|
|
border: 1px solid #20558b ;
|
|
position: relative;
|
|
margin-bottom: 35px;
|
|
}
|
|
/*左边第三部分*/
|
|
.data_content .data_left .left_top .left_bottom{
|
|
width: 100%;
|
|
height: calc(50% - 20px);
|
|
/*background: purple;*/
|
|
border: 1px solid #20558b ;
|
|
position: relative;
|
|
margin-bottom: 35px;
|
|
}
|
|
/*中间*/
|
|
.data_content .data_c{
|
|
width: 52%;
|
|
height: 100%;
|
|
/*
|
|
padding:0 20px;*/
|
|
}
|
|
.data_content .data_c .data_c_1{
|
|
width: calc(100% - 50px);
|
|
height: calc(70% - 15px);
|
|
/*background: red;*/
|
|
/*border: 1px solid #20558b ;*/
|
|
position: relative;
|
|
margin-bottom: 35px;
|
|
margin-left: 25px;
|
|
}
|
|
|
|
.data_content .data_c .data_c_1 .dzimg{
|
|
width: 800px;
|
|
height: 100%;
|
|
margin: 0 auto;
|
|
position: relative;
|
|
background: url("../images/page1_3.jpg") no-repeat center;
|
|
background-size: cover;
|
|
}
|
|
.data_content .data_c .data_c_1 .dzimg img{
|
|
top: 25%;
|
|
left: 50px;
|
|
width: 500px;
|
|
height: 600px;
|
|
position: absolute;
|
|
transition: transform 1s ease 1s;
|
|
transform-style: preserve-3d;
|
|
transform: rotateY(0deg) translateZ(240px);
|
|
}
|
|
|
|
.data_content .data_c .data_c_2{
|
|
width: calc(100% - 50px);
|
|
height: calc(28% - 10px);
|
|
border: 1px solid #20558b ;
|
|
position: relative;
|
|
margin-left: 25px;
|
|
}
|
|
.data_content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: 100vh;
|
|
background-color: transparent; /* 背景设置为透明 */
|
|
}
|
|
|
|
.data_right {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
width: 30%;
|
|
height: 100%;
|
|
background-color: transparent; /* 设置背景色为半透明 */
|
|
padding: 20px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.right_top {
|
|
width: 100%;
|
|
}
|
|
#map {
|
|
background-color: #f0f0f0; /* 设置地图背景颜色 */
|
|
}
|
|
.right_info {
|
|
width: 100%;
|
|
border-width: 2.125rem 1.583rem 0.875rem 5.5rem;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background-color: transparent; /* 设置内部容器为半透明 */
|
|
margin-bottom: 20px; /* Add margin to separate the elements */
|
|
}
|
|
|
|
.right_info_second {
|
|
width: 100%;
|
|
border-width: 2.125rem 1.583rem 0.875rem 5.5rem;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background-color: transparent; /* 设置内部容器为半透明 */
|
|
margin-bottom: 20px; /* Add margin to separate the elements */
|
|
}
|
|
|
|
.right_info_third {
|
|
width: 100%;
|
|
border-width: 2.125rem 1.583rem 0.875rem 5.5rem;
|
|
box-sizing: border-box;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
background-color: transparent; /* 设置内部容器为半透明 */
|
|
margin-bottom: 20px; /* Add margin to separate the elements */
|
|
}
|
|
|
|
|
|
.right_info img {
|
|
|
|
margin-top: 20px;
|
|
width: 100%; /* 确保图片宽度与容器一致 */
|
|
height: auto;
|
|
}
|
|
|
|
#FontScroll{
|
|
width: 100%;
|
|
height: 300px;
|
|
overflow: hidden;
|
|
/*float: left;*/
|
|
margin-top: 10px;
|
|
/*margin: 0 5%;*/
|
|
/*margin-left: 50px;*/
|
|
|
|
/*background: gold;*/
|
|
|
|
}
|
|
#FontScroll ul li{
|
|
height: 38px;
|
|
width: 100%;
|
|
color: #ffffff;
|
|
text-align: center;
|
|
line-height: 38px;
|
|
border-bottom: 1px dashed #404040;
|
|
/*width:33.3%;*/
|
|
overflow: hidden;
|
|
|
|
/*background: red;
|
|
margin: 0 2%;*/
|
|
|
|
}
|
|
#FontScroll ul li:nth-child(1){
|
|
/*background-color: #072951;*/
|
|
box-shadow: -10px 0px 15px #034c6a inset, /*左边阴影*/
|
|
10px 0px 15px #034c6a inset;
|
|
|
|
}
|
|
#FontScroll ul li:hover{
|
|
box-shadow: -10px 0px 15px #034c6a inset, /*左边阴影*/
|
|
10px 0px 15px #034c6a inset;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.fontInner span{
|
|
display:inline-block;
|
|
/*float: left;*/
|
|
/*height: 20px;*/
|
|
width:31%;
|
|
|
|
/*background: red;*/
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|