|
@@ -3,6 +3,7 @@ package thyyxxk.webserver.service.datamodify;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import thyyxxk.webserver.config.exception.ExceptionEnum;
|
|
|
+import thyyxxk.webserver.constants.GetDateFormat;
|
|
|
import thyyxxk.webserver.dao.his.datamodify.YzTemperatureDao;
|
|
|
import thyyxxk.webserver.entity.ResultVo;
|
|
|
import thyyxxk.webserver.entity.datamodify.GetDropdownBox;
|
|
@@ -11,6 +12,8 @@ import thyyxxk.webserver.utils.DateUtil;
|
|
|
import thyyxxk.webserver.utils.ResultVoUtil;
|
|
|
import thyyxxk.webserver.utils.TokenUtil;
|
|
|
|
|
|
+import java.text.ParseException;
|
|
|
+import java.text.SimpleDateFormat;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
|
|
@@ -42,7 +45,7 @@ public class YzTemperatureService {
|
|
|
* @param param 根据 住院号 住院次数 日期 查询 坑爹的这个人把 日期要 拆分出来
|
|
|
* @return 返回一条拼接好问题描述的数据
|
|
|
*/
|
|
|
- public ResultVo<YzTemperature> queryDetails(YzTemperature param) {
|
|
|
+ public ResultVo<YzTemperature> queryDetails(YzTemperature param) throws ParseException {
|
|
|
String date = DateUtil.formatDatetime(param.getDate(), GET_DATE_FORMAT);
|
|
|
String time = DateUtil.formatDatetime(param.getDate(), GET_TIME_FORMAT);
|
|
|
|
|
@@ -60,7 +63,8 @@ public class YzTemperatureService {
|
|
|
if (i == 0) {
|
|
|
pojo = list.get(0);
|
|
|
//坑爹的1900年的 日期 传到前端会少几分钟 需要转成 string 在把 1900替换成2000
|
|
|
- pojo.setRecTime(DateUtil.getDatetimeAfterCentury(pojo.getRecTime()));
|
|
|
+ String timeS = "2021-01-01 " + time;
|
|
|
+ pojo.setRecTime(new SimpleDateFormat(GetDateFormat.DATE_TIME).parse(timeS));
|
|
|
}
|
|
|
//拼接字符串 把otherInfo 拼起来
|
|
|
splicingOtherInfo.append(list.get(i).getOtherInfo());
|
|
@@ -84,8 +88,9 @@ public class YzTemperatureService {
|
|
|
*/
|
|
|
public ResultVo<Boolean> modify(YzTemperature param) {
|
|
|
//把你的日期转化成 对应的格式
|
|
|
- param.setToStringRecDate(DateUtil.formatDatetime(param.getRecDate(), GET_DATE_FORMAT));
|
|
|
- param.setToStringRecTime(DateUtil.formatDatetime(param.getRecTime(), GET_TIME_FORMAT));
|
|
|
+ param.setToStringRecDate(DateUtil.formatDatetime(param.getDate(), GET_DATE_FORMAT));
|
|
|
+ param.setToStringRecTime(DateUtil.formatDatetime(param.getDate(), GET_TIME_FORMAT));
|
|
|
+
|
|
|
|
|
|
//查询出原来的 数据
|
|
|
YzTemperature pojo = new YzTemperature();
|