| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableLogic; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.fasterxml.jackson.databind.annotation.JsonSerialize; |
| | | import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
| | |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | |
| | | @TableLogic |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | |
| | | hospital_id =#{p.hospitalId} |
| | | AND department_id =#{p.departmentId} |
| | | AND ( |
| | | public_type = 0 |
| | | OR ( |
| | | doctor_id =#{p.doctorId} AND public_type = 1)))) |
| | | |
| | | <if test="p.publicType==null or p.publicType==''"> |
| | | public_type = 0 OR |
| | | </if> |
| | | ( |
| | | doctor_id =#{p.doctorId} |
| | | <if test="p.publicType!=null and p.publicType!=''"> |
| | | AND public_type = #{p.publicType} |
| | | </if> |
| | | <if test="p.templeteTitle !=null and p.templeteTitle!=''"> |
| | | and templete_title like '%${p.templeteTitle}%' |
| | | </if> |
| | | |
| | | )))) |
| | | ORDER BY public_type DESC,id desc |
| | | </select> |
| | | |
| | |
| | | { field: 'diagnosticDepartName', width: "10%", title: '科室名称' }, |
| | | { field: 'diagnosticDoctorName', width: "10%", title: '医生姓名' }, |
| | | { field: 'childName', width: "10%", title: '患者姓名' }, |
| | | { field: 'childSex', width: "10%", title: '性别' }, |
| | | { field: 'childSex', width: "10%", title: '性别',templet:function(d){ |
| | | if(d.childSex==0){ |
| | | return "男"; |
| | | }else if(d.childSex==1){ |
| | | return "女"; |
| | | } |
| | | } }, |
| | | { field: 'childBirthday', width: "10%", title: '出生日期',templet:function(d){ |
| | | return new Date(d.createTime).dateFormat("yyyy-MM-dd"); |
| | | return new Date(d.childBirthday).dateFormat("yyyy-MM-dd"); |
| | | }}, |
| | | { field: 'childPhone', width: "10%", title: '联系电话' }, |
| | | { |
| | |
| | | }, |
| | | { |
| | | field: 'updateTime', width: "10%", sort: true, title: '修改时间', templet: function (d) { |
| | | return new Date(d.createTime).dateFormat("yyyy-MM-dd hh:mm"); |
| | | if(d.updateTime==null){ |
| | | return ""; |
| | | } |
| | | return new Date(d.updateTime).dateFormat("yyyy-MM-dd hh:mm"); |
| | | } |
| | | }, |
| | | { field: 'enabled', width: "10%", templet: '#diagnostic-table-bar', title: '查看' } |
| | |
| | | $("#password").removeAttr("required") |
| | | $("#passwordSure").removeAttr("lay-verify") |
| | | |
| | | $("#doctorState-shi").attr("checked", doctor.doctorState? true : false); |
| | | $("#doctorState-fou").attr("checked", !doctor.doctorState ? true : false); |
| | | $("#isTop-shi").attr("checked", doctor.isTop? true : false); |
| | | $("#isTop-fou").attr("checked", !doctor.isTop ? true : false); |
| | | $("#isAnswer-shi").attr("checked", doctor.isAnswer? true : false); |
| | | $("#isAnswer-fou").attr("checked", !doctor.isAnswer ? true : false); |
| | | |
| | | $("#isSigning-shi").attr("checked", doctor.isSigning? true : false); |
| | | $("#isSigning-fou").attr("checked", !doctor.isSigning ? true : false); |
| | | form.render(); |
| | | } else { |
| | | loadEditData(); |