kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-api/src/main/java/com/kidgrow/usercenter/model/SysDepartment.java
@@ -109,8 +109,17 @@ private String departmentLink; /** * 部门联系人 * 部门联系人电话 */ private String departmentTel; /** * 是否筛查科室 0为否 1 为是 */ private Byte isScreen; /** * 是否新筛查端 0为否 1 为是 */ private Byte isNewScreenclient; } kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/java/com/kidgrow/usercenter/service/impl/SysUserServiceImpl.java
@@ -156,9 +156,35 @@ //医院信息 DoctorUserAll doctorUserAllVo = baseMapper.findDoctorUserAllData(sysUser.getId()); if (doctorUserAllVo != null) { loginAppUser.setDoctorUserAllVO(doctorUserAllVo); //是否医院管理员 loginAppUser.setHAdminUser(doctorUserAllVo.getIsAdminUser()); //1表示调用老系统接口,2表示调用新系统接口,3表示不执行接口调用 byte state=0; if(doctorUserAllVo.getDepScreen()==null&&doctorUserAllVo.getDepNewScreenclient()==null){ state=1; } if(doctorUserAllVo.getDepScreen().equals(0)){ state=3; } if(doctorUserAllVo.getDepScreen().equals(1)){ if(doctorUserAllVo.getDepNewScreenclient().equals(1)){ state=2; } if(doctorUserAllVo.getDepNewScreenclient().equals(0)){ state=1; } } doctorUserAllVo.setInterfaceState(state); loginAppUser.setDoctorUserAllVO(doctorUserAllVo); // 1、is_screen为空时,is_new_screenclient必须为空; // 2、is_screen不为空时,is_new_screenclient可为空,可不为空; // 3、当两个都为空时,默认调用老系统的接口; // 4、当is_screen为false时,不论is_new_screenclient是什么不需要调用任何接口; // 5、当is_screen为true时,is_new_screenclient为false或空时,调用老系统的接口; // 6、当is_screen为true时,is_new_screenclient为true时,调用新系统的接口; } } return loginAppUser; kidgrow-business/kidgrow-usercenter/kidgrow-usercenter-biz/src/main/resources/mapper/SysUserMapper.xml
@@ -145,7 +145,9 @@ sysdep.sale_user_tel, sysdep.enabled depenabled, sysdep.accounts_count, sysdep.is_del depdel sysdep.is_del depdel, sysdep.is_screen depScreen, sysdep.is_new_screenclient depNewScreenclient, FROM sys_user sysuser left JOIN sys_doctor sysdoctor on sysuser.id=sysdoctor.user_id left JOIN sys_hospital syshos on sysdoctor.hospital_id=syshos.id kidgrow-commons/kidgrow-common-spring-boot-starter/src/main/java/com/kidgrow/common/model/DoctorUserAll.java
@@ -188,4 +188,16 @@ * 销售代表电话 */ private String saleUserTel; /** * 是否筛查科室 0为否 1 为是 */ private Byte depScreen; /** * 是否新筛查端 0为否 1 为是 */ private Byte depNewScreenclient; /** * 1表示调用老系统接口,2表示调用新系统接口,3表示不执行接口调用 */ private Byte interfaceState; } kidgrow-web/kidgrow-web-manager/src/main/resources/static/module/apiUrl.js
@@ -1,8 +1,8 @@ var my_api_server_url = 'http://127.0.0.1:8888/'; // var my_api_server_url = 'http://127.0.0.1:8888/'; // var my_api_server_url = 'http://192.168.2.240:8888/'; // var my_api_server_url = 'http://open.zuul.kidgrow.cloud/'; // var my_api_server_url = 'https://zuul.kidgrow.cloud/'; //var my_api_server_url = 'https://zuul.kidgrow.cloud/'; var my_api_server_url = 'https://zuul.kidgrow.cloud/'; if(my_api_server_url.indexOf("http")<0) { kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/opration/hospital_form_base.html
@@ -40,7 +40,8 @@ <div class="layui-input-block"> <input name="departmentName" id="departmentName" placeholder="科室名称" type="text" class="layui-input" maxlength="20" lay-verify="required" required style="width: 175px;" />  </div>   </div> </div> <div class="layui-col-sm3"> <label class="layui-form-label">科室电话</label> @@ -51,7 +52,27 @@ <div class="layui-col-sm3"> <label class="layui-form-label">科室联系人</label> <div class="layui-input-block"> <input name="departmentLink" id="departmentLink" type="text" class="layui-input" maxlength="20" style="width: 200px;" /> <input name="departmentLink" id="departmentLink" type="text" class="layui-input" maxlength="20" style="width: 200px;" /> </div> </div> </div> </div> <div class="layui-form-item"> <div class="layui-row"> <div class="layui-col-sm6"> <label class="layui-form-label">是否筛查科室</label> <div class="layui-input-block"> <input type="radio" name="isScreen" value="1" title="是"> <input type="radio" name="isScreen" value="0" title="否" >   </div> </div> <div class="layui-col-sm6"> <label class="layui-form-label">是否新筛查</label> <div class="layui-input-block"> <input type="radio" name="isNewScreenclient" value="1" title="是"> <input type="radio" name="isNewScreenclient" value="0" title="否" > </div> </div> </div> @@ -94,12 +115,14 @@ <div class="layui-col-sm4"> <select lay-verify="required" required id="hospitalProvince" placeholder="省份" lay-filter="hospitalProvince" style="width: 400px;"> </select></div> </select> </div> <div class="layui-col-sm4"> <select id="hospitalCity" lay-verify="required" required placeholder="市" lay-filter="hospitalCity" style="width: 350px;"> <option value="">选择市</option> </select></div> </select> </div> <div class="layui-col-sm4"> <select id="hospitalArea" lay-verify="required" required placeholder="区县" lay-filter="hospitalArea" style="width: 350px;"> @@ -343,7 +366,10 @@ "#hospitalCity option:selected").text() : ""; data.field.hospitalArea = $("#hospitalArea option:selected").text() != "选择区县" ? $( "#hospitalArea option:selected").text() : ""; let isScreen = data.field.isScreen let isNewScreenclient = data.field.isNewScreenclient delete data.field.isScreen delete data.field.isNewScreenclient admin.req('api-user/syshospital', JSON.stringify(data.field), function (data) { if (data.code === 0) { //存储科室数据 @@ -362,6 +388,8 @@ accountsCount: $("#accountsCount").val(), departmentTel: $("#departmentTel").val(), departmentLink: $("#departmentLink").val(), isScreen, isNewScreenclient, }; admin.req('api-user/sysdepartment/'+data.data.id, JSON.stringify(departmentData), function (data) { @@ -489,7 +517,10 @@ $('#saleUserName').val(departData[0].saleUserId); $('#departmentLink').val(departData[0].departmentLink); $('#departmentTel').val(departData[0].departmentTel); $("input[name=isScreen][value=1]").attr("checked", departData[0].isScreen == 1 ? true : false); $("input[name=isScreen][value=0]").attr("checked", departData[0].isScreen == null || departData[0].isScreen==0 ? true : false); $("input[name=isNewScreenclient][value=1]").attr("checked", departData[0].isNewScreenclient == 1 ? true : false); $("input[name=isNewScreenclient][value=0]").attr("checked", departData[0].isNewScreenclient == null || departData[0].isNewScreenclient==0? true : false); if (hosIdForEdit != "") { $("#serverUserTel").val(departData[0] .serverUserTel); kidgrow-web/kidgrow-web-manager/src/main/resources/static/pages/system/user_form.html
@@ -70,10 +70,10 @@ if (user) { form.val('user-form', user); $('#user-form').attr('method', 'POST'); if(!(user.mobile==null || user.mobile.trim()=="")){ $("#mobile").prop("disabled",true) } $("#username").prop("disabled",true) // if(!(user.mobile==null || user.mobile.trim()=="")){ // $("#mobile").prop("disabled",true) // } // $("#username").prop("disabled",true) var rds = new Array(); for (var i = 0; i < user.roles.length; i++) { rds.push(user.roles[i].id);