Browse Source

处方状态变更job

zdm 5 years ago
parent
commit
df84079baf

+ 3 - 3
common/common-entity/src/main/java/com/yihu/jw/entity/hospital/prescription/WlyyPrescriptionDO.java

@ -488,7 +488,7 @@ public class WlyyPrescriptionDO extends UuidIdentityEntity {
    public void setDiseaseImg(String diseaseImg) {
        this.diseaseImg = diseaseImg;
    }
    @Column(name = "disp_user")
    public String getDispUser() {
        return dispUser;
    }
@ -496,7 +496,7 @@ public class WlyyPrescriptionDO extends UuidIdentityEntity {
    public void setDispUser(String dispUser) {
        this.dispUser = dispUser;
    }
    @Column(name = "disp_user_name")
    public String getDispUserName() {
        return dispUserName;
    }
@ -504,7 +504,7 @@ public class WlyyPrescriptionDO extends UuidIdentityEntity {
    public void setDispUserName(String dispUserName) {
        this.dispUserName = dispUserName;
    }
    @Column(name = "disp_date")
    public Date getDispDate() {
        return dispDate;
    }

+ 4 - 2
svr/svr-internet-hospital-job/src/main/java/com/yihu/jw/service/channel/PrescriptionStatusUpdateService.java

@ -93,8 +93,10 @@ public class PrescriptionStatusUpdateService {
            //根据门诊id获取门诊记录:如果处方状态为已完成,需要将门诊状态改为已诊
            WlyyOutpatientDO wlyyOutpatientDO=outpatientDao.findById(outPatientId);
            if(null!=wlyyPrescriptionVOS){
                ObjectMapper objectMapper=new ObjectMapper();
                WlyyPrescriptionVO wlyyPrescriptionVO=objectMapper.convertValue(wlyyPrescriptionVOS.get(0),WlyyPrescriptionVO.class);
                //如果状态为100,门诊记录需要变更为结束
                WlyyPrescriptionVO wlyyPrescriptionVO=wlyyPrescriptionVOS.get(0);
//               wlyyPrescriptionVOS.get(0);
                wlyyPrescriptionDO.setStatus(wlyyPrescriptionVO.getStatus());
                //用处方号获取不到处方时,重新更新处方到本地
                if(!preExistFlag){
@ -206,7 +208,7 @@ public class PrescriptionStatusUpdateService {
            ObjectMapper objectMapper=new ObjectMapper();
            ListEnvelop listEnvelop=objectMapper.readValue(result,ListEnvelop.class);
            if(null!=listEnvelop&& EnvelopStatus.success.code.equals(listEnvelop.getStatus())&&null!=listEnvelop.getDetailModelList()&&listEnvelop.getDetailModelList().size()>0){
                logger.info("result:"+listEnvelop.getDetailModelList());
//                logger.info("result:"+listEnvelop.getDetailModelList());
                List<WlyyPrescriptionVO> wlyyPrescriptionVOS=listEnvelop.getDetailModelList();
                return wlyyPrescriptionVOS;
            }