Przeglądaj źródła

中山线上问题处理

wangzhinan 1 rok temu
rodzic
commit
a03787db88

+ 3 - 2
business/base-service/src/main/java/com/yihu/jw/order/BusinessOrderService.java

@ -1921,13 +1921,14 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
        Calendar calendar = Calendar.getInstance();
        if (businessOrderDO!=null){
            createDate = businessOrderDO.getCreateTime();
            calendar.add(Calendar.MINUTE,Integer.parseInt(wlyyHospitalSysDictDO.getDictCode()));
            calendar.setTime(createDate);
            calendar.add(Calendar.MINUTE,Integer.parseInt(wlyyHospitalSysDictDO.getDictCode()));
        }else {
            WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(relationCode);
            createDate =prescriptionDO.getCreateTime();
            calendar.add(Calendar.MINUTE,Integer.parseInt(wlyyHospitalSysDictDO.getPyCode()));
            calendar.setTime(createDate);
            calendar.add(Calendar.MINUTE,Integer.parseInt(wlyyHospitalSysDictDO.getPyCode()));
        }
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");