|
@@ -555,15 +555,15 @@ public class MedicalViewApiController {
|
|
|
map.put("itemNumber", quantity.multiply(drugWin));
|
|
|
map.put("itemTotalFee", unitPrice.multiply(quantity).multiply(drugWin));
|
|
|
ZdUnitCode unitCode=unitCodeMap.get(mz.getExecDept());
|
|
|
- if(unitCode==null){
|
|
|
+ if(unitCode==null && StringUtils.isNotBlank(mz.getExecDept())){
|
|
|
unitCode=zdUnitCodeService.queryByCode(mz.getExecDept());
|
|
|
unitCodeMap.put(mz.getExecDept(),unitCode);
|
|
|
}
|
|
|
if(mzBillItemMap!=null){
|
|
|
map.put("itemType", mzBillItemMap.get(mz.getBillItemCode()));
|
|
|
}
|
|
|
- map.put("execDeptName", unitCode.getName());
|
|
|
- map.put("execDeptAddress", unitCode.getOfficePos()==null?"":unitCode.getOfficePos());
|
|
|
+ map.put("execDeptName", unitCode==null?"":unitCode.getName());
|
|
|
+ map.put("execDeptAddress", (unitCode==null || unitCode.getOfficePos()==null)?"":unitCode.getOfficePos());
|
|
|
returnList.add(map);
|
|
|
}
|
|
|
results.put("resultCode", 0);
|