Quellcode durchsuchen

Merge branch 'dev' of chenweida/patient-co-management into dev

chenweida vor 8 Jahren
Ursprung
Commit
dca27f5dd8

+ 2 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/sign/FamilyContractService.java

@ -527,10 +527,9 @@ public class FamilyContractService extends BaseService {
     *
     *
     * @param doctor     签约医生
     * @param doctor     签约医生
     * @param patient    居民code
     * @param patient    居民code
     * @param doctorType 医生类型
     * @return
     * @return
     */
     */
    public int sign(String doctor, String patient, int doctorType) throws Exception {
    public int sign(String doctor, String patient) throws Exception {
        Patient p = patientDao.findByCode(patient);
        Patient p = patientDao.findByCode(patient);
        if (p == null) {
        if (p == null) {
            return -1;
            return -1;
@ -556,7 +555,7 @@ public class FamilyContractService extends BaseService {
        sf.setCzrq(new Date());
        sf.setCzrq(new Date());
        sf.setPatientApplyDate(new Date());
        sf.setPatientApplyDate(new Date());
        if (doctorType == 2) {
        if (d.getLevel() == 2) {
            sf.setDoctor(doctor);
            sf.setDoctor(doctor);
            sf.setDoctorName(d.getName());
            sf.setDoctorName(d.getName());
        } else {
        } else {

+ 2 - 6
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/patient/sign/FamilyContractController.java

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