|
@ -13,6 +13,7 @@ import com.yihu.wlyy.entity.organization.HospitalMapping;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
|
import com.yihu.wlyy.entity.patient.SignFamily;
|
|
|
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.repository.charge.ChargeDao;
|
|
|
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.SignFamilyDao;
|
|
|
import com.yihu.wlyy.repository.prescription.*;
|
|
|
import com.yihu.wlyy.repository.ylz.PayConfiguraDao;
|
|
|
import com.yihu.wlyy.repository.zydict.ZyPushLogDao;
|
|
|
import com.yihu.wlyy.service.BaseService;
|
|
|
import com.yihu.wlyy.service.third.httplog.LogService;
|
|
|
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.Charge;
|
|
|
import com.yihu.wlyy.service.weixin.wxpay.service.OnePayService;
|
|
@ -82,7 +83,7 @@ public class PatientPrescriptionPayService extends BaseService {
|
|
|
|
|
|
// 引入实例
|
|
|
@Autowired
|
|
|
private Configure config;
|
|
|
private PayConfiguraDao configuraDao;
|
|
|
@Autowired
|
|
|
private ObjectMapper objectMapper;
|
|
|
@Autowired
|
|
@ -258,6 +259,7 @@ public class PatientPrescriptionPayService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
public Map recipeReturnUrl(HttpServletRequest request, HttpServletResponse response, String accessToken) throws Exception {
|
|
|
PayConfigura config = configuraDao.findWorkConfigura();
|
|
|
Map resultMap = new HashMap();
|
|
|
Prescription prescription = null;
|
|
|
int flag = 0;
|
|
@ -431,6 +433,7 @@ public class PatientPrescriptionPayService extends BaseService {
|
|
|
* @return
|
|
|
*/
|
|
|
public String receiveRecipeNotify(HttpServletRequest request, HttpServletResponse response) throws Exception {
|
|
|
PayConfigura config = configuraDao.findWorkConfigura();
|
|
|
|
|
|
String result = null;
|
|
|
Prescription prescription = null;
|
|
@ -642,6 +645,7 @@ public class PatientPrescriptionPayService extends BaseService {
|
|
|
*/
|
|
|
@Transactional
|
|
|
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();
|
|
|
Prescription prescription = null;
|
|
@ -807,7 +811,7 @@ public class PatientPrescriptionPayService extends BaseService {
|
|
|
//根据居民code查询团队长及所在团队待处理订单数量
|
|
|
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 " +
|
|
|
" 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=? ";
|
|
|
Map<String, Object> team = jdbcTemplate.queryForMap(sql, people);
|
|
|
logger.debug("================> get order amount!");
|
|
@ -1025,6 +1029,8 @@ public class PatientPrescriptionPayService extends BaseService {
|
|
|
* 家庭医生签约支付查询
|
|
|
*/
|
|
|
public String chargeQuery(String code, String accessToken) throws Exception {
|
|
|
PayConfigura config = configuraDao.findWorkConfigura();
|
|
|
|
|
|
int flag = 0;
|
|
|
Boolean isSuccess = true;
|
|
|
String msgBody = "";
|