|
@@ -88,6 +88,16 @@ public class LisSyncService {
|
|
|
scienceApply.setCreateTime(checkOrder.getCreateTime());
|
|
|
scienceApply.setSex(item.getLisSexId());
|
|
|
scienceApply.setAge(Integer.parseInt(item.getAge()));
|
|
|
+ scienceApply.setAgeUnit("hdmy".indexOf(item.getAgeUnit().charAt(0)));
|
|
|
+ JSONObject ageObj = JSONObject.parseObject(scienceApply.getAgeDisplay());
|
|
|
+ if (scienceApply.getAgeUnit() == 3) {
|
|
|
+ ageObj.put("Year", item.getAge());
|
|
|
+ } else if (scienceApply.getAgeUnit() == 2) {
|
|
|
+ ageObj.put("Month", item.getAge());
|
|
|
+ } else if (scienceApply.getAgeUnit() == 1) {
|
|
|
+ ageObj.put("Day", item.getAge());
|
|
|
+ }
|
|
|
+ scienceApply.setAgeDisplay(ageObj.toJSONString());
|
|
|
scienceApply.setSampleId(item.getLisSampleTypeId().toString());
|
|
|
scienceApply.setFastFlag(Integer.parseInt(item.getQuick()));
|
|
|
scienceApply.setApplyDep(serum.getSendOrgId().toString());
|