|
@ -1469,15 +1469,33 @@ public class MedicineOrderService extends BaseJpaService<Mediicineorder, Mediici
|
|
|
result.put("response", ConstantUtils.FAIL);
|
|
|
return result;
|
|
|
}
|
|
|
MedicineDevicePrintMessage devicePrintMessage = printMessageDao.findDeviceId(deviceId);
|
|
|
if (devicePrintMessage==null){
|
|
|
WlyyHospitalSysDictDO hospitalSysDictDO = hospitalSysDictDao.findById("printSys");
|
|
|
if (hospitalSysDictDO!=null){
|
|
|
JSONObject object = JSONObject.parseObject(hospitalSysDictDO.getDictValue());
|
|
|
map.put("phone", object.getString("phone"));
|
|
|
map.put("remark",object.getString("remark"));
|
|
|
map.put("qrCodeContent", object.getString("qrCodeContent"));
|
|
|
map.put("info", object.getString("info"));
|
|
|
}else {
|
|
|
map.put("phone", "123456");
|
|
|
map.put("remark", "若未取到货物,请您扫描小票二维码申请退款。\n谢谢慢走,祝您生活愉快!");
|
|
|
map.put("qrCodeContent", "谢谢慢走,祝您生活愉快!");
|
|
|
map.put("info","community,phone,equNum,shipTime");
|
|
|
}
|
|
|
}else {
|
|
|
map.put("phone",devicePrintMessage.getPhone());
|
|
|
map.put("remark",devicePrintMessage.getRemark()+"\n"+devicePrintMessage.getRemarkEnd());
|
|
|
map.put("qrCodeContent", devicePrintMessage.getPicture());
|
|
|
map.put("info",devicePrintMessage.getInfo());
|
|
|
}
|
|
|
map.put("orderId", order.getId());
|
|
|
map.put("prescribeNum", order.getPrescribeNum());
|
|
|
map.put("community", dmHospitalDO == null ? "" : dmHospitalDO.getName());
|
|
|
map.put("phone", "123456");
|
|
|
map.put("num", order.getPrescribeNum());
|
|
|
map.put("date", DateUtil.dateToStr(new Date(), "yyyy-MM-dd"));
|
|
|
map.put("time", DateUtil.dateToStr(new Date(), "HH:mm:ss"));
|
|
|
map.put("remark", "若未取到货物,请您扫描小票二维码申请退款。\n谢谢慢走,祝您生活愉快!");
|
|
|
map.put("qrCodeContent", "谢谢慢走,祝您生活愉快!");
|
|
|
if ("1".equals(order.getSellState())) {
|
|
|
map.put("status", 1);
|
|
|
map.put("statusName", "已取药");
|