|
@ -1,5 +1,6 @@
|
|
package com.yihu.wlyy.web.patient.prescription;
|
|
package com.yihu.wlyy.web.patient.prescription;
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
import com.yihu.wlyy.entity.patient.prescription.Prescription;
|
|
import com.yihu.wlyy.entity.patient.prescription.Prescription;
|
|
@ -13,6 +14,8 @@ import com.yihu.wlyy.web.WeixinBaseController;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import org.apache.commons.collections.map.HashedMap;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.json.JSONArray;
|
|
import org.json.JSONArray;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.http.MediaType;
|
|
import org.springframework.http.MediaType;
|
|
@ -265,4 +268,22 @@ public class PatientPrescriptionController extends WeixinBaseController {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param prescriptionCode
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
@RequestMapping(value = "/checkRecipeNoPay",method = RequestMethod.POST)
|
|
|
|
@ApiOperation(value = "查询待结算订单是否作废,如果作废更新本地数据为线下取消")
|
|
|
|
public String checkRecipeNoPay(@ApiParam(value = "处方业务主键",name = "prescriptionCode")@RequestParam(value = "prescriptionCode")String prescriptionCode){
|
|
|
|
try{
|
|
|
|
//Prescription prescription = prescriptionService.findByCode(prescriptionCode);
|
|
|
|
JSONObject object = prescriptionService.checkRecipeNoPay(2,prescriptionCode);
|
|
|
|
return write(200,"操作成功!","result",object);
|
|
|
|
}catch (Exception e){
|
|
|
|
error(e);
|
|
|
|
return error(-1,"操作失误!"+e.getMessage());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|