|  | @ -3,6 +3,7 @@ package com.yihu.wlyy.web.doctor.prescription;
 | 
	
		
			
				|  |  | import com.alibaba.fastjson.JSONObject;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.adapter.PresModeAdapter;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.aop.ObserverRequired;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.doctor.team.admin.AdminTeam;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.patient.prescription.Prescription;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.patient.prescription.PrescriptionExpressage;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.entity.patient.prescription.PrescriptionInfo;
 | 
	
	
		
			
				|  | @ -11,6 +12,7 @@ import com.yihu.wlyy.service.app.prescription.PrescriptionExpressageService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.prescription.PrescriptionInfoService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.prescription.PrescriptionPayService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.prescription.PrescriptionService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.app.team.AdminTeamService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.service.third.jw.ZyDictService;
 | 
	
		
			
				|  |  | import com.yihu.wlyy.web.BaseController;
 | 
	
	
		
			
				|  | @ -44,6 +46,8 @@ public class PrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |     private PresModeAdapter adapter;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private ZyDictService zyDictService;
 | 
	
		
			
				|  |  |     @Autowired
 | 
	
		
			
				|  |  |     private AdminTeamService adminTeamService;
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPrescriptionFilter", method = RequestMethod.GET)
 | 
	
	
		
			
				|  | @ -171,9 +175,11 @@ public class PrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |     public String prescriptionFollow(
 | 
	
		
			
				|  |  |             @RequestParam(required = true) @ApiParam(value = "处方code", name = "prescriptionCode") String prescriptionCode) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |            JSONObject jo = new JSONObject();
 | 
	
		
			
				|  |  |             JSONObject jo = new JSONObject();
 | 
	
		
			
				|  |  |             //获取处方信息
 | 
	
		
			
				|  |  |             Prescription prescription = prescriptionService.findByCode(prescriptionCode);
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             AdminTeam adminTeam = adminTeamService.getTeam(prescription.getAdminTeamId());
 | 
	
		
			
				|  |  |             //获取处方药品信息
 | 
	
		
			
				|  |  |             List<PrescriptionInfo> prescriptionInfos = prescriptionInfoService.getPrescriptionInfo(prescriptionCode);
 | 
	
		
			
				|  |  |             //获取付款信息
 | 
	
	
		
			
				|  | @ -183,6 +189,7 @@ public class PrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |             jo.put("prescriptionInfos", prescriptionInfos);
 | 
	
		
			
				|  |  |             jo.put("prescriptionPay", prescriptionPay);
 | 
	
		
			
				|  |  |             jo.put("prescriptionExpressage", prescriptionExpressage);
 | 
	
		
			
				|  |  |             jo.put("leadCode", adminTeam.getLeaderCode());//团队长code
 | 
	
		
			
				|  |  |             if (prescription != null) {
 | 
	
		
			
				|  |  |                 jo.put("prescriptionHospital", prescription.getHospitalName());//出药机构
 | 
	
		
			
				|  |  |                 jo.put("dispensaryDispensaryType", prescription.getDispensaryType());//处方配送方式
 | 
	
	
		
			
				|  | @ -331,7 +338,7 @@ public class PrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |              @RequestParam(required = true) @ApiParam(value = "健康管理师Code", name = "healthDoctor") String
 | 
	
		
			
				|  |  |                      healthDoctor) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return write(200, "操作成功!", "data", prescriptionInfoService.distributionHealthDoctor(codes, healthDoctor,getUID()));
 | 
	
		
			
				|  |  |             return write(200, "操作成功!", "data", prescriptionInfoService.distributionHealthDoctor(codes, healthDoctor, getUID()));
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             error(e);
 | 
	
		
			
				|  |  |             return error(-1, "查询失败!");
 | 
	
	
		
			
				|  | @ -453,6 +460,7 @@ public class PrescriptionInfoController extends BaseController {
 | 
	
		
			
				|  |  |             return error(-1, "查询失败!");
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping(value = "/getPhysicMinDose", method = RequestMethod.GET)
 | 
	
		
			
				|  |  |     @ApiOperation(value = "获取药品最小用量")
 | 
	
		
			
				|  |  |     public String getPhysicMinDose(String code) {
 |