From 21c8161b67d69a16fbb665d8e1bbedd5e5f67775 Mon Sep 17 00:00:00 2001 From: wzp <2040239371@qq.com> Date: 星期二, 20 五月 2025 15:28:21 +0800 Subject: [PATCH] fix: 增加报价参数 --- ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TbOrdersController.java | 57 +++++++++++++++++++++++++++++++++++++++++---------------- 1 files changed, 41 insertions(+), 16 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TbOrdersController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TbOrdersController.java index c4f3ca2..0b35ee0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TbOrdersController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/TbOrdersController.java @@ -127,11 +127,10 @@ SysClientApp scApp = clientAppService.selectSysClientAppByAppKey(tbOrders.getAppId()); - - ServiceOrderAppVo model = new ServiceOrderAppVo(); model.setMethod("ServiceOrder_APP"); // 璁剧疆鎺ュ彛鍚嶇О model.setAppId(scApp.getMinAppId()); // 璁剧疆鍟嗘埛 APPID + model.setUserID(scApp.getUserId()); model.setOrdType(tbOrders.getTypeCode().intValue()); model.setCoPhone(tbOrders.getLinkTel()); // 瀹㈡埛鑱旂郴鐢佃瘽 @@ -156,15 +155,20 @@ model.setPtDiagnosis(tbOrders.getComplaint()); // 璁剧疆璇婃柇淇℃伅 } + + //棰勪及璺濈 + if(tbOrders.getBookingKM()!=null) + { + model.setTraDistance(tbOrders.getBookingKM().toString()); + } + //濡傛灉澶囨敞淇℃伅涓虹┖锛屽垯涓嶈缃娉ㄤ俊鎭� if(tbOrders.getRemark() != null && !tbOrders.getRemark().equals("")) { model.setCondition(tbOrders.getRemark()); // 璁剧疆澶囨敞淇℃伅 } - -// model.setDoctor("鍖荤敓" + (int) (Math.random() * 10)); // 闅忔満璁剧疆鎮h�呭尰鐢� -// model.setDoctorPhone("13" + (int) (Math.random() * 900000000 + 100000000)); // 闅忔満鐢熸垚鎮h�呭尰鐢熺數璇� + model.setPrice(tbOrders.getBookingPrice().doubleValue()); model.setOfferPrice(tbOrders.getBookingPrice().doubleValue()); // 鐢熸垚鎶ヤ环 model.setReferrals(scApp.getReferrals()); // 璁剧疆鎺ㄤ粙浜哄悕绉颁负鏈烘瀯鍚嶇О // model.setUnitRemarks("鍟嗘埛闅忔満澶囨敞淇℃伅"); // 闅忔満璁剧疆鍟嗘埛澶囨敞 @@ -207,7 +211,9 @@ ServiceOrderAppVo model = new ServiceOrderAppVo(); model.setMethod("ServiceOrder_APP"); // 璁剧疆鎺ュ彛鍚嶇О - model.setAppId(tbOrders.getAppId()); // 璁剧疆鍟嗘埛 APPID + model.setAppId(scApp.getMinAppId()); // 璁剧疆鍟嗘埛 APPID + model.setUserID(scApp.getUserId()); + model.setOrdType(tbOrders.getTypeCode().intValue()); model.setCoPhone(tbOrders.getLinkTel()); // 瀹㈡埛鑱旂郴鐢佃瘽 model.setCoName(tbOrders.getLinkPerson()); // 瀹㈡埛濮撳悕 @@ -220,18 +226,37 @@ model.setPtName(tbOrders.getPatientName()); // 鎮h�呭鍚� model.setPtAge(tbOrders.getAge()); // 闅忔満鐢熸垚鎮h�呭勾榫� model.setPtSex(tbOrders.getSex() == 1 ? "鐢�" : "濂�"); // 闅忔満鐢熸垚鎮h�呮�у埆 -// model.setPtNat("涓浗"); // 璁剧疆鎮h�呭浗绫�--榛樿涓浗锛屼笉闇�瑕佽缃� +// model.setPtNat("涓浗"); // 璁剧疆鎮h�呭浗绫� model.setOutHosp(tbOrders.getLocalAddress()); // 璁剧疆杞嚭鍖婚櫌 model.setInHosp(tbOrders.getSendAddress()); // 璁剧疆杞叆鍖婚櫌 -// model.setPtServices("绉戝")); // 璁剧疆鎮h�呮墍鍦ㄧ瀹� - model.setPtDiagnosis(tbOrders.getComplaint()); // 璁剧疆璇婃柇淇℃伅 - model.setCondition(tbOrders.getRemark()); // 璁剧疆澶囨敞淇℃伅 -// model.setDoctor("鍖荤敓")); // 璁剧疆鎮h�呭尰鐢�--娌℃湁鍖荤敓淇℃伅 -// model.setDoctorPhone("")); // 璁剧疆鎮h�呭尰鐢熺數璇�--娌℃湁鍖荤敓鐢佃瘽 - model.setOfferPrice(tbOrders.getBookingPrice().doubleValue()); // 鎶ヤ环 -// model.setReferrals("鎺ㄤ粙浜�")); // 璁剧疆鎺ㄤ粙浜轰俊鎭�--娌℃湁鎺ㄤ粙浜轰俊鎭� -// model.setUnitRemarks("鍟嗘埛澶囨敞淇℃伅"); // 璁剧疆鍟嗘埛澶囨敞--娌℃湁鍟嗘埛澶囨敞 - model.setPayQRcodeURL(scApp.getPayUrl()); +// model.setPtServices("绉戝" + (int) (Math.random() * 10)); // 闅忔満璁剧疆鎮h�呮墍鍦ㄧ瀹� + + //濡傛灉璇婃柇淇℃伅涓虹┖锛屽垯涓嶈缃瘖鏂俊鎭� + if(tbOrders.getComplaint() != null && !tbOrders.getComplaint().equals("")) + { + model.setPtDiagnosis(tbOrders.getComplaint()); // 璁剧疆璇婃柇淇℃伅 + } + + + //棰勪及璺濈 + if(tbOrders.getBookingKM()!=null) + { + model.setTraDistance(tbOrders.getBookingKM().toString()); + } + + //濡傛灉澶囨敞淇℃伅涓虹┖锛屽垯涓嶈缃娉ㄤ俊鎭� + if(tbOrders.getRemark() != null && !tbOrders.getRemark().equals("")) + { + model.setCondition(tbOrders.getRemark()); // 璁剧疆澶囨敞淇℃伅 + } + + + model.setOfferPrice(tbOrders.getBookingPrice().doubleValue()); // 鐢熸垚鎶ヤ环 + model.setPrice(tbOrders.getBookingPrice().doubleValue()); + model.setReferrals(scApp.getReferrals()); // 璁剧疆鎺ㄤ粙浜哄悕绉颁负鏈烘瀯鍚嶇О +// model.setUnitRemarks("鍟嗘埛闅忔満澶囨敞淇℃伅"); // 闅忔満璁剧疆鍟嗘埛澶囨敞 + model.setPayQRcodeURL(scApp.getPayUrl()); + ServiceOrderAppResultVo result = ServiceOrderUtil.CreateServiceOrder(model,scApp.getMinAppSecret()); -- Gitblit v1.9.1