|  | @ -13,6 +13,7 @@ import com.yihu.wlyy.entity.organization.HospitalMapping;
 | 
												
													
														
															|  | import com.yihu.wlyy.entity.patient.Patient;
 |  | import com.yihu.wlyy.entity.patient.Patient;
 | 
												
													
														
															|  | import com.yihu.wlyy.entity.patient.SignFamily;
 |  | import com.yihu.wlyy.entity.patient.SignFamily;
 | 
												
													
														
															|  | import com.yihu.wlyy.entity.patient.prescription.*;
 |  | import com.yihu.wlyy.entity.patient.prescription.*;
 | 
												
													
														
															|  | 
 |  | import com.yihu.wlyy.entity.ylz.PayConfigura;
 | 
												
													
														
															|  | import com.yihu.wlyy.entity.zydict.ZyPushLog;
 |  | import com.yihu.wlyy.entity.zydict.ZyPushLog;
 | 
												
													
														
															|  | import com.yihu.wlyy.repository.charge.ChargeDao;
 |  | import com.yihu.wlyy.repository.charge.ChargeDao;
 | 
												
													
														
															|  | import com.yihu.wlyy.repository.doctor.DoctorDao;
 |  | import com.yihu.wlyy.repository.doctor.DoctorDao;
 | 
												
											
												
													
														
															|  | @ -22,11 +23,11 @@ import com.yihu.wlyy.repository.organization.HospitalMappingDao;
 | 
												
													
														
															|  | import com.yihu.wlyy.repository.patient.PatientDao;
 |  | import com.yihu.wlyy.repository.patient.PatientDao;
 | 
												
													
														
															|  | import com.yihu.wlyy.repository.patient.SignFamilyDao;
 |  | import com.yihu.wlyy.repository.patient.SignFamilyDao;
 | 
												
													
														
															|  | import com.yihu.wlyy.repository.prescription.*;
 |  | import com.yihu.wlyy.repository.prescription.*;
 | 
												
													
														
															|  | 
 |  | import com.yihu.wlyy.repository.ylz.PayConfiguraDao;
 | 
												
													
														
															|  | import com.yihu.wlyy.repository.zydict.ZyPushLogDao;
 |  | import com.yihu.wlyy.repository.zydict.ZyPushLogDao;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.BaseService;
 |  | import com.yihu.wlyy.service.BaseService;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.third.httplog.LogService;
 |  | import com.yihu.wlyy.service.third.httplog.LogService;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
 |  | import com.yihu.wlyy.service.third.jw.JwPrescriptionService;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.weixin.wxpay.common.Configure;
 |  | 
 | 
												
													
														
															|  | import com.yihu.wlyy.service.weixin.wxpay.model.BindCard;
 |  | import com.yihu.wlyy.service.weixin.wxpay.model.BindCard;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.weixin.wxpay.model.Charge;
 |  | import com.yihu.wlyy.service.weixin.wxpay.model.Charge;
 | 
												
													
														
															|  | import com.yihu.wlyy.service.weixin.wxpay.service.OnePayService;
 |  | import com.yihu.wlyy.service.weixin.wxpay.service.OnePayService;
 | 
												
											
												
													
														
															|  | @ -82,7 +83,7 @@ public class PatientPrescriptionPayService extends BaseService {
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |     //    引入实例
 |  |     //    引入实例
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private Configure config;
 |  | 
 | 
												
													
														
															|  | 
 |  |     private PayConfiguraDao configuraDao;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
													
														
															|  |     private ObjectMapper objectMapper;
 |  |     private ObjectMapper objectMapper;
 | 
												
													
														
															|  |     @Autowired
 |  |     @Autowired
 | 
												
											
												
													
														
															|  | @ -258,6 +259,7 @@ public class PatientPrescriptionPayService extends BaseService {
 | 
												
													
														
															|  |      * @return
 |  |      * @return
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     public Map recipeReturnUrl(HttpServletRequest request, HttpServletResponse response, String accessToken) throws Exception {
 |  |     public Map recipeReturnUrl(HttpServletRequest request, HttpServletResponse response, String accessToken) throws Exception {
 | 
												
													
														
															|  | 
 |  |         PayConfigura config = configuraDao.findWorkConfigura();
 | 
												
													
														
															|  |         Map resultMap = new HashMap();
 |  |         Map resultMap = new HashMap();
 | 
												
													
														
															|  |         Prescription prescription = null;
 |  |         Prescription prescription = null;
 | 
												
													
														
															|  |         int flag = 0;
 |  |         int flag = 0;
 | 
												
											
												
													
														
															|  | @ -431,6 +433,7 @@ public class PatientPrescriptionPayService extends BaseService {
 | 
												
													
														
															|  |      * @return
 |  |      * @return
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     public String receiveRecipeNotify(HttpServletRequest request, HttpServletResponse response) throws Exception {
 |  |     public String receiveRecipeNotify(HttpServletRequest request, HttpServletResponse response) throws Exception {
 | 
												
													
														
															|  | 
 |  |         PayConfigura config = configuraDao.findWorkConfigura();
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         String result = null;
 |  |         String result = null;
 | 
												
													
														
															|  |         Prescription prescription = null;
 |  |         Prescription prescription = null;
 | 
												
											
												
													
														
															|  | @ -642,6 +645,7 @@ public class PatientPrescriptionPayService extends BaseService {
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     @Transactional
 |  |     @Transactional
 | 
												
													
														
															|  |     public Map charge(int type, String addressJson, String orgCode, String prescriptionCode, int totalAmount, String people, String accessToken, String returnUrl,String deliveryTime) throws Exception {
 |  |     public Map charge(int type, String addressJson, String orgCode, String prescriptionCode, int totalAmount, String people, String accessToken, String returnUrl,String deliveryTime) throws Exception {
 | 
												
													
														
															|  | 
 |  |         PayConfigura config = configuraDao.findWorkConfigura();
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         Map resultMap = new HashMap();
 |  |         Map resultMap = new HashMap();
 | 
												
													
														
															|  |         Prescription prescription = null;
 |  |         Prescription prescription = null;
 | 
												
											
												
													
														
															|  | @ -807,7 +811,7 @@ public class PatientPrescriptionPayService extends BaseService {
 | 
												
													
														
															|  |                     //根据居民code查询团队长及所在团队待处理订单数量
 |  |                     //根据居民code查询团队长及所在团队待处理订单数量
 | 
												
													
														
															|  |                     String sql = "SELECT a.id teamCode,a.leader_code leaderCode,d.`name` leaderName " +
 |  |                     String sql = "SELECT a.id teamCode,a.leader_code leaderCode,d.`name` leaderName " +
 | 
												
													
														
															|  |                             " FROM wlyy_sign_family t,wlyy_admin_team a,wlyy_doctor d " +
 |  |                             " FROM wlyy_sign_family t,wlyy_admin_team a,wlyy_doctor d " +
 | 
												
													
														
															|  |                             " WHERE t.admin_team_code=a.id AND d.code=a.leader_code " +
 |  | 
 | 
												
													
														
															|  | 
 |  |                             " WHERE t.`status`=1 AND t.admin_team_code=a.id AND d.code=a.leader_code " +
 | 
												
													
														
															|  |                             " AND t.patient=? ";
 |  |                             " AND t.patient=? ";
 | 
												
													
														
															|  |                     Map<String, Object> team = jdbcTemplate.queryForMap(sql, people);
 |  |                     Map<String, Object> team = jdbcTemplate.queryForMap(sql, people);
 | 
												
													
														
															|  |                     logger.debug("================> get order amount!");
 |  |                     logger.debug("================> get order amount!");
 | 
												
											
												
													
														
															|  | @ -1025,6 +1029,8 @@ public class PatientPrescriptionPayService extends BaseService {
 | 
												
													
														
															|  |      * 家庭医生签约支付查询
 |  |      * 家庭医生签约支付查询
 | 
												
													
														
															|  |      */
 |  |      */
 | 
												
													
														
															|  |     public String chargeQuery(String code, String accessToken) throws Exception {
 |  |     public String chargeQuery(String code, String accessToken) throws Exception {
 | 
												
													
														
															|  | 
 |  |         PayConfigura config = configuraDao.findWorkConfigura();
 | 
												
													
														
															|  | 
 |  | 
 | 
												
													
														
															|  |         int flag = 0;
 |  |         int flag = 0;
 | 
												
													
														
															|  |         Boolean isSuccess = true;
 |  |         Boolean isSuccess = true;
 | 
												
													
														
															|  |         String msgBody = "";
 |  |         String msgBody = "";
 |