|
@ -437,21 +437,17 @@ public class FamilyContractController extends BaseController {
|
|
|
* 签约申请
|
|
|
*
|
|
|
* @param doctor 医生code
|
|
|
* @param doctorType 医生类型 2:全科 3:健管
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "sign")
|
|
|
@ResponseBody
|
|
|
public String sign(String doctor, int doctorType) {
|
|
|
public String sign(String doctor) {
|
|
|
try {
|
|
|
if (StringUtils.isEmpty(doctor)) {
|
|
|
return error(-1, "签约医生不能为空");
|
|
|
}
|
|
|
if (doctorType != 2 && doctorType != 3) {
|
|
|
return error(-1, "医生类型参数错误");
|
|
|
}
|
|
|
|
|
|
int result = familyContractService.sign(doctor, getUID(), doctorType);
|
|
|
int result = familyContractService.sign(doctor, getUID());
|
|
|
|
|
|
if (result == -1) {
|
|
|
return error(-1, "用户信息查询失败");
|