|
@@ -269,7 +269,7 @@ public class MzPharmacyController {
|
|
|
@UserLoginToken
|
|
|
@RequestMapping(value = "/cancelRefundMedicineProcessing", method = {RequestMethod.GET})
|
|
|
public Map<String, Object> cancelRefundMedicineProcessing(@RequestParam("realNo") Integer realNo, @RequestParam("groupNo") String groupNo
|
|
|
- , @RequestParam("orderNo") Integer orderNo, HttpServletRequest httpServletRequest) throws MzException {
|
|
|
+ , @RequestParam("receiptNo") Integer receiptNo , @RequestParam("orderNo") Integer orderNo, HttpServletRequest httpServletRequest) throws MzException {
|
|
|
User tokenUser = TokenUtil.getUser(httpServletRequest);
|
|
|
Map<String, Object> resultMap = new HashMap<>();
|
|
|
try {
|
|
@@ -278,12 +278,12 @@ public class MzPharmacyController {
|
|
|
resultMap.put("message", "撤销退药处理失败,参数为空");
|
|
|
return resultMap;
|
|
|
}
|
|
|
- if (mzPharmacyService.queryRefundMoneyCount(-realNo, -1, groupNo, orderNo) > 0) {
|
|
|
+ if (mzPharmacyService.queryRefundMoneyCount(-realNo, receiptNo, groupNo, orderNo) > 0) {
|
|
|
resultMap.put("code", -1);
|
|
|
resultMap.put("message", "该处方已存在退费记录");
|
|
|
return resultMap;
|
|
|
}
|
|
|
- if(mzPharmacyService.cancelRefundMedicineProcessing(realNo, groupNo,orderNo) == 0){
|
|
|
+ if(mzPharmacyService.cancelRefundMedicineProcessing(realNo, groupNo, orderNo, receiptNo) == 0){
|
|
|
resultMap.put("code", -1);
|
|
|
resultMap.put("message", "退回申请退药记录状态异常");
|
|
|
}else{
|