Browse Source

Merge branch 'dev' of huangwenjie/patient-co-management into dev

chenweida 7 years ago
parent
commit
a101a2e3c8

+ 1 - 1
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/express/SFExpressService.java

@ -219,7 +219,7 @@ public class SFExpressService extends BaseService {
                filter_result = e.attributeValue("filter_result");
                orderid = e.attributeValue("orderid");
                mailno = e.attributeValue("mailno");
                destCode = e.attributeValue("destCode");
                destCode = e.attributeValue("destcode");
            }
            if(StringUtils.isNotBlank(filter_result) && "3".equals(filter_result)){
                logger.info("顺丰快递下订单失败:派送地址不可派送,处方编号:"+sfexpress_obj.getPrescriptionCode());

+ 2 - 0
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PrescriptionExpressageService.java

@ -275,7 +275,9 @@ public class PrescriptionExpressageService {
     * @param prescriptionExpressage
     * @throws Exception
     */
    @Transactional
    public void updatePrescriptionExpressage(PrescriptionExpressage prescriptionExpressage) throws Exception {
        //修改处方状态为配送配送中
        prescriptionDao.updateStatus(prescriptionExpressage.getPrescriptionCode(), 65);

+ 6 - 4
patient-co/patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/prescription/PrescriptionService.java

@ -217,8 +217,9 @@ public class PrescriptionService extends BaseService {
            JSONObject jwobj =  JSON.parseObject(result);
            JSONObject zyCfinfo = jwobj.getJSONObject("data");
            Integer code = zyCfinfo.getInteger("CODE");
            Integer status = jwobj.getInteger("status");
            if( 1 == code){
            if(200 == status && 1 == code){
                JSONArray zyCfinfoListReturnData = zyCfinfo.getJSONArray("returnData");
                JSONArray zyCfinfoList = zyCfinfoListReturnData.getJSONArray(0);
@ -311,7 +312,7 @@ public class PrescriptionService extends BaseService {
                }
                json.put("mxlist",cfInfo);
            }else{
                String errormessage = zyCfinfo.getString("MESSAGE");
                String errormessage = jwobj.getString("MESSAGE");
                throw new Exception(errormessage);
            }
        }
@ -337,8 +338,9 @@ public class PrescriptionService extends BaseService {
                JSONObject jwobj =  JSON.parseObject(result);
                JSONObject zyCfinfo = jwobj.getJSONObject("data");
                Integer code = zyCfinfo.getInteger("CODE");
                Integer status = jwobj.getInteger("status");
                if( 1 == code){
                if(200 == status && 1 == code){
                    JSONArray zyCfinfoListReturnData = zyCfinfo.getJSONArray("returnData");
                    JSONArray zyCfinfoList = zyCfinfoListReturnData.getJSONArray(0);
@ -359,7 +361,7 @@ public class PrescriptionService extends BaseService {
                        }
                    }
                }else{
                    String errormessage = zyCfinfo.getString("MESSAGE");
                    String errormessage = jwobj.getString("MESSAGE");
                    throw new Exception(errormessage);
                }
            }else {