wangzhinan пре 1 година
родитељ
комит
dac27cdfb8

+ 2 - 0
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/PrescriptionService.java

@ -2933,7 +2933,9 @@ public class PrescriptionService extends BaseJpaService<WlyyPrescriptionDO, Pres
                outpatientDO.setStatus("2");
                outpatientDO.setStatus("2");
                outpatientDao.save(outpatientDO);
                outpatientDao.save(outpatientDO);
                //先下单
                //先下单
/*
                businessOrderService.savePrescriptionOrder(prescription.getId());
                businessOrderService.savePrescriptionOrder(prescription.getId());
*/
                /*if(!demoFlag) {
                /*if(!demoFlag) {
                    //同步his
                    //同步his
                    ykyyEntranceService.findByRealOrder(prescription.getId(), demoFlag);
                    ykyyEntranceService.findByRealOrder(prescription.getId(), demoFlag);

+ 1 - 1
business/base-service/src/main/java/com/yihu/jw/hospital/prescription/service/entrance/YkyyEntranceService.java

@ -2906,7 +2906,7 @@ public class YkyyEntranceService {
                hlwCf01DO.setLSCFBZ(0);
                hlwCf01DO.setLSCFBZ(0);
                hlwCf01DO.setZJFLAG(0);
                hlwCf01DO.setZJFLAG(0);
                hlwCf01DO.setFKZT(0);
                hlwCf01DO.setFKZT(0);
                hlwCf01DO.setSCDDH(wlyyPrescriptionVO.getOrderNo());
                hlwCf01DO.setSCDDH("HLWYY11701054660394234100");
                String patient = wlyyPrescriptionVO.getPatientCode();
                String patient = wlyyPrescriptionVO.getPatientCode();
                PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(patient);
                PatientMappingDO patientMappingDO = patientMappingDao.findByPatient(patient);
                if (patientMappingDO==null){
                if (patientMappingDO==null){

+ 11 - 14
business/base-service/src/main/java/com/yihu/jw/order/BusinessOrderService.java

@ -981,7 +981,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
                            prescriptionService.sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, type, "paySuccess", "");
                            prescriptionService.sendWxTemplateMsg(wechatId, wlyyOutpatientDO.getId(),null, type, "paySuccess", "");
                        }
                        }
                    }
                    }
                }else if (businessOrderDO.getOrderCategory().equalsIgnoreCase("4")){
                }else if (businessOrderDO.getOrderCategory().equalsIgnoreCase("4")||businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
                   /* List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(businessOrderDO.getRelationCode());
                   /* List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(businessOrderDO.getRelationCode());
                    if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
                    if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
                        WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
                        WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
@ -1060,11 +1060,10 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
                            }
                            }
                        }
                        }
                        }*/
                        }*/
                    List<WlyyPrescriptionDO> wlyyPrescriptionDOS = prescriptionDao.findById(businessOrderDO.getRelationCode());
                    if (wlyyPrescriptionDOS!=null&&wlyyPrescriptionDOS.size()!=0){
                        WlyyPrescriptionDO wlyyPrescriptionDO = wlyyPrescriptionDOS.get(0);
                    YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(businessOrderDO.getRelationCode());
                    if (ylzMedicalRelationDO!=null){
                        try {
                        try {
                            ykyyPrescriptionService.confirmSettlement(wlyyPrescriptionDO.getOutpatientId());
                            ykyyPrescriptionService.confirmSettlement(ylzMedicalRelationDO.getRelationCode());
                        } catch (Exception e) {
                        } catch (Exception e) {
                            throw new RuntimeException(e);
                            throw new RuntimeException(e);
                        }
                        }
@ -1087,7 +1086,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
                    }
                    }
                }else if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
                }/*else if (businessOrderDO!=null&&businessOrderDO.getOrderCategory().equalsIgnoreCase("6")){
                    String price = Integer.parseInt(totalFee)/100+"";
                    String price = Integer.parseInt(totalFee)/100+"";
                    BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findOne(Integer.parseInt(businessOrderDO.getRelationCode()));
                    BaseNatAppointmentDO baseNatAppointmentDO = baseNatAppointmentDao.findOne(Integer.parseInt(businessOrderDO.getRelationCode()));
                    baseNatAppointmentDO.setPayStatus("1");
                    baseNatAppointmentDO.setPayStatus("1");
@ -1101,7 +1100,7 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
                    }
                    }
                    //发送核酸支付成功提醒
                    //发送核酸支付成功提醒
                    prescriptionService.sendYktemplateMessage(baseNatAppointmentDO.getId(),true);
                    prescriptionService.sendYktemplateMessage(baseNatAppointmentDO.getId(),true);
                }
                }*/
            }
            }
            if (businessOrderDO!=null&&!businessOrderDO.getOrderCategory().equalsIgnoreCase("5")&&businessOrderDO.getStatus()!=1){
            if (businessOrderDO!=null&&!businessOrderDO.getOrderCategory().equalsIgnoreCase("5")&&businessOrderDO.getStatus()!=1){
                if (null != hospitalSysDictDO && "0".equalsIgnoreCase(hospitalSysDictDO.getDictValue())) {
                if (null != hospitalSysDictDO && "0".equalsIgnoreCase(hospitalSysDictDO.getDictValue())) {
@ -2941,14 +2940,12 @@ public class BusinessOrderService extends BaseJpaService<BusinessOrderDO,Busines
                }else if (orderCategoryFlag.equalsIgnoreCase("4")){
                }else if (orderCategoryFlag.equalsIgnoreCase("4")){
                    WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(relationCode);
                    WlyyPrescriptionDO prescriptionDO = prescriptionDao.findOne(relationCode);
                    WlyyOutpatientDO outpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId());
                    map.put("medicalPrice",0);
                    if (outpatientDO!=null){
                    if (prescriptionDO!=null){
                        WlyyOutpatientDO outpatientDO = outpatientDao.findById(prescriptionDO.getOutpatientId());
                        map.put("doctorName",outpatientDO.getDoctorName());
                        map.put("doctorName",outpatientDO.getDoctorName());
                        map.put("consumerName",outpatientDO.getPatientName());
                    }else {
                        map.put("doctorName","");
                        map.put("consumerName","");
                        map.put("consumerName",outpatientDO.getConsumerName());
                        map.put("patientName",outpatientDO.getPatientName());
                        map.put("medicalPrice",0);
                    }
                    }
                }else if (orderCategoryFlag.equalsIgnoreCase("6")){
                }else if (orderCategoryFlag.equalsIgnoreCase("6")){
                    YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(relationCode);
                    YlzMedicalRelationDO ylzMedicalRelationDO = ylzMedicailRelationDao.findOne(relationCode);

+ 3 - 3
common/common-entity/src/main/java/com/yihu/jw/entity/IntegerIdentityEntity.java

@ -19,13 +19,13 @@ public abstract class IntegerIdentityEntity implements Serializable {
    @Id
    @Id
//==========mysql 环境 id策略======================================================
//==========mysql 环境 id策略======================================================
/*    @GeneratedValue(generator = "generator")
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "identity")
    @GenericGenerator(name = "generator", strategy = "identity")
    @Column(name = "id", unique = true, nullable = false)*/
    @Column(name = "id", unique = true, nullable = false)
//==========mysql 环境 id策略 end======================================================
//==========mysql 环境 id策略 end======================================================
//==========Oracle 环境id策略 =========================================================
//==========Oracle 环境id策略 =========================================================
   @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="id_generated")
/*   @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="id_generated")*/
//==========Oracle 环境id策略 =========================================================
//==========Oracle 环境id策略 =========================================================
    public Integer getId() {
    public Integer getId() {
        return id;
        return id;

+ 1 - 1
server/svr-authentication/src/main/java/com/yihu/jw/security/oauth2/provider/endpoint/WlyyLoginEndpoint.java

@ -3699,7 +3699,7 @@ public class WlyyLoginEndpoint extends AbstractEndpoint {
                    logger.info("眼科通登陆返回参数:"+object);
                    logger.info("眼科通登陆返回参数:"+object);
                    if (!object.getString("code").equalsIgnoreCase("10000")){
                    if (!object.getString("code").equalsIgnoreCase("10000")){
                        WlyyUserSimple userSimple = new WlyyUserSimple();
                        WlyyUserSimple userSimple = new WlyyUserSimple();
                        return getFailedResponse(object.getString("msg"),-1,userSimple);
                        return getFailedResponse(object.getString("message"),-1,userSimple);
                    }else {
                    }else {
                        JSONObject jsonObject = object.getJSONObject("value");
                        JSONObject jsonObject = object.getJSONObject("value");
                        if (jsonObject!=null) {
                        if (jsonObject!=null) {

+ 1 - 1
svr/svr-base/src/main/java/com/yihu/SvrBaseApplication.java

@ -33,7 +33,7 @@ public class SvrBaseApplication extends SpringBootServletInitializer {
    @Bean
    @Bean
    MultipartConfigElement multipartConfigElement() {
    MultipartConfigElement multipartConfigElement() {
        MultipartConfigFactory factory = new MultipartConfigFactory();
        MultipartConfigFactory factory = new MultipartConfigFactory();
        factory.setLocation("/home/temp");
        factory.setLocation("/data/temp");
        return factory.createMultipartConfig();
        return factory.createMultipartConfig();
    }
    }

+ 2 - 2
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/dailyReport/DailyReportUploadPoint.java

@ -120,11 +120,11 @@ public class DailyReportUploadPoint extends EnvelopRestEndpoint {
                                        @ApiParam(name = "jsonData", value = "事项信息实体")
                                        @ApiParam(name = "jsonData", value = "事项信息实体")
                                        @RequestParam(value = "jsonData", required = true) String jsonData) {
                                        @RequestParam(value = "jsonData", required = true) String jsonData) {
        try {
        try {
            Date date = new Date();
           /* Date date = new Date();
            Date date2 = DateUtil.strToDate(DateUtil.getStringDateShort()+" 22:00:00");
            Date date2 = DateUtil.strToDate(DateUtil.getStringDateShort()+" 22:00:00");
            if (date.after(date2)){
            if (date.after(date2)){
                return ObjEnvelop.getError("您已错过提交时间,无法提交!日报提交和修改时间为当天晚上十点之前。");
                return ObjEnvelop.getError("您已错过提交时间,无法提交!日报提交和修改时间为当天晚上十点之前。");
            }
            }*/
            List<BaseDailyReportDetailDO> healthUploadDOs = new ArrayList<>();
            List<BaseDailyReportDetailDO> healthUploadDOs = new ArrayList<>();
            if (StringUtils.isNoneBlank(jsonData)){
            if (StringUtils.isNoneBlank(jsonData)){
                healthUploadDOs = JSONArray.parseArray(jsonData,BaseDailyReportDetailDO.class);
                healthUploadDOs = JSONArray.parseArray(jsonData,BaseDailyReportDetailDO.class);

+ 2 - 6
svr/svr-internet-hospital/src/main/java/com/yihu/jw/hospital/endpoint/patient/PatientNoLoginEndPoint.java

@ -2297,20 +2297,16 @@ public class PatientNoLoginEndPoint extends EnvelopRestEndpoint {
                                       @RequestParam(value = "orderType", required = false)String orderType,
                                       @RequestParam(value = "orderType", required = false)String orderType,
                                       @ApiParam(name = "orderCategory", value = "业务列表(1,专家咨询,2、复诊,4处方、5、就诊卡充值)")
                                       @ApiParam(name = "orderCategory", value = "业务列表(1,专家咨询,2、复诊,4处方、5、就诊卡充值)")
                                       @RequestParam(value = "orderCategory", required = false)String orderCategory,
                                       @RequestParam(value = "orderCategory", required = false)String orderCategory,
                                       HttpServletResponse response) {
                                       HttpServletResponse response) throws Exception {
        try {
            MixEnvelop expressages = businessOrderService.pushYktCardCharge(startTime,endTime,orderNo,yktOrderNo,patientName,idCard,medicard,status,page,pageSize, orderType, orderCategory);
            MixEnvelop expressages = businessOrderService.pushYktCardCharge(startTime,endTime,orderNo,yktOrderNo,patientName,idCard,medicard,status,page,pageSize, orderType, orderCategory);
            List<Map<String, Object>> list = expressages.getDetailModelList();
            List<Map<String, Object>> list = expressages.getDetailModelList();
            response.setContentType("octets/stream");
            response.setContentType("octets/stream");
            response.setHeader("Content-Disposition", "attachment; filename=" + new String("pushYktCardCharge.xls"));
            response.setHeader("Content-Disposition", "attachment; filename=" + new String("pushYktCardCharge.xls"));
            OutputStream os = response.getOutputStream();
            OutputStream os = response.getOutputStream();
            prescriptionService.pushYktCardChargeWrite(os, list);
            prescriptionService.pushYktCardChargeWrite(os, list);
            return success(expressages);
            return success(expressages);
        }catch (Exception e) {
            return failedMixEnvelopException(e);
        }
    }
    }
    @GetMapping(value = "pushListWriteHealthInfo")
    @GetMapping(value = "pushListWriteHealthInfo")