Compare commits
28 Commits
Author | SHA1 | Date |
---|---|---|
|
45cb6e55a1 | 1 week ago |
|
676559c3bb | 1 week ago |
|
8bf07274d6 | 1 week ago |
|
f6f5b5c983 | 1 week ago |
|
5b1d2078e9 | 1 week ago |
|
61a3cf5d54 | 1 week ago |
|
0e7cf88345 | 1 week ago |
|
e7a5c6735f | 1 week ago |
|
53311e9c10 | 1 week ago |
|
8b500d5848 | 1 week ago |
|
e6b032a1f2 | 1 week ago |
|
dcb3499ac8 | 1 week ago |
|
bd062eceba | 1 week ago |
|
b8cf8e3ee8 | 1 week ago |
|
6b87793790 | 1 week ago |
|
5464e1dbee | 1 week ago |
|
44df6bee76 | 1 week ago |
|
1e74bec548 | 1 week ago |
|
8f072269d2 | 1 week ago |
|
74ec7f83eb | 1 week ago |
|
060df6ee18 | 1 week ago |
|
8fde8ab816 | 1 week ago |
|
d9969d686d | 1 week ago |
|
58752ef8ac | 1 week ago |
|
fe0735644c | 1 week ago |
|
027eeb6bee | 1 week ago |
|
99a6dbadfc | 1 week ago |
|
801e53136f | 1 week ago |
81 changed files with 7246 additions and 1688 deletions
@ -0,0 +1,147 @@ |
|||||
|
package com.acupuncture.common.utils; |
||||
|
|
||||
|
import java.io.*; |
||||
|
import java.util.ArrayList; |
||||
|
import java.util.List; |
||||
|
import java.util.zip.ZipEntry; |
||||
|
import java.util.zip.ZipOutputStream; |
||||
|
|
||||
|
|
||||
|
public class ZipUtils { |
||||
|
|
||||
|
private static final int BUFFER_SIZE = 2 * 1024; |
||||
|
|
||||
|
/** |
||||
|
* 压缩成ZIP 方法1 |
||||
|
* @param srcDir 压缩文件夹路径 |
||||
|
* @param out 压缩文件输出流 |
||||
|
* @param KeepDirStructure 是否保留原来的目录结构,true:保留目录结构; |
||||
|
* false:所有文件跑到压缩包根目录下(注意:不保留目录结构可能会出现同名文件,会压缩失败) |
||||
|
* @throws RuntimeException 压缩失败会抛出运行时异常 |
||||
|
*/ |
||||
|
public static void toZip(String srcDir, OutputStream out, boolean KeepDirStructure) |
||||
|
throws RuntimeException{ |
||||
|
|
||||
|
long start = System.currentTimeMillis(); |
||||
|
ZipOutputStream zos = null ; |
||||
|
try { |
||||
|
zos = new ZipOutputStream(out); |
||||
|
File sourceFile = new File(srcDir); |
||||
|
compress(sourceFile,zos,sourceFile.getName(),KeepDirStructure); |
||||
|
long end = System.currentTimeMillis(); |
||||
|
System.out.println("压缩完成,耗时:" + (end - start) +" ms"); |
||||
|
} catch (Exception e) { |
||||
|
throw new RuntimeException("zip error from ZipUtils",e); |
||||
|
}finally{ |
||||
|
if(zos != null){ |
||||
|
try { |
||||
|
zos.close(); |
||||
|
} catch (IOException e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 压缩成ZIP 方法2 |
||||
|
* @param srcFiles 需要压缩的文件列表 |
||||
|
* @param out 压缩文件输出流 |
||||
|
* @throws RuntimeException 压缩失败会抛出运行时异常 |
||||
|
*/ |
||||
|
public static void toZip(List<File> srcFiles , OutputStream out)throws RuntimeException { |
||||
|
long start = System.currentTimeMillis(); |
||||
|
ZipOutputStream zos = null ; |
||||
|
try { |
||||
|
zos = new ZipOutputStream(out); |
||||
|
for (File srcFile : srcFiles) { |
||||
|
byte[] buf = new byte[BUFFER_SIZE]; |
||||
|
zos.putNextEntry(new ZipEntry(srcFile.getName())); |
||||
|
int len; |
||||
|
FileInputStream in = new FileInputStream(srcFile); |
||||
|
while ((len = in.read(buf)) != -1){ |
||||
|
zos.write(buf, 0, len); |
||||
|
} |
||||
|
zos.closeEntry(); |
||||
|
in.close(); |
||||
|
} |
||||
|
long end = System.currentTimeMillis(); |
||||
|
System.out.println("压缩完成,耗时:" + (end - start) +" ms"); |
||||
|
} catch (Exception e) { |
||||
|
// throw new RuntimeException("zip error from ZipUtils",e);
|
||||
|
}finally{ |
||||
|
if(zos != null){ |
||||
|
try { |
||||
|
zos.close(); |
||||
|
} catch (IOException e) { |
||||
|
e.printStackTrace(); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
|
||||
|
/** |
||||
|
* 递归压缩方法 |
||||
|
* @param sourceFile 源文件 |
||||
|
* @param zos zip输出流 |
||||
|
* @param name 压缩后的名称 |
||||
|
* @param KeepDirStructure 是否保留原来的目录结构,true:保留目录结构; |
||||
|
* false:所有文件跑到压缩包根目录下(注意:不保留目录结构可能会出现同名文件,会压缩失败) |
||||
|
* @throws Exception |
||||
|
*/ |
||||
|
private static void compress(File sourceFile, ZipOutputStream zos, String name, |
||||
|
boolean KeepDirStructure) throws Exception{ |
||||
|
byte[] buf = new byte[BUFFER_SIZE]; |
||||
|
if(sourceFile.isFile()){ |
||||
|
// 向zip输出流中添加一个zip实体,构造器中name为zip实体的文件的名字
|
||||
|
zos.putNextEntry(new ZipEntry(name)); |
||||
|
// copy文件到zip输出流中
|
||||
|
int len; |
||||
|
FileInputStream in = new FileInputStream(sourceFile); |
||||
|
while ((len = in.read(buf)) != -1){ |
||||
|
zos.write(buf, 0, len); |
||||
|
} |
||||
|
// Complete the entry
|
||||
|
zos.closeEntry(); |
||||
|
in.close(); |
||||
|
} else { |
||||
|
File[] listFiles = sourceFile.listFiles(); |
||||
|
if(listFiles == null || listFiles.length == 0){ |
||||
|
// 需要保留原来的文件结构时,需要对空文件夹进行处理
|
||||
|
if(KeepDirStructure){ |
||||
|
// 空文件夹的处理
|
||||
|
zos.putNextEntry(new ZipEntry(name + "/")); |
||||
|
// 没有文件,不需要文件的copy
|
||||
|
zos.closeEntry(); |
||||
|
} |
||||
|
|
||||
|
}else { |
||||
|
for (File file : listFiles) { |
||||
|
// 判断是否需要保留原来的文件结构
|
||||
|
if (KeepDirStructure) { |
||||
|
// 注意:file.getName()前面需要带上父文件夹的名字加一斜杠,
|
||||
|
// 不然最后压缩包中就不能保留原来的文件结构,即:所有文件都跑到压缩包根目录下了
|
||||
|
compress(file, zos, name + "/" + file.getName(),KeepDirStructure); |
||||
|
} else { |
||||
|
compress(file, zos, file.getName(),KeepDirStructure); |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static void main(String[] args) throws Exception { |
||||
|
/** 测试压缩方法1 */ |
||||
|
// FileOutputStream fos1 = new FileOutputStream(new File("c:/mytest01.zip"));
|
||||
|
// ZipUtils.toZip("D:/log", fos1,true);
|
||||
|
|
||||
|
/** 测试压缩方法2 */ |
||||
|
List<File> fileList = new ArrayList<>(); |
||||
|
fileList.add(new File("C:/Users/zzc16/Desktop/admin.sh")); |
||||
|
FileOutputStream fos2 = new FileOutputStream(new File("C:/Users/zzc16/Desktop/admin.zip")); |
||||
|
ZipUtils.toZip(fileList, fos2); |
||||
|
} |
||||
|
} |
@ -0,0 +1,106 @@ |
|||||
|
package com.acupuncture.system.domain.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class RmsReportManagementTenant implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long reportId; |
||||
|
|
||||
|
private Long tenantId; |
||||
|
|
||||
|
private String createBy; |
||||
|
|
||||
|
private Date createTime; |
||||
|
|
||||
|
private String updateBy; |
||||
|
|
||||
|
private Date updateTime; |
||||
|
|
||||
|
private String remark; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getReportId() { |
||||
|
return reportId; |
||||
|
} |
||||
|
|
||||
|
public void setReportId(Long reportId) { |
||||
|
this.reportId = reportId; |
||||
|
} |
||||
|
|
||||
|
public Long getTenantId() { |
||||
|
return tenantId; |
||||
|
} |
||||
|
|
||||
|
public void setTenantId(Long tenantId) { |
||||
|
this.tenantId = tenantId; |
||||
|
} |
||||
|
|
||||
|
public String getCreateBy() { |
||||
|
return createBy; |
||||
|
} |
||||
|
|
||||
|
public void setCreateBy(String createBy) { |
||||
|
this.createBy = createBy == null ? null : createBy.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreateTime() { |
||||
|
return createTime; |
||||
|
} |
||||
|
|
||||
|
public void setCreateTime(Date createTime) { |
||||
|
this.createTime = createTime; |
||||
|
} |
||||
|
|
||||
|
public String getUpdateBy() { |
||||
|
return updateBy; |
||||
|
} |
||||
|
|
||||
|
public void setUpdateBy(String updateBy) { |
||||
|
this.updateBy = updateBy == null ? null : updateBy.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getUpdateTime() { |
||||
|
return updateTime; |
||||
|
} |
||||
|
|
||||
|
public void setUpdateTime(Date updateTime) { |
||||
|
this.updateTime = updateTime; |
||||
|
} |
||||
|
|
||||
|
public String getRemark() { |
||||
|
return remark; |
||||
|
} |
||||
|
|
||||
|
public void setRemark(String remark) { |
||||
|
this.remark = remark == null ? null : remark.trim(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", reportId=").append(reportId); |
||||
|
sb.append(", tenantId=").append(tenantId); |
||||
|
sb.append(", createBy=").append(createBy); |
||||
|
sb.append(", createTime=").append(createTime); |
||||
|
sb.append(", updateBy=").append(updateBy); |
||||
|
sb.append(", updateTime=").append(updateTime); |
||||
|
sb.append(", remark=").append(remark); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,711 @@ |
|||||
|
package com.acupuncture.system.domain.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class RmsReportManagementTenantExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public RmsReportManagementTenantExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdIsNull() { |
||||
|
addCriterion("report_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdIsNotNull() { |
||||
|
addCriterion("report_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdEqualTo(Long value) { |
||||
|
addCriterion("report_id =", value, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdNotEqualTo(Long value) { |
||||
|
addCriterion("report_id <>", value, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdGreaterThan(Long value) { |
||||
|
addCriterion("report_id >", value, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("report_id >=", value, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdLessThan(Long value) { |
||||
|
addCriterion("report_id <", value, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("report_id <=", value, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdIn(List<Long> values) { |
||||
|
addCriterion("report_id in", values, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdNotIn(List<Long> values) { |
||||
|
addCriterion("report_id not in", values, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("report_id between", value1, value2, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("report_id not between", value1, value2, "reportId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdIsNull() { |
||||
|
addCriterion("tenant_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdIsNotNull() { |
||||
|
addCriterion("tenant_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdEqualTo(Long value) { |
||||
|
addCriterion("tenant_id =", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdNotEqualTo(Long value) { |
||||
|
addCriterion("tenant_id <>", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdGreaterThan(Long value) { |
||||
|
addCriterion("tenant_id >", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("tenant_id >=", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdLessThan(Long value) { |
||||
|
addCriterion("tenant_id <", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("tenant_id <=", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdIn(List<Long> values) { |
||||
|
addCriterion("tenant_id in", values, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdNotIn(List<Long> values) { |
||||
|
addCriterion("tenant_id not in", values, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("tenant_id between", value1, value2, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("tenant_id not between", value1, value2, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIsNull() { |
||||
|
addCriterion("create_by is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIsNotNull() { |
||||
|
addCriterion("create_by is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByEqualTo(String value) { |
||||
|
addCriterion("create_by =", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotEqualTo(String value) { |
||||
|
addCriterion("create_by <>", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByGreaterThan(String value) { |
||||
|
addCriterion("create_by >", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("create_by >=", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLessThan(String value) { |
||||
|
addCriterion("create_by <", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLessThanOrEqualTo(String value) { |
||||
|
addCriterion("create_by <=", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLike(String value) { |
||||
|
addCriterion("create_by like", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotLike(String value) { |
||||
|
addCriterion("create_by not like", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIn(List<String> values) { |
||||
|
addCriterion("create_by in", values, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotIn(List<String> values) { |
||||
|
addCriterion("create_by not in", values, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByBetween(String value1, String value2) { |
||||
|
addCriterion("create_by between", value1, value2, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotBetween(String value1, String value2) { |
||||
|
addCriterion("create_by not between", value1, value2, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIsNull() { |
||||
|
addCriterion("create_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIsNotNull() { |
||||
|
addCriterion("create_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeEqualTo(Date value) { |
||||
|
addCriterion("create_time =", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotEqualTo(Date value) { |
||||
|
addCriterion("create_time <>", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeGreaterThan(Date value) { |
||||
|
addCriterion("create_time >", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("create_time >=", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeLessThan(Date value) { |
||||
|
addCriterion("create_time <", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("create_time <=", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIn(List<Date> values) { |
||||
|
addCriterion("create_time in", values, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotIn(List<Date> values) { |
||||
|
addCriterion("create_time not in", values, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
||||
|
addCriterion("create_time between", value1, value2, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("create_time not between", value1, value2, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIsNull() { |
||||
|
addCriterion("update_by is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIsNotNull() { |
||||
|
addCriterion("update_by is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByEqualTo(String value) { |
||||
|
addCriterion("update_by =", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotEqualTo(String value) { |
||||
|
addCriterion("update_by <>", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByGreaterThan(String value) { |
||||
|
addCriterion("update_by >", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("update_by >=", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLessThan(String value) { |
||||
|
addCriterion("update_by <", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
||||
|
addCriterion("update_by <=", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLike(String value) { |
||||
|
addCriterion("update_by like", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotLike(String value) { |
||||
|
addCriterion("update_by not like", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIn(List<String> values) { |
||||
|
addCriterion("update_by in", values, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotIn(List<String> values) { |
||||
|
addCriterion("update_by not in", values, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByBetween(String value1, String value2) { |
||||
|
addCriterion("update_by between", value1, value2, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotBetween(String value1, String value2) { |
||||
|
addCriterion("update_by not between", value1, value2, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIsNull() { |
||||
|
addCriterion("update_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIsNotNull() { |
||||
|
addCriterion("update_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeEqualTo(Date value) { |
||||
|
addCriterion("update_time =", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) { |
||||
|
addCriterion("update_time <>", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeGreaterThan(Date value) { |
||||
|
addCriterion("update_time >", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("update_time >=", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeLessThan(Date value) { |
||||
|
addCriterion("update_time <", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("update_time <=", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIn(List<Date> values) { |
||||
|
addCriterion("update_time in", values, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) { |
||||
|
addCriterion("update_time not in", values, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
||||
|
addCriterion("update_time between", value1, value2, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("update_time not between", value1, value2, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNull() { |
||||
|
addCriterion("remark is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNotNull() { |
||||
|
addCriterion("remark is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkEqualTo(String value) { |
||||
|
addCriterion("remark =", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotEqualTo(String value) { |
||||
|
addCriterion("remark <>", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThan(String value) { |
||||
|
addCriterion("remark >", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("remark >=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThan(String value) { |
||||
|
addCriterion("remark <", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThanOrEqualTo(String value) { |
||||
|
addCriterion("remark <=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLike(String value) { |
||||
|
addCriterion("remark like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotLike(String value) { |
||||
|
addCriterion("remark not like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIn(List<String> values) { |
||||
|
addCriterion("remark in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotIn(List<String> values) { |
||||
|
addCriterion("remark not in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkBetween(String value1, String value2) { |
||||
|
addCriterion("remark between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotBetween(String value1, String value2) { |
||||
|
addCriterion("remark not between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,106 @@ |
|||||
|
package com.acupuncture.system.domain.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class RmsReportTypeTenant implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long reportTypeId; |
||||
|
|
||||
|
private Long tenantId; |
||||
|
|
||||
|
private String createBy; |
||||
|
|
||||
|
private Date createTime; |
||||
|
|
||||
|
private String updateBy; |
||||
|
|
||||
|
private Date updateTime; |
||||
|
|
||||
|
private String remark; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getReportTypeId() { |
||||
|
return reportTypeId; |
||||
|
} |
||||
|
|
||||
|
public void setReportTypeId(Long reportTypeId) { |
||||
|
this.reportTypeId = reportTypeId; |
||||
|
} |
||||
|
|
||||
|
public Long getTenantId() { |
||||
|
return tenantId; |
||||
|
} |
||||
|
|
||||
|
public void setTenantId(Long tenantId) { |
||||
|
this.tenantId = tenantId; |
||||
|
} |
||||
|
|
||||
|
public String getCreateBy() { |
||||
|
return createBy; |
||||
|
} |
||||
|
|
||||
|
public void setCreateBy(String createBy) { |
||||
|
this.createBy = createBy == null ? null : createBy.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreateTime() { |
||||
|
return createTime; |
||||
|
} |
||||
|
|
||||
|
public void setCreateTime(Date createTime) { |
||||
|
this.createTime = createTime; |
||||
|
} |
||||
|
|
||||
|
public String getUpdateBy() { |
||||
|
return updateBy; |
||||
|
} |
||||
|
|
||||
|
public void setUpdateBy(String updateBy) { |
||||
|
this.updateBy = updateBy == null ? null : updateBy.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getUpdateTime() { |
||||
|
return updateTime; |
||||
|
} |
||||
|
|
||||
|
public void setUpdateTime(Date updateTime) { |
||||
|
this.updateTime = updateTime; |
||||
|
} |
||||
|
|
||||
|
public String getRemark() { |
||||
|
return remark; |
||||
|
} |
||||
|
|
||||
|
public void setRemark(String remark) { |
||||
|
this.remark = remark == null ? null : remark.trim(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", reportTypeId=").append(reportTypeId); |
||||
|
sb.append(", tenantId=").append(tenantId); |
||||
|
sb.append(", createBy=").append(createBy); |
||||
|
sb.append(", createTime=").append(createTime); |
||||
|
sb.append(", updateBy=").append(updateBy); |
||||
|
sb.append(", updateTime=").append(updateTime); |
||||
|
sb.append(", remark=").append(remark); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,711 @@ |
|||||
|
package com.acupuncture.system.domain.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class RmsReportTypeTenantExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public RmsReportTypeTenantExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdIsNull() { |
||||
|
addCriterion("report_type_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdIsNotNull() { |
||||
|
addCriterion("report_type_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdEqualTo(Long value) { |
||||
|
addCriterion("report_type_id =", value, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdNotEqualTo(Long value) { |
||||
|
addCriterion("report_type_id <>", value, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdGreaterThan(Long value) { |
||||
|
addCriterion("report_type_id >", value, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("report_type_id >=", value, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdLessThan(Long value) { |
||||
|
addCriterion("report_type_id <", value, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("report_type_id <=", value, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdIn(List<Long> values) { |
||||
|
addCriterion("report_type_id in", values, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdNotIn(List<Long> values) { |
||||
|
addCriterion("report_type_id not in", values, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("report_type_id between", value1, value2, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andReportTypeIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("report_type_id not between", value1, value2, "reportTypeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdIsNull() { |
||||
|
addCriterion("tenant_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdIsNotNull() { |
||||
|
addCriterion("tenant_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdEqualTo(Long value) { |
||||
|
addCriterion("tenant_id =", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdNotEqualTo(Long value) { |
||||
|
addCriterion("tenant_id <>", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdGreaterThan(Long value) { |
||||
|
addCriterion("tenant_id >", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("tenant_id >=", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdLessThan(Long value) { |
||||
|
addCriterion("tenant_id <", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("tenant_id <=", value, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdIn(List<Long> values) { |
||||
|
addCriterion("tenant_id in", values, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdNotIn(List<Long> values) { |
||||
|
addCriterion("tenant_id not in", values, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("tenant_id between", value1, value2, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andTenantIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("tenant_id not between", value1, value2, "tenantId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIsNull() { |
||||
|
addCriterion("create_by is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIsNotNull() { |
||||
|
addCriterion("create_by is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByEqualTo(String value) { |
||||
|
addCriterion("create_by =", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotEqualTo(String value) { |
||||
|
addCriterion("create_by <>", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByGreaterThan(String value) { |
||||
|
addCriterion("create_by >", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("create_by >=", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLessThan(String value) { |
||||
|
addCriterion("create_by <", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLessThanOrEqualTo(String value) { |
||||
|
addCriterion("create_by <=", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLike(String value) { |
||||
|
addCriterion("create_by like", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotLike(String value) { |
||||
|
addCriterion("create_by not like", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIn(List<String> values) { |
||||
|
addCriterion("create_by in", values, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotIn(List<String> values) { |
||||
|
addCriterion("create_by not in", values, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByBetween(String value1, String value2) { |
||||
|
addCriterion("create_by between", value1, value2, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotBetween(String value1, String value2) { |
||||
|
addCriterion("create_by not between", value1, value2, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIsNull() { |
||||
|
addCriterion("create_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIsNotNull() { |
||||
|
addCriterion("create_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeEqualTo(Date value) { |
||||
|
addCriterion("create_time =", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotEqualTo(Date value) { |
||||
|
addCriterion("create_time <>", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeGreaterThan(Date value) { |
||||
|
addCriterion("create_time >", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("create_time >=", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeLessThan(Date value) { |
||||
|
addCriterion("create_time <", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("create_time <=", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIn(List<Date> values) { |
||||
|
addCriterion("create_time in", values, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotIn(List<Date> values) { |
||||
|
addCriterion("create_time not in", values, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
||||
|
addCriterion("create_time between", value1, value2, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("create_time not between", value1, value2, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIsNull() { |
||||
|
addCriterion("update_by is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIsNotNull() { |
||||
|
addCriterion("update_by is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByEqualTo(String value) { |
||||
|
addCriterion("update_by =", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotEqualTo(String value) { |
||||
|
addCriterion("update_by <>", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByGreaterThan(String value) { |
||||
|
addCriterion("update_by >", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("update_by >=", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLessThan(String value) { |
||||
|
addCriterion("update_by <", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
||||
|
addCriterion("update_by <=", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLike(String value) { |
||||
|
addCriterion("update_by like", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotLike(String value) { |
||||
|
addCriterion("update_by not like", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIn(List<String> values) { |
||||
|
addCriterion("update_by in", values, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotIn(List<String> values) { |
||||
|
addCriterion("update_by not in", values, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByBetween(String value1, String value2) { |
||||
|
addCriterion("update_by between", value1, value2, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotBetween(String value1, String value2) { |
||||
|
addCriterion("update_by not between", value1, value2, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIsNull() { |
||||
|
addCriterion("update_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIsNotNull() { |
||||
|
addCriterion("update_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeEqualTo(Date value) { |
||||
|
addCriterion("update_time =", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) { |
||||
|
addCriterion("update_time <>", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeGreaterThan(Date value) { |
||||
|
addCriterion("update_time >", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("update_time >=", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeLessThan(Date value) { |
||||
|
addCriterion("update_time <", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("update_time <=", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIn(List<Date> values) { |
||||
|
addCriterion("update_time in", values, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) { |
||||
|
addCriterion("update_time not in", values, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
||||
|
addCriterion("update_time between", value1, value2, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("update_time not between", value1, value2, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNull() { |
||||
|
addCriterion("remark is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNotNull() { |
||||
|
addCriterion("remark is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkEqualTo(String value) { |
||||
|
addCriterion("remark =", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotEqualTo(String value) { |
||||
|
addCriterion("remark <>", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThan(String value) { |
||||
|
addCriterion("remark >", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("remark >=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThan(String value) { |
||||
|
addCriterion("remark <", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThanOrEqualTo(String value) { |
||||
|
addCriterion("remark <=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLike(String value) { |
||||
|
addCriterion("remark like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotLike(String value) { |
||||
|
addCriterion("remark not like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIn(List<String> values) { |
||||
|
addCriterion("remark in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotIn(List<String> values) { |
||||
|
addCriterion("remark not in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkBetween(String value1, String value2) { |
||||
|
addCriterion("remark between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotBetween(String value1, String value2) { |
||||
|
addCriterion("remark not between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,106 @@ |
|||||
|
package com.acupuncture.system.domain.po; |
||||
|
|
||||
|
import java.io.Serializable; |
||||
|
import java.util.Date; |
||||
|
|
||||
|
public class SysNoticeUser implements Serializable { |
||||
|
private Long id; |
||||
|
|
||||
|
private Long noticeId; |
||||
|
|
||||
|
private Long userId; |
||||
|
|
||||
|
private String createBy; |
||||
|
|
||||
|
private Date createTime; |
||||
|
|
||||
|
private String updateBy; |
||||
|
|
||||
|
private Date updateTime; |
||||
|
|
||||
|
private String remark; |
||||
|
|
||||
|
private static final long serialVersionUID = 1L; |
||||
|
|
||||
|
public Long getId() { |
||||
|
return id; |
||||
|
} |
||||
|
|
||||
|
public void setId(Long id) { |
||||
|
this.id = id; |
||||
|
} |
||||
|
|
||||
|
public Long getNoticeId() { |
||||
|
return noticeId; |
||||
|
} |
||||
|
|
||||
|
public void setNoticeId(Long noticeId) { |
||||
|
this.noticeId = noticeId; |
||||
|
} |
||||
|
|
||||
|
public Long getUserId() { |
||||
|
return userId; |
||||
|
} |
||||
|
|
||||
|
public void setUserId(Long userId) { |
||||
|
this.userId = userId; |
||||
|
} |
||||
|
|
||||
|
public String getCreateBy() { |
||||
|
return createBy; |
||||
|
} |
||||
|
|
||||
|
public void setCreateBy(String createBy) { |
||||
|
this.createBy = createBy == null ? null : createBy.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getCreateTime() { |
||||
|
return createTime; |
||||
|
} |
||||
|
|
||||
|
public void setCreateTime(Date createTime) { |
||||
|
this.createTime = createTime; |
||||
|
} |
||||
|
|
||||
|
public String getUpdateBy() { |
||||
|
return updateBy; |
||||
|
} |
||||
|
|
||||
|
public void setUpdateBy(String updateBy) { |
||||
|
this.updateBy = updateBy == null ? null : updateBy.trim(); |
||||
|
} |
||||
|
|
||||
|
public Date getUpdateTime() { |
||||
|
return updateTime; |
||||
|
} |
||||
|
|
||||
|
public void setUpdateTime(Date updateTime) { |
||||
|
this.updateTime = updateTime; |
||||
|
} |
||||
|
|
||||
|
public String getRemark() { |
||||
|
return remark; |
||||
|
} |
||||
|
|
||||
|
public void setRemark(String remark) { |
||||
|
this.remark = remark == null ? null : remark.trim(); |
||||
|
} |
||||
|
|
||||
|
@Override |
||||
|
public String toString() { |
||||
|
StringBuilder sb = new StringBuilder(); |
||||
|
sb.append(getClass().getSimpleName()); |
||||
|
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
|
sb.append(", id=").append(id); |
||||
|
sb.append(", noticeId=").append(noticeId); |
||||
|
sb.append(", userId=").append(userId); |
||||
|
sb.append(", createBy=").append(createBy); |
||||
|
sb.append(", createTime=").append(createTime); |
||||
|
sb.append(", updateBy=").append(updateBy); |
||||
|
sb.append(", updateTime=").append(updateTime); |
||||
|
sb.append(", remark=").append(remark); |
||||
|
sb.append("]"); |
||||
|
return sb.toString(); |
||||
|
} |
||||
|
} |
@ -0,0 +1,711 @@ |
|||||
|
package com.acupuncture.system.domain.po; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Date; |
||||
|
import java.util.List; |
||||
|
|
||||
|
public class SysNoticeUserExample { |
||||
|
protected String orderByClause; |
||||
|
|
||||
|
protected boolean distinct; |
||||
|
|
||||
|
protected List<Criteria> oredCriteria; |
||||
|
|
||||
|
public SysNoticeUserExample() { |
||||
|
oredCriteria = new ArrayList<Criteria>(); |
||||
|
} |
||||
|
|
||||
|
public void setOrderByClause(String orderByClause) { |
||||
|
this.orderByClause = orderByClause; |
||||
|
} |
||||
|
|
||||
|
public String getOrderByClause() { |
||||
|
return orderByClause; |
||||
|
} |
||||
|
|
||||
|
public void setDistinct(boolean distinct) { |
||||
|
this.distinct = distinct; |
||||
|
} |
||||
|
|
||||
|
public boolean isDistinct() { |
||||
|
return distinct; |
||||
|
} |
||||
|
|
||||
|
public List<Criteria> getOredCriteria() { |
||||
|
return oredCriteria; |
||||
|
} |
||||
|
|
||||
|
public void or(Criteria criteria) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
|
||||
|
public Criteria or() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
oredCriteria.add(criteria); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public Criteria createCriteria() { |
||||
|
Criteria criteria = createCriteriaInternal(); |
||||
|
if (oredCriteria.size() == 0) { |
||||
|
oredCriteria.add(criteria); |
||||
|
} |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected Criteria createCriteriaInternal() { |
||||
|
Criteria criteria = new Criteria(); |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public void clear() { |
||||
|
oredCriteria.clear(); |
||||
|
orderByClause = null; |
||||
|
distinct = false; |
||||
|
} |
||||
|
|
||||
|
protected abstract static class GeneratedCriteria { |
||||
|
protected List<Criterion> criteria; |
||||
|
|
||||
|
protected GeneratedCriteria() { |
||||
|
super(); |
||||
|
criteria = new ArrayList<Criterion>(); |
||||
|
} |
||||
|
|
||||
|
public boolean isValid() { |
||||
|
return criteria.size() > 0; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getAllCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
public List<Criterion> getCriteria() { |
||||
|
return criteria; |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition) { |
||||
|
if (condition == null) { |
||||
|
throw new RuntimeException("Value for condition cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value, String property) { |
||||
|
if (value == null) { |
||||
|
throw new RuntimeException("Value for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value)); |
||||
|
} |
||||
|
|
||||
|
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
||||
|
if (value1 == null || value2 == null) { |
||||
|
throw new RuntimeException("Between values for " + property + " cannot be null"); |
||||
|
} |
||||
|
criteria.add(new Criterion(condition, value1, value2)); |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNull() { |
||||
|
addCriterion("id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIsNotNull() { |
||||
|
addCriterion("id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdEqualTo(Long value) { |
||||
|
addCriterion("id =", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotEqualTo(Long value) { |
||||
|
addCriterion("id <>", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThan(Long value) { |
||||
|
addCriterion("id >", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("id >=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThan(Long value) { |
||||
|
addCriterion("id <", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("id <=", value, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdIn(List<Long> values) { |
||||
|
addCriterion("id in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotIn(List<Long> values) { |
||||
|
addCriterion("id not in", values, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("id between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("id not between", value1, value2, "id"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdIsNull() { |
||||
|
addCriterion("notice_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdIsNotNull() { |
||||
|
addCriterion("notice_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdEqualTo(Long value) { |
||||
|
addCriterion("notice_id =", value, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdNotEqualTo(Long value) { |
||||
|
addCriterion("notice_id <>", value, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdGreaterThan(Long value) { |
||||
|
addCriterion("notice_id >", value, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("notice_id >=", value, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdLessThan(Long value) { |
||||
|
addCriterion("notice_id <", value, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("notice_id <=", value, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdIn(List<Long> values) { |
||||
|
addCriterion("notice_id in", values, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdNotIn(List<Long> values) { |
||||
|
addCriterion("notice_id not in", values, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("notice_id between", value1, value2, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andNoticeIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("notice_id not between", value1, value2, "noticeId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdIsNull() { |
||||
|
addCriterion("user_id is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdIsNotNull() { |
||||
|
addCriterion("user_id is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdEqualTo(Long value) { |
||||
|
addCriterion("user_id =", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotEqualTo(Long value) { |
||||
|
addCriterion("user_id <>", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThan(Long value) { |
||||
|
addCriterion("user_id >", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id >=", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThan(Long value) { |
||||
|
addCriterion("user_id <", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
||||
|
addCriterion("user_id <=", value, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdIn(List<Long> values) { |
||||
|
addCriterion("user_id in", values, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotIn(List<Long> values) { |
||||
|
addCriterion("user_id not in", values, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdBetween(Long value1, Long value2) { |
||||
|
addCriterion("user_id between", value1, value2, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
||||
|
addCriterion("user_id not between", value1, value2, "userId"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIsNull() { |
||||
|
addCriterion("create_by is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIsNotNull() { |
||||
|
addCriterion("create_by is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByEqualTo(String value) { |
||||
|
addCriterion("create_by =", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotEqualTo(String value) { |
||||
|
addCriterion("create_by <>", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByGreaterThan(String value) { |
||||
|
addCriterion("create_by >", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("create_by >=", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLessThan(String value) { |
||||
|
addCriterion("create_by <", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLessThanOrEqualTo(String value) { |
||||
|
addCriterion("create_by <=", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByLike(String value) { |
||||
|
addCriterion("create_by like", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotLike(String value) { |
||||
|
addCriterion("create_by not like", value, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByIn(List<String> values) { |
||||
|
addCriterion("create_by in", values, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotIn(List<String> values) { |
||||
|
addCriterion("create_by not in", values, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByBetween(String value1, String value2) { |
||||
|
addCriterion("create_by between", value1, value2, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateByNotBetween(String value1, String value2) { |
||||
|
addCriterion("create_by not between", value1, value2, "createBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIsNull() { |
||||
|
addCriterion("create_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIsNotNull() { |
||||
|
addCriterion("create_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeEqualTo(Date value) { |
||||
|
addCriterion("create_time =", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotEqualTo(Date value) { |
||||
|
addCriterion("create_time <>", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeGreaterThan(Date value) { |
||||
|
addCriterion("create_time >", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("create_time >=", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeLessThan(Date value) { |
||||
|
addCriterion("create_time <", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("create_time <=", value, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeIn(List<Date> values) { |
||||
|
addCriterion("create_time in", values, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotIn(List<Date> values) { |
||||
|
addCriterion("create_time not in", values, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
||||
|
addCriterion("create_time between", value1, value2, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("create_time not between", value1, value2, "createTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIsNull() { |
||||
|
addCriterion("update_by is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIsNotNull() { |
||||
|
addCriterion("update_by is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByEqualTo(String value) { |
||||
|
addCriterion("update_by =", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotEqualTo(String value) { |
||||
|
addCriterion("update_by <>", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByGreaterThan(String value) { |
||||
|
addCriterion("update_by >", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("update_by >=", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLessThan(String value) { |
||||
|
addCriterion("update_by <", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLessThanOrEqualTo(String value) { |
||||
|
addCriterion("update_by <=", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByLike(String value) { |
||||
|
addCriterion("update_by like", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotLike(String value) { |
||||
|
addCriterion("update_by not like", value, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByIn(List<String> values) { |
||||
|
addCriterion("update_by in", values, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotIn(List<String> values) { |
||||
|
addCriterion("update_by not in", values, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByBetween(String value1, String value2) { |
||||
|
addCriterion("update_by between", value1, value2, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateByNotBetween(String value1, String value2) { |
||||
|
addCriterion("update_by not between", value1, value2, "updateBy"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIsNull() { |
||||
|
addCriterion("update_time is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIsNotNull() { |
||||
|
addCriterion("update_time is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeEqualTo(Date value) { |
||||
|
addCriterion("update_time =", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotEqualTo(Date value) { |
||||
|
addCriterion("update_time <>", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeGreaterThan(Date value) { |
||||
|
addCriterion("update_time >", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
||||
|
addCriterion("update_time >=", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeLessThan(Date value) { |
||||
|
addCriterion("update_time <", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
||||
|
addCriterion("update_time <=", value, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeIn(List<Date> values) { |
||||
|
addCriterion("update_time in", values, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotIn(List<Date> values) { |
||||
|
addCriterion("update_time not in", values, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
||||
|
addCriterion("update_time between", value1, value2, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
||||
|
addCriterion("update_time not between", value1, value2, "updateTime"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNull() { |
||||
|
addCriterion("remark is null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIsNotNull() { |
||||
|
addCriterion("remark is not null"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkEqualTo(String value) { |
||||
|
addCriterion("remark =", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotEqualTo(String value) { |
||||
|
addCriterion("remark <>", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThan(String value) { |
||||
|
addCriterion("remark >", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkGreaterThanOrEqualTo(String value) { |
||||
|
addCriterion("remark >=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThan(String value) { |
||||
|
addCriterion("remark <", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLessThanOrEqualTo(String value) { |
||||
|
addCriterion("remark <=", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkLike(String value) { |
||||
|
addCriterion("remark like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotLike(String value) { |
||||
|
addCriterion("remark not like", value, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkIn(List<String> values) { |
||||
|
addCriterion("remark in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotIn(List<String> values) { |
||||
|
addCriterion("remark not in", values, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkBetween(String value1, String value2) { |
||||
|
addCriterion("remark between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
|
||||
|
public Criteria andRemarkNotBetween(String value1, String value2) { |
||||
|
addCriterion("remark not between", value1, value2, "remark"); |
||||
|
return (Criteria) this; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criteria extends GeneratedCriteria { |
||||
|
|
||||
|
protected Criteria() { |
||||
|
super(); |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
public static class Criterion { |
||||
|
private String condition; |
||||
|
|
||||
|
private Object value; |
||||
|
|
||||
|
private Object secondValue; |
||||
|
|
||||
|
private boolean noValue; |
||||
|
|
||||
|
private boolean singleValue; |
||||
|
|
||||
|
private boolean betweenValue; |
||||
|
|
||||
|
private boolean listValue; |
||||
|
|
||||
|
private String typeHandler; |
||||
|
|
||||
|
public String getCondition() { |
||||
|
return condition; |
||||
|
} |
||||
|
|
||||
|
public Object getValue() { |
||||
|
return value; |
||||
|
} |
||||
|
|
||||
|
public Object getSecondValue() { |
||||
|
return secondValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isNoValue() { |
||||
|
return noValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isSingleValue() { |
||||
|
return singleValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isBetweenValue() { |
||||
|
return betweenValue; |
||||
|
} |
||||
|
|
||||
|
public boolean isListValue() { |
||||
|
return listValue; |
||||
|
} |
||||
|
|
||||
|
public String getTypeHandler() { |
||||
|
return typeHandler; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.typeHandler = null; |
||||
|
this.noValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.typeHandler = typeHandler; |
||||
|
if (value instanceof List<?>) { |
||||
|
this.listValue = true; |
||||
|
} else { |
||||
|
this.singleValue = true; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value) { |
||||
|
this(condition, value, null); |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
||||
|
super(); |
||||
|
this.condition = condition; |
||||
|
this.value = value; |
||||
|
this.secondValue = secondValue; |
||||
|
this.typeHandler = typeHandler; |
||||
|
this.betweenValue = true; |
||||
|
} |
||||
|
|
||||
|
protected Criterion(String condition, Object value, Object secondValue) { |
||||
|
this(condition, value, secondValue, null); |
||||
|
} |
||||
|
} |
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
package com.acupuncture.system.persist.mapper; |
||||
|
|
||||
|
import com.acupuncture.system.domain.po.RmsReportManagementTenant; |
||||
|
import com.acupuncture.system.domain.po.RmsReportManagementTenantExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface RmsReportManagementTenantMapper { |
||||
|
long countByExample(RmsReportManagementTenantExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(RmsReportManagementTenant record); |
||||
|
|
||||
|
int insertSelective(RmsReportManagementTenant record); |
||||
|
|
||||
|
List<RmsReportManagementTenant> selectByExample(RmsReportManagementTenantExample example); |
||||
|
|
||||
|
RmsReportManagementTenant selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") RmsReportManagementTenant record, @Param("example") RmsReportManagementTenantExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") RmsReportManagementTenant record, @Param("example") RmsReportManagementTenantExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(RmsReportManagementTenant record); |
||||
|
|
||||
|
int updateByPrimaryKey(RmsReportManagementTenant record); |
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
package com.acupuncture.system.persist.mapper; |
||||
|
|
||||
|
import com.acupuncture.system.domain.po.RmsReportTypeTenant; |
||||
|
import com.acupuncture.system.domain.po.RmsReportTypeTenantExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface RmsReportTypeTenantMapper { |
||||
|
long countByExample(RmsReportTypeTenantExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(RmsReportTypeTenant record); |
||||
|
|
||||
|
int insertSelective(RmsReportTypeTenant record); |
||||
|
|
||||
|
List<RmsReportTypeTenant> selectByExample(RmsReportTypeTenantExample example); |
||||
|
|
||||
|
RmsReportTypeTenant selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") RmsReportTypeTenant record, @Param("example") RmsReportTypeTenantExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") RmsReportTypeTenant record, @Param("example") RmsReportTypeTenantExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(RmsReportTypeTenant record); |
||||
|
|
||||
|
int updateByPrimaryKey(RmsReportTypeTenant record); |
||||
|
} |
@ -0,0 +1,28 @@ |
|||||
|
package com.acupuncture.system.persist.mapper; |
||||
|
|
||||
|
import com.acupuncture.system.domain.po.SysNoticeUser; |
||||
|
import com.acupuncture.system.domain.po.SysNoticeUserExample; |
||||
|
import java.util.List; |
||||
|
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
|
public interface SysNoticeUserMapper { |
||||
|
long countByExample(SysNoticeUserExample example); |
||||
|
|
||||
|
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
|
int insert(SysNoticeUser record); |
||||
|
|
||||
|
int insertSelective(SysNoticeUser record); |
||||
|
|
||||
|
List<SysNoticeUser> selectByExample(SysNoticeUserExample example); |
||||
|
|
||||
|
SysNoticeUser selectByPrimaryKey(Long id); |
||||
|
|
||||
|
int updateByExampleSelective(@Param("record") SysNoticeUser record, @Param("example") SysNoticeUserExample example); |
||||
|
|
||||
|
int updateByExample(@Param("record") SysNoticeUser record, @Param("example") SysNoticeUserExample example); |
||||
|
|
||||
|
int updateByPrimaryKeySelective(SysNoticeUser record); |
||||
|
|
||||
|
int updateByPrimaryKey(SysNoticeUser record); |
||||
|
} |
@ -1,92 +1,193 @@ |
|||||
package com.acupuncture.system.service.impl; |
package com.acupuncture.system.service.impl; |
||||
|
|
||||
|
import java.util.ArrayList; |
||||
|
import java.util.Arrays; |
||||
|
import java.util.Date; |
||||
import java.util.List; |
import java.util.List; |
||||
|
import java.util.stream.Collectors; |
||||
|
|
||||
|
import cn.hutool.core.collection.CollUtil; |
||||
|
import cn.hutool.core.util.IdUtil; |
||||
|
import com.acupuncture.common.utils.SecurityUtils; |
||||
|
import com.acupuncture.system.domain.po.SysNoticeUser; |
||||
|
import com.acupuncture.system.domain.po.SysNoticeUserExample; |
||||
|
import com.acupuncture.system.persist.mapper.SysNoticeUserMapper; |
||||
import org.springframework.beans.factory.annotation.Autowired; |
import org.springframework.beans.factory.annotation.Autowired; |
||||
import org.springframework.stereotype.Service; |
import org.springframework.stereotype.Service; |
||||
import com.acupuncture.system.domain.SysNotice; |
import com.acupuncture.system.domain.SysNotice; |
||||
import com.acupuncture.system.mapper.SysNoticeMapper; |
import com.acupuncture.system.mapper.SysNoticeMapper; |
||||
import com.acupuncture.system.service.ISysNoticeService; |
import com.acupuncture.system.service.ISysNoticeService; |
||||
|
import org.springframework.transaction.annotation.Transactional; |
||||
|
|
||||
|
import javax.annotation.Resource; |
||||
|
|
||||
/** |
/** |
||||
* 公告 服务层实现 |
* 公告 服务层实现 |
||||
* |
* |
||||
* @author acupuncture |
* @author acupuncture |
||||
*/ |
*/ |
||||
@Service |
@Service |
||||
public class SysNoticeServiceImpl implements ISysNoticeService |
@Transactional |
||||
{ |
public class SysNoticeServiceImpl implements ISysNoticeService { |
||||
@Autowired |
@Autowired |
||||
private SysNoticeMapper noticeMapper; |
private SysNoticeMapper noticeMapper; |
||||
|
@Resource |
||||
|
private SysNoticeUserMapper sysNoticeUserMapper; |
||||
|
|
||||
/** |
/** |
||||
* 查询公告信息 |
* 查询公告信息 |
||||
* |
* |
||||
* @param noticeId 公告ID |
* @param noticeId 公告ID |
||||
* @return 公告信息 |
* @return 公告信息 |
||||
*/ |
*/ |
||||
@Override |
@Override |
||||
public SysNotice selectNoticeById(Long noticeId) |
public SysNotice selectNoticeById(Long noticeId) { |
||||
{ |
SysNotice sysNotice = noticeMapper.selectNoticeById(noticeId); |
||||
return noticeMapper.selectNoticeById(noticeId); |
if (sysNotice != null) { |
||||
|
SysNoticeUserExample sysNoticeUserExample = new SysNoticeUserExample(); |
||||
|
sysNoticeUserExample.createCriteria().andNoticeIdEqualTo(sysNotice.getNoticeId()); |
||||
|
List<SysNoticeUser> sysNoticeUsers = sysNoticeUserMapper.selectByExample(sysNoticeUserExample); |
||||
|
if (CollUtil.isNotEmpty(sysNoticeUsers)) { |
||||
|
sysNotice.setUserIdList(sysNoticeUsers.stream().map(SysNoticeUser::getUserId).collect(Collectors.toList())); |
||||
|
} |
||||
|
} |
||||
|
return sysNotice; |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 查询公告列表 |
* 查询公告列表 |
||||
* |
* |
||||
* @param notice 公告信息 |
* @param notice 公告信息 |
||||
* @return 公告集合 |
* @return 公告集合 |
||||
*/ |
*/ |
||||
@Override |
@Override |
||||
public List<SysNotice> selectNoticeList(SysNotice notice) |
public List<SysNotice> selectNoticeList(SysNotice notice) { |
||||
{ |
if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { |
||||
return noticeMapper.selectNoticeList(notice); |
SysNoticeUserExample sysNoticeUserExample = new SysNoticeUserExample(); |
||||
|
sysNoticeUserExample.createCriteria().andUserIdEqualTo(SecurityUtils.getUserId()); |
||||
|
List<SysNoticeUser> sysNoticeUsers = sysNoticeUserMapper.selectByExample(sysNoticeUserExample); |
||||
|
List<Long> noticeIdList = new ArrayList<>(); |
||||
|
if (CollUtil.isNotEmpty(sysNoticeUsers)) { |
||||
|
noticeIdList = sysNoticeUsers.stream().map(sysNoticeUser -> sysNoticeUser.getNoticeId()).collect(Collectors.toList()); |
||||
|
} |
||||
|
notice.setNoticeIdList(noticeIdList); |
||||
|
} |
||||
|
List<SysNotice> sysNotices = noticeMapper.selectNoticeList(notice, SecurityUtils.getUserId()); |
||||
|
if (CollUtil.isNotEmpty(sysNotices)) { |
||||
|
for (SysNotice sysNotice : sysNotices) { |
||||
|
SysNoticeUserExample sysNoticeUserExample1 = new SysNoticeUserExample(); |
||||
|
sysNoticeUserExample1.createCriteria().andNoticeIdEqualTo(sysNotice.getNoticeId()); |
||||
|
List<SysNoticeUser> sysNoticeUsers1 = sysNoticeUserMapper.selectByExample(sysNoticeUserExample1); |
||||
|
if (CollUtil.isNotEmpty(sysNoticeUsers1)) { |
||||
|
sysNotice.setUserIdList(sysNoticeUsers1.stream().map(SysNoticeUser::getUserId).collect(Collectors.toList())); |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
return sysNotices; |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 新增公告 |
* 新增公告 |
||||
* |
* |
||||
* @param notice 公告信息 |
* @param notice 公告信息 |
||||
* @return 结果 |
* @return 结果 |
||||
*/ |
*/ |
||||
@Override |
@Override |
||||
public int insertNotice(SysNotice notice) |
public int insertNotice(SysNotice notice) { |
||||
{ |
if (CollUtil.isNotEmpty(notice.getUserIdList())) { |
||||
return noticeMapper.insertNotice(notice); |
notice.setIsAll((byte) 0); |
||||
|
} else { |
||||
|
notice.setIsAll((byte) 1); |
||||
|
} |
||||
|
int i = noticeMapper.insertNotice(notice); |
||||
|
if (CollUtil.isNotEmpty(notice.getUserIdList())) { |
||||
|
for (Long userId : notice.getUserIdList()) { |
||||
|
SysNoticeUser sysNoticeUser = new SysNoticeUser(); |
||||
|
sysNoticeUser.setId(IdUtil.getSnowflakeNextId()); |
||||
|
sysNoticeUser.setNoticeId(notice.getNoticeId()); |
||||
|
sysNoticeUser.setUserId(userId); |
||||
|
sysNoticeUser.setCreateBy(SecurityUtils.getUsername()); |
||||
|
sysNoticeUser.setCreateTime(new Date()); |
||||
|
//新增通知用户关联关系
|
||||
|
sysNoticeUserMapper.insertSelective(sysNoticeUser); |
||||
|
} |
||||
|
} |
||||
|
return i; |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 修改公告 |
* 修改公告 |
||||
* |
* |
||||
* @param notice 公告信息 |
* @param notice 公告信息 |
||||
* @return 结果 |
* @return 结果 |
||||
*/ |
*/ |
||||
@Override |
@Override |
||||
public int updateNotice(SysNotice notice) |
public int updateNotice(SysNotice notice) { |
||||
{ |
if (CollUtil.isNotEmpty(notice.getUserIdList())) { |
||||
return noticeMapper.updateNotice(notice); |
notice.setIsAll((byte) 0); |
||||
|
} else { |
||||
|
notice.setIsAll((byte) 1); |
||||
|
} |
||||
|
int i = noticeMapper.updateNotice(notice); |
||||
|
|
||||
|
SysNoticeUserExample sysNoticeUserExample = new SysNoticeUserExample(); |
||||
|
sysNoticeUserExample.createCriteria().andNoticeIdEqualTo(notice.getNoticeId()); |
||||
|
List<SysNoticeUser> sysNoticeUsers = sysNoticeUserMapper.selectByExample(sysNoticeUserExample); |
||||
|
if (CollUtil.isNotEmpty(sysNoticeUsers)) { |
||||
|
for (SysNoticeUser sysNoticeUser : sysNoticeUsers) { |
||||
|
sysNoticeUserMapper.deleteByPrimaryKey(sysNoticeUser.getId()); |
||||
|
} |
||||
|
} |
||||
|
if (CollUtil.isNotEmpty(notice.getUserIdList())) { |
||||
|
for (Long userId : notice.getUserIdList()) { |
||||
|
SysNoticeUser sysNoticeUser = new SysNoticeUser(); |
||||
|
sysNoticeUser.setId(IdUtil.getSnowflakeNextId()); |
||||
|
sysNoticeUser.setNoticeId(notice.getNoticeId()); |
||||
|
sysNoticeUser.setUserId(userId); |
||||
|
sysNoticeUser.setCreateBy(SecurityUtils.getUsername()); |
||||
|
sysNoticeUser.setCreateTime(new Date()); |
||||
|
//新增通知用户关联关系
|
||||
|
sysNoticeUserMapper.insertSelective(sysNoticeUser); |
||||
|
} |
||||
|
} |
||||
|
return i; |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 删除公告对象 |
* 删除公告对象 |
||||
* |
* |
||||
* @param noticeId 公告ID |
* @param noticeId 公告ID |
||||
* @return 结果 |
* @return 结果 |
||||
*/ |
*/ |
||||
@Override |
@Override |
||||
public int deleteNoticeById(Long noticeId) |
public int deleteNoticeById(Long noticeId) { |
||||
{ |
SysNoticeUserExample sysNoticeUserExample = new SysNoticeUserExample(); |
||||
|
sysNoticeUserExample.createCriteria().andNoticeIdEqualTo(noticeId); |
||||
|
List<SysNoticeUser> sysNoticeUsers = sysNoticeUserMapper.selectByExample(sysNoticeUserExample); |
||||
|
if (CollUtil.isNotEmpty(sysNoticeUsers)) { |
||||
|
for (SysNoticeUser sysNoticeUser : sysNoticeUsers) { |
||||
|
sysNoticeUserMapper.deleteByPrimaryKey(sysNoticeUser.getId()); |
||||
|
} |
||||
|
} |
||||
return noticeMapper.deleteNoticeById(noticeId); |
return noticeMapper.deleteNoticeById(noticeId); |
||||
} |
} |
||||
|
|
||||
/** |
/** |
||||
* 批量删除公告信息 |
* 批量删除公告信息 |
||||
* |
* |
||||
* @param noticeIds 需要删除的公告ID |
* @param noticeIds 需要删除的公告ID |
||||
* @return 结果 |
* @return 结果 |
||||
*/ |
*/ |
||||
@Override |
@Override |
||||
public int deleteNoticeByIds(Long[] noticeIds) |
public int deleteNoticeByIds(Long[] noticeIds) { |
||||
{ |
SysNoticeUserExample sysNoticeUserExample = new SysNoticeUserExample(); |
||||
|
sysNoticeUserExample.createCriteria().andNoticeIdIn(Arrays.asList(noticeIds)); |
||||
|
List<SysNoticeUser> sysNoticeUsers = sysNoticeUserMapper.selectByExample(sysNoticeUserExample); |
||||
|
if (CollUtil.isNotEmpty(sysNoticeUsers)) { |
||||
|
for (SysNoticeUser sysNoticeUser : sysNoticeUsers) { |
||||
|
sysNoticeUserMapper.deleteByPrimaryKey(sysNoticeUser.getId()); |
||||
|
} |
||||
|
} |
||||
return noticeMapper.deleteNoticeByIds(noticeIds); |
return noticeMapper.deleteNoticeByIds(noticeIds); |
||||
} |
} |
||||
} |
} |
||||
|
@ -0,0 +1,252 @@ |
|||||
|
<?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.acupuncture.system.persist.mapper.RmsReportManagementTenantMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.RmsReportManagementTenant"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="report_id" jdbcType="BIGINT" property="reportId" /> |
||||
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
||||
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, report_id, tenant_id, create_by, create_time, update_by, update_time, remark |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.RmsReportManagementTenantExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from rms_report_management_tenant |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from rms_report_management_tenant |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from rms_report_management_tenant |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.acupuncture.system.domain.po.RmsReportManagementTenant"> |
||||
|
insert into rms_report_management_tenant (id, report_id, tenant_id, |
||||
|
create_by, create_time, update_by, |
||||
|
update_time, remark) |
||||
|
values (#{id,jdbcType=BIGINT}, #{reportId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, |
||||
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
||||
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.RmsReportManagementTenant"> |
||||
|
insert into rms_report_management_tenant |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="reportId != null"> |
||||
|
report_id, |
||||
|
</if> |
||||
|
<if test="tenantId != null"> |
||||
|
tenant_id, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
create_by, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="reportId != null"> |
||||
|
#{reportId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="tenantId != null"> |
||||
|
#{tenantId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
#{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
#{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
#{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
#{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.RmsReportManagementTenantExample" resultType="java.lang.Long"> |
||||
|
select count(*) from rms_report_management_tenant |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update rms_report_management_tenant |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.reportId != null"> |
||||
|
report_id = #{record.reportId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.tenantId != null"> |
||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createBy != null"> |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createTime != null"> |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updateBy != null"> |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.updateTime != null"> |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.remark != null"> |
||||
|
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update rms_report_management_tenant |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
report_id = #{record.reportId,jdbcType=BIGINT}, |
||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
remark = #{record.remark,jdbcType=VARCHAR} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.RmsReportManagementTenant"> |
||||
|
update rms_report_management_tenant |
||||
|
<set> |
||||
|
<if test="reportId != null"> |
||||
|
report_id = #{reportId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="tenantId != null"> |
||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark = #{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.RmsReportManagementTenant"> |
||||
|
update rms_report_management_tenant |
||||
|
set report_id = #{reportId,jdbcType=BIGINT}, |
||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
remark = #{remark,jdbcType=VARCHAR} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,252 @@ |
|||||
|
<?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.acupuncture.system.persist.mapper.RmsReportTypeTenantMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.RmsReportTypeTenant"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="report_type_id" jdbcType="BIGINT" property="reportTypeId" /> |
||||
|
<result column="tenant_id" jdbcType="BIGINT" property="tenantId" /> |
||||
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, report_type_id, tenant_id, create_by, create_time, update_by, update_time, remark |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.RmsReportTypeTenantExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from rms_report_type_tenant |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from rms_report_type_tenant |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from rms_report_type_tenant |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.acupuncture.system.domain.po.RmsReportTypeTenant"> |
||||
|
insert into rms_report_type_tenant (id, report_type_id, tenant_id, |
||||
|
create_by, create_time, update_by, |
||||
|
update_time, remark) |
||||
|
values (#{id,jdbcType=BIGINT}, #{reportTypeId,jdbcType=BIGINT}, #{tenantId,jdbcType=BIGINT}, |
||||
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
||||
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.RmsReportTypeTenant"> |
||||
|
insert into rms_report_type_tenant |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="reportTypeId != null"> |
||||
|
report_type_id, |
||||
|
</if> |
||||
|
<if test="tenantId != null"> |
||||
|
tenant_id, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
create_by, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="reportTypeId != null"> |
||||
|
#{reportTypeId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="tenantId != null"> |
||||
|
#{tenantId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
#{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
#{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
#{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
#{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.RmsReportTypeTenantExample" resultType="java.lang.Long"> |
||||
|
select count(*) from rms_report_type_tenant |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update rms_report_type_tenant |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.reportTypeId != null"> |
||||
|
report_type_id = #{record.reportTypeId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.tenantId != null"> |
||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createBy != null"> |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createTime != null"> |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updateBy != null"> |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.updateTime != null"> |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.remark != null"> |
||||
|
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update rms_report_type_tenant |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
report_type_id = #{record.reportTypeId,jdbcType=BIGINT}, |
||||
|
tenant_id = #{record.tenantId,jdbcType=BIGINT}, |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
remark = #{record.remark,jdbcType=VARCHAR} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.RmsReportTypeTenant"> |
||||
|
update rms_report_type_tenant |
||||
|
<set> |
||||
|
<if test="reportTypeId != null"> |
||||
|
report_type_id = #{reportTypeId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="tenantId != null"> |
||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark = #{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.RmsReportTypeTenant"> |
||||
|
update rms_report_type_tenant |
||||
|
set report_type_id = #{reportTypeId,jdbcType=BIGINT}, |
||||
|
tenant_id = #{tenantId,jdbcType=BIGINT}, |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
remark = #{remark,jdbcType=VARCHAR} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -0,0 +1,252 @@ |
|||||
|
<?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.acupuncture.system.persist.mapper.SysNoticeUserMapper"> |
||||
|
<resultMap id="BaseResultMap" type="com.acupuncture.system.domain.po.SysNoticeUser"> |
||||
|
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
|
<result column="notice_id" jdbcType="BIGINT" property="noticeId" /> |
||||
|
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
||||
|
<result column="create_by" jdbcType="VARCHAR" property="createBy" /> |
||||
|
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
||||
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
||||
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
||||
|
<result column="remark" jdbcType="VARCHAR" property="remark" /> |
||||
|
</resultMap> |
||||
|
<sql id="Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Update_By_Example_Where_Clause"> |
||||
|
<where> |
||||
|
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
|
<if test="criteria.valid"> |
||||
|
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
|
<foreach collection="criteria.criteria" item="criterion"> |
||||
|
<choose> |
||||
|
<when test="criterion.noValue"> |
||||
|
and ${criterion.condition} |
||||
|
</when> |
||||
|
<when test="criterion.singleValue"> |
||||
|
and ${criterion.condition} #{criterion.value} |
||||
|
</when> |
||||
|
<when test="criterion.betweenValue"> |
||||
|
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
|
</when> |
||||
|
<when test="criterion.listValue"> |
||||
|
and ${criterion.condition} |
||||
|
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
|
#{listItem} |
||||
|
</foreach> |
||||
|
</when> |
||||
|
</choose> |
||||
|
</foreach> |
||||
|
</trim> |
||||
|
</if> |
||||
|
</foreach> |
||||
|
</where> |
||||
|
</sql> |
||||
|
<sql id="Base_Column_List"> |
||||
|
id, notice_id, user_id, create_by, create_time, update_by, update_time, remark |
||||
|
</sql> |
||||
|
<select id="selectByExample" parameterType="com.acupuncture.system.domain.po.SysNoticeUserExample" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<if test="distinct"> |
||||
|
distinct |
||||
|
</if> |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from sys_notice_user |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
<if test="orderByClause != null"> |
||||
|
order by ${orderByClause} |
||||
|
</if> |
||||
|
</select> |
||||
|
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
|
select |
||||
|
<include refid="Base_Column_List" /> |
||||
|
from sys_notice_user |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</select> |
||||
|
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
|
delete from sys_notice_user |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</delete> |
||||
|
<insert id="insert" parameterType="com.acupuncture.system.domain.po.SysNoticeUser"> |
||||
|
insert into sys_notice_user (id, notice_id, user_id, |
||||
|
create_by, create_time, update_by, |
||||
|
update_time, remark) |
||||
|
values (#{id,jdbcType=BIGINT}, #{noticeId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, |
||||
|
#{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, #{updateBy,jdbcType=VARCHAR}, |
||||
|
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) |
||||
|
</insert> |
||||
|
<insert id="insertSelective" parameterType="com.acupuncture.system.domain.po.SysNoticeUser"> |
||||
|
insert into sys_notice_user |
||||
|
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
id, |
||||
|
</if> |
||||
|
<if test="noticeId != null"> |
||||
|
notice_id, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
create_by, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark, |
||||
|
</if> |
||||
|
</trim> |
||||
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
|
<if test="id != null"> |
||||
|
#{id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="noticeId != null"> |
||||
|
#{noticeId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
#{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
#{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
#{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
#{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
#{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
#{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</trim> |
||||
|
</insert> |
||||
|
<select id="countByExample" parameterType="com.acupuncture.system.domain.po.SysNoticeUserExample" resultType="java.lang.Long"> |
||||
|
select count(*) from sys_notice_user |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</select> |
||||
|
<update id="updateByExampleSelective" parameterType="map"> |
||||
|
update sys_notice_user |
||||
|
<set> |
||||
|
<if test="record.id != null"> |
||||
|
id = #{record.id,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.noticeId != null"> |
||||
|
notice_id = #{record.noticeId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.userId != null"> |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="record.createBy != null"> |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.createTime != null"> |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.updateBy != null"> |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="record.updateTime != null"> |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="record.remark != null"> |
||||
|
remark = #{record.remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByExample" parameterType="map"> |
||||
|
update sys_notice_user |
||||
|
set id = #{record.id,jdbcType=BIGINT}, |
||||
|
notice_id = #{record.noticeId,jdbcType=BIGINT}, |
||||
|
user_id = #{record.userId,jdbcType=BIGINT}, |
||||
|
create_by = #{record.createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
||||
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
||||
|
remark = #{record.remark,jdbcType=VARCHAR} |
||||
|
<if test="_parameter != null"> |
||||
|
<include refid="Update_By_Example_Where_Clause" /> |
||||
|
</if> |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKeySelective" parameterType="com.acupuncture.system.domain.po.SysNoticeUser"> |
||||
|
update sys_notice_user |
||||
|
<set> |
||||
|
<if test="noticeId != null"> |
||||
|
notice_id = #{noticeId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="userId != null"> |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
</if> |
||||
|
<if test="createBy != null"> |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="createTime != null"> |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="updateBy != null"> |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
<if test="updateTime != null"> |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
</if> |
||||
|
<if test="remark != null"> |
||||
|
remark = #{remark,jdbcType=VARCHAR}, |
||||
|
</if> |
||||
|
</set> |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
<update id="updateByPrimaryKey" parameterType="com.acupuncture.system.domain.po.SysNoticeUser"> |
||||
|
update sys_notice_user |
||||
|
set notice_id = #{noticeId,jdbcType=BIGINT}, |
||||
|
user_id = #{userId,jdbcType=BIGINT}, |
||||
|
create_by = #{createBy,jdbcType=VARCHAR}, |
||||
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
||||
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
||||
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
||||
|
remark = #{remark,jdbcType=VARCHAR} |
||||
|
where id = #{id,jdbcType=BIGINT} |
||||
|
</update> |
||||
|
</mapper> |
@ -1,107 +1,121 @@ |
|||||
import { login, logout, getInfo } from '@/api/login' |
import { login, logout, getInfo } from "@/api/login"; |
||||
import { getToken, setToken, removeToken } from '@/utils/auth' |
import { getToken, setToken, removeToken } from "@/utils/auth"; |
||||
import { isHttp, isEmpty } from "@/utils/validate" |
import { isHttp, isEmpty } from "@/utils/validate"; |
||||
import defAva from '@/assets/images/profile.jpg' |
import defAva from "@/assets/images/profile.jpg"; |
||||
|
|
||||
const user = { |
const user = { |
||||
state: { |
state: { |
||||
token: getToken(), |
token: getToken(), |
||||
id: '', |
id: "", |
||||
name: '', |
name: "", |
||||
avatar: '', |
avatar: "", |
||||
roles: [], |
roles: [], |
||||
permissions: [] |
permissions: [], |
||||
|
forceUpdPwdFlag: 0, |
||||
}, |
}, |
||||
|
|
||||
mutations: { |
mutations: { |
||||
SET_TOKEN: (state, token) => { |
SET_TOKEN: (state, token) => { |
||||
state.token = token |
state.token = token; |
||||
}, |
}, |
||||
SET_ID: (state, id) => { |
SET_ID: (state, id) => { |
||||
state.id = id |
state.id = id; |
||||
}, |
}, |
||||
SET_NAME: (state, name) => { |
SET_NAME: (state, name) => { |
||||
state.name = name |
state.name = name; |
||||
}, |
}, |
||||
SET_AVATAR: (state, avatar) => { |
SET_AVATAR: (state, avatar) => { |
||||
state.avatar = avatar |
state.avatar = avatar; |
||||
}, |
}, |
||||
SET_ROLES: (state, roles) => { |
SET_ROLES: (state, roles) => { |
||||
state.roles = roles |
state.roles = roles; |
||||
}, |
}, |
||||
SET_PERMISSIONS: (state, permissions) => { |
SET_PERMISSIONS: (state, permissions) => { |
||||
state.permissions = permissions |
state.permissions = permissions; |
||||
} |
}, |
||||
|
SET_PWDFLAG: (state, data) => { |
||||
|
state.forceUpdPwdFlag = data; |
||||
|
}, |
||||
}, |
}, |
||||
|
|
||||
actions: { |
actions: { |
||||
// 登录
|
// 登录
|
||||
Login({ commit }, userInfo) { |
Login({ commit }, userInfo) { |
||||
const username = userInfo.username.trim() |
const username = userInfo.username.trim(); |
||||
const password = userInfo.password |
const password = userInfo.password; |
||||
const code = userInfo.code |
const code = userInfo.code; |
||||
const uuid = userInfo.uuid |
const uuid = userInfo.uuid; |
||||
return new Promise((resolve, reject) => { |
return new Promise((resolve, reject) => { |
||||
login(username, password, code, uuid).then(res => { |
login(username, password, code, uuid) |
||||
setToken(res.token) |
.then((res) => { |
||||
commit('SET_TOKEN', res.token) |
setToken(res.token); |
||||
resolve() |
commit("SET_TOKEN", res.token); |
||||
}).catch(error => { |
resolve(); |
||||
reject(error) |
}) |
||||
}) |
.catch((error) => { |
||||
}) |
reject(error); |
||||
|
}); |
||||
|
}); |
||||
}, |
}, |
||||
|
|
||||
// 获取用户信息
|
// 获取用户信息
|
||||
GetInfo({ commit, state }) { |
GetInfo({ commit, state }) { |
||||
return new Promise((resolve, reject) => { |
return new Promise((resolve, reject) => { |
||||
getInfo().then(res => { |
getInfo() |
||||
const user = res.user |
.then((res) => { |
||||
localStorage.setItem("user", JSON.stringify(user)) |
const user = res.user; |
||||
let avatar = user.avatar || "" |
commit("SET_PWDFLAG", res.forceUpdPwdFlag); |
||||
if (!isHttp(avatar)) { |
localStorage.setItem("user", JSON.stringify(user)); |
||||
avatar = (isEmpty(avatar)) ? defAva : process.env.VUE_APP_BASE_API + avatar |
let avatar = user.avatar || ""; |
||||
} |
if (!isHttp(avatar)) { |
||||
if (res.roles && res.roles.length > 0) { // 验证返回的roles是否是一个非空数组
|
avatar = isEmpty(avatar) |
||||
commit('SET_ROLES', res.roles) |
? defAva |
||||
commit('SET_PERMISSIONS', res.permissions) |
: process.env.VUE_APP_BASE_API + avatar; |
||||
} else { |
} |
||||
commit('SET_ROLES', ['ROLE_DEFAULT']) |
if (res.roles && res.roles.length > 0) { |
||||
} |
// 验证返回的roles是否是一个非空数组
|
||||
commit('SET_ID', user.userId) |
commit("SET_ROLES", res.roles); |
||||
commit('SET_NAME', user.userName) |
commit("SET_PERMISSIONS", res.permissions); |
||||
commit('SET_AVATAR', avatar) |
} else { |
||||
resolve(res) |
commit("SET_ROLES", ["ROLE_DEFAULT"]); |
||||
}).catch(error => { |
} |
||||
reject(error) |
commit("SET_ID", user.userId); |
||||
}) |
commit("SET_NAME", user.userName); |
||||
}) |
commit("SET_AVATAR", avatar); |
||||
|
resolve(res); |
||||
|
}) |
||||
|
.catch((error) => { |
||||
|
reject(error); |
||||
|
}); |
||||
|
}); |
||||
}, |
}, |
||||
|
|
||||
// 退出系统
|
// 退出系统
|
||||
LogOut({ commit, state }) { |
LogOut({ commit, state }) { |
||||
return new Promise((resolve, reject) => { |
return new Promise((resolve, reject) => { |
||||
logout(state.token).then(() => { |
logout(state.token) |
||||
commit('SET_TOKEN', '') |
.then(() => { |
||||
commit('SET_ROLES', []) |
commit("SET_TOKEN", ""); |
||||
commit('SET_PERMISSIONS', []) |
commit("SET_ROLES", []); |
||||
removeToken() |
commit("SET_PERMISSIONS", []); |
||||
resolve() |
removeToken(); |
||||
}).catch(error => { |
resolve(); |
||||
reject(error) |
}) |
||||
}) |
.catch((error) => { |
||||
}) |
reject(error); |
||||
|
}); |
||||
|
}); |
||||
}, |
}, |
||||
|
|
||||
// 前端 登出
|
// 前端 登出
|
||||
FedLogOut({ commit }) { |
FedLogOut({ commit }) { |
||||
return new Promise(resolve => { |
return new Promise((resolve) => { |
||||
commit('SET_TOKEN', '') |
commit("SET_TOKEN", ""); |
||||
removeToken() |
removeToken(); |
||||
resolve() |
resolve(); |
||||
}) |
}); |
||||
} |
}, |
||||
} |
}, |
||||
} |
}; |
||||
|
|
||||
export default user |
export default user; |
||||
|
Binary file not shown.
Binary file not shown.
@ -1,57 +1,65 @@ |
|||||
import request from '@/utils/request' |
import request from "@/utils/request"; |
||||
|
|
||||
// 查询缓存详细
|
// 查询缓存详细
|
||||
export function getCache() { |
export function getCache() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache', |
url: "/monitor/cache", |
||||
method: 'get' |
method: "get", |
||||
}) |
}); |
||||
} |
} |
||||
|
|
||||
// 查询缓存名称列表
|
// 查询缓存名称列表
|
||||
export function listCacheName() { |
export function listCacheName() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/getNames', |
url: "/monitor/cache/getNames", |
||||
method: 'get' |
method: "get", |
||||
}) |
}); |
||||
} |
} |
||||
|
|
||||
// 查询缓存键名列表
|
// 查询缓存键名列表
|
||||
export function listCacheKey(cacheName) { |
export function listCacheKey(cacheName) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/getKeys/' + cacheName, |
url: "/monitor/cache/getKeys/" + cacheName, |
||||
method: 'get' |
method: "get", |
||||
}) |
}); |
||||
} |
} |
||||
|
|
||||
// 查询缓存内容
|
// 查询缓存内容
|
||||
export function getCacheValue(cacheName, cacheKey) { |
export function getCacheValue(cacheName, cacheKey) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/getValue/' + cacheName + '/' + cacheKey, |
url: "/monitor/cache/getValue/" + cacheName + "/" + cacheKey, |
||||
method: 'get' |
method: "get", |
||||
}) |
}); |
||||
} |
} |
||||
|
|
||||
// 清理指定名称缓存
|
// 清理指定名称缓存
|
||||
export function clearCacheName(cacheName) { |
export function clearCacheName(cacheName) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/clearCacheName/' + cacheName, |
url: "/monitor/cache/clearCacheName/" + cacheName, |
||||
method: 'delete' |
method: "delete", |
||||
}) |
}); |
||||
} |
} |
||||
|
|
||||
// 清理指定键名缓存
|
// 清理指定键名缓存
|
||||
export function clearCacheKey(cacheKey) { |
export function clearCacheKey(cacheKey) { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/clearCacheKey/' + cacheKey, |
url: "/monitor/cache/clearCacheKey/" + cacheKey, |
||||
method: 'delete' |
method: "delete", |
||||
}) |
}); |
||||
} |
} |
||||
|
|
||||
// 清理全部缓存
|
// 清理全部缓存
|
||||
export function clearCacheAll() { |
export function clearCacheAll() { |
||||
return request({ |
return request({ |
||||
url: '/monitor/cache/clearCacheAll', |
url: "/monitor/cache/clearCacheAll", |
||||
method: 'delete' |
method: "delete", |
||||
}) |
}); |
||||
|
} |
||||
|
// 新增修改
|
||||
|
export function cacheAdd(query) { |
||||
|
return request({ |
||||
|
url: "/monitor/cache/add", |
||||
|
method: "get", |
||||
|
params: query, |
||||
|
}); |
||||
} |
} |
||||
|
@ -1,345 +1,620 @@ |
|||||
<template> |
<template> |
||||
<div class="app-container"> |
<div class="app-container"> |
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
<el-form |
||||
label-width="80px"> |
:model="queryParams" |
||||
<el-form-item label="标题" prop="reportTitle"> |
ref="queryForm" |
||||
<el-input v-model="queryParams.param.reportTitle" placeholder="请输入" clearable |
size="small" |
||||
@keyup.enter.native="handleQuery" /> |
:inline="true" |
||||
</el-form-item> |
v-show="showSearch" |
||||
<el-form-item> |
label-width="80px" |
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
> |
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
<el-form-item label="标题" prop="reportTitle"> |
||||
</el-form-item> |
<el-input |
||||
</el-form> |
v-model="queryParams.param.reportTitle" |
||||
<el-row :gutter="10" class="mb8"> |
placeholder="请输入" |
||||
<el-col :span="1.5"> |
clearable |
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> |
@keyup.enter.native="handleQuery" |
||||
</el-col> |
/> |
||||
<el-col :span="1.5"> |
</el-form-item> |
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" |
<el-form-item> |
||||
@click="handleDelete">删除</el-button> |
<el-button |
||||
</el-col> |
type="primary" |
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
icon="el-icon-search" |
||||
</el-row> |
size="mini" |
||||
|
@click="handleQuery" |
||||
|
>搜索</el-button |
||||
|
> |
||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
||||
|
>重置</el-button |
||||
|
> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-row :gutter="10" class="mb8"> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
plain |
||||
|
icon="el-icon-plus" |
||||
|
size="mini" |
||||
|
@click="handleAdd" |
||||
|
>新增</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="danger" |
||||
|
plain |
||||
|
icon="el-icon-delete" |
||||
|
size="mini" |
||||
|
:disabled="multiple" |
||||
|
@click="handleDelete" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
<el-table v-loading="loading" :data="listData" @selection-change="handleSelectionChange" max-height="600"> |
<el-table |
||||
<el-table-column type="selection" width="55" align="center" /> |
v-loading="loading" |
||||
<el-table-column fixed label="标题" align="center" prop="reportTitle" min-width="100" /> |
:data="listData" |
||||
<el-table-column fixed label="类型" align="center" prop="typeName" show-overflow-tooltip min-width="100"> |
@selection-change="handleSelectionChange" |
||||
</el-table-column> |
max-height="600" |
||||
<el-table-column fixed label="开始时间" align="center" prop="timeRangeStart" show-overflow-tooltip |
> |
||||
min-width="100"> |
<el-table-column type="selection" width="55" align="center" /> |
||||
<template slot-scope="scope"> |
<el-table-column |
||||
<span> |
fixed |
||||
{{ parseTime(scope.row.timeRangeStart, "{y}-{m}-{d}") }} |
label="标题" |
||||
</span> |
align="center" |
||||
</template> |
prop="reportTitle" |
||||
</el-table-column> |
min-width="100" |
||||
<el-table-column fixed label="结束时间" align="center" prop="timeRangeEnd" show-overflow-tooltip |
/> |
||||
min-width="100"> |
<el-table-column |
||||
<template slot-scope="scope"> |
fixed |
||||
<span> |
label="类型" |
||||
{{ parseTime(scope.row.timeRangeEnd, "{y}-{m}-{d}") }} |
align="center" |
||||
</span> |
prop="typeName" |
||||
</template> |
show-overflow-tooltip |
||||
</el-table-column> |
min-width="100" |
||||
<el-table-column label="创建人/创建时间" align="center" min-width="140"> |
> |
||||
<template slot-scope="scope"> |
</el-table-column> |
||||
<div>{{scope.row.createBy}}</div> |
<el-table-column |
||||
<span> |
label="单位" |
||||
{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }} |
align="center" |
||||
</span> |
prop="tenantIdList" |
||||
</template> |
min-width="250" |
||||
</el-table-column> |
show-overflow-tooltip |
||||
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200"> |
> |
||||
<template slot-scope="scope"> |
<template slot-scope="scope"> |
||||
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
<!-- 通过id列表找到tenantsData中匹配的数据并替换为中文,数据后面添加逗号 --> |
||||
:disabled="scope.row.id == 1 || scope.row.id == 2">修改</el-button> |
<template v-for="(item, index) in scope.row.tenantIdList"> |
||||
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
<template v-if="tenantsData.some((tenant) => tenant.id === item)"> |
||||
:disabled="scope.row.id == 1 || scope.row.id == 2">删除</el-button> |
{{ tenantsData.find((tenant) => tenant.id === item).name |
||||
</template> |
}}{{ index < scope.row.tenantIdList.length - 1 ? "," : "" }} |
||||
</el-table-column> |
</template> |
||||
</el-table> |
</template> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
fixed |
||||
|
label="开始时间" |
||||
|
align="center" |
||||
|
prop="timeRangeStart" |
||||
|
show-overflow-tooltip |
||||
|
min-width="100" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span> |
||||
|
{{ parseTime(scope.row.timeRangeStart, "{y}-{m}-{d}") }} |
||||
|
</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
fixed |
||||
|
label="结束时间" |
||||
|
align="center" |
||||
|
prop="timeRangeEnd" |
||||
|
show-overflow-tooltip |
||||
|
min-width="100" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span> |
||||
|
{{ parseTime(scope.row.timeRangeEnd, "{y}-{m}-{d}") }} |
||||
|
</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="状态" |
||||
|
align="center" |
||||
|
prop="status" |
||||
|
show-overflow-tooltip |
||||
|
min-width="100" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<span v-if="scope.row.status === 0"> 未开始 </span> |
||||
|
<span v-if="scope.row.status === 1"> 进行中 </span> |
||||
|
<span v-if="scope.row.status === 2"> 已结束 </span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<!-- <el-table-column |
||||
|
label="开启/结束" |
||||
|
align="center" |
||||
|
prop="typeName" |
||||
|
show-overflow-tooltip |
||||
|
min-width="100" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-switch |
||||
|
v-model="scope.row.status" |
||||
|
active-color="#13ce66" |
||||
|
inactive-color="#ff4949" |
||||
|
></el-switch> |
||||
|
</template> |
||||
|
</el-table-column> --> |
||||
|
<el-table-column label="创建人/创建时间" align="center" min-width="140"> |
||||
|
<template slot-scope="scope"> |
||||
|
<div>{{ scope.row.createBy }}</div> |
||||
|
<span> |
||||
|
{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }} |
||||
|
</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
<el-table-column |
||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> |
fixed="right" |
||||
|
label="操作" |
||||
|
align="center" |
||||
|
class-name="small-padding fixed-width" |
||||
|
width="150" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button |
||||
|
v-if="scope.row.status === 0 || scope.row.status === 2" |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-folder-checked" |
||||
|
@click="handleSwitch(scope.row, 1)" |
||||
|
>开启</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
v-if="scope.row.status === 1" |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-folder-delete" |
||||
|
@click="handleSwitch(scope.row, 2)" |
||||
|
>结束</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-document" |
||||
|
@click="handleDetails(scope.row)" |
||||
|
>上报详情</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-download" |
||||
|
@click="handleDownload(scope.row)" |
||||
|
>上报汇总表</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
:disabled="scope.row.status === 1" |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-edit" |
||||
|
@click="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
:disabled="scope.row.status === 1" |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
|
||||
<!-- 添加或修改公告对话框 --> |
<pagination |
||||
<el-dialog class="popup" :title="title" :visible.sync="open" width="780px" append-to-body> |
v-show="total > 0" |
||||
<el-form ref="form" :model="form" :rules="rules" label-width="140px" class="formStep"> |
:total="total" |
||||
<el-form-item label="标题" prop="reportTitle"> |
:page.sync="queryParams.pageNum" |
||||
<el-input v-model="form.reportTitle" placeholder="请输入" /> |
:limit.sync="queryParams.pageSize" |
||||
</el-form-item> |
@pagination="getList" |
||||
<el-form-item label="上报类型" prop="reportType"> |
/> |
||||
<el-select v-model="form.reportType" placeholder="请选择"> |
|
||||
<el-option v-for="item in reporTypeList" :key="item.id" :label="item.typeName" :value="item.id"> |
<!-- 添加或修改公告对话框 --> |
||||
</el-option> |
<el-dialog |
||||
</el-select> |
class="popup" |
||||
</el-form-item> |
:title="title" |
||||
<el-form-item label="时间范围" prop="time"> |
:visible.sync="open" |
||||
<!-- <el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="form.timeRangeStart" |
width="780px" |
||||
type="date" placeholder="选择日期"> |
append-to-body |
||||
</el-date-picker> --> |
> |
||||
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="form.time" type="daterange" |
<el-form |
||||
range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @input="$forceUpdate()"> |
ref="form" |
||||
</el-date-picker> |
:model="form" |
||||
</el-form-item> |
:rules="rules" |
||||
<!-- <el-form-item label="结束时间" prop="timeRangeEnd"> |
label-width="100px" |
||||
<el-date-picker format="yyyy-MM-dd" value-format="yyyy-MM-dd" v-model="form.timeRangeEnd" type="date" |
class="formStep" |
||||
placeholder="选择日期"> |
> |
||||
</el-date-picker> |
<el-form-item label="标题" prop="reportTitle"> |
||||
</el-form-item> --> |
<el-input v-model="form.reportTitle" placeholder="请输入" /> |
||||
</el-form> |
</el-form-item> |
||||
<div slot="footer" class="dialog-footer"> |
<el-form-item label="上报类型" prop="reportType"> |
||||
<el-button type="primary" @click="submitForm">确 定</el-button> |
<el-select |
||||
<el-button @click="cancel">取 消</el-button> |
v-model="form.reportType" |
||||
</div> |
placeholder="请选择" |
||||
</el-dialog> |
@change="handleTypeChage" |
||||
</div> |
> |
||||
|
<el-option |
||||
|
v-for="item in reporTypeList" |
||||
|
:key="item.id" |
||||
|
:label="item.typeName" |
||||
|
:value="item.id" |
||||
|
> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="单位" prop="tenantIdList"> |
||||
|
<el-select v-model="form.tenantIdList" multiple placeholder="请选择"> |
||||
|
<el-option |
||||
|
v-for="item in tenantsData" |
||||
|
:key="item.id" |
||||
|
:label="item.name" |
||||
|
:value="item.id" |
||||
|
> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="时间范围" prop="time"> |
||||
|
<el-date-picker |
||||
|
format="yyyy-MM-dd" |
||||
|
value-format="yyyy-MM-dd" |
||||
|
v-model="form.time" |
||||
|
type="daterange" |
||||
|
range-separator="至" |
||||
|
start-placeholder="开始日期" |
||||
|
end-placeholder="结束日期" |
||||
|
@input="$forceUpdate()" |
||||
|
> |
||||
|
</el-date-picker> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="状态" prop="status" v-if="!form.id"> |
||||
|
<el-radio-group v-model="form.status"> |
||||
|
<el-radio :label="0">未开始</el-radio> |
||||
|
<el-radio :label="1">进行中</el-radio> |
||||
|
<el-radio :label="2">已结束</el-radio> |
||||
|
</el-radio-group> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { |
import { |
||||
managerQuery, |
managerQuery, |
||||
managerAdd, |
managerAdd, |
||||
managerUpd, |
managerUpd, |
||||
managerDel, |
managerDel, |
||||
reportList |
reportList, |
||||
} from "@/api/report"; |
reportDown, |
||||
export default { |
} from "@/api/report"; |
||||
name: "Notice", |
import { tenantsList } from "@/api/member"; |
||||
data() { |
export default { |
||||
return { |
name: "Notice", |
||||
reporTypeList: [], |
data() { |
||||
queryParams: { |
return { |
||||
param: { |
reporTypeList: [], |
||||
reportTitle: "", |
queryParams: { |
||||
} |
pageNum: 1, |
||||
}, |
pageSize: 10, |
||||
listData: [], |
param: { |
||||
title: '', |
reportTitle: "", |
||||
open: false, |
}, |
||||
total: 0, |
}, |
||||
form: {}, |
listData: [], |
||||
loading: false, |
title: "", |
||||
showSearch: true, |
open: false, |
||||
multiple: false, |
total: 0, |
||||
// 表单校验 |
form: {}, |
||||
rules: { |
loading: false, |
||||
reportTitle: [{ |
showSearch: true, |
||||
required: true, |
multiple: false, |
||||
message: "标题不能为空", |
// 表单校验 |
||||
trigger: "blur", |
rules: { |
||||
}], |
reportTitle: [ |
||||
reportType: [{ |
{ |
||||
required: true, |
required: true, |
||||
message: "类型不能为空", |
message: "标题不能为空", |
||||
trigger: "blur", |
trigger: "blur", |
||||
}], |
}, |
||||
time: [{ |
], |
||||
required: true, |
reportType: [ |
||||
message: "时间范围不能为空", |
{ |
||||
trigger: "change", |
required: true, |
||||
}] |
message: "类型不能为空", |
||||
// timeRangeStart: [{ |
trigger: "blur", |
||||
// required: true, |
}, |
||||
// message: "开始时间不能为空", |
], |
||||
// trigger: "blur", |
time: [ |
||||
// }], |
{ |
||||
// timeRangeEnd: [{ |
required: true, |
||||
// required: true, |
message: "时间范围不能为空", |
||||
// message: "结束时间不能为空", |
trigger: "change", |
||||
// trigger: "blur" |
}, |
||||
// }], |
], |
||||
}, |
tenantIdList: [ |
||||
}; |
{ |
||||
}, |
required: true, |
||||
created() { |
message: "单位不能为空", |
||||
this.getList(); |
trigger: "change", |
||||
this.getReportType(); |
}, |
||||
}, |
], |
||||
methods: { |
// timeRangeStart: [{ |
||||
getReportType() { |
// required: true, |
||||
reportList({ |
// message: "开始时间不能为空", |
||||
pageNum: -1, |
// trigger: "blur", |
||||
param: {}, |
// }], |
||||
}).then((res) => { |
// timeRangeEnd: [{ |
||||
this.reporTypeList = res.data.list; |
// required: true, |
||||
}); |
// message: "结束时间不能为空", |
||||
}, |
// trigger: "blur" |
||||
/** 查询公告列表 */ |
// }], |
||||
getList() { |
}, |
||||
this.loading = true; |
tenantsData: [], |
||||
managerQuery(this.queryParams).then((res) => { |
qzUrl: process.env.VUE_APP_API_QZURL, // 二维码路径 |
||||
this.listData = res.data.list; |
}; |
||||
this.total = res.data.total; |
}, |
||||
this.loading = false; |
created() { |
||||
}); |
this.getList(); |
||||
}, |
this.getReportType(); |
||||
// 取消按钮 |
this.getTenantsList(); |
||||
cancel() { |
}, |
||||
this.open = false; |
methods: { |
||||
this.reset(); |
handleDownload(row) { |
||||
}, |
reportDown({ |
||||
// 表单重置 |
managementId: row.id, |
||||
reset() { |
}).then((res) => { |
||||
this.form = { |
if (res.data) { |
||||
"reportTitle": "", |
window.open(this.qzUrl + res.data); |
||||
"reportType": "", |
} else { |
||||
time:[], |
this.$modal.msgError("暂无上报汇总表"); |
||||
"timeRangeStart": "", |
} |
||||
"timeRangeEnd": "", |
}); |
||||
}; |
}, |
||||
this.resetForm("form"); |
// 上报详情 |
||||
}, |
handleDetails(row) { |
||||
/** 搜索按钮操作 */ |
this.$router.push({ |
||||
handleQuery() { |
path: "/medicalFile/index", |
||||
this.queryParams.pageNum = 1; |
query: { managementId: row.id }, |
||||
this.getList(); |
}); |
||||
}, |
}, |
||||
/** 重置按钮操作 */ |
// 获取上报类型切换处理 |
||||
resetQuery() { |
handleTypeChage() { |
||||
this.queryParams.param = { |
// form.reportType reporTypeList 找到对应的id 然后获取到tenantIdList |
||||
reportTitle: "", |
let reportType = this.form.reportType; |
||||
}; |
let tenantIdList = this.reporTypeList.find( |
||||
this.handleQuery(); |
(item) => item.id == reportType |
||||
}, |
).tenantIdList; |
||||
// 多选框选中数据 |
this.form.tenantIdList = tenantIdList; |
||||
handleSelectionChange(selection) { |
}, |
||||
this.ids = selection.map((item) => item.id); |
// 获取上报类型 |
||||
this.single = selection.length != 1; |
getReportType() { |
||||
this.multiple = !selection.length; |
reportList({ |
||||
}, |
pageNum: -1, |
||||
/** 新增按钮操作 */ |
param: {}, |
||||
handleAdd() { |
}).then((res) => { |
||||
this.reset(); |
this.reporTypeList = res.data.list; |
||||
this.open = true; |
}); |
||||
this.title = "新增上报"; |
}, |
||||
}, |
/** 查询公告列表 */ |
||||
/** 修改按钮操作 */ |
getTenantsList() { |
||||
handleUpdate(row) { |
tenantsList({ |
||||
this.open = true; |
pageNum: -1, |
||||
this.title = "修改上报"; |
param: {}, |
||||
this.form = JSON.parse(JSON.stringify(row)) |
}).then((res) => { |
||||
let timeRangeStart = this.parseTime(this.form.timeRangeStart, "{y}-{m}-{d}") |
this.tenantsData = res.data.list; |
||||
let timeRangeEnd = this.parseTime(this.form.timeRangeEnd, "{y}-{m}-{d}") |
}); |
||||
this.form.time = [] |
}, |
||||
this.form.time[0] = timeRangeStart |
/** 查询公告列表 */ |
||||
this.form.time[1] = timeRangeEnd |
getList() { |
||||
}, |
this.loading = true; |
||||
/** 诊疗档案 */ |
managerQuery(this.queryParams).then((res) => { |
||||
submitForm: function() { |
this.listData = res.data.list; |
||||
this.$refs["form"].validate((valid) => { |
this.total = res.data.total; |
||||
if (valid) { |
this.loading = false; |
||||
let data = JSON.parse(JSON.stringify(this.form)) |
}); |
||||
let time = data.time |
}, |
||||
data.timeRangeStart = data.time[0] |
// 取消按钮 |
||||
data.timeRangeEnd = data.time[1] |
cancel() { |
||||
if (data.id != undefined) { |
this.open = false; |
||||
managerUpd(data).then((response) => { |
this.reset(); |
||||
this.$modal.msgSuccess("修改成功"); |
}, |
||||
this.open = false; |
// 表单重置 |
||||
this.getList(); |
reset() { |
||||
}); |
this.form = { |
||||
} else { |
reportTitle: "", |
||||
managerAdd(data).then((response) => { |
reportType: "", |
||||
this.$modal.msgSuccess("新增成功"); |
time: [], |
||||
this.open = false; |
timeRangeStart: "", |
||||
this.getList(); |
timeRangeEnd: "", |
||||
}); |
tenantIdList: [], |
||||
} |
status: 0, |
||||
} |
}; |
||||
}); |
this.resetForm("form"); |
||||
}, |
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.queryParams.param = { |
||||
|
reportTitle: "", |
||||
|
}; |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length != 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "新增上报"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleSwitch(row, status) { |
||||
|
this.form = JSON.parse(JSON.stringify(row)); |
||||
|
this.form.status = status; |
||||
|
managerUpd(this.form).then((response) => { |
||||
|
this.$modal.msgSuccess("操作成功"); |
||||
|
this.getList(); |
||||
|
}); |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.open = true; |
||||
|
this.title = "修改上报"; |
||||
|
this.form = JSON.parse(JSON.stringify(row)); |
||||
|
let timeRangeStart = this.parseTime( |
||||
|
this.form.timeRangeStart, |
||||
|
"{y}-{m}-{d}" |
||||
|
); |
||||
|
let timeRangeEnd = this.parseTime(this.form.timeRangeEnd, "{y}-{m}-{d}"); |
||||
|
this.form.time = []; |
||||
|
this.form.time[0] = timeRangeStart; |
||||
|
this.form.time[1] = timeRangeEnd; |
||||
|
}, |
||||
|
/** 诊疗档案 */ |
||||
|
submitForm: function () { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
let data = JSON.parse(JSON.stringify(this.form)); |
||||
|
let time = data.time; |
||||
|
data.timeRangeStart = data.time[0]; |
||||
|
data.timeRangeEnd = data.time[1]; |
||||
|
if (data.id != undefined) { |
||||
|
managerUpd(data).then((response) => { |
||||
|
this.$modal.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
}); |
||||
|
} else { |
||||
|
managerAdd(data).then((response) => { |
||||
|
this.$modal.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
/** 删除按钮操作 */ |
/** 删除按钮操作 */ |
||||
handleDelete(row) { |
handleDelete(row) { |
||||
const idList = row.id ? [row.id] : this.ids; |
const idList = row.id ? [row.id] : this.ids; |
||||
this.$modal |
this.$modal |
||||
.confirm("是否确认删除当前选择的数据?") |
.confirm("是否确认删除当前选择的数据?") |
||||
.then(function() { |
.then(function () { |
||||
return managerDel({ |
return managerDel({ |
||||
idList: idList, |
idList: idList, |
||||
}); |
}); |
||||
}) |
}) |
||||
.then(() => { |
.then(() => { |
||||
this.$modal.msgSuccess("删除成功"); |
this.$modal.msgSuccess("删除成功"); |
||||
this.getList(); |
this.getList(); |
||||
}) |
}) |
||||
.catch(() => {}); |
.catch(() => {}); |
||||
}, |
}, |
||||
}, |
}, |
||||
}; |
}; |
||||
</script> |
</script> |
||||
<style scoped src="@/assets/styles/common.css"></style> |
<style scoped src="@/assets/styles/common.css"></style> |
||||
|
|
||||
<style scoped> |
<style scoped> |
||||
.div-title1 { |
.div-title1 { |
||||
font-size: 22px; |
font-size: 22px; |
||||
font-weight: bold; |
font-weight: bold; |
||||
margin-bottom: 10px; |
margin-bottom: 10px; |
||||
} |
} |
||||
|
|
||||
.div-title2 { |
.div-title2 { |
||||
font-size: 20px; |
font-size: 20px; |
||||
font-weight: bold; |
font-weight: bold; |
||||
margin-bottom: 10px; |
margin-bottom: 10px; |
||||
} |
} |
||||
|
|
||||
.div-title3 { |
.div-title3 { |
||||
font-size: 18px; |
font-size: 18px; |
||||
font-weight: bold; |
font-weight: bold; |
||||
margin-bottom: 10px; |
margin-bottom: 10px; |
||||
} |
} |
||||
|
|
||||
.span-but { |
.span-but { |
||||
display: inline-block; |
display: inline-block; |
||||
border-radius: 4px; |
border-radius: 4px; |
||||
border: 1px solid #dcdfe6; |
border: 1px solid #dcdfe6; |
||||
line-height: 32px; |
line-height: 32px; |
||||
padding: 0 15px; |
padding: 0 15px; |
||||
margin: 5px; |
margin: 5px; |
||||
} |
} |
||||
|
|
||||
.span-but-active { |
.span-but-active { |
||||
border: 1px solid #1890ff; |
border: 1px solid #1890ff; |
||||
} |
} |
||||
|
|
||||
.human-body { |
.human-body { |
||||
display: flex; |
display: flex; |
||||
flex-wrap: wrap; |
flex-wrap: wrap; |
||||
} |
} |
||||
|
|
||||
.human-body>>>.el-form-item { |
.human-body >>> .el-form-item { |
||||
width: 49%; |
width: 49%; |
||||
margin-right: 2%; |
margin-right: 2%; |
||||
} |
} |
||||
|
|
||||
.human-body>>>.el-form-item:nth-of-type(2n) { |
.human-body >>> .el-form-item:nth-of-type(2n) { |
||||
margin-right: 0; |
margin-right: 0; |
||||
} |
} |
||||
|
|
||||
.formStep1>>>.el-form-item__label {} |
.formStep1 >>> .el-form-item__label { |
||||
|
} |
||||
|
|
||||
.form-item-zd { |
.form-item-zd { |
||||
width: 100%; |
width: 100%; |
||||
text-align: left; |
text-align: left; |
||||
} |
} |
||||
|
|
||||
.form-item-age { |
.form-item-age { |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
} |
} |
||||
|
|
||||
.form-item-age span { |
.form-item-age span { |
||||
margin: 0 10px; |
margin: 0 10px; |
||||
} |
} |
||||
|
|
||||
.form-item-age>>>.el-input { |
.form-item-age >>> .el-input { |
||||
width: 100px; |
width: 100px; |
||||
} |
} |
||||
|
|
||||
>>>.el-drawer.rtl { |
>>> .el-drawer.rtl { |
||||
width: 50% !important; |
width: 50% !important; |
||||
} |
} |
||||
</style> |
</style> |
||||
|
@ -1,265 +1,504 @@ |
|||||
<template> |
<template> |
||||
<div class="app-container"> |
<div class="app-container"> |
||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" |
<el-form |
||||
label-width="80px"> |
:model="queryParams" |
||||
<el-form-item label="类型名称" prop="typeName"> |
ref="queryForm" |
||||
<el-input v-model="queryParams.param.typeName" placeholder="请输入" clearable |
size="small" |
||||
@keyup.enter.native="handleQuery" /> |
:inline="true" |
||||
</el-form-item> |
v-show="showSearch" |
||||
<el-form-item> |
label-width="80px" |
||||
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> |
> |
||||
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> |
<el-form-item label="类型名称" prop="typeName"> |
||||
</el-form-item> |
<el-input |
||||
</el-form> |
v-model="queryParams.param.typeName" |
||||
<el-row :gutter="10" class="mb8"> |
placeholder="请输入" |
||||
<el-col :span="1.5"> |
clearable |
||||
<el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd">新增</el-button> |
@keyup.enter.native="handleQuery" |
||||
</el-col> |
/> |
||||
<el-col :span="1.5"> |
</el-form-item> |
||||
<el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" |
<el-form-item> |
||||
@click="handleDelete">删除</el-button> |
<el-button |
||||
</el-col> |
type="primary" |
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
icon="el-icon-search" |
||||
</el-row> |
size="mini" |
||||
|
@click="handleQuery" |
||||
|
>搜索</el-button |
||||
|
> |
||||
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery" |
||||
|
>重置</el-button |
||||
|
> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<el-row :gutter="10" class="mb8"> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="primary" |
||||
|
plain |
||||
|
icon="el-icon-plus" |
||||
|
size="mini" |
||||
|
@click="handleAdd" |
||||
|
>新增</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<el-col :span="1.5"> |
||||
|
<el-button |
||||
|
type="danger" |
||||
|
plain |
||||
|
icon="el-icon-delete" |
||||
|
size="mini" |
||||
|
:disabled="multiple" |
||||
|
@click="handleDelete" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</el-col> |
||||
|
<right-toolbar |
||||
|
:showSearch.sync="showSearch" |
||||
|
@queryTable="getList" |
||||
|
></right-toolbar> |
||||
|
</el-row> |
||||
|
|
||||
<el-table v-loading="loading" :data="listData" @selection-change="handleSelectionChange" max-height="600"> |
<el-table |
||||
<el-table-column type="selection" width="55" align="center" /> |
v-loading="loading" |
||||
<el-table-column fixed label="类型名称" align="center" prop="typeName" min-width="100" /> |
:data="listData" |
||||
<el-table-column label="创建人/创建时间" align="center" min-width="140"> |
@selection-change="handleSelectionChange" |
||||
<template slot-scope="scope"> |
max-height="600" |
||||
<div>{{scope.row.createBy}}</div> |
> |
||||
<span> |
<el-table-column type="selection" width="55" align="center" /> |
||||
{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }} |
<el-table-column |
||||
</span> |
fixed |
||||
</template> |
label="类型名称" |
||||
</el-table-column> |
align="center" |
||||
<el-table-column fixed="right" label="操作" align="center" class-name="small-padding fixed-width" width="200"> |
prop="typeName" |
||||
<template slot-scope="scope"> |
min-width="100" |
||||
<el-button size="mini" type="text" icon="el-icon-edit" |
show-overflow-tooltip |
||||
@click="handleUpdate(scope.row)">修改</el-button> |
/> |
||||
<el-button size="mini" type="text" icon="el-icon-delete" |
<el-table-column |
||||
@click="handleDelete(scope.row)">删除</el-button> |
label="单位" |
||||
</template> |
align="center" |
||||
</el-table-column> |
prop="tenantIdList" |
||||
</el-table> |
min-width="250" |
||||
|
show-overflow-tooltip |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<!-- 通过id列表找到tenantsData中匹配的数据并替换为中文,数据后面添加逗号 --> |
||||
|
<template v-for="(item, index) in scope.row.tenantIdList"> |
||||
|
<template v-if="tenantsData.some((tenant) => tenant.id === item)"> |
||||
|
{{ tenantsData.find((tenant) => tenant.id === item).name |
||||
|
}}{{ index < scope.row.tenantIdList.length - 1 ? "," : "" }} |
||||
|
</template> |
||||
|
</template> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="附件" |
||||
|
align="center" |
||||
|
prop="typeName" |
||||
|
min-width="150" |
||||
|
show-overflow-tooltip |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button type="text" size="mini" @click="handleDownload(scope.row)"> |
||||
|
<span v-if="scope.row.file"> |
||||
|
<i class="el-icon-download"></i> |
||||
|
<span>{{ |
||||
|
scope.row.file.substring(scope.row.file.lastIndexOf("/") + 1) |
||||
|
}}</span> |
||||
|
</span> |
||||
|
</el-button> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
label="备注" |
||||
|
align="center" |
||||
|
prop="remark" |
||||
|
min-width="150" |
||||
|
show-overflow-tooltip |
||||
|
/> |
||||
|
<el-table-column label="创建人/创建时间" align="center" min-width="140"> |
||||
|
<template slot-scope="scope"> |
||||
|
<div>{{ scope.row.createBy }}</div> |
||||
|
<span> |
||||
|
{{ parseTime(scope.row.createTime, "{y}-{m}-{d} {h}:{i}") }} |
||||
|
</span> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
<el-table-column |
||||
|
fixed="right" |
||||
|
label="操作" |
||||
|
align="center" |
||||
|
class-name="small-padding fixed-width" |
||||
|
width="200" |
||||
|
> |
||||
|
<template slot-scope="scope"> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-edit" |
||||
|
@click="handleUpdate(scope.row)" |
||||
|
>修改</el-button |
||||
|
> |
||||
|
<el-button |
||||
|
size="mini" |
||||
|
type="text" |
||||
|
icon="el-icon-delete" |
||||
|
@click="handleDelete(scope.row)" |
||||
|
>删除</el-button |
||||
|
> |
||||
|
</template> |
||||
|
</el-table-column> |
||||
|
</el-table> |
||||
|
|
||||
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" |
<pagination |
||||
:limit.sync="queryParams.pageSize" @pagination="getList" /> |
v-show="total > 0" |
||||
|
:total="total" |
||||
|
:page.sync="queryParams.pageNum" |
||||
|
:limit.sync="queryParams.pageSize" |
||||
|
@pagination="getList" |
||||
|
/> |
||||
|
|
||||
<!-- 添加或修改公告对话框 --> |
<!-- 添加或修改公告对话框 --> |
||||
<el-dialog class="popup" :title="title" :visible.sync="open" width="780px" append-to-body> |
<el-dialog |
||||
<el-form ref="form" :model="form" :rules="rules" label-width="90px" class="formStep"> |
class="popup" |
||||
<el-form-item label="类型名称" prop="typeName"> |
:title="title" |
||||
<el-input v-model="form.typeName" placeholder="请输入" /> |
:visible.sync="open" |
||||
</el-form-item> |
width="780px" |
||||
</el-form> |
append-to-body |
||||
<div slot="footer" class="dialog-footer"> |
> |
||||
<el-button type="primary" @click="submitForm">确 定</el-button> |
<el-form |
||||
<el-button @click="cancel">取 消</el-button> |
ref="form" |
||||
</div> |
:model="form" |
||||
</el-dialog> |
:rules="rules" |
||||
</div> |
label-width="90px" |
||||
|
class="formStep" |
||||
|
> |
||||
|
<el-form-item label="类型名称" prop="typeName"> |
||||
|
<el-input v-model="form.typeName" placeholder="请输入" /> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="单位" prop="tenantIdList"> |
||||
|
<el-select v-model="form.tenantIdList" multiple placeholder="请选择"> |
||||
|
<el-option |
||||
|
v-for="item in tenantsData" |
||||
|
:key="item.id" |
||||
|
:label="item.name" |
||||
|
:value="item.id" |
||||
|
> |
||||
|
</el-option> |
||||
|
</el-select> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="附件" prop="file"> |
||||
|
<el-upload |
||||
|
:limit="1" |
||||
|
class="avatar-uploader wj-uploader" |
||||
|
:headers="headers" |
||||
|
:action="uploadFileUrl" |
||||
|
accept=".xlsx,.xls,.pdf,.doc,.docx" |
||||
|
:before-upload="handleBeforePdfUpload1" |
||||
|
:on-success="handleUploadPdfAdd1" |
||||
|
:on-remove="handleRemove" |
||||
|
:file-list="fileList" |
||||
|
:show-file-list="true" |
||||
|
> |
||||
|
<i class="el-icon-upload"></i> |
||||
|
<div class="el-upload__text"> |
||||
|
将文件拖到此处,或 |
||||
|
<em>点击上传</em> |
||||
|
</div> |
||||
|
</el-upload> |
||||
|
</el-form-item> |
||||
|
<el-form-item label="备注" prop="remark"> |
||||
|
<el-input |
||||
|
type="textarea" |
||||
|
v-model="form.remark" |
||||
|
placeholder="请输入" |
||||
|
/> |
||||
|
</el-form-item> |
||||
|
</el-form> |
||||
|
<div slot="footer" class="dialog-footer"> |
||||
|
<el-button type="primary" @click="submitForm">确 定</el-button> |
||||
|
<el-button @click="cancel">取 消</el-button> |
||||
|
</div> |
||||
|
</el-dialog> |
||||
|
</div> |
||||
</template> |
</template> |
||||
|
|
||||
<script> |
<script> |
||||
import { |
import { getToken } from "@/utils/auth"; |
||||
reportList, |
import { tenantsList } from "@/api/member"; |
||||
reportAdd, |
import { reportList, reportAdd, reportUpd, reportDel } from "@/api/report"; |
||||
reportUpd, |
export default { |
||||
reportDel |
name: "Notice", |
||||
} from "@/api/report"; |
data() { |
||||
export default { |
return { |
||||
name: "Notice", |
uploadFileUrl: process.env.VUE_APP_API_QZURL + "/common/upload", // 上传的图片服务器地址 |
||||
data() { |
headers: { |
||||
return { |
Authorization: "Bearer " + getToken(), |
||||
dataSourceList: [], |
}, |
||||
queryParams: { |
dataSourceList: [], |
||||
param: { |
queryParams: { |
||||
name: "", |
param: { |
||||
} |
name: "", |
||||
}, |
}, |
||||
listData: [], |
}, |
||||
title: '', |
listData: [], |
||||
open: false, |
title: "", |
||||
total: 0, |
open: false, |
||||
form: {}, |
total: 0, |
||||
loading: false, |
form: {}, |
||||
showSearch: true, |
loading: false, |
||||
multiple: false, |
showSearch: true, |
||||
// 表单校验 |
multiple: false, |
||||
rules: { |
// 表单校验 |
||||
typeName: [{ |
rules: { |
||||
required: true, |
typeName: [ |
||||
message: "上报类型不能为空", |
{ |
||||
trigger: "blur", |
required: true, |
||||
}], |
message: "上报类型不能为空", |
||||
}, |
trigger: "blur", |
||||
}; |
}, |
||||
}, |
], |
||||
created() { |
tenantIdList: [ |
||||
this.getList(); |
{ |
||||
}, |
required: true, |
||||
methods: { |
message: "单位不能为空", |
||||
/** 查询公告列表 */ |
trigger: "change", |
||||
getList() { |
}, |
||||
this.loading = true; |
], |
||||
reportList(this.queryParams).then((res) => { |
file: [ |
||||
this.listData = res.data.list; |
{ |
||||
this.total = res.data.total; |
required: true, |
||||
this.loading = false; |
message: "附件不能为空", |
||||
}); |
trigger: "change", |
||||
}, |
}, |
||||
// 取消按钮 |
], |
||||
cancel() { |
}, |
||||
this.open = false; |
tenantsData: [], |
||||
this.reset(); |
fileList: [], |
||||
}, |
qzUrl: process.env.VUE_APP_API_QZURL, // 二维码路径 |
||||
// 表单重置 |
}; |
||||
reset() { |
}, |
||||
this.form = { |
created() { |
||||
"typeName": "", |
this.getList(); |
||||
}; |
this.getTenantsList(); |
||||
this.resetForm("form"); |
}, |
||||
}, |
methods: { |
||||
/** 搜索按钮操作 */ |
handleDownload(row) { |
||||
handleQuery() { |
window.open(this.qzUrl + row.file); |
||||
this.queryParams.pageNum = 1; |
}, |
||||
this.getList(); |
handleRemove(file, fileList) { |
||||
}, |
this.form.file = ""; |
||||
/** 重置按钮操作 */ |
this.fileList = []; |
||||
resetQuery() { |
}, |
||||
this.queryParams.param = { |
// 上传成功回 - pdg |
||||
typeName: "", |
handleUploadPdfAdd1(res) { |
||||
}; |
if (res.code == 200) { |
||||
this.handleQuery(); |
this.$message.success(res.msg || "导入成功"); |
||||
}, |
this.form.file = res.fileName; |
||||
// 多选框选中数据 |
setTimeout(() => { |
||||
handleSelectionChange(selection) { |
this.$refs["form"].validateField("file", (errorMessage) => {}); |
||||
this.ids = selection.map((item) => item.id); |
}); |
||||
this.single = selection.length != 1; |
} else { |
||||
this.multiple = !selection.length; |
this.$message.error(res.msg || "导入失败"); |
||||
}, |
this.fileList = []; |
||||
/** 新增按钮操作 */ |
} |
||||
handleAdd() { |
}, |
||||
this.reset(); |
|
||||
this.open = true; |
|
||||
this.title = "新增上报类型"; |
|
||||
}, |
|
||||
/** 修改按钮操作 */ |
|
||||
handleUpdate(row) { |
|
||||
this.open = true; |
|
||||
this.title = "修改诊疗档案"; |
|
||||
this.form = JSON.parse(JSON.stringify(row)) |
|
||||
}, |
|
||||
/** 诊疗档案 */ |
|
||||
submitForm: function() { |
|
||||
this.$refs["form"].validate((valid) => { |
|
||||
if (valid) { |
|
||||
if (this.form.id != undefined) { |
|
||||
reportUpd(this.form).then((response) => { |
|
||||
this.$modal.msgSuccess("修改成功"); |
|
||||
this.open = false; |
|
||||
this.getList(); |
|
||||
}); |
|
||||
} else { |
|
||||
reportAdd(this.form).then((response) => { |
|
||||
this.$modal.msgSuccess("新增成功"); |
|
||||
this.open = false; |
|
||||
this.getList(); |
|
||||
}); |
|
||||
} |
|
||||
} |
|
||||
}); |
|
||||
}, |
|
||||
|
|
||||
/** 删除按钮操作 */ |
// 上传前校检格式和大小 - 文件 |
||||
handleDelete(row) { |
handleBeforePdfUpload1(file) { |
||||
const idList = row.id ? [row.id] : this.ids; |
const fileSuffix = file.name.substring(file.name.lastIndexOf(".") + 1); |
||||
this.$modal |
const whiteList = ["xlsx", "xls", "pdf", "doc", "docx"]; |
||||
.confirm("是否确认删除当前选择的数据?") |
if (whiteList.indexOf(fileSuffix) === -1) { |
||||
.then(function() { |
this.$message.error("上传文件只能是xlsx/xls/pdf/doc/docx 格式!"); |
||||
return reportDel({ |
return false; |
||||
idList: idList, |
} |
||||
}); |
}, |
||||
}) |
/** 查询公告列表 */ |
||||
.then(() => { |
getTenantsList() { |
||||
this.getList(); |
tenantsList({ |
||||
this.$modal.msgSuccess("删除成功"); |
pageNum: -1, |
||||
}) |
param: {}, |
||||
.catch(() => {}); |
}).then((res) => { |
||||
}, |
this.tenantsData = res.data.list; |
||||
}, |
}); |
||||
}; |
}, |
||||
|
/** 查询公告列表 */ |
||||
|
getList() { |
||||
|
this.loading = true; |
||||
|
reportList(this.queryParams).then((res) => { |
||||
|
this.listData = res.data.list; |
||||
|
this.total = res.data.total; |
||||
|
this.loading = false; |
||||
|
}); |
||||
|
}, |
||||
|
// 取消按钮 |
||||
|
cancel() { |
||||
|
this.open = false; |
||||
|
this.reset(); |
||||
|
}, |
||||
|
// 表单重置 |
||||
|
reset() { |
||||
|
this.fileList = []; |
||||
|
this.form = { |
||||
|
typeName: "", |
||||
|
tenantIdList: [], |
||||
|
remark: "", |
||||
|
file: "", |
||||
|
}; |
||||
|
this.resetForm("form"); |
||||
|
}, |
||||
|
/** 搜索按钮操作 */ |
||||
|
handleQuery() { |
||||
|
this.queryParams.pageNum = 1; |
||||
|
this.getList(); |
||||
|
}, |
||||
|
/** 重置按钮操作 */ |
||||
|
resetQuery() { |
||||
|
this.queryParams.param = { |
||||
|
typeName: "", |
||||
|
}; |
||||
|
this.handleQuery(); |
||||
|
}, |
||||
|
// 多选框选中数据 |
||||
|
handleSelectionChange(selection) { |
||||
|
this.ids = selection.map((item) => item.id); |
||||
|
this.single = selection.length != 1; |
||||
|
this.multiple = !selection.length; |
||||
|
}, |
||||
|
/** 新增按钮操作 */ |
||||
|
handleAdd() { |
||||
|
this.reset(); |
||||
|
this.open = true; |
||||
|
this.title = "新增上报类型"; |
||||
|
}, |
||||
|
/** 修改按钮操作 */ |
||||
|
handleUpdate(row) { |
||||
|
this.open = true; |
||||
|
this.title = "修改上报类型"; |
||||
|
this.form = JSON.parse(JSON.stringify(row)); |
||||
|
if (row.file) { |
||||
|
this.fileList = [ |
||||
|
{ |
||||
|
// 截取字符串,获取文件名 |
||||
|
name: row.file.substring(row.file.lastIndexOf("/") + 1), |
||||
|
url: row.file, |
||||
|
}, |
||||
|
]; |
||||
|
} else { |
||||
|
this.fileList = []; |
||||
|
} |
||||
|
}, |
||||
|
/** 诊疗档案 */ |
||||
|
submitForm: function () { |
||||
|
this.$refs["form"].validate((valid) => { |
||||
|
if (valid) { |
||||
|
if (this.form.id != undefined) { |
||||
|
reportUpd(this.form).then((response) => { |
||||
|
this.$modal.msgSuccess("修改成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
}); |
||||
|
} else { |
||||
|
reportAdd(this.form).then((response) => { |
||||
|
this.$modal.msgSuccess("新增成功"); |
||||
|
this.open = false; |
||||
|
this.getList(); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
}); |
||||
|
}, |
||||
|
|
||||
|
/** 删除按钮操作 */ |
||||
|
handleDelete(row) { |
||||
|
const idList = row.id ? [row.id] : this.ids; |
||||
|
this.$modal |
||||
|
.confirm("是否确认删除当前选择的数据?") |
||||
|
.then(function () { |
||||
|
return reportDel({ |
||||
|
idList: idList, |
||||
|
}); |
||||
|
}) |
||||
|
.then(() => { |
||||
|
this.getList(); |
||||
|
this.$modal.msgSuccess("删除成功"); |
||||
|
}) |
||||
|
.catch(() => {}); |
||||
|
}, |
||||
|
}, |
||||
|
}; |
||||
</script> |
</script> |
||||
<style scoped src="@/assets/styles/common.css"></style> |
<style scoped src="@/assets/styles/common.css"></style> |
||||
|
|
||||
<style scoped> |
<style scoped> |
||||
.div-title1 { |
>>> .el-upload-list__item:first-child { |
||||
font-size: 22px; |
margin-top: 0 !important; |
||||
font-weight: bold; |
} |
||||
margin-bottom: 10px; |
.div-title1 { |
||||
} |
font-size: 22px; |
||||
|
font-weight: bold; |
||||
|
margin-bottom: 10px; |
||||
|
} |
||||
|
|
||||
.div-title2 { |
.div-title2 { |
||||
font-size: 20px; |
font-size: 20px; |
||||
font-weight: bold; |
font-weight: bold; |
||||
margin-bottom: 10px; |
margin-bottom: 10px; |
||||
} |
} |
||||
|
|
||||
.div-title3 { |
.div-title3 { |
||||
font-size: 18px; |
font-size: 18px; |
||||
font-weight: bold; |
font-weight: bold; |
||||
margin-bottom: 10px; |
margin-bottom: 10px; |
||||
} |
} |
||||
|
|
||||
.span-but { |
.span-but { |
||||
display: inline-block; |
display: inline-block; |
||||
border-radius: 4px; |
border-radius: 4px; |
||||
border: 1px solid #dcdfe6; |
border: 1px solid #dcdfe6; |
||||
line-height: 32px; |
line-height: 32px; |
||||
padding: 0 15px; |
padding: 0 15px; |
||||
margin: 5px; |
margin: 5px; |
||||
} |
} |
||||
|
|
||||
.span-but-active { |
.span-but-active { |
||||
border: 1px solid #1890ff; |
border: 1px solid #1890ff; |
||||
} |
} |
||||
|
|
||||
.human-body { |
.human-body { |
||||
display: flex; |
display: flex; |
||||
flex-wrap: wrap; |
flex-wrap: wrap; |
||||
} |
} |
||||
|
|
||||
.human-body>>>.el-form-item { |
.human-body >>> .el-form-item { |
||||
width: 49%; |
width: 49%; |
||||
margin-right: 2%; |
margin-right: 2%; |
||||
} |
} |
||||
|
|
||||
.human-body>>>.el-form-item:nth-of-type(2n) { |
.human-body >>> .el-form-item:nth-of-type(2n) { |
||||
margin-right: 0; |
margin-right: 0; |
||||
} |
} |
||||
|
|
||||
.formStep1>>>.el-form-item__label {} |
.formStep1 >>> .el-form-item__label { |
||||
|
} |
||||
|
|
||||
.form-item-zd { |
.form-item-zd { |
||||
width: 100%; |
width: 100%; |
||||
text-align: left; |
text-align: left; |
||||
} |
} |
||||
|
|
||||
.form-item-age { |
.form-item-age { |
||||
display: flex; |
display: flex; |
||||
align-items: center; |
align-items: center; |
||||
} |
} |
||||
|
|
||||
.form-item-age span { |
.form-item-age span { |
||||
margin: 0 10px; |
margin: 0 10px; |
||||
} |
} |
||||
|
|
||||
.form-item-age>>>.el-input { |
.form-item-age >>> .el-input { |
||||
width: 100px; |
width: 100px; |
||||
} |
} |
||||
|
|
||||
>>>.el-drawer.rtl { |
>>> .el-drawer.rtl { |
||||
width: 50% !important; |
width: 50% !important; |
||||
} |
} |
||||
</style> |
</style> |
||||
|
Binary file not shown.
Loading…
Reference in new issue