|
@ -0,0 +1,37 @@
|
|
|
package com.yihu.wlyy.web.patient.healthBank;
|
|
|
|
|
|
import com.yihu.wlyy.service.app.healthBank.PatientHealthBankService;
|
|
|
import com.yihu.wlyy.web.BaseController;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RestController
|
|
|
@RequestMapping(value = "/patient/healthBank", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
|
|
|
@Api(description = "患者端-健康银行管理")
|
|
|
public class PatientHealthBankController extends BaseController {
|
|
|
@Autowired
|
|
|
private PatientHealthBankService patientHealthBankService;
|
|
|
|
|
|
/**
|
|
|
* 判断居民是否为海沧区居民
|
|
|
* @param patient
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/distinguish", method = RequestMethod.GET)
|
|
|
@ApiOperation("区分门户显示(判断是否为海沧区居民)")
|
|
|
public String distinguish(@RequestParam(value = "patient") String patient){
|
|
|
try {
|
|
|
Boolean d = patientHealthBankService.distinguish(patient);
|
|
|
return write(200, "查询成功!","data", d);
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
}
|