Commit 84d7b494c5791f546d1645026ed2d37811ab1517
1 parent
db7697d050
Exists in
master
and in
6 other branches
update code
Showing 1 changed file with 3 additions and 9 deletions
platform-operate-api/src/main/java/com/lyms/platform/operate/web/service/impl/BloodSugarServiceImpl.java
View file @
84d7b49
... | ... | @@ -1564,15 +1564,9 @@ |
1564 | 1564 | for(DiabetesRecordModel model : recordModels) |
1565 | 1565 | { |
1566 | 1566 | DiabetesRecordResult result = new DiabetesRecordResult(); |
1567 | - try { | |
1568 | - org.apache.commons.beanutils.BeanUtils.copyProperties(model,result); | |
1569 | - result.setCreatedStr(DateUtil.getyyyy_MM_dd(model.getCreated())); | |
1570 | - list.add(result); | |
1571 | - } catch (IllegalAccessException e) { | |
1572 | - e.printStackTrace(); | |
1573 | - } catch (InvocationTargetException e) { | |
1574 | - e.printStackTrace(); | |
1575 | - } | |
1567 | + org.springframework.beans.BeanUtils.copyProperties(model, result); | |
1568 | + result.setCreatedStr(DateUtil.getyyyy_MM_dd(model.getCreated())); | |
1569 | + list.add(result); | |
1576 | 1570 | } |
1577 | 1571 | } |
1578 | 1572 | } |