|
@ -1,6 +1,7 @@
|
|
|
package com.yihu.wlyy.web.doctor.sign;
|
|
|
|
|
|
import com.yihu.wlyy.aop.ObserverRequired;
|
|
|
import com.yihu.wlyy.entity.address.Country;
|
|
|
import com.yihu.wlyy.entity.address.Street;
|
|
|
import com.yihu.wlyy.entity.address.Town;
|
|
|
import com.yihu.wlyy.entity.patient.Patient;
|
|
@ -51,14 +52,7 @@ public class DoctorSignController extends WeixinBaseController {
|
|
|
StringRedisTemplate redisTemplate;
|
|
|
@Autowired
|
|
|
private PatientService patientService;
|
|
|
@Autowired
|
|
|
private TownDao townDao;
|
|
|
@Autowired
|
|
|
private StreetDao streetDao;
|
|
|
/**
|
|
|
* 厦门市
|
|
|
*/
|
|
|
public static String city ="350200";
|
|
|
|
|
|
/**
|
|
|
* 三师签约列表查询
|
|
|
*
|
|
@ -702,13 +696,35 @@ public class DoctorSignController extends WeixinBaseController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public JSONArray getTownList(){
|
|
|
List<Town> towns = townDao.findByCityCode(city);
|
|
|
return new JSONArray(towns);
|
|
|
@RequestMapping(value = "/getTownList", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getTownList(){
|
|
|
try {
|
|
|
return write(200, "查询成功", "data", signWebService.getTownList());
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
public JSONArray getStreetList(String town){
|
|
|
Iterable<Street> streets = streetDao.findByTown(town);
|
|
|
return new JSONArray(streets);
|
|
|
@RequestMapping(value = "/getStreetListByTown", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getStreetListByTown(String town){
|
|
|
try {
|
|
|
return write(200, "查询成功", "data", signWebService.getStreetListByTown(town));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
|
|
|
}
|
|
|
@RequestMapping(value = "/getCountryListByStreet", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
@ResponseBody
|
|
|
public String getCountryListByStreet(String street){
|
|
|
try {
|
|
|
return write(200, "查询成功", "data", signWebService.getCountryListByStreet(street));
|
|
|
} catch (Exception e) {
|
|
|
error(e);
|
|
|
return error(-1, "查询失败");
|
|
|
}
|
|
|
}
|
|
|
// public JSONArray get
|
|
|
}
|