|  | @@ -63,7 +63,6 @@ public class MzPharmacyController {
 | 
	
		
			
				|  |  |       *
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  | -    @UserLoginToken
 | 
	
		
			
				|  |  |      @RequestMapping(value = "/listMzChargeOrder", method = {RequestMethod.POST})
 | 
	
		
			
				|  |  |      public Map<String, Object> listMzChargeOrder(@RequestBody ChargeDetailPharmacyVo chargeDetailPharmacyVo) {
 | 
	
		
			
				|  |  |          Map<String, Object> resultMap = new HashMap<>();
 | 
	
	
		
			
				|  | @@ -327,7 +326,6 @@ public class MzPharmacyController {
 | 
	
		
			
				|  |  |       * @param mzChargeDetail
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  | -    @UserLoginToken
 | 
	
		
			
				|  |  |      @RequestMapping(value = "/getFyclPrescriptionDetail", method = {RequestMethod.POST})
 | 
	
		
			
				|  |  |      public Map<String, Object> getFyclPrescriptionDetail(@RequestBody MzChargeDetail mzChargeDetail) {
 | 
	
		
			
				|  |  |          Map<String, Object> resultMap = new HashMap<>();
 | 
	
	
		
			
				|  | @@ -554,7 +552,6 @@ public class MzPharmacyController {
 | 
	
		
			
				|  |  |       * @param mzChargeDetail
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  | -    @UserLoginToken
 | 
	
		
			
				|  |  |      @RequestMapping(value = "/getPrintPrescriptionData", method = {RequestMethod.POST})
 | 
	
		
			
				|  |  |      public Map<String, Object> getPrintPrescriptionData(@RequestBody MzChargeDetail mzChargeDetail, HttpServletRequest httpServletRequest) throws MzException {
 | 
	
		
			
				|  |  |          Map<String, Object> resultMap = new HashMap<>();
 | 
	
	
		
			
				|  | @@ -667,19 +664,18 @@ public class MzPharmacyController {
 | 
	
		
			
				|  |  |       * 查询未打印的处方数据
 | 
	
		
			
				|  |  |       * @return
 | 
	
		
			
				|  |  |       */
 | 
	
		
			
				|  |  | -    @UserLoginToken
 | 
	
		
			
				|  |  | -    @RequestMapping(value = "/getPrintPrescriptionDatas", method = {RequestMethod.POST})
 | 
	
		
			
				|  |  | -    public Map<String, Object> getPrintPrescriptionDatas(HttpServletRequest httpServletRequest) throws MzException {
 | 
	
		
			
				|  |  | +    @RequestMapping(value = "/getPrintPrescriptionDatas", method = {RequestMethod.GET})
 | 
	
		
			
				|  |  | +    public Map<String, Object> getPrintPrescriptionDatas(@RequestParam("groupNo") String groupNo, HttpServletRequest httpServletRequest) throws MzException {
 | 
	
		
			
				|  |  |          Map<String, Object> resultMap = new HashMap<>();
 | 
	
		
			
				|  |  | -        User tokenUser = TokenUtil.getUser(httpServletRequest);
 | 
	
		
			
				|  |  | +        //User tokenUser = TokenUtil.getUser(httpServletRequest);
 | 
	
		
			
				|  |  |          try {
 | 
	
		
			
				|  |  | -            DispensingWindows windows = dispensingWindowsService.queryLastDispensingWindowsByUserIdCode(tokenUser.getUserIdCode(),null);
 | 
	
		
			
				|  |  | -            if (windows == null) {
 | 
	
		
			
				|  |  | -                resultMap.put("code", -1);
 | 
	
		
			
				|  |  | -                resultMap.put("message", "当前操作人未设置发药基础参数,请先设置!");
 | 
	
		
			
				|  |  | -                return resultMap;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            List<MzChargeDetail> prescriptions = mzChargeDetailService.queryMzPrescriptionByPrintFlag(0);
 | 
	
		
			
				|  |  | +//            DispensingWindows windows = dispensingWindowsService.queryLastDispensingWindowsByUserIdCode(tokenUser.getUserIdCode(),null);
 | 
	
		
			
				|  |  | +//            if (windows == null) {
 | 
	
		
			
				|  |  | +//                resultMap.put("code", -1);
 | 
	
		
			
				|  |  | +//                resultMap.put("message", "当前操作人未设置发药基础参数,请先设置!");
 | 
	
		
			
				|  |  | +//                return resultMap;
 | 
	
		
			
				|  |  | +//            }
 | 
	
		
			
				|  |  | +            List<MzChargeDetail> prescriptions = mzChargeDetailService.queryMzPrescription(0, groupNo);
 | 
	
		
			
				|  |  |              List<Map> maps = new ArrayList<>();
 | 
	
		
			
				|  |  |              for (int j = 0; j < prescriptions.size(); j++) {
 | 
	
		
			
				|  |  |                  MzChargeDetail prescription = prescriptions.get(j);
 | 
	
	
		
			
				|  | @@ -730,10 +726,10 @@ public class MzPharmacyController {
 | 
	
		
			
				|  |  |                      String manufactoryName = ypZdManufactoryService.queryYpZdManufactoryByCode(ypZdDict.getManuCode());
 | 
	
		
			
				|  |  |                      map.put("manufactoryName", manufactoryName);//生产厂家
 | 
	
		
			
				|  |  |                      String packUnitName = mzPharmacyService.getYpUnitName(ypZdDict.getPackUnit());
 | 
	
		
			
				|  |  | -                    if (chargeDetail.getGroupNo().equals("81")) {
 | 
	
		
			
				|  |  | +                    if (groupNo.equals("81")) {
 | 
	
		
			
				|  |  |                          map.put("ypUnitName", packUnitName);//单位
 | 
	
		
			
				|  |  |                          map.put("drugUnitName", packUnitName);//一次剂量单位
 | 
	
		
			
				|  |  | -                    } else if (chargeDetail.getGroupNo().equals("71")) {
 | 
	
		
			
				|  |  | +                    } else if (groupNo.equals("71")) {
 | 
	
		
			
				|  |  |                          String drugUnitName = mzPharmacyService.getYpUnitName(chargeDetail.getDrugUnit());
 | 
	
		
			
				|  |  |                          map.put("ypUnitName", packUnitName);//单位
 | 
	
		
			
				|  |  |                          map.put("drugUnitName", drugUnitName);//一次剂量单位
 |