|
@ -13,6 +13,7 @@ import com.yihu.mm.util.JSONUtil;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiParam;
|
|
import io.swagger.annotations.ApiParam;
|
|
|
|
import org.json.JSONException;
|
|
import org.json.JSONObject;
|
|
import org.json.JSONObject;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@ -63,7 +64,7 @@ public class PhysicalExaminationController extends WeixinBaseController {
|
|
@ApiOperation(value = "新增预约单/获取咨询编号等信息")
|
|
@ApiOperation(value = "新增预约单/获取咨询编号等信息")
|
|
@RequestMapping(value = "/insertslip",produces="application/json;charset=UTF-8")
|
|
@RequestMapping(value = "/insertslip",produces="application/json;charset=UTF-8")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String insertslip(@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode, HttpServletRequest req){
|
|
|
|
|
|
public String insertslip(@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode, HttpServletRequest req) throws JSONException {
|
|
Patient patient = patientService.findByCode(patientCode);
|
|
Patient patient = patientService.findByCode(patientCode);
|
|
int isSignJM = patientService.isSignJM(patientCode);
|
|
int isSignJM = patientService.isSignJM(patientCode);
|
|
|
|
|
|
@ -95,7 +96,7 @@ public class PhysicalExaminationController extends WeixinBaseController {
|
|
@ResponseBody
|
|
@ResponseBody
|
|
public String findQuestion(@ApiParam(name = "pb_id", value = "问卷编号,第一题为0", required = true)@RequestParam(required = true, name = "pb_id") String pb_id,
|
|
public String findQuestion(@ApiParam(name = "pb_id", value = "问卷编号,第一题为0", required = true)@RequestParam(required = true, name = "pb_id") String pb_id,
|
|
@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode,
|
|
@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode,
|
|
@ApiParam(name = "ct_id", value = "咨询编号", required = true)@RequestParam(required = true, name = "ct_id") String ct_id) throws IOException {
|
|
|
|
|
|
@ApiParam(name = "ct_id", value = "咨询编号", required = true)@RequestParam(required = true, name = "ct_id") String ct_id) throws IOException, JSONException {
|
|
|
|
|
|
String question = physicalExaminationService.findQuestion(examCode, pb_id, ct_id);
|
|
String question = physicalExaminationService.findQuestion(examCode, pb_id, ct_id);
|
|
|
|
|
|
@ -144,7 +145,7 @@ public class PhysicalExaminationController extends WeixinBaseController {
|
|
@ApiParam(name = "pb_id", value = "问卷编号,第一题为0", required = true)@RequestParam(required = true, name = "pb_id") String pb_id,
|
|
@ApiParam(name = "pb_id", value = "问卷编号,第一题为0", required = true)@RequestParam(required = true, name = "pb_id") String pb_id,
|
|
@ApiParam(name = "type", value = "试题类型(0单选 ,1多选)", required = true)@RequestParam(required = true, name = "type") String type,
|
|
@ApiParam(name = "type", value = "试题类型(0单选 ,1多选)", required = true)@RequestParam(required = true, name = "type") String type,
|
|
@ApiParam(name = "dc_answer", value = "问题答案", required = true)@RequestParam(required = true, name = "dc_answer") String dc_answer,
|
|
@ApiParam(name = "dc_answer", value = "问题答案", required = true)@RequestParam(required = true, name = "dc_answer") String dc_answer,
|
|
@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode){
|
|
|
|
|
|
@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode) throws JSONException {
|
|
//提交答案
|
|
//提交答案
|
|
String result = physicalExaminationService.handleExam(examCode, pb_id, dc_answer, ct_id);
|
|
String result = physicalExaminationService.handleExam(examCode, pb_id, dc_answer, ct_id);
|
|
JSONObject resultJson = new JSONObject(result);
|
|
JSONObject resultJson = new JSONObject(result);
|
|
@ -224,7 +225,7 @@ public class PhysicalExaminationController extends WeixinBaseController {
|
|
public String dillphoneimgdata(@RequestParam MultipartFile file,
|
|
public String dillphoneimgdata(@RequestParam MultipartFile file,
|
|
@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode,
|
|
@ApiParam(name = "patientCode", value = "居民code", required = true)@RequestParam(required = true, name = "patientCode") String patientCode,
|
|
@ApiParam(name = "type", value = "1.脸型 2.舌像 3.声音", required = true)@RequestParam(required = true, name = "type") String type,
|
|
@ApiParam(name = "type", value = "1.脸型 2.舌像 3.声音", required = true)@RequestParam(required = true, name = "type") String type,
|
|
@ApiParam(name = "ct_id", value = "咨询编号", required = true)@RequestParam(required = true, name = "ct_id") String ct_id){
|
|
|
|
|
|
@ApiParam(name = "ct_id", value = "咨询编号", required = true)@RequestParam(required = true, name = "ct_id") String ct_id) throws JSONException {
|
|
String uploadAttachment = physicalExaminationService.uploadAttachment(file);
|
|
String uploadAttachment = physicalExaminationService.uploadAttachment(file);
|
|
JSONObject uploadResult = new JSONObject(uploadAttachment);
|
|
JSONObject uploadResult = new JSONObject(uploadAttachment);
|
|
if(physicalExaminationService.getSuccess(uploadResult)){
|
|
if(physicalExaminationService.getSuccess(uploadResult)){
|