Skip to content

Commit

Permalink
Merge pull request #33 from Turtle-Neck-Saivor/refactor/32
Browse files Browse the repository at this point in the history
refactor: add neck Angle to healthInfo
  • Loading branch information
Sith-call authored Sep 3, 2023
2 parents e4c358c + ebbc881 commit fcd57fd
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 13 deletions.
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

0 comments on commit fcd57fd

Please sign in to comment.