|
@ -12,8 +12,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
/**
|
|
|
* Created by Administrator on 2017/8/14.
|
|
@ -33,7 +31,7 @@ public class YueRenController extends BaseController {
|
|
|
* 获取每个接口需要传递的key值
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/phonekey", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "/phonekey", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String getPhoneKey() {
|
|
|
String postStr = remoteCall("/yueren/phonekey", new JSONObject());
|
|
@ -66,7 +64,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param sl_pass 报告单是否审核通过
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "insertslip", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "insertslip", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String insertSlip(String key, String sl_date,String sl_state,String u_tel, String u_name, String u_sex,
|
|
|
String sh_id, String u_idnum, String u_native, String u_birthday, String u_province,
|
|
@ -98,7 +96,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param file 附件
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/uploadattachment", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "/uploadattachment", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String uploadAttachment(String file, String e_no) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -117,7 +115,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param object_type 对象类型,备选数值(1,2,3)1脸型,2舌像,3录音
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "dillphoneimgdata", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "dillphoneimgdata", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String inserTemp(String key, String at_id, String answer, String answer_type, String ct_id, String object_type) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -140,9 +138,11 @@ public class YueRenController extends BaseController {
|
|
|
* @param sh_id 所属门店编号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "findtest", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "findtest", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String findTest(String key, String tp_type, String sh_id) {
|
|
|
String key1 = request.getParameter("key");
|
|
|
System.out.println(key1);
|
|
|
JSONObject params = new JSONObject();
|
|
|
params.put("key", key);
|
|
|
params.put("tp_type", tp_type);
|
|
@ -159,7 +159,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param pb_id 问题编号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "giveproblem", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "giveproblem", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String giveproblem(String key,String ct_id, String tp_id, String pb_id) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -180,7 +180,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param dc_answer 答案数组
|
|
|
* @return 将用户提交的试卷题目的答案进行保存
|
|
|
*/
|
|
|
@RequestMapping(value = "handleproblem", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "handleproblem", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String handleproblem(String key, String ct_id, String tp_id,String pb_id, String[] dc_answer) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -199,7 +199,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param ct_id 咨询编号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "centralizedproblem", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "centralizedproblem", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String centralizedproblem(String key, String ct_id) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -215,7 +215,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param ct_id 咨询编号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "conclusionfactor", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "conclusionfactor", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String conclusionFactor(String key, String ct_id) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -233,7 +233,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param ct_id 咨询编号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "insertconconhealth", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "insertconconhealth", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String insertConsultConclusionHealth(String key, String ct_id) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -250,7 +250,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param reqtype 请求类型(备选数值1)
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "findconconhealth", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "findconconhealth", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String insertConsultConclusion(String key, String ct_id, String reqtype) {
|
|
|
JSONObject params = new JSONObject();
|
|
@ -267,7 +267,7 @@ public class YueRenController extends BaseController {
|
|
|
* @param ct_id 咨询编号
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "findintegral", method = RequestMethod.POST)
|
|
|
@RequestMapping(value = "findintegral", method = RequestMethod.POST, produces = "application/json;charset=UTF-8")
|
|
|
@ResponseBody
|
|
|
public String findIntegral(String key, String ct_id) {
|
|
|
JSONObject params = new JSONObject();
|