Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: add neck Angle to healthInfo #33

Merged
merged 1 commit into from
Sep 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,20 @@ public class HealthInfo extends BaseEntity {

private Long headAngle;

private Long neckAngle;

private Long distanceMonitor;

@Builder
public HealthInfo(MemberEntity memberEntity, Integer redCnt, Integer yellowCnt, Integer greenCnt, Long shoulderAngle, Long headAngle, Long distanceMonitor){
public HealthInfo(MemberEntity memberEntity, Integer redCnt, Integer yellowCnt, Integer greenCnt, Long shoulderAngle, Long headAngle, Long neckAngle, Long distanceMonitor){
this.memberEntity = memberEntity;
this.redCnt = redCnt;
this.yellowCnt = yellowCnt;
this.greenCnt = greenCnt;
this.isActive = true;
this.shoulderAngle = shoulderAngle;
this.headAngle = headAngle;
this.neckAngle = neckAngle;
this.distanceMonitor = distanceMonitor;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ public class RecordInfo {
private Integer greenCnt;
private Long shoulderAngle;
private Long headAngle;
private Long neckAngle;
private Long distanceMonitor;
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ private HealthInfo recordSingleInfo(RecordInfo info){
.greenCnt(info.getGreenCnt())
.shoulderAngle(info.getShoulderAngle())
.headAngle(info.getHeadAngle())
.neckAngle(info.getNeckAngle())
.distanceMonitor(info.getDistanceMonitor())
.build();
return healthRepository.save(singleInfo);
Expand Down
Loading