|
@@ -1796,13 +1796,19 @@ public class MzChargeDetailController {
|
|
|
*/
|
|
|
@UserLoginToken
|
|
|
@RequestMapping(value = "/getAmountForTempPrescription", method = {RequestMethod.POST})
|
|
|
- public Map<String, Object> getAmountForTempPrescription(@RequestBody MzPrescriptionVo mzPrescriptionVo) {
|
|
|
+ public Map<String, Object> getAmountForTempPrescription(@RequestBody MzPrescriptionVo mzPrescriptionVo, HttpServletRequest httpServletRequest) {
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
try {
|
|
|
+ User tokenUser = TokenUtil.getUser(httpServletRequest);
|
|
|
+ mzPrescriptionVo.setDoctorCode(tokenUser.getUserIdCode());
|
|
|
//计算金额不需要真实的科室信息
|
|
|
mzPrescriptionVo.setJzFlag(YesNoEnum.NO.code);
|
|
|
- mzPrescriptionVo.setDoctorCode(Constants.BRZZJF_CODE);
|
|
|
- mzPrescriptionVo.setVisitDeptCode(Constants.ZZBM);
|
|
|
+ if(StringUtils.isBlank(mzPrescriptionVo.getVisitDeptCode())){
|
|
|
+ mzPrescriptionVo.setVisitDeptCode(Constants.ZZBM);
|
|
|
+ }
|
|
|
+ if(StringUtils.isBlank(mzPrescriptionVo.getDoctorCode())){
|
|
|
+ mzPrescriptionVo.setDoctorCode(Constants.BRZZJF_CODE);
|
|
|
+ }
|
|
|
resultMap.put("code", 0);
|
|
|
resultMap.put("data", mzChargeDetailService.getAmountForTempPrescription(mzPrescriptionVo));
|
|
|
resultMap.put("message", "计算临时处方的中药,西药,诊疗以及总金额成功");
|