| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.time.LocalDateTime; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Objects; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | if(sysAppUser != null){ |
| | | sysInspection.setAppUserId(sysAppUser.getId()); |
| | | sysInspection.setClinicId(sysAppUser.getClinicId()); |
| | | LocalDateTime vipEndTime = sysAppUser.getVipEndTime(); |
| | | if(Objects.nonNull(vipEndTime) && vipEndTime.isAfter(LocalDateTime.now())){ |
| | | sysInspection.setIsPay(1); |
| | | } |
| | | } |
| | | sysInspection.setOutUserId(outUserId); |
| | | sysInspection.setBirthday(birthday); |
| | |
| | | // 小程序检测 |
| | | sysInspection.setInspectionType(2); |
| | | |
| | | // TODO 舌诊信息 |
| | | // 舌诊信息 |
| | | JSONObject phyTongueInfo = jsonObject.getJSONObject("phyTongueInfo"); |
| | | JSONObject tongueNatureColorInfo = phyTongueInfo.getJSONObject("tongueNatureColorInfo"); // 舌色信息 |
| | | String tongueNatureColor = tongueNatureColorInfo.getString("tongueNatureColorClinical"); // 舌色临床意义 |
| | | sysInspection.setTongueNatureColor(tongueNatureColor); |
| | | // TODO 面诊信息 |
| | | // 面诊信息 |
| | | JSONObject phyFaceInfo = jsonObject.getJSONObject("phyFaceInfo"); |
| | | JSONObject lipColorInfo = phyFaceInfo.getJSONObject("lipColorInfo"); // 唇色信息 |
| | | String lipColorClinical = lipColorInfo.getString("lipColorClinical"); // 唇色临床意义 |
| | |
| | | sysInspection.setDeviceAccountId(device_account_id); |
| | | // 硬件检测 |
| | | sysInspection.setInspectionType(3); |
| | | sysInspection.setIsPay(1); |
| | | |
| | | // 通过手机号查询小程序用户 |
| | | TSysAppUser sysAppUser = sysAppUserService.getOne(Wrappers.lambdaQuery(TSysAppUser.class) |