1、kidgrow-opration-center运营中心项目Api、Biz、Server结构化代码生成
2、kidgrow-common-spring-boot-starter 去除 mqbus引用依赖
83 files added
3 files modified
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.NotBlank; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 业务操作记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("business_records") |
| | | public class BusinessRecords extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 记录标题 |
| | | */ |
| | | @NotBlank(message = "记录标题不能为空") |
| | | private String recordTitle; |
| | | /** |
| | | * 操作人ID |
| | | */ |
| | | @NotBlank(message = "操作人ID不能为空") |
| | | private Long userId; |
| | | /** |
| | | * 操作人姓名 |
| | | */ |
| | | @NotBlank(message = "操作人姓名不能为空") |
| | | private String userName; |
| | | /** |
| | | * 应用ID |
| | | */ |
| | | @NotBlank(message = "应用ID不能为空") |
| | | private Long appId; |
| | | /** |
| | | * 应用名称 |
| | | */ |
| | | @NotBlank(message = "应用名称不能为空") |
| | | private String appName; |
| | | /** |
| | | * ip |
| | | */ |
| | | private String recordIp; |
| | | /** |
| | | * 业务操作记录详情 |
| | | */ |
| | | private String recordDetail; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医院服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("business_server") |
| | | public class BusinessServer extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 科室ID |
| | | */ |
| | | @NotBlank(message = "科室ID不能为空") |
| | | private Long departmentId; |
| | | /** |
| | | * 医生账户数量 |
| | | */ |
| | | @NotBlank(message = "医生账户数量不能为空") |
| | | private Integer doctorCount; |
| | | /** |
| | | * 服务到期时间 |
| | | */ |
| | | @NotBlank(message = "服务到期时间不能为空") |
| | | private Date serverEndDate; |
| | | /** |
| | | * 累积读片量 |
| | | */ |
| | | private Long totalRayCount; |
| | | /** |
| | | * 累积报告量 |
| | | */ |
| | | private Long totalRecordCount; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 租户字段 |
| | | */ |
| | | private String tenantId; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | @NotBlank(message = "状态,1启用,0停用不能为空") |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的数据需求<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("data_need") |
| | | public class DataNeed extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 需求类型 0就诊数据 1筛查 |
| | | */ |
| | | @NotBlank(message = "需求类型 0就诊数据 1筛查不能为空") |
| | | private Integer needType; |
| | | /** |
| | | * 提需求的医生 |
| | | */ |
| | | @NotBlank(message = "提需求的医生不能为空") |
| | | private Long doctorId; |
| | | /** |
| | | * 医生姓名 |
| | | */ |
| | | @NotBlank(message = "医生姓名不能为空") |
| | | private String doctorName; |
| | | /** |
| | | * 医院名称 |
| | | */ |
| | | private String hospitalName; |
| | | /** |
| | | * 科室名称 |
| | | */ |
| | | private String departmentName; |
| | | /** |
| | | * 医生连续方式 |
| | | */ |
| | | private String doctorTel; |
| | | /** |
| | | * 需求数据的开始时间 |
| | | */ |
| | | @NotBlank(message = "需求数据的开始时间不能为空") |
| | | private Date needBegintime; |
| | | /** |
| | | * 需求数据的结束时间 |
| | | */ |
| | | @NotBlank(message = "需求数据的结束时间不能为空") |
| | | private Date needEndtime; |
| | | /** |
| | | * 需求标签 |
| | | */ |
| | | @NotBlank(message = "需求标签不能为空") |
| | | private String needTags; |
| | | /** |
| | | * 是否删除,1删除(已下载),0未删除(未下载) |
| | | */ |
| | | private Boolean isDel; |
| | | /** |
| | | * 文件路径 |
| | | */ |
| | | private String dataFile; |
| | | /** |
| | | * 下载时间 |
| | | */ |
| | | private Date downTime; |
| | | /** |
| | | * 状态,1已上传了数据文件,0未处理 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医答医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("doctor_answer") |
| | | public class DoctorAnswer extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | @NotBlank(message = "状态,1启用,0停用不能为空") |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生业务服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("doctor_server") |
| | | public class DoctorServer extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 是否医答医生 0否1是 |
| | | */ |
| | | private Boolean isAnswer; |
| | | /** |
| | | * 是否签约医生 0否1是 |
| | | */ |
| | | private Boolean isSigning; |
| | | /** |
| | | * 医生状态 1正常 0试用 |
| | | */ |
| | | @NotBlank(message = "医生状态 1正常 0试用不能为空") |
| | | private Boolean doctorState; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | @NotBlank(message = "状态,1启用,0停用不能为空") |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 签约医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("doctor_signing") |
| | | public class DoctorSigning extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | @NotBlank(message = "状态,1启用,0停用不能为空") |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的模板<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("doctor_templete") |
| | | public class DoctorTemplete extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 医院标识id |
| | | */ |
| | | @NotBlank(message = "医院标识id不能为空") |
| | | private Long hospitalId; |
| | | /** |
| | | * 医院名称 |
| | | */ |
| | | @NotBlank(message = "医院名称不能为空") |
| | | private String hospitalName; |
| | | /** |
| | | * 科室ID |
| | | */ |
| | | @NotBlank(message = "科室ID不能为空") |
| | | private Long departmentId; |
| | | /** |
| | | * 科室名称 |
| | | */ |
| | | @NotBlank(message = "科室名称不能为空") |
| | | private String departmentName; |
| | | /** |
| | | * 医生id |
| | | */ |
| | | @NotBlank(message = "医生id不能为空") |
| | | private Long doctorId; |
| | | /** |
| | | * 医生姓名 |
| | | */ |
| | | @NotBlank(message = "医生姓名不能为空") |
| | | private String doctorName; |
| | | /** |
| | | * 公开类型 0公开 1私有 |
| | | */ |
| | | private Boolean publicType; |
| | | /** |
| | | * 模板分类 0结论 1建议 2方案 |
| | | */ |
| | | private Integer templeteType; |
| | | /** |
| | | * 模板标题 |
| | | */ |
| | | @NotBlank(message = "模板标题不能为空") |
| | | private String templeteTitle; |
| | | /** |
| | | * 模板内容 |
| | | */ |
| | | @NotBlank(message = "模板内容不能为空") |
| | | private String templeteNote; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 筛查医院信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("hospital_screening") |
| | | public class HospitalScreening extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 医院ID |
| | | */ |
| | | @NotBlank(message = "医院ID不能为空") |
| | | private Long hospitalId; |
| | | /** |
| | | * 医院名称 |
| | | */ |
| | | private String hospitalName; |
| | | /** |
| | | * 医院logo |
| | | */ |
| | | private String hospitalLogo; |
| | | /** |
| | | * 筛查二维码图片 |
| | | */ |
| | | private String hospitalQrImage; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 租户字段 |
| | | */ |
| | | private String tenantId; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | @NotBlank(message = "状态,1启用,0停用不能为空") |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品的充值记录-订单<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("product_order") |
| | | public class ProductOrder extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 医院标识id |
| | | */ |
| | | @NotBlank(message = "医院标识id不能为空") |
| | | private Long hospitalId; |
| | | /** |
| | | * 医院名称 |
| | | */ |
| | | @NotBlank(message = "医院名称不能为空") |
| | | private String hospitalName; |
| | | /** |
| | | * 科室ID |
| | | */ |
| | | @NotBlank(message = "科室ID不能为空") |
| | | private Long departmentId; |
| | | /** |
| | | * 科室名称 |
| | | */ |
| | | @NotBlank(message = "科室名称不能为空") |
| | | private String departmentName; |
| | | /** |
| | | * 合同编号 |
| | | */ |
| | | @NotBlank(message = "合同编号不能为空") |
| | | private String contractNo; |
| | | /** |
| | | * 合同名称 |
| | | */ |
| | | @NotBlank(message = "合同名称不能为空") |
| | | private String contractTitle; |
| | | /** |
| | | * 合同开始时间 |
| | | */ |
| | | private Date contractBeginTime; |
| | | /** |
| | | * 合同结束时间 |
| | | */ |
| | | private Date contractEndTime; |
| | | /** |
| | | * 合同签订日期 |
| | | */ |
| | | private Date contractTime; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品/明显的充值记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("product_order_detail") |
| | | public class ProductOrderDetail extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 对应product_order表中的id |
| | | */ |
| | | @NotBlank(message = "对应product_order表中的id不能为空") |
| | | private Long orderId; |
| | | /** |
| | | * 产品/明细ID |
| | | */ |
| | | @NotBlank(message = "产品/明细ID不能为空") |
| | | private Long proId; |
| | | /** |
| | | * 产品/明细名称 |
| | | */ |
| | | @NotBlank(message = "产品/明细名称不能为空") |
| | | private String proName; |
| | | /** |
| | | * 是否共享 0否 1是 |
| | | */ |
| | | @NotBlank(message = "是否共享 0否 1是不能为空") |
| | | private Boolean isShare; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | @NotBlank(message = "是否删除,1删除,0未删除不能为空") |
| | | private Boolean isDel; |
| | | /** |
| | | * 读片量 |
| | | */ |
| | | @NotBlank(message = "读片量不能为空") |
| | | private Integer ailightCount; |
| | | /** |
| | | * 报告量 |
| | | */ |
| | | @NotBlank(message = "报告量不能为空") |
| | | private Integer recordCount; |
| | | /** |
| | | * 有效的开始时间 |
| | | */ |
| | | private Date proBegintime; |
| | | /** |
| | | * 有效的结束时间 |
| | | */ |
| | | private Date proEndtime; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("sys_feedback") |
| | | public class SysFeedback extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 提需求的医生 |
| | | */ |
| | | @NotBlank(message = "提需求的医生不能为空") |
| | | private Long doctorId; |
| | | /** |
| | | * 医生姓名 |
| | | */ |
| | | @NotBlank(message = "医生姓名不能为空") |
| | | private String doctorName; |
| | | /** |
| | | * 医生联系方式 |
| | | */ |
| | | private String doctorTel; |
| | | /** |
| | | * 科室ID |
| | | */ |
| | | @NotBlank(message = "科室ID不能为空") |
| | | private Long departmentId; |
| | | /** |
| | | * 科室名称 |
| | | */ |
| | | @NotBlank(message = "科室名称不能为空") |
| | | private String departmentName; |
| | | /** |
| | | * 医院标识id |
| | | */ |
| | | @NotBlank(message = "医院标识id不能为空") |
| | | private Long hospitalId; |
| | | /** |
| | | * 医院名称 |
| | | */ |
| | | private String hospitalName; |
| | | /** |
| | | * 反馈的意见内容 |
| | | */ |
| | | @NotBlank(message = "反馈的意见内容不能为空") |
| | | private String feedbackNote; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1已查收,0未处理 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.NotBlank; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("sys_logger") |
| | | public class SysLogger extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 应用名 |
| | | */ |
| | | private String applicationName; |
| | | /** |
| | | * 类名 |
| | | */ |
| | | @NotBlank(message = "类名不能为空") |
| | | private String className; |
| | | /** |
| | | * 方法名 |
| | | */ |
| | | @NotBlank(message = "方法名不能为空") |
| | | private String methodName; |
| | | /** |
| | | * 用户id |
| | | */ |
| | | private Integer userId; |
| | | /** |
| | | * 用户名 |
| | | */ |
| | | private String userName; |
| | | /** |
| | | * 租户id |
| | | */ |
| | | private String clientId; |
| | | /** |
| | | * 操作信息 |
| | | */ |
| | | @NotBlank(message = "操作信息不能为空") |
| | | private String operation; |
| | | /** |
| | | * 创建时间 |
| | | */ |
| | | @NotBlank(message = "创建时间不能为空") |
| | | private String timestamp; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.model; |
| | | |
| | | import com.kidgrow.common.model.SuperModel; |
| | | import com.baomidou.mybatisplus.annotation.FieldFill; |
| | | import com.baomidou.mybatisplus.annotation.TableField; |
| | | import com.baomidou.mybatisplus.annotation.TableId; |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.extension.activerecord.Model; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.Data; |
| | | import lombok.EqualsAndHashCode; |
| | | import lombok.NoArgsConstructor; |
| | | import org.hibernate.validator.constraints.*; |
| | | import java.math.BigDecimal; |
| | | import java.util.Date; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Data |
| | | @EqualsAndHashCode(callSuper = false) |
| | | @NoArgsConstructor |
| | | @AllArgsConstructor |
| | | @TableName("sys_product") |
| | | public class SysProduct extends SuperModel { |
| | | private static final long serialVersionUID=1L; |
| | | |
| | | /** |
| | | * 产品名称 |
| | | */ |
| | | @NotBlank(message = "产品名称不能为空") |
| | | private String proName; |
| | | /** |
| | | * 时长(天) |
| | | */ |
| | | @NotBlank(message = "时长(天)不能为空") |
| | | private Integer proTime; |
| | | /** |
| | | * 产品类型 0试用 1正式 |
| | | */ |
| | | @NotBlank(message = "产品类型 0试用 1正式不能为空") |
| | | private Integer proType; |
| | | /** |
| | | * 建议售价 |
| | | */ |
| | | @NotBlank(message = "建议售价不能为空") |
| | | private BigDecimal proPrice; |
| | | /** |
| | | * 报告量 |
| | | */ |
| | | @NotBlank(message = "报告量不能为空") |
| | | private Integer recordCount; |
| | | /** |
| | | * 读片量 |
| | | */ |
| | | @NotBlank(message = "读片量不能为空") |
| | | private Integer ailightCount; |
| | | /** |
| | | * 是否删除,1删除,0未删除 |
| | | */ |
| | | private Boolean isDel; |
| | | /** |
| | | * 状态,1启用,0停用 |
| | | */ |
| | | private Boolean enabled; |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessRecords; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 业务操作记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface BusinessRecordsMapper extends SuperMapper<BusinessRecords> { |
| | | /** |
| | | * 分页查询业务操作记录列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<BusinessRecords> findList(Page<BusinessRecords> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据BusinessRecords对象当做查询条件进行查询 |
| | | * @param |
| | | * @return BusinessRecords对象 |
| | | */ |
| | | BusinessRecords findByObject(BusinessRecords businessRecords); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessServer; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医院服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface BusinessServerMapper extends SuperMapper<BusinessServer> { |
| | | /** |
| | | * 分页查询医院服务信息表列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<BusinessServer> findList(Page<BusinessServer> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据BusinessServer对象当做查询条件进行查询 |
| | | * @param |
| | | * @return BusinessServer对象 |
| | | */ |
| | | BusinessServer findByObject(BusinessServer businessServer); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DataNeed; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的数据需求<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface DataNeedMapper extends SuperMapper<DataNeed> { |
| | | /** |
| | | * 分页查询医生的数据需求列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<DataNeed> findList(Page<DataNeed> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据DataNeed对象当做查询条件进行查询 |
| | | * @param |
| | | * @return DataNeed对象 |
| | | */ |
| | | DataNeed findByObject(DataNeed dataNeed); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorAnswer; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医答医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface DoctorAnswerMapper extends SuperMapper<DoctorAnswer> { |
| | | /** |
| | | * 分页查询医答医生信息表-未完待续列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<DoctorAnswer> findList(Page<DoctorAnswer> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据DoctorAnswer对象当做查询条件进行查询 |
| | | * @param |
| | | * @return DoctorAnswer对象 |
| | | */ |
| | | DoctorAnswer findByObject(DoctorAnswer doctorAnswer); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorServer; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生业务服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface DoctorServerMapper extends SuperMapper<DoctorServer> { |
| | | /** |
| | | * 分页查询医生业务服务信息表列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<DoctorServer> findList(Page<DoctorServer> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据DoctorServer对象当做查询条件进行查询 |
| | | * @param |
| | | * @return DoctorServer对象 |
| | | */ |
| | | DoctorServer findByObject(DoctorServer doctorServer); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorSigning; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 签约医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface DoctorSigningMapper extends SuperMapper<DoctorSigning> { |
| | | /** |
| | | * 分页查询签约医生信息表-未完待续列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<DoctorSigning> findList(Page<DoctorSigning> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据DoctorSigning对象当做查询条件进行查询 |
| | | * @param |
| | | * @return DoctorSigning对象 |
| | | */ |
| | | DoctorSigning findByObject(DoctorSigning doctorSigning); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorTemplete; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的模板<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface DoctorTempleteMapper extends SuperMapper<DoctorTemplete> { |
| | | /** |
| | | * 分页查询医生的模板列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<DoctorTemplete> findList(Page<DoctorTemplete> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据DoctorTemplete对象当做查询条件进行查询 |
| | | * @param |
| | | * @return DoctorTemplete对象 |
| | | */ |
| | | DoctorTemplete findByObject(DoctorTemplete doctorTemplete); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.HospitalScreening; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 筛查医院信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface HospitalScreeningMapper extends SuperMapper<HospitalScreening> { |
| | | /** |
| | | * 分页查询筛查医院信息表-未完待续列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<HospitalScreening> findList(Page<HospitalScreening> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据HospitalScreening对象当做查询条件进行查询 |
| | | * @param |
| | | * @return HospitalScreening对象 |
| | | */ |
| | | HospitalScreening findByObject(HospitalScreening hospitalScreening); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrderDetail; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品/明显的充值记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface ProductOrderDetailMapper extends SuperMapper<ProductOrderDetail> { |
| | | /** |
| | | * 分页查询产品/明显的充值记录列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<ProductOrderDetail> findList(Page<ProductOrderDetail> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据ProductOrderDetail对象当做查询条件进行查询 |
| | | * @param |
| | | * @return ProductOrderDetail对象 |
| | | */ |
| | | ProductOrderDetail findByObject(ProductOrderDetail productOrderDetail); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品的充值记录-订单<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface ProductOrderMapper extends SuperMapper<ProductOrder> { |
| | | /** |
| | | * 分页查询产品的充值记录-订单列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<ProductOrder> findList(Page<ProductOrder> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据ProductOrder对象当做查询条件进行查询 |
| | | * @param |
| | | * @return ProductOrder对象 |
| | | */ |
| | | ProductOrder findByObject(ProductOrder productOrder); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysFeedback; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface SysFeedbackMapper extends SuperMapper<SysFeedback> { |
| | | /** |
| | | * 分页查询列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<SysFeedback> findList(Page<SysFeedback> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据SysFeedback对象当做查询条件进行查询 |
| | | * @param |
| | | * @return SysFeedback对象 |
| | | */ |
| | | SysFeedback findByObject(SysFeedback sysFeedback); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysLogger; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface SysLoggerMapper extends SuperMapper<SysLogger> { |
| | | /** |
| | | * 分页查询列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<SysLogger> findList(Page<SysLogger> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据SysLogger对象当做查询条件进行查询 |
| | | * @param |
| | | * @return SysLogger对象 |
| | | */ |
| | | SysLogger findByObject(SysLogger sysLogger); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.mapper; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysProduct; |
| | | import com.kidgrow.db.mapper.SuperMapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import org.apache.ibatis.annotations.Param; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface SysProductMapper extends SuperMapper<SysProduct> { |
| | | /** |
| | | * 分页查询列表 |
| | | * @param page |
| | | * @param params |
| | | * @return |
| | | */ |
| | | List<SysProduct> findList(Page<SysProduct> page, @Param("p") Map<String, Object> params); |
| | | |
| | | /** |
| | | * 根据SysProduct对象当做查询条件进行查询 |
| | | * @param |
| | | * @return SysProduct对象 |
| | | */ |
| | | SysProduct findByObject(SysProduct sysProduct); |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessRecords; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 业务操作记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IBusinessRecordsService extends ISuperService<BusinessRecords> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<BusinessRecords> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据BusinessRecords对象当做查询条件进行查询 |
| | | * @param businessRecords |
| | | * @return BusinessRecords对象 |
| | | */ |
| | | BusinessRecords findByObject(BusinessRecords businessRecords); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessServer; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医院服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IBusinessServerService extends ISuperService<BusinessServer> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<BusinessServer> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据BusinessServer对象当做查询条件进行查询 |
| | | * @param businessServer |
| | | * @return BusinessServer对象 |
| | | */ |
| | | BusinessServer findByObject(BusinessServer businessServer); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DataNeed; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的数据需求<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IDataNeedService extends ISuperService<DataNeed> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<DataNeed> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据DataNeed对象当做查询条件进行查询 |
| | | * @param dataNeed |
| | | * @return DataNeed对象 |
| | | */ |
| | | DataNeed findByObject(DataNeed dataNeed); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorAnswer; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医答医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IDoctorAnswerService extends ISuperService<DoctorAnswer> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<DoctorAnswer> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据DoctorAnswer对象当做查询条件进行查询 |
| | | * @param doctorAnswer |
| | | * @return DoctorAnswer对象 |
| | | */ |
| | | DoctorAnswer findByObject(DoctorAnswer doctorAnswer); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorServer; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生业务服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IDoctorServerService extends ISuperService<DoctorServer> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<DoctorServer> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据DoctorServer对象当做查询条件进行查询 |
| | | * @param doctorServer |
| | | * @return DoctorServer对象 |
| | | */ |
| | | DoctorServer findByObject(DoctorServer doctorServer); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorSigning; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 签约医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IDoctorSigningService extends ISuperService<DoctorSigning> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<DoctorSigning> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据DoctorSigning对象当做查询条件进行查询 |
| | | * @param doctorSigning |
| | | * @return DoctorSigning对象 |
| | | */ |
| | | DoctorSigning findByObject(DoctorSigning doctorSigning); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorTemplete; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的模板<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IDoctorTempleteService extends ISuperService<DoctorTemplete> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<DoctorTemplete> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据DoctorTemplete对象当做查询条件进行查询 |
| | | * @param doctorTemplete |
| | | * @return DoctorTemplete对象 |
| | | */ |
| | | DoctorTemplete findByObject(DoctorTemplete doctorTemplete); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.HospitalScreening; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 筛查医院信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IHospitalScreeningService extends ISuperService<HospitalScreening> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<HospitalScreening> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据HospitalScreening对象当做查询条件进行查询 |
| | | * @param hospitalScreening |
| | | * @return HospitalScreening对象 |
| | | */ |
| | | HospitalScreening findByObject(HospitalScreening hospitalScreening); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrderDetail; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品/明显的充值记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IProductOrderDetailService extends ISuperService<ProductOrderDetail> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<ProductOrderDetail> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据ProductOrderDetail对象当做查询条件进行查询 |
| | | * @param productOrderDetail |
| | | * @return ProductOrderDetail对象 |
| | | */ |
| | | ProductOrderDetail findByObject(ProductOrderDetail productOrderDetail); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品的充值记录-订单<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface IProductOrderService extends ISuperService<ProductOrder> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<ProductOrder> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据ProductOrder对象当做查询条件进行查询 |
| | | * @param productOrder |
| | | * @return ProductOrder对象 |
| | | */ |
| | | ProductOrder findByObject(ProductOrder productOrder); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysFeedback; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface ISysFeedbackService extends ISuperService<SysFeedback> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<SysFeedback> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据SysFeedback对象当做查询条件进行查询 |
| | | * @param sysFeedback |
| | | * @return SysFeedback对象 |
| | | */ |
| | | SysFeedback findByObject(SysFeedback sysFeedback); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysLogger; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface ISysLoggerService extends ISuperService<SysLogger> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<SysLogger> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据SysLogger对象当做查询条件进行查询 |
| | | * @param sysLogger |
| | | * @return SysLogger对象 |
| | | */ |
| | | SysLogger findByObject(SysLogger sysLogger); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysProduct; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.service.ISuperService; |
| | | |
| | | import java.util.Map; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | public interface ISysProductService extends ISuperService<SysProduct> { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | PageResult<SysProduct> findList(Map<String, Object> params); |
| | | |
| | | |
| | | /** |
| | | * 根据SysProduct对象当做查询条件进行查询 |
| | | * @param sysProduct |
| | | * @return SysProduct对象 |
| | | */ |
| | | SysProduct findByObject(SysProduct sysProduct); |
| | | } |
| | | |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessRecords; |
| | | import com.kidgrow.oprationcenter.mapper.BusinessRecordsMapper; |
| | | import com.kidgrow.oprationcenter.service.IBusinessRecordsService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 业务操作记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class BusinessRecordsServiceImpl extends SuperServiceImpl<BusinessRecordsMapper, BusinessRecords> implements IBusinessRecordsService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<BusinessRecords> findList(Map<String, Object> params){ |
| | | Page<BusinessRecords> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<BusinessRecords> list = baseMapper.findList(page, params); |
| | | return PageResult.<BusinessRecords>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据BusinessRecords对象当做查询条件进行查询 |
| | | * @param businessRecords |
| | | * @return BusinessRecords |
| | | */ |
| | | @Override |
| | | public BusinessRecords findByObject(BusinessRecords businessRecords){ |
| | | return baseMapper.findByObject(businessRecords); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessServer; |
| | | import com.kidgrow.oprationcenter.mapper.BusinessServerMapper; |
| | | import com.kidgrow.oprationcenter.service.IBusinessServerService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医院服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class BusinessServerServiceImpl extends SuperServiceImpl<BusinessServerMapper, BusinessServer> implements IBusinessServerService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<BusinessServer> findList(Map<String, Object> params){ |
| | | Page<BusinessServer> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<BusinessServer> list = baseMapper.findList(page, params); |
| | | return PageResult.<BusinessServer>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据BusinessServer对象当做查询条件进行查询 |
| | | * @param businessServer |
| | | * @return BusinessServer |
| | | */ |
| | | @Override |
| | | public BusinessServer findByObject(BusinessServer businessServer){ |
| | | return baseMapper.findByObject(businessServer); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DataNeed; |
| | | import com.kidgrow.oprationcenter.mapper.DataNeedMapper; |
| | | import com.kidgrow.oprationcenter.service.IDataNeedService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的数据需求<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class DataNeedServiceImpl extends SuperServiceImpl<DataNeedMapper, DataNeed> implements IDataNeedService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<DataNeed> findList(Map<String, Object> params){ |
| | | Page<DataNeed> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<DataNeed> list = baseMapper.findList(page, params); |
| | | return PageResult.<DataNeed>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据DataNeed对象当做查询条件进行查询 |
| | | * @param dataNeed |
| | | * @return DataNeed |
| | | */ |
| | | @Override |
| | | public DataNeed findByObject(DataNeed dataNeed){ |
| | | return baseMapper.findByObject(dataNeed); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorAnswer; |
| | | import com.kidgrow.oprationcenter.mapper.DoctorAnswerMapper; |
| | | import com.kidgrow.oprationcenter.service.IDoctorAnswerService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医答医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class DoctorAnswerServiceImpl extends SuperServiceImpl<DoctorAnswerMapper, DoctorAnswer> implements IDoctorAnswerService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<DoctorAnswer> findList(Map<String, Object> params){ |
| | | Page<DoctorAnswer> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<DoctorAnswer> list = baseMapper.findList(page, params); |
| | | return PageResult.<DoctorAnswer>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorAnswer对象当做查询条件进行查询 |
| | | * @param doctorAnswer |
| | | * @return DoctorAnswer |
| | | */ |
| | | @Override |
| | | public DoctorAnswer findByObject(DoctorAnswer doctorAnswer){ |
| | | return baseMapper.findByObject(doctorAnswer); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorServer; |
| | | import com.kidgrow.oprationcenter.mapper.DoctorServerMapper; |
| | | import com.kidgrow.oprationcenter.service.IDoctorServerService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生业务服务信息表<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class DoctorServerServiceImpl extends SuperServiceImpl<DoctorServerMapper, DoctorServer> implements IDoctorServerService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<DoctorServer> findList(Map<String, Object> params){ |
| | | Page<DoctorServer> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<DoctorServer> list = baseMapper.findList(page, params); |
| | | return PageResult.<DoctorServer>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorServer对象当做查询条件进行查询 |
| | | * @param doctorServer |
| | | * @return DoctorServer |
| | | */ |
| | | @Override |
| | | public DoctorServer findByObject(DoctorServer doctorServer){ |
| | | return baseMapper.findByObject(doctorServer); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorSigning; |
| | | import com.kidgrow.oprationcenter.mapper.DoctorSigningMapper; |
| | | import com.kidgrow.oprationcenter.service.IDoctorSigningService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 签约医生信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class DoctorSigningServiceImpl extends SuperServiceImpl<DoctorSigningMapper, DoctorSigning> implements IDoctorSigningService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<DoctorSigning> findList(Map<String, Object> params){ |
| | | Page<DoctorSigning> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<DoctorSigning> list = baseMapper.findList(page, params); |
| | | return PageResult.<DoctorSigning>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorSigning对象当做查询条件进行查询 |
| | | * @param doctorSigning |
| | | * @return DoctorSigning |
| | | */ |
| | | @Override |
| | | public DoctorSigning findByObject(DoctorSigning doctorSigning){ |
| | | return baseMapper.findByObject(doctorSigning); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorTemplete; |
| | | import com.kidgrow.oprationcenter.mapper.DoctorTempleteMapper; |
| | | import com.kidgrow.oprationcenter.service.IDoctorTempleteService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的模板<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class DoctorTempleteServiceImpl extends SuperServiceImpl<DoctorTempleteMapper, DoctorTemplete> implements IDoctorTempleteService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<DoctorTemplete> findList(Map<String, Object> params){ |
| | | Page<DoctorTemplete> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<DoctorTemplete> list = baseMapper.findList(page, params); |
| | | return PageResult.<DoctorTemplete>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorTemplete对象当做查询条件进行查询 |
| | | * @param doctorTemplete |
| | | * @return DoctorTemplete |
| | | */ |
| | | @Override |
| | | public DoctorTemplete findByObject(DoctorTemplete doctorTemplete){ |
| | | return baseMapper.findByObject(doctorTemplete); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.HospitalScreening; |
| | | import com.kidgrow.oprationcenter.mapper.HospitalScreeningMapper; |
| | | import com.kidgrow.oprationcenter.service.IHospitalScreeningService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 筛查医院信息表-未完待续<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class HospitalScreeningServiceImpl extends SuperServiceImpl<HospitalScreeningMapper, HospitalScreening> implements IHospitalScreeningService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<HospitalScreening> findList(Map<String, Object> params){ |
| | | Page<HospitalScreening> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<HospitalScreening> list = baseMapper.findList(page, params); |
| | | return PageResult.<HospitalScreening>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据HospitalScreening对象当做查询条件进行查询 |
| | | * @param hospitalScreening |
| | | * @return HospitalScreening |
| | | */ |
| | | @Override |
| | | public HospitalScreening findByObject(HospitalScreening hospitalScreening){ |
| | | return baseMapper.findByObject(hospitalScreening); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrderDetail; |
| | | import com.kidgrow.oprationcenter.mapper.ProductOrderDetailMapper; |
| | | import com.kidgrow.oprationcenter.service.IProductOrderDetailService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品/明显的充值记录<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ProductOrderDetailServiceImpl extends SuperServiceImpl<ProductOrderDetailMapper, ProductOrderDetail> implements IProductOrderDetailService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<ProductOrderDetail> findList(Map<String, Object> params){ |
| | | Page<ProductOrderDetail> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<ProductOrderDetail> list = baseMapper.findList(page, params); |
| | | return PageResult.<ProductOrderDetail>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据ProductOrderDetail对象当做查询条件进行查询 |
| | | * @param productOrderDetail |
| | | * @return ProductOrderDetail |
| | | */ |
| | | @Override |
| | | public ProductOrderDetail findByObject(ProductOrderDetail productOrderDetail){ |
| | | return baseMapper.findByObject(productOrderDetail); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import com.kidgrow.oprationcenter.mapper.ProductOrderMapper; |
| | | import com.kidgrow.oprationcenter.service.IProductOrderService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品的充值记录-订单<br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class ProductOrderServiceImpl extends SuperServiceImpl<ProductOrderMapper, ProductOrder> implements IProductOrderService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<ProductOrder> findList(Map<String, Object> params){ |
| | | Page<ProductOrder> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<ProductOrder> list = baseMapper.findList(page, params); |
| | | return PageResult.<ProductOrder>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据ProductOrder对象当做查询条件进行查询 |
| | | * @param productOrder |
| | | * @return ProductOrder |
| | | */ |
| | | @Override |
| | | public ProductOrder findByObject(ProductOrder productOrder){ |
| | | return baseMapper.findByObject(productOrder); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysFeedback; |
| | | import com.kidgrow.oprationcenter.mapper.SysFeedbackMapper; |
| | | import com.kidgrow.oprationcenter.service.ISysFeedbackService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SysFeedbackServiceImpl extends SuperServiceImpl<SysFeedbackMapper, SysFeedback> implements ISysFeedbackService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<SysFeedback> findList(Map<String, Object> params){ |
| | | Page<SysFeedback> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<SysFeedback> list = baseMapper.findList(page, params); |
| | | return PageResult.<SysFeedback>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysFeedback对象当做查询条件进行查询 |
| | | * @param sysFeedback |
| | | * @return SysFeedback |
| | | */ |
| | | @Override |
| | | public SysFeedback findByObject(SysFeedback sysFeedback){ |
| | | return baseMapper.findByObject(sysFeedback); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysLogger; |
| | | import com.kidgrow.oprationcenter.mapper.SysLoggerMapper; |
| | | import com.kidgrow.oprationcenter.service.ISysLoggerService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SysLoggerServiceImpl extends SuperServiceImpl<SysLoggerMapper, SysLogger> implements ISysLoggerService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<SysLogger> findList(Map<String, Object> params){ |
| | | Page<SysLogger> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<SysLogger> list = baseMapper.findList(page, params); |
| | | return PageResult.<SysLogger>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysLogger对象当做查询条件进行查询 |
| | | * @param sysLogger |
| | | * @return SysLogger |
| | | */ |
| | | @Override |
| | | public SysLogger findByObject(SysLogger sysLogger){ |
| | | return baseMapper.findByObject(sysLogger); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.service.impl; |
| | | |
| | | import org.springframework.stereotype.Service; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.kidgrow.common.service.impl.SuperServiceImpl; |
| | | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import org.apache.commons.collections4.MapUtils; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysProduct; |
| | | import com.kidgrow.oprationcenter.mapper.SysProductMapper; |
| | | import com.kidgrow.oprationcenter.service.ISysProductService; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: <br> |
| | | * @Project: 用户中心<br> |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version 1.0 |
| | | */ |
| | | @Slf4j |
| | | @Service |
| | | public class SysProductServiceImpl extends SuperServiceImpl<SysProductMapper, SysProduct> implements ISysProductService { |
| | | /** |
| | | * 列表 |
| | | * @param params |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PageResult<SysProduct> findList(Map<String, Object> params){ |
| | | Page<SysProduct> page = new Page<>(MapUtils.getInteger(params, "page"), MapUtils.getInteger(params, "limit")); |
| | | List<SysProduct> list = baseMapper.findList(page, params); |
| | | return PageResult.<SysProduct>builder().data(list).code(0).count(page.getTotal()).build(); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysProduct对象当做查询条件进行查询 |
| | | * @param sysProduct |
| | | * @return SysProduct |
| | | */ |
| | | @Override |
| | | public SysProduct findByObject(SysProduct sysProduct){ |
| | | return baseMapper.findByObject(sysProduct); |
| | | } |
| | | } |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--业务操作记录--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.BusinessRecordsMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="recordTitle != null and recordTitle !=''"> |
| | | and record_title = #{recordTitle} |
| | | </if> |
| | | <if test="userId != null and userId !=''"> |
| | | and user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName !=''"> |
| | | and user_name = #{userName} |
| | | </if> |
| | | <if test="appId != null and appId !=''"> |
| | | and app_id = #{appId} |
| | | </if> |
| | | <if test="appName != null and appName !=''"> |
| | | and app_name = #{appName} |
| | | </if> |
| | | <if test="recordIp != null and recordIp !=''"> |
| | | and record_ip = #{recordIp} |
| | | </if> |
| | | <if test="recordDetail != null and recordDetail !=''"> |
| | | and record_detail = #{recordDetail} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-BusinessRecords当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.BusinessRecords"> |
| | | select <include refid="Column_List"/> |
| | | from business_records |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-BusinessRecords当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.BusinessRecords"> |
| | | select <include refid="Column_List"/> |
| | | from business_records |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--医院服务信息表--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.BusinessServerMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="departmentId != null and departmentId !=''"> |
| | | and department_id = #{departmentId} |
| | | </if> |
| | | <if test="doctorCount != null and doctorCount !=''"> |
| | | and doctor_count = #{doctorCount} |
| | | </if> |
| | | <if test="serverEndDate != null and serverEndDate !=''"> |
| | | and server_end_date = #{serverEndDate} |
| | | </if> |
| | | <if test="totalRayCount != null and totalRayCount !=''"> |
| | | and total_ray_count = #{totalRayCount} |
| | | </if> |
| | | <if test="totalRecordCount != null and totalRecordCount !=''"> |
| | | and total_record_count = #{totalRecordCount} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="tenantId != null and tenantId !=''"> |
| | | and tenant_id = #{tenantId} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-BusinessServer当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.BusinessServer"> |
| | | select <include refid="Column_List"/> |
| | | from business_server |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-BusinessServer当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.BusinessServer"> |
| | | select <include refid="Column_List"/> |
| | | from business_server |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--医生的数据需求--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.DataNeedMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="needType != null and needType !=''"> |
| | | and need_type = #{needType} |
| | | </if> |
| | | <if test="doctorId != null and doctorId !=''"> |
| | | and doctor_id = #{doctorId} |
| | | </if> |
| | | <if test="doctorName != null and doctorName !=''"> |
| | | and doctor_name = #{doctorName} |
| | | </if> |
| | | <if test="hospitalName != null and hospitalName !=''"> |
| | | and hospital_name = #{hospitalName} |
| | | </if> |
| | | <if test="departmentName != null and departmentName !=''"> |
| | | and department_name = #{departmentName} |
| | | </if> |
| | | <if test="doctorTel != null and doctorTel !=''"> |
| | | and doctor_tel = #{doctorTel} |
| | | </if> |
| | | <if test="needBegintime != null and needBegintime !=''"> |
| | | and need_begintime = #{needBegintime} |
| | | </if> |
| | | <if test="needEndtime != null and needEndtime !=''"> |
| | | and need_endtime = #{needEndtime} |
| | | </if> |
| | | <if test="needTags != null and needTags !=''"> |
| | | and need_tags = #{needTags} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="dataFile != null and dataFile !=''"> |
| | | and data_file = #{dataFile} |
| | | </if> |
| | | <if test="downTime != null and downTime !=''"> |
| | | and down_time = #{downTime} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-DataNeed当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.DataNeed"> |
| | | select <include refid="Column_List"/> |
| | | from data_need |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-DataNeed当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.DataNeed"> |
| | | select <include refid="Column_List"/> |
| | | from data_need |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--医答医生信息表-未完待续--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.DoctorAnswerMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-DoctorAnswer当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.DoctorAnswer"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_answer |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-DoctorAnswer当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.DoctorAnswer"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_answer |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--医生业务服务信息表--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.DoctorServerMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="isAnswer != null and isAnswer !=''"> |
| | | and is_answer = #{isAnswer} |
| | | </if> |
| | | <if test="isSigning != null and isSigning !=''"> |
| | | and is_signing = #{isSigning} |
| | | </if> |
| | | <if test="doctorState != null and doctorState !=''"> |
| | | and doctor_state = #{doctorState} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-DoctorServer当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.DoctorServer"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_server |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-DoctorServer当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.DoctorServer"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_server |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--签约医生信息表-未完待续--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.DoctorSigningMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-DoctorSigning当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.DoctorSigning"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_signing |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-DoctorSigning当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.DoctorSigning"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_signing |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--医生的模板--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.DoctorTempleteMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="hospitalId != null and hospitalId !=''"> |
| | | and hospital_id = #{hospitalId} |
| | | </if> |
| | | <if test="hospitalName != null and hospitalName !=''"> |
| | | and hospital_name = #{hospitalName} |
| | | </if> |
| | | <if test="departmentId != null and departmentId !=''"> |
| | | and department_id = #{departmentId} |
| | | </if> |
| | | <if test="departmentName != null and departmentName !=''"> |
| | | and department_name = #{departmentName} |
| | | </if> |
| | | <if test="doctorId != null and doctorId !=''"> |
| | | and doctor_id = #{doctorId} |
| | | </if> |
| | | <if test="doctorName != null and doctorName !=''"> |
| | | and doctor_name = #{doctorName} |
| | | </if> |
| | | <if test="publicType != null and publicType !=''"> |
| | | and public_type = #{publicType} |
| | | </if> |
| | | <if test="templeteType != null and templeteType !=''"> |
| | | and templete_type = #{templeteType} |
| | | </if> |
| | | <if test="templeteTitle != null and templeteTitle !=''"> |
| | | and templete_title = #{templeteTitle} |
| | | </if> |
| | | <if test="templeteNote != null and templeteNote !=''"> |
| | | and templete_note = #{templeteNote} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-DoctorTemplete当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.DoctorTemplete"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_templete |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-DoctorTemplete当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.DoctorTemplete"> |
| | | select <include refid="Column_List"/> |
| | | from doctor_templete |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--筛查医院信息表-未完待续--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.HospitalScreeningMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="hospitalId != null and hospitalId !=''"> |
| | | and hospital_id = #{hospitalId} |
| | | </if> |
| | | <if test="hospitalName != null and hospitalName !=''"> |
| | | and hospital_name = #{hospitalName} |
| | | </if> |
| | | <if test="hospitalLogo != null and hospitalLogo !=''"> |
| | | and hospital_logo = #{hospitalLogo} |
| | | </if> |
| | | <if test="hospitalQrImage != null and hospitalQrImage !=''"> |
| | | and hospital_qr_image = #{hospitalQrImage} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="tenantId != null and tenantId !=''"> |
| | | and tenant_id = #{tenantId} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-HospitalScreening当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.HospitalScreening"> |
| | | select <include refid="Column_List"/> |
| | | from hospital_screening |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-HospitalScreening当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.HospitalScreening"> |
| | | select <include refid="Column_List"/> |
| | | from hospital_screening |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--产品/明显的充值记录--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.ProductOrderDetailMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="orderId != null and orderId !=''"> |
| | | and order_id = #{orderId} |
| | | </if> |
| | | <if test="proId != null and proId !=''"> |
| | | and pro_id = #{proId} |
| | | </if> |
| | | <if test="proName != null and proName !=''"> |
| | | and pro_name = #{proName} |
| | | </if> |
| | | <if test="isShare != null and isShare !=''"> |
| | | and is_share = #{isShare} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="ailightCount != null and ailightCount !=''"> |
| | | and ailight_count = #{ailightCount} |
| | | </if> |
| | | <if test="recordCount != null and recordCount !=''"> |
| | | and record_count = #{recordCount} |
| | | </if> |
| | | <if test="proBegintime != null and proBegintime !=''"> |
| | | and pro_begintime = #{proBegintime} |
| | | </if> |
| | | <if test="proEndtime != null and proEndtime !=''"> |
| | | and pro_endtime = #{proEndtime} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-ProductOrderDetail当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.ProductOrderDetail"> |
| | | select <include refid="Column_List"/> |
| | | from product_order_detail |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-ProductOrderDetail当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.ProductOrderDetail"> |
| | | select <include refid="Column_List"/> |
| | | from product_order_detail |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!--产品的充值记录-订单--> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.ProductOrderMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="hospitalId != null and hospitalId !=''"> |
| | | and hospital_id = #{hospitalId} |
| | | </if> |
| | | <if test="hospitalName != null and hospitalName !=''"> |
| | | and hospital_name = #{hospitalName} |
| | | </if> |
| | | <if test="departmentId != null and departmentId !=''"> |
| | | and department_id = #{departmentId} |
| | | </if> |
| | | <if test="departmentName != null and departmentName !=''"> |
| | | and department_name = #{departmentName} |
| | | </if> |
| | | <if test="contractNo != null and contractNo !=''"> |
| | | and contract_no = #{contractNo} |
| | | </if> |
| | | <if test="contractTitle != null and contractTitle !=''"> |
| | | and contract_title = #{contractTitle} |
| | | </if> |
| | | <if test="contractBeginTime != null and contractBeginTime !=''"> |
| | | and contract_begin_time = #{contractBeginTime} |
| | | </if> |
| | | <if test="contractEndTime != null and contractEndTime !=''"> |
| | | and contract_end_time = #{contractEndTime} |
| | | </if> |
| | | <if test="contractTime != null and contractTime !=''"> |
| | | and contract_time = #{contractTime} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-ProductOrder当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.ProductOrder"> |
| | | select <include refid="Column_List"/> |
| | | from product_order |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-ProductOrder当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.ProductOrder"> |
| | | select <include refid="Column_List"/> |
| | | from product_order |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!----> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.SysFeedbackMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="doctorId != null and doctorId !=''"> |
| | | and doctor_id = #{doctorId} |
| | | </if> |
| | | <if test="doctorName != null and doctorName !=''"> |
| | | and doctor_name = #{doctorName} |
| | | </if> |
| | | <if test="doctorTel != null and doctorTel !=''"> |
| | | and doctor_tel = #{doctorTel} |
| | | </if> |
| | | <if test="departmentId != null and departmentId !=''"> |
| | | and department_id = #{departmentId} |
| | | </if> |
| | | <if test="departmentName != null and departmentName !=''"> |
| | | and department_name = #{departmentName} |
| | | </if> |
| | | <if test="hospitalId != null and hospitalId !=''"> |
| | | and hospital_id = #{hospitalId} |
| | | </if> |
| | | <if test="hospitalName != null and hospitalName !=''"> |
| | | and hospital_name = #{hospitalName} |
| | | </if> |
| | | <if test="feedbackNote != null and feedbackNote !=''"> |
| | | and feedback_note = #{feedbackNote} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-SysFeedback当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.SysFeedback"> |
| | | select <include refid="Column_List"/> |
| | | from sys_feedback |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-SysFeedback当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.SysFeedback"> |
| | | select <include refid="Column_List"/> |
| | | from sys_feedback |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!----> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.SysLoggerMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="applicationName != null and applicationName !=''"> |
| | | and application_name = #{applicationName} |
| | | </if> |
| | | <if test="className != null and className !=''"> |
| | | and class_name = #{className} |
| | | </if> |
| | | <if test="methodName != null and methodName !=''"> |
| | | and method_name = #{methodName} |
| | | </if> |
| | | <if test="userId != null and userId !=''"> |
| | | and user_id = #{userId} |
| | | </if> |
| | | <if test="userName != null and userName !=''"> |
| | | and user_name = #{userName} |
| | | </if> |
| | | <if test="clientId != null and clientId !=''"> |
| | | and client_id = #{clientId} |
| | | </if> |
| | | <if test="operation != null and operation !=''"> |
| | | and operation = #{operation} |
| | | </if> |
| | | <if test="timestamp != null and timestamp !=''"> |
| | | and timestamp = #{timestamp} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-SysLogger当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.SysLogger"> |
| | | select <include refid="Column_List"/> |
| | | from sys_logger |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-SysLogger当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.SysLogger"> |
| | | select <include refid="Column_List"/> |
| | | from sys_logger |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | <?xml version="1.0" encoding="UTF-8"?> |
| | | <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <!----> |
| | | <mapper namespace="com.kidgrow.oprationcenter.mapper.SysProductMapper"> |
| | | <!--定义查询列--> |
| | | <sql id="Column_List"> |
| | | * |
| | | </sql> |
| | | |
| | | <!--sql查询片段--> |
| | | <sql id="where"> |
| | | <where> |
| | | <!--查询条件自行添加--> |
| | | is_del=0 |
| | | <if test="id != null and id !=''"> |
| | | and id = #{id} |
| | | </if> |
| | | <if test="proName != null and proName !=''"> |
| | | and pro_name = #{proName} |
| | | </if> |
| | | <if test="proTime != null and proTime !=''"> |
| | | and pro_time = #{proTime} |
| | | </if> |
| | | <if test="proType != null and proType !=''"> |
| | | and pro_type = #{proType} |
| | | </if> |
| | | <if test="proPrice != null and proPrice !=''"> |
| | | and pro_price = #{proPrice} |
| | | </if> |
| | | <if test="recordCount != null and recordCount !=''"> |
| | | and record_count = #{recordCount} |
| | | </if> |
| | | <if test="ailightCount != null and ailightCount !=''"> |
| | | and ailight_count = #{ailightCount} |
| | | </if> |
| | | <if test="isDel != null and isDel !=''"> |
| | | and is_del = #{isDel} |
| | | </if> |
| | | <if test="enabled != null and enabled !=''"> |
| | | and enabled = #{enabled} |
| | | </if> |
| | | <if test="createUserId != null and createUserId !=''"> |
| | | and create_user_id = #{createUserId} |
| | | </if> |
| | | <if test="createUserName != null and createUserName !=''"> |
| | | and create_user_name = #{createUserName} |
| | | </if> |
| | | <if test="updateUserId != null and updateUserId !=''"> |
| | | and update_user_id = #{updateUserId} |
| | | </if> |
| | | <if test="updateUserName != null and updateUserName !=''"> |
| | | and update_user_name = #{updateUserName} |
| | | </if> |
| | | <if test="createTime != null and createTime !=''"> |
| | | and create_time = #{createTime} |
| | | </if> |
| | | <if test="updateTime != null and updateTime !=''"> |
| | | and update_time = #{updateTime} |
| | | </if> |
| | | </where> |
| | | </sql> |
| | | |
| | | <!--定义根据-SysProduct当作查询条件返回对象--> |
| | | <select id="findByObject" resultType="com.kidgrow.oprationcenter.model.SysProduct"> |
| | | select <include refid="Column_List"/> |
| | | from sys_product |
| | | <include refid="where"/> |
| | | order by id desc |
| | | </select> |
| | | |
| | | <!--定义根据-SysProduct当作查询条件返回对象集合--> |
| | | <select id="findList" resultType="com.kidgrow.oprationcenter.model.SysProduct"> |
| | | select <include refid="Column_List"/> |
| | | from sys_product |
| | | order by id desc |
| | | </select> |
| | | </mapper> |
New file |
| | |
| | | package com.kidgrow.config; |
| | | |
| | | import com.kidgrow.common.config.DefaultAsycTaskConfig; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @Description: 线程池配置、启用异步<br> |
| | | * @Project: <br> |
| | | * @CreateDate: Created in 2020/2/13 15:50 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | */ |
| | | @Configuration |
| | | public class AsycTaskExecutorConfig extends DefaultAsycTaskConfig { |
| | | |
| | | } |
New file |
| | |
| | | package com.kidgrow.config; |
| | | |
| | | import com.kidgrow.common.exception.DefaultExceptionAdvice; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @Description: <br> |
| | | * @Project: <br> |
| | | * @CreateDate: Created in 2020/2/13 15:50 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | */ |
| | | //@ControllerAdvice |
| | | public class ExceptionAdvice extends DefaultExceptionAdvice { |
| | | } |
New file |
| | |
| | | package com.kidgrow.config; |
| | | |
| | | import com.kidgrow.db.config.DefaultMybatisPlusConfig; |
| | | import org.mybatis.spring.annotation.MapperScan; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @Description: MybatisPlus配置<br> |
| | | * @Project: <br> |
| | | * @CreateDate: Created in 2020/2/13 15:50 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | */ |
| | | @Configuration |
| | | @MapperScan({"com.kidgrow.oprationcenter.mapper*"}) |
| | | public class MybatisPlusConfig extends DefaultMybatisPlusConfig { |
| | | } |
New file |
| | |
| | | package com.kidgrow.config; |
| | | |
| | | import com.kidgrow.common.config.DefaultPasswordConfig; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @Description: <br> |
| | | * @Project: <br> |
| | | * @CreateDate: Created in 2020/2/13 15:50 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | */ |
| | | @Configuration |
| | | public class PasswordConfig extends DefaultPasswordConfig { |
| | | } |
New file |
| | |
| | | package com.kidgrow.config; |
| | | |
| | | import com.kidgrow.common.config.DefaultWebMvcConfig; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * |
| | | * @Description: <br> |
| | | * @Project: <br> |
| | | * @CreateDate: Created in 2020/2/13 15:50 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | */ |
| | | @Configuration |
| | | public class WebMvcConfig extends DefaultWebMvcConfig { |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessRecords; |
| | | import com.kidgrow.oprationcenter.service.IBusinessRecordsService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 业务操作记录 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/businessrecords") |
| | | @Api(tags = "业务操作记录") |
| | | public class BusinessRecordsController extends BaseController{ |
| | | @Autowired |
| | | private IBusinessRecordsService businessRecordsService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return businessRecordsService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | BusinessRecords model = businessRecordsService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据BusinessRecords当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据BusinessRecords当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody BusinessRecords businessRecords) { |
| | | BusinessRecords model = businessRecordsService.findByObject(businessRecords); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody BusinessRecords businessRecords, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | businessRecordsService.saveOrUpdate(businessRecords); |
| | | return ResultBody.ok().data(businessRecords).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | businessRecordsService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.BusinessServer; |
| | | import com.kidgrow.oprationcenter.service.IBusinessServerService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医院服务信息表 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/businessserver") |
| | | @Api(tags = "医院服务信息表") |
| | | public class BusinessServerController extends BaseController{ |
| | | @Autowired |
| | | private IBusinessServerService businessServerService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return businessServerService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | BusinessServer model = businessServerService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据BusinessServer当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据BusinessServer当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody BusinessServer businessServer) { |
| | | BusinessServer model = businessServerService.findByObject(businessServer); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody BusinessServer businessServer, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | businessServerService.saveOrUpdate(businessServer); |
| | | return ResultBody.ok().data(businessServer).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | businessServerService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.model.DataNeed; |
| | | import com.kidgrow.oprationcenter.service.IDataNeedService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的数据需求 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/dataneed") |
| | | @Api(tags = "医生的数据需求") |
| | | public class DataNeedController extends BaseController{ |
| | | @Autowired |
| | | private IDataNeedService dataNeedService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return dataNeedService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | DataNeed model = dataNeedService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据DataNeed当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据DataNeed当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody DataNeed dataNeed) { |
| | | DataNeed model = dataNeedService.findByObject(dataNeed); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody DataNeed dataNeed, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | dataNeedService.saveOrUpdate(dataNeed); |
| | | return ResultBody.ok().data(dataNeed).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | dataNeedService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorAnswer; |
| | | import com.kidgrow.oprationcenter.service.IDoctorAnswerService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医答医生信息表-未完待续 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/doctoranswer") |
| | | @Api(tags = "医答医生信息表-未完待续") |
| | | public class DoctorAnswerController extends BaseController{ |
| | | @Autowired |
| | | private IDoctorAnswerService doctorAnswerService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return doctorAnswerService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | DoctorAnswer model = doctorAnswerService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorAnswer当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据DoctorAnswer当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody DoctorAnswer doctorAnswer) { |
| | | DoctorAnswer model = doctorAnswerService.findByObject(doctorAnswer); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody DoctorAnswer doctorAnswer, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | doctorAnswerService.saveOrUpdate(doctorAnswer); |
| | | return ResultBody.ok().data(doctorAnswer).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | doctorAnswerService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorServer; |
| | | import com.kidgrow.oprationcenter.service.IDoctorServerService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生业务服务信息表 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/doctorserver") |
| | | @Api(tags = "医生业务服务信息表") |
| | | public class DoctorServerController extends BaseController{ |
| | | @Autowired |
| | | private IDoctorServerService doctorServerService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return doctorServerService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | DoctorServer model = doctorServerService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorServer当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据DoctorServer当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody DoctorServer doctorServer) { |
| | | DoctorServer model = doctorServerService.findByObject(doctorServer); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody DoctorServer doctorServer, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | doctorServerService.saveOrUpdate(doctorServer); |
| | | return ResultBody.ok().data(doctorServer).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | doctorServerService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorSigning; |
| | | import com.kidgrow.oprationcenter.service.IDoctorSigningService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 签约医生信息表-未完待续 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/doctorsigning") |
| | | @Api(tags = "签约医生信息表-未完待续") |
| | | public class DoctorSigningController extends BaseController{ |
| | | @Autowired |
| | | private IDoctorSigningService doctorSigningService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return doctorSigningService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | DoctorSigning model = doctorSigningService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorSigning当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据DoctorSigning当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody DoctorSigning doctorSigning) { |
| | | DoctorSigning model = doctorSigningService.findByObject(doctorSigning); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody DoctorSigning doctorSigning, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | doctorSigningService.saveOrUpdate(doctorSigning); |
| | | return ResultBody.ok().data(doctorSigning).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | doctorSigningService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.DoctorTemplete; |
| | | import com.kidgrow.oprationcenter.service.IDoctorTempleteService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 医生的模板 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/doctortemplete") |
| | | @Api(tags = "医生的模板") |
| | | public class DoctorTempleteController extends BaseController{ |
| | | @Autowired |
| | | private IDoctorTempleteService doctorTempleteService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return doctorTempleteService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | DoctorTemplete model = doctorTempleteService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据DoctorTemplete当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据DoctorTemplete当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody DoctorTemplete doctorTemplete) { |
| | | DoctorTemplete model = doctorTempleteService.findByObject(doctorTemplete); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody DoctorTemplete doctorTemplete, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | doctorTempleteService.saveOrUpdate(doctorTemplete); |
| | | return ResultBody.ok().data(doctorTemplete).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | doctorTempleteService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.HospitalScreening; |
| | | import com.kidgrow.oprationcenter.service.IHospitalScreeningService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 筛查医院信息表-未完待续 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/hospitalscreening") |
| | | @Api(tags = "筛查医院信息表-未完待续") |
| | | public class HospitalScreeningController extends BaseController{ |
| | | @Autowired |
| | | private IHospitalScreeningService hospitalScreeningService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return hospitalScreeningService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | HospitalScreening model = hospitalScreeningService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据HospitalScreening当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据HospitalScreening当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody HospitalScreening hospitalScreening) { |
| | | HospitalScreening model = hospitalScreeningService.findByObject(hospitalScreening); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody HospitalScreening hospitalScreening, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | hospitalScreeningService.saveOrUpdate(hospitalScreening); |
| | | return ResultBody.ok().data(hospitalScreening).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | hospitalScreeningService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrder; |
| | | import com.kidgrow.oprationcenter.service.IProductOrderService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品的充值记录-订单 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/productorder") |
| | | @Api(tags = "产品的充值记录-订单") |
| | | public class ProductOrderController extends BaseController{ |
| | | @Autowired |
| | | private IProductOrderService productOrderService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return productOrderService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | ProductOrder model = productOrderService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据ProductOrder当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据ProductOrder当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody ProductOrder productOrder) { |
| | | ProductOrder model = productOrderService.findByObject(productOrder); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody ProductOrder productOrder, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | productOrderService.saveOrUpdate(productOrder); |
| | | return ResultBody.ok().data(productOrder).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | productOrderService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.ProductOrderDetail; |
| | | import com.kidgrow.oprationcenter.service.IProductOrderDetailService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: 产品/明显的充值记录 |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/productorderdetail") |
| | | @Api(tags = "产品/明显的充值记录") |
| | | public class ProductOrderDetailController extends BaseController{ |
| | | @Autowired |
| | | private IProductOrderDetailService productOrderDetailService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return productOrderDetailService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | ProductOrderDetail model = productOrderDetailService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据ProductOrderDetail当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据ProductOrderDetail当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody ProductOrderDetail productOrderDetail) { |
| | | ProductOrderDetail model = productOrderDetailService.findByObject(productOrderDetail); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody ProductOrderDetail productOrderDetail, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | productOrderDetailService.saveOrUpdate(productOrderDetail); |
| | | return ResultBody.ok().data(productOrderDetail).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | productOrderDetailService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import java.util.Map; |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | |
| | | import com.kidgrow.oprationcenter.model.SysFeedback; |
| | | import com.kidgrow.oprationcenter.service.ISysFeedbackService; |
| | | import com.kidgrow.common.model.*; |
| | | |
| | | import org.springframework.validation.BindingResult; |
| | | import javax.validation.Valid; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/sysfeedback") |
| | | @Api(tags = "") |
| | | public class SysFeedbackController extends BaseController{ |
| | | @Autowired |
| | | private ISysFeedbackService sysFeedbackService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return sysFeedbackService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | SysFeedback model = sysFeedbackService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysFeedback当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据SysFeedback当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody SysFeedback sysFeedback) { |
| | | SysFeedback model = sysFeedbackService.findByObject(sysFeedback); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody SysFeedback sysFeedback, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | sysFeedbackService.saveOrUpdate(sysFeedback); |
| | | return ResultBody.ok().data(sysFeedback).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | sysFeedbackService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.model.SysLogger; |
| | | import com.kidgrow.oprationcenter.service.ISysLoggerService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:04 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/syslogger") |
| | | @Api(tags = "") |
| | | public class SysLoggerController extends BaseController{ |
| | | @Autowired |
| | | private ISysLoggerService sysLoggerService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return sysLoggerService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | SysLogger model = sysLoggerService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysLogger当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据SysLogger当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody SysLogger sysLogger) { |
| | | SysLogger model = sysLoggerService.findByObject(sysLogger); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody SysLogger sysLogger, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | sysLoggerService.saveOrUpdate(sysLogger); |
| | | return ResultBody.ok().data(sysLogger).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | sysLoggerService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
New file |
| | |
| | | package com.kidgrow.oprationcenter.controller; |
| | | |
| | | import com.kidgrow.common.controller.BaseController; |
| | | import com.kidgrow.common.model.PageResult; |
| | | import com.kidgrow.common.model.ResultBody; |
| | | import com.kidgrow.oprationcenter.model.SysProduct; |
| | | import com.kidgrow.oprationcenter.service.ISysProductService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.BindingResult; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.validation.Valid; |
| | | import java.util.Map; |
| | | |
| | | |
| | | /** |
| | | * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br> |
| | | * @Description: |
| | | * @Project: 用户中心 |
| | | * @CreateDate: Created in 2020-04-01 09:37:05 <br> |
| | | * @Author: <a href="4345453@kidgrow.com">liuke</a> |
| | | * @version: 1.0 |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/sysproduct") |
| | | @Api(tags = "") |
| | | public class SysProductController extends BaseController{ |
| | | @Autowired |
| | | private ISysProductService sysProductService; |
| | | |
| | | /** |
| | | * 列表 |
| | | */ |
| | | @ApiOperation(value = "查询列表") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "page", value = "分页起始位置", required = true, dataType = "Integer"), |
| | | @ApiImplicitParam(name = "limit", value = "分页结束位置", required = true, dataType = "Integer") |
| | | }) |
| | | @GetMapping |
| | | public PageResult list(@RequestParam Map<String, Object> params) { |
| | | if(params.size()==0){ |
| | | params.put("page",1); |
| | | params.put("limit",10); |
| | | } |
| | | return sysProductService.findList(params); |
| | | } |
| | | |
| | | /** |
| | | * 查询 |
| | | */ |
| | | @ApiOperation(value = "查询") |
| | | @GetMapping("/{id}") |
| | | public ResultBody findById(@PathVariable Long id) { |
| | | SysProduct model = sysProductService.getById(id); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 根据SysProduct当做查询条件进行查询 |
| | | */ |
| | | @ApiOperation(value = "根据SysProduct当做查询条件进行查询") |
| | | @PostMapping("/query") |
| | | public ResultBody findByObject(@RequestBody SysProduct sysProduct) { |
| | | SysProduct model = sysProductService.findByObject(sysProduct); |
| | | return ResultBody.ok().data(model).msg("查询成功"); |
| | | } |
| | | |
| | | /** |
| | | * 新增or更新 |
| | | */ |
| | | @ApiOperation(value = "保存") |
| | | @PostMapping |
| | | public ResultBody save(@Valid @RequestBody SysProduct sysProduct, BindingResult bindingResult) { |
| | | if (bindingResult.hasErrors()) { |
| | | return ResultBody.failed().msg(bindingResult.getFieldError().getDefaultMessage()); |
| | | } else { |
| | | sysProductService.saveOrUpdate(sysProduct); |
| | | return ResultBody.ok().data(sysProduct).msg("保存成功"); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除 |
| | | */ |
| | | @ApiOperation(value = "删除") |
| | | @DeleteMapping("/{id}") |
| | | public ResultBody delete(@PathVariable Long id) { |
| | | sysProductService.removeById(id); |
| | | return ResultBody.ok().msg("删除成功"); |
| | | } |
| | | } |
| | |
| | | server: |
| | | tomcat: |
| | | uri-encoding: UTF-8 |
| | | max-threads: 1000 |
| | | min-spare-threads: 30 |
| | | port: 6005 |
| | | |
| | | # mysql |
| | | spring: |
| | | application: |
| | | name: oprationcenter-server |
| | | datasource: |
| | | url: jdbc:mysql://${kidgrow.datasource.ip}:3306/opration_center?allowMultiQueries=true&useUnicode=true&characterEncoding=UTF-8&useSSL=false&serverTimezone=Asia/Shanghai |
| | | username: ${kidgrow.datasource.username} |
| | | password: ${kidgrow.datasource.password} |
| | | # driver-class-name: com.mysql.jdbc.Driver |
| | | type: com.alibaba.druid.pool.DruidDataSource |
| | | druid: |
| | | aop-patterns: com.kidgrow.oprationcenter.controller.*,com.kidgrow.oprationcenter.mapper.* |
| | | |
| | | eureka: |
| | | instance: |
| | | ###注册中心ip地址 |
| | | hostname: ${kidgrow.eureka.instance.hostname} |
| | | instance-id: ${spring.cloud.client.ip-address}:${spring.application.name}:${server.port} |
| | | prefer-ip-address: true |
| | | client: |
| | | serviceUrl: |
| | | defaultZone: ${kidgrow.eureka.client.serviceUrl.defaultZone} |
| | | |
| | | mybatis-plus: |
| | | mapper-locations: classpath:/mapper/*.xml |
| | | #实体扫描,多个package用逗号或者分号分隔 |
| | | typeAliasesPackage: com.kidgrow.common.model |
| | | global-config: |
| | | db-config: |
| | | id-type: ASSIGN_ID |
| | | |
| | | |
| | | |
| | | kidgrow: |
| | | swagger: |
| | | base-package: com.kidgrow.oprationcenter.controller |
| | | description: 运营中心接口文档 |
| | | enabled: true |
| | | title: 运营中心 |
| | | version: 1.0 |
| | | cache-manager: |
| | | configs: |
| | | - key: menu |
| | | second: 300 |
| | | - key: user |
| | | second: 1800 |
| | | #多租户配置 |
| | | tenant: |
| | | enable: true |
| | | #多租户隔离字段 |
| | | tenantid: tenant_id |
| | | ignoreTables: |
| | | - sys_user |
| | | - sys_logger |
| | | ignoreSqls: |
| | | - com.kidgrow.usercenter.mapper.SysRoleMapper.findAll |
| | | |
| | | |
| | |
| | | <artifactId>spring-cloud-starter-netflix-ribbon</artifactId> |
| | | </dependency> |
| | | <!-- 消息总线rabbitMQ --> |
| | | <dependency> |
| | | <groupId>org.springframework.cloud</groupId> |
| | | <artifactId>spring-cloud-starter-bus-amqp</artifactId> |
| | | </dependency> |
| | | <!-- <dependency>--> |
| | | <!-- <groupId>org.springframework.cloud</groupId>--> |
| | | <!-- <artifactId>spring-cloud-starter-bus-amqp</artifactId>--> |
| | | <!-- </dependency>--> |
| | | </dependencies> |
| | | |
| | | <build> |
| | |
| | | strip-prefix: true |
| | | sensitive-headers: '*' |
| | | custom-sensitive-headers: true |
| | | oprationcenter: |
| | | path: /api-opration/** |
| | | service-id: oprationcenter-server |
| | | strip-prefix: true |
| | | sensitive-headers: '*' |
| | | custom-sensitive-headers: true |
| | | demo-order: |
| | | path: /api-order/** |
| | | service-id: demo-order-server |