Commit e4a8426dad89832eff92c410d3aa019016458569
1 parent
e53b308e7d
Exists in
master
诊断、化验项、自定义化验项添加
Showing 33 changed files with 1965 additions and 17 deletions
- parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssayCustomerConfMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssayCustomerConfMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceConfMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceConfMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/entity/conf/AssayCustomerConf.java
- parent/base.common/src/main/java/com/lyms/base/common/entity/conf/AssaySource.java
- parent/base.common/src/main/java/com/lyms/base/common/entity/conf/AssaySourceConf.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/AssayCustomerConfService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/AssaySourceConfService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/AssaySourceService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/AssayCustomerConfServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/AssaySourceConfServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/AssaySourceServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseConfServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseSourceServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseVersionServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/HighriskConfServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/HighriskSourceServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/HighriskVersionServiceImpl.java
- parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssayCustomerConfController.java
- parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssaySourceConfController.java
- parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssaySourceController.java
- parent/center.manager/src/main/resources/dev/xml/app-mapper-reload.xml
- parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/conf_edit.html
- parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/conf_list.html
- parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/customer_edit.html
- parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/customer_list.html
- parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/source_edit.html
- parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/source_list.html
- parent/hospital.web/src/test/java/test/hospital/assay/AssayTest.java
- parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java
parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssayCustomerConfMapper.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.dao.conf; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssayCustomerConf; | |
| 4 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 5 | +import com.baomidou.mybatisplus.mapper.BaseMapper; | |
| 6 | +import org.springframework.stereotype.Repository; | |
| 7 | +import java.io.Serializable; | |
| 8 | +import java.util.List; | |
| 9 | +/** | |
| 10 | + * <p> | |
| 11 | + * Mapper接口 | |
| 12 | + * </p> | |
| 13 | + * | |
| 14 | + * @author fangcheng | |
| 15 | + * @since 2017-05-08 | |
| 16 | + */ | |
| 17 | +@Repository | |
| 18 | +public interface AssayCustomerConfMapper extends BaseMapper<AssayCustomerConf> { | |
| 19 | + | |
| 20 | + public Integer deleteLogicById(Serializable id); | |
| 21 | + | |
| 22 | + public List<AssaySourceConf> getCustomerConf(Serializable orgId); | |
| 23 | + | |
| 24 | +} |
parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssayCustomerConfMapper.xml
View file @
e4a8426
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.lyms.base.common.dao.conf.AssayCustomerConfMapper"> | |
| 4 | + | |
| 5 | + <!-- 通用查询映射结果 --> | |
| 6 | + <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.conf.AssayCustomerConf"> | |
| 7 | + <id column="ID" property="id" /> | |
| 8 | + <result column="CONF_ID" property="confId" /> | |
| 9 | + <result column="SOURCE_ID" property="sourceId" /> | |
| 10 | + <result column="SAMPLE_SOUCE" property="sampleSouce" /> | |
| 11 | + <result column="SAMPLE_DESC" property="sampleDesc" /> | |
| 12 | + <result column="SAMPLE_TARGET" property="sampleTarget" /> | |
| 13 | + <result column="UNIT" property="unit" /> | |
| 14 | + <result column="DANGER_CHAR" property="dangerChar" /> | |
| 15 | + <result column="DANGER_UPPER" property="dangerUpper" /> | |
| 16 | + <result column="DANGER_UPPER_PRO" property="dangerUpperPro" /> | |
| 17 | + <result column="DANGER_UPPER_SERVICE" property="dangerUpperService" /> | |
| 18 | + <result column="DANGER_LOWER" property="dangerLower" /> | |
| 19 | + <result column="DANGER_LOWER_PRO" property="dangerLowerPro" /> | |
| 20 | + <result column="DANGER_LOWER_SERVICE" property="dangerLowerService" /> | |
| 21 | + <result column="ORG_ID" property="orgId" /> | |
| 22 | + <result column="ENABLE" property="enable" /> | |
| 23 | + <result column="IFDEL" property="ifdel" /> | |
| 24 | + </resultMap> | |
| 25 | + | |
| 26 | + <!-- 通用查询结果列 --> | |
| 27 | + <sql id="Base_Column_List"> | |
| 28 | + ID AS id, CONF_ID AS confId, SOURCE_ID AS sourceId, SAMPLE_SOUCE AS sampleSouce, SAMPLE_DESC AS sampleDesc, SAMPLE_TARGET AS sampleTarget, UNIT AS unit, DANGER_CHAR AS dangerChar, DANGER_UPPER AS dangerUpper, DANGER_UPPER_PRO AS dangerUpperPro, DANGER_UPPER_SERVICE AS dangerUpperService, DANGER_LOWER AS dangerLower, DANGER_LOWER_PRO AS dangerLowerPro, DANGER_LOWER_SERVICE AS dangerLowerService, ORG_ID AS orgId, ENABLE AS enable, IFDEL AS ifdel | |
| 29 | + </sql> | |
| 30 | + | |
| 31 | + | |
| 32 | + <select id="getCustomerConf" resultType="AssaySourceConf"> | |
| 33 | + SELECT ID AS id, SOURCE_ID AS sourceId, SAMPLE_SOUCE AS sampleSouce, SAMPLE_DESC AS sampleDesc, SAMPLE_TARGET AS sampleTarget, UNIT AS unit, DANGER_CHAR AS dangerChar, DANGER_UPPER AS dangerUpper, DANGER_UPPER_PRO AS dangerUpperPro, DANGER_UPPER_SERVICE AS dangerUpperService, DANGER_LOWER AS dangerLower, DANGER_LOWER_PRO AS dangerLowerPro, DANGER_LOWER_SERVICE AS dangerLowerService, ENABLE AS enable, IFDEL AS ifdel,'source' as sourcefrom from ASSAY_SOURCE_CONF conf where conf.ID not in ( | |
| 34 | + select CONF_ID from ASSAY_CUSTOMER_CONF where ORG_ID = #{orgId} and ENABLE = 1 and IFDEL= 0 | |
| 35 | + ) | |
| 36 | + union all | |
| 37 | + select ID AS id, SOURCE_ID AS sourceId, SAMPLE_SOUCE AS sampleSouce, SAMPLE_DESC AS sampleDesc, SAMPLE_TARGET AS sampleTarget, UNIT AS unit, DANGER_CHAR AS dangerChar, DANGER_UPPER AS dangerUpper, DANGER_UPPER_PRO AS dangerUpperPro, DANGER_UPPER_SERVICE AS dangerUpperService, DANGER_LOWER AS dangerLower, DANGER_LOWER_PRO AS dangerLowerPro, DANGER_LOWER_SERVICE AS dangerLowerService, ENABLE AS enable, IFDEL AS ifdel,'customer' as sourcefrom | |
| 38 | + from ASSAY_CUSTOMER_CONF cus where ORG_ID = #{orgId} and ENABLE = 1 and IFDEL= 0 | |
| 39 | + </select> | |
| 40 | +</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceConfMapper.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.dao.conf; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 4 | +import com.baomidou.mybatisplus.mapper.BaseMapper; | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | +import java.io.Serializable; | |
| 7 | +/** | |
| 8 | + * <p> | |
| 9 | + * Mapper接口 | |
| 10 | + * </p> | |
| 11 | + * | |
| 12 | + * @author fangcheng | |
| 13 | + * @since 2017-05-08 | |
| 14 | + */ | |
| 15 | +@Repository | |
| 16 | +public interface AssaySourceConfMapper extends BaseMapper<AssaySourceConf> { | |
| 17 | + | |
| 18 | + public Integer deleteLogicById(Serializable id); | |
| 19 | + | |
| 20 | +} |
parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceConfMapper.xml
View file @
e4a8426
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.lyms.base.common.dao.conf.AssaySourceConfMapper"> | |
| 4 | + | |
| 5 | + <!-- 通用查询映射结果 --> | |
| 6 | + <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.conf.AssaySourceConf"> | |
| 7 | + <id column="ID" property="id" /> | |
| 8 | + <result column="SOURCE_ID" property="sourceId" /> | |
| 9 | + <result column="SAMPLE_SOUCE" property="sampleSouce" /> | |
| 10 | + <result column="SAMPLE_DESC" property="sampleDesc" /> | |
| 11 | + <result column="SAMPLE_TARGET" property="sampleTarget" /> | |
| 12 | + <result column="UNIT" property="unit" /> | |
| 13 | + <result column="DANGER_CHAR" property="dangerChar" /> | |
| 14 | + <result column="DANGER_UPPER" property="dangerUpper" /> | |
| 15 | + <result column="DANGER_UPPER_PRO" property="dangerUpperPro" /> | |
| 16 | + <result column="DANGER_UPPER_SERVICE" property="dangerUpperService" /> | |
| 17 | + <result column="DANGER_LOWER" property="dangerLower" /> | |
| 18 | + <result column="DANGER_LOWER_PRO" property="dangerLowerPro" /> | |
| 19 | + <result column="DANGER_LOWER_SERVICE" property="dangerLowerService" /> | |
| 20 | + <result column="ENABLE" property="enable" /> | |
| 21 | + <result column="IFDEL" property="ifdel" /> | |
| 22 | + </resultMap> | |
| 23 | + | |
| 24 | + <!-- 通用查询结果列 --> | |
| 25 | + <sql id="Base_Column_List"> | |
| 26 | + ID AS id, SOURCE_ID AS sourceId, SAMPLE_SOUCE AS sampleSouce, SAMPLE_DESC AS sampleDesc, SAMPLE_TARGET AS sampleTarget, UNIT AS unit, DANGER_CHAR AS dangerChar, DANGER_UPPER AS dangerUpper, DANGER_UPPER_PRO AS dangerUpperPro, DANGER_UPPER_SERVICE AS dangerUpperService, DANGER_LOWER AS dangerLower, DANGER_LOWER_PRO AS dangerLowerPro, DANGER_LOWER_SERVICE AS dangerLowerService, ENABLE AS enable, IFDEL AS ifdel | |
| 27 | + </sql> | |
| 28 | +</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceMapper.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.dao.conf; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssaySource; | |
| 4 | +import com.baomidou.mybatisplus.mapper.BaseMapper; | |
| 5 | +import org.springframework.stereotype.Repository; | |
| 6 | +import java.io.Serializable; | |
| 7 | +/** | |
| 8 | + * <p> | |
| 9 | + * Mapper接口 | |
| 10 | + * </p> | |
| 11 | + * | |
| 12 | + * @author fangcheng | |
| 13 | + * @since 2017-05-08 | |
| 14 | + */ | |
| 15 | +@Repository | |
| 16 | +public interface AssaySourceMapper extends BaseMapper<AssaySource> { | |
| 17 | + | |
| 18 | + public Integer deleteLogicById(Serializable id); | |
| 19 | + | |
| 20 | +} |
parent/base.common/src/main/java/com/lyms/base/common/dao/conf/AssaySourceMapper.xml
View file @
e4a8426
| 1 | +<?xml version="1.0" encoding="UTF-8"?> | |
| 2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | |
| 3 | +<mapper namespace="com.lyms.base.common.dao.conf.AssaySourceMapper"> | |
| 4 | + | |
| 5 | + <!-- 通用查询映射结果 --> | |
| 6 | + <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.conf.AssaySource"> | |
| 7 | + <id column="ID" property="id" /> | |
| 8 | + <result column="CODE" property="code" /> | |
| 9 | + <result column="STANDARD_CODE" property="standardCode" /> | |
| 10 | + <result column="NAME" property="name" /> | |
| 11 | + <result column="TYPE" property="type" /> | |
| 12 | + <result column="RESULT_TYPE" property="resultType" /> | |
| 13 | + <result column="ENABLE" property="enable" /> | |
| 14 | + <result column="IFDEL" property="ifdel" /> | |
| 15 | + </resultMap> | |
| 16 | + | |
| 17 | + <!-- 通用查询结果列 --> | |
| 18 | + <sql id="Base_Column_List"> | |
| 19 | + ID AS id, CODE AS code, STANDARD_CODE AS standardCode, NAME AS name, TYPE AS type, RESULT_TYPE AS resultType, ENABLE AS enable, IFDEL AS ifdel | |
| 20 | + </sql> | |
| 21 | +</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/entity/conf/AssayCustomerConf.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.entity.conf; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotations.TableId; | |
| 4 | +import com.baomidou.mybatisplus.annotations.TableField; | |
| 5 | +import com.baomidou.mybatisplus.annotations.TableName; | |
| 6 | +import java.io.Serializable; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * <p> | |
| 10 | + * 自定义化验项基础项配置表 | |
| 11 | + * </p> | |
| 12 | + * | |
| 13 | + * @author fangcheng | |
| 14 | + * @since 2017-05-08 | |
| 15 | + */ | |
| 16 | +@TableName("ASSAY_CUSTOMER_CONF") | |
| 17 | +public class AssayCustomerConf implements Serializable { | |
| 18 | + | |
| 19 | + private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * | |
| 23 | + */ | |
| 24 | + @TableId(value="ID") | |
| 25 | + private String id; | |
| 26 | + /** | |
| 27 | + * ASSAY_SOURCE_CONF表ID | |
| 28 | + */ | |
| 29 | + @TableField(value="CONF_ID") | |
| 30 | + private String confId; | |
| 31 | + /** | |
| 32 | + * 化验项来源ID | |
| 33 | + */ | |
| 34 | + @TableField(value="SOURCE_ID") | |
| 35 | + private String sourceId; | |
| 36 | + /** | |
| 37 | + * 样本来源 | |
| 38 | + */ | |
| 39 | + @TableField(value="SAMPLE_SOUCE") | |
| 40 | + private String sampleSouce; | |
| 41 | + /** | |
| 42 | + * 样本说明 | |
| 43 | + */ | |
| 44 | + @TableField(value="SAMPLE_DESC") | |
| 45 | + private String sampleDesc; | |
| 46 | + /** | |
| 47 | + * 样本目标 | |
| 48 | + */ | |
| 49 | + @TableField(value="SAMPLE_TARGET") | |
| 50 | + private String sampleTarget; | |
| 51 | + /** | |
| 52 | + * 项目单位 | |
| 53 | + */ | |
| 54 | + @TableField(value="UNIT") | |
| 55 | + private String unit; | |
| 56 | + /** | |
| 57 | + * 危急字符 | |
| 58 | + */ | |
| 59 | + @TableField(value="DANGER_CHAR") | |
| 60 | + private String dangerChar; | |
| 61 | + /** | |
| 62 | + * 危急上限 | |
| 63 | + */ | |
| 64 | + @TableField(value="DANGER_UPPER") | |
| 65 | + private Double dangerUpper; | |
| 66 | + /** | |
| 67 | + * 危急上限处理 | |
| 68 | + */ | |
| 69 | + @TableField(value="DANGER_UPPER_PRO") | |
| 70 | + private String dangerUpperPro; | |
| 71 | + /** | |
| 72 | + * 危急上限服务 | |
| 73 | + */ | |
| 74 | + @TableField(value="DANGER_UPPER_SERVICE") | |
| 75 | + private String dangerUpperService; | |
| 76 | + /** | |
| 77 | + * 危急下限 | |
| 78 | + */ | |
| 79 | + @TableField(value="DANGER_LOWER") | |
| 80 | + private Double dangerLower; | |
| 81 | + /** | |
| 82 | + * 危急下限处理 | |
| 83 | + */ | |
| 84 | + @TableField(value="DANGER_LOWER_PRO") | |
| 85 | + private String dangerLowerPro; | |
| 86 | + /** | |
| 87 | + * 危急下限服务 | |
| 88 | + */ | |
| 89 | + @TableField(value="DANGER_LOWER_SERVICE") | |
| 90 | + private String dangerLowerService; | |
| 91 | + /** | |
| 92 | + * 机构ID | |
| 93 | + */ | |
| 94 | + @TableField(value="ORG_ID") | |
| 95 | + private String orgId; | |
| 96 | + /** | |
| 97 | + * 是否启用 | |
| 98 | + */ | |
| 99 | + @TableField(value="ENABLE") | |
| 100 | + private Integer enable; | |
| 101 | + /** | |
| 102 | + * 是否删除 | |
| 103 | + */ | |
| 104 | + @TableField(value="IFDEL") | |
| 105 | + private Integer ifdel; | |
| 106 | + | |
| 107 | + | |
| 108 | + public String getId() { | |
| 109 | + return id; | |
| 110 | + } | |
| 111 | + | |
| 112 | + public void setId(String id) { | |
| 113 | + this.id = id; | |
| 114 | + } | |
| 115 | + | |
| 116 | + public String getConfId() { | |
| 117 | + return confId; | |
| 118 | + } | |
| 119 | + | |
| 120 | + public void setConfId(String confId) { | |
| 121 | + this.confId = confId; | |
| 122 | + } | |
| 123 | + | |
| 124 | + public String getSourceId() { | |
| 125 | + return sourceId; | |
| 126 | + } | |
| 127 | + | |
| 128 | + public void setSourceId(String sourceId) { | |
| 129 | + this.sourceId = sourceId; | |
| 130 | + } | |
| 131 | + | |
| 132 | + public String getSampleSouce() { | |
| 133 | + return sampleSouce; | |
| 134 | + } | |
| 135 | + | |
| 136 | + public void setSampleSouce(String sampleSouce) { | |
| 137 | + this.sampleSouce = sampleSouce; | |
| 138 | + } | |
| 139 | + | |
| 140 | + public String getSampleDesc() { | |
| 141 | + return sampleDesc; | |
| 142 | + } | |
| 143 | + | |
| 144 | + public void setSampleDesc(String sampleDesc) { | |
| 145 | + this.sampleDesc = sampleDesc; | |
| 146 | + } | |
| 147 | + | |
| 148 | + public String getSampleTarget() { | |
| 149 | + return sampleTarget; | |
| 150 | + } | |
| 151 | + | |
| 152 | + public void setSampleTarget(String sampleTarget) { | |
| 153 | + this.sampleTarget = sampleTarget; | |
| 154 | + } | |
| 155 | + | |
| 156 | + public String getUnit() { | |
| 157 | + return unit; | |
| 158 | + } | |
| 159 | + | |
| 160 | + public void setUnit(String unit) { | |
| 161 | + this.unit = unit; | |
| 162 | + } | |
| 163 | + | |
| 164 | + public String getDangerChar() { | |
| 165 | + return dangerChar; | |
| 166 | + } | |
| 167 | + | |
| 168 | + public void setDangerChar(String dangerChar) { | |
| 169 | + this.dangerChar = dangerChar; | |
| 170 | + } | |
| 171 | + | |
| 172 | + public Double getDangerUpper() { | |
| 173 | + return dangerUpper; | |
| 174 | + } | |
| 175 | + | |
| 176 | + public void setDangerUpper(Double dangerUpper) { | |
| 177 | + this.dangerUpper = dangerUpper; | |
| 178 | + } | |
| 179 | + | |
| 180 | + public String getDangerUpperPro() { | |
| 181 | + return dangerUpperPro; | |
| 182 | + } | |
| 183 | + | |
| 184 | + public void setDangerUpperPro(String dangerUpperPro) { | |
| 185 | + this.dangerUpperPro = dangerUpperPro; | |
| 186 | + } | |
| 187 | + | |
| 188 | + public String getDangerUpperService() { | |
| 189 | + return dangerUpperService; | |
| 190 | + } | |
| 191 | + | |
| 192 | + public void setDangerUpperService(String dangerUpperService) { | |
| 193 | + this.dangerUpperService = dangerUpperService; | |
| 194 | + } | |
| 195 | + | |
| 196 | + public Double getDangerLower() { | |
| 197 | + return dangerLower; | |
| 198 | + } | |
| 199 | + | |
| 200 | + public void setDangerLower(Double dangerLower) { | |
| 201 | + this.dangerLower = dangerLower; | |
| 202 | + } | |
| 203 | + | |
| 204 | + public String getDangerLowerPro() { | |
| 205 | + return dangerLowerPro; | |
| 206 | + } | |
| 207 | + | |
| 208 | + public void setDangerLowerPro(String dangerLowerPro) { | |
| 209 | + this.dangerLowerPro = dangerLowerPro; | |
| 210 | + } | |
| 211 | + | |
| 212 | + public String getDangerLowerService() { | |
| 213 | + return dangerLowerService; | |
| 214 | + } | |
| 215 | + | |
| 216 | + public void setDangerLowerService(String dangerLowerService) { | |
| 217 | + this.dangerLowerService = dangerLowerService; | |
| 218 | + } | |
| 219 | + | |
| 220 | + public String getOrgId() { | |
| 221 | + return orgId; | |
| 222 | + } | |
| 223 | + | |
| 224 | + public void setOrgId(String orgId) { | |
| 225 | + this.orgId = orgId; | |
| 226 | + } | |
| 227 | + | |
| 228 | + public Integer getEnable() { | |
| 229 | + return enable; | |
| 230 | + } | |
| 231 | + | |
| 232 | + public void setEnable(Integer enable) { | |
| 233 | + this.enable = enable; | |
| 234 | + } | |
| 235 | + | |
| 236 | + public Integer getIfdel() { | |
| 237 | + return ifdel; | |
| 238 | + } | |
| 239 | + | |
| 240 | + public void setIfdel(Integer ifdel) { | |
| 241 | + this.ifdel = ifdel; | |
| 242 | + } | |
| 243 | + | |
| 244 | +} |
parent/base.common/src/main/java/com/lyms/base/common/entity/conf/AssaySource.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.entity.conf; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotations.TableId; | |
| 4 | +import com.baomidou.mybatisplus.annotations.TableField; | |
| 5 | +import com.baomidou.mybatisplus.annotations.TableName; | |
| 6 | +import java.io.Serializable; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * <p> | |
| 10 | + * 化验项基础表 | |
| 11 | + * </p> | |
| 12 | + * | |
| 13 | + * @author fangcheng | |
| 14 | + * @since 2017-05-08 | |
| 15 | + */ | |
| 16 | +@TableName("ASSAY_SOURCE") | |
| 17 | +public class AssaySource implements Serializable { | |
| 18 | + | |
| 19 | + private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * | |
| 23 | + */ | |
| 24 | + @TableId(value="ID") | |
| 25 | + private String id; | |
| 26 | + /** | |
| 27 | + * 项目代码 | |
| 28 | + */ | |
| 29 | + @TableField(value="CODE") | |
| 30 | + private String code; | |
| 31 | + /** | |
| 32 | + * 标准编码 | |
| 33 | + */ | |
| 34 | + @TableField(value="STANDARD_CODE") | |
| 35 | + private String standardCode; | |
| 36 | + /** | |
| 37 | + * 项目名称 | |
| 38 | + */ | |
| 39 | + @TableField(value="NAME") | |
| 40 | + private String name; | |
| 41 | + /** | |
| 42 | + * 检验分类 | |
| 43 | + */ | |
| 44 | + @TableField(value="TYPE") | |
| 45 | + private String type; | |
| 46 | + /** | |
| 47 | + * 结果类型 | |
| 48 | + */ | |
| 49 | + @TableField(value="RESULT_TYPE") | |
| 50 | + private Integer resultType; | |
| 51 | + /** | |
| 52 | + * 是否启用 | |
| 53 | + */ | |
| 54 | + @TableField(value="ENABLE") | |
| 55 | + private Integer enable; | |
| 56 | + /** | |
| 57 | + * 是否删除 | |
| 58 | + */ | |
| 59 | + @TableField(value="IFDEL") | |
| 60 | + private Integer ifdel; | |
| 61 | + | |
| 62 | + | |
| 63 | + public String getId() { | |
| 64 | + return id; | |
| 65 | + } | |
| 66 | + | |
| 67 | + public void setId(String id) { | |
| 68 | + this.id = id; | |
| 69 | + } | |
| 70 | + | |
| 71 | + public String getCode() { | |
| 72 | + return code; | |
| 73 | + } | |
| 74 | + | |
| 75 | + public void setCode(String code) { | |
| 76 | + this.code = code; | |
| 77 | + } | |
| 78 | + | |
| 79 | + public String getStandardCode() { | |
| 80 | + return standardCode; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public void setStandardCode(String standardCode) { | |
| 84 | + this.standardCode = standardCode; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public String getName() { | |
| 88 | + return name; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public void setName(String name) { | |
| 92 | + this.name = name; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public String getType() { | |
| 96 | + return type; | |
| 97 | + } | |
| 98 | + | |
| 99 | + public void setType(String type) { | |
| 100 | + this.type = type; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public Integer getResultType() { | |
| 104 | + return resultType; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setResultType(Integer resultType) { | |
| 108 | + this.resultType = resultType; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public Integer getEnable() { | |
| 112 | + return enable; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public void setEnable(Integer enable) { | |
| 116 | + this.enable = enable; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public Integer getIfdel() { | |
| 120 | + return ifdel; | |
| 121 | + } | |
| 122 | + | |
| 123 | + public void setIfdel(Integer ifdel) { | |
| 124 | + this.ifdel = ifdel; | |
| 125 | + } | |
| 126 | + | |
| 127 | +} |
parent/base.common/src/main/java/com/lyms/base/common/entity/conf/AssaySourceConf.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.entity.conf; | |
| 2 | + | |
| 3 | +import com.baomidou.mybatisplus.annotations.TableId; | |
| 4 | +import com.baomidou.mybatisplus.annotations.TableField; | |
| 5 | +import com.baomidou.mybatisplus.annotations.TableName; | |
| 6 | +import java.io.Serializable; | |
| 7 | + | |
| 8 | +/** | |
| 9 | + * <p> | |
| 10 | + * 化验项基础项配置表 | |
| 11 | + * </p> | |
| 12 | + * | |
| 13 | + * @author fangcheng | |
| 14 | + * @since 2017-05-08 | |
| 15 | + */ | |
| 16 | +@TableName("ASSAY_SOURCE_CONF") | |
| 17 | +public class AssaySourceConf implements Serializable { | |
| 18 | + | |
| 19 | + private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * | |
| 23 | + */ | |
| 24 | + @TableId(value="ID") | |
| 25 | + private String id; | |
| 26 | + /** | |
| 27 | + * 化验项来源ID | |
| 28 | + */ | |
| 29 | + @TableField(value="SOURCE_ID") | |
| 30 | + private String sourceId; | |
| 31 | + /** | |
| 32 | + * 样本来源 | |
| 33 | + */ | |
| 34 | + @TableField(value="SAMPLE_SOUCE") | |
| 35 | + private String sampleSouce; | |
| 36 | + /** | |
| 37 | + * 样本说明 | |
| 38 | + */ | |
| 39 | + @TableField(value="SAMPLE_DESC") | |
| 40 | + private String sampleDesc; | |
| 41 | + /** | |
| 42 | + * 样本目标 | |
| 43 | + */ | |
| 44 | + @TableField(value="SAMPLE_TARGET") | |
| 45 | + private String sampleTarget; | |
| 46 | + /** | |
| 47 | + * 项目单位 | |
| 48 | + */ | |
| 49 | + @TableField(value="UNIT") | |
| 50 | + private String unit; | |
| 51 | + /** | |
| 52 | + * 危急字符 | |
| 53 | + */ | |
| 54 | + @TableField(value="DANGER_CHAR") | |
| 55 | + private String dangerChar; | |
| 56 | + /** | |
| 57 | + * 危急上限 | |
| 58 | + */ | |
| 59 | + @TableField(value="DANGER_UPPER") | |
| 60 | + private Double dangerUpper; | |
| 61 | + /** | |
| 62 | + * 危急上限处理 | |
| 63 | + */ | |
| 64 | + @TableField(value="DANGER_UPPER_PRO") | |
| 65 | + private String dangerUpperPro; | |
| 66 | + /** | |
| 67 | + * 危急上限服务 | |
| 68 | + */ | |
| 69 | + @TableField(value="DANGER_UPPER_SERVICE") | |
| 70 | + private String dangerUpperService; | |
| 71 | + /** | |
| 72 | + * 危急下限 | |
| 73 | + */ | |
| 74 | + @TableField(value="DANGER_LOWER") | |
| 75 | + private Double dangerLower; | |
| 76 | + /** | |
| 77 | + * 危急下限处理 | |
| 78 | + */ | |
| 79 | + @TableField(value="DANGER_LOWER_PRO") | |
| 80 | + private String dangerLowerPro; | |
| 81 | + /** | |
| 82 | + * 危急下限服务 | |
| 83 | + */ | |
| 84 | + @TableField(value="DANGER_LOWER_SERVICE") | |
| 85 | + private String dangerLowerService; | |
| 86 | + /** | |
| 87 | + * 是否启用 | |
| 88 | + */ | |
| 89 | + @TableField(value="ENABLE") | |
| 90 | + private Integer enable; | |
| 91 | + /** | |
| 92 | + * 是否删除 | |
| 93 | + */ | |
| 94 | + @TableField(value="IFDEL") | |
| 95 | + private Integer ifdel; | |
| 96 | + | |
| 97 | + | |
| 98 | + public String getId() { | |
| 99 | + return id; | |
| 100 | + } | |
| 101 | + | |
| 102 | + public void setId(String id) { | |
| 103 | + this.id = id; | |
| 104 | + } | |
| 105 | + | |
| 106 | + public String getSourceId() { | |
| 107 | + return sourceId; | |
| 108 | + } | |
| 109 | + | |
| 110 | + public void setSourceId(String sourceId) { | |
| 111 | + this.sourceId = sourceId; | |
| 112 | + } | |
| 113 | + | |
| 114 | + public String getSampleSouce() { | |
| 115 | + return sampleSouce; | |
| 116 | + } | |
| 117 | + | |
| 118 | + public void setSampleSouce(String sampleSouce) { | |
| 119 | + this.sampleSouce = sampleSouce; | |
| 120 | + } | |
| 121 | + | |
| 122 | + public String getSampleDesc() { | |
| 123 | + return sampleDesc; | |
| 124 | + } | |
| 125 | + | |
| 126 | + public void setSampleDesc(String sampleDesc) { | |
| 127 | + this.sampleDesc = sampleDesc; | |
| 128 | + } | |
| 129 | + | |
| 130 | + public String getSampleTarget() { | |
| 131 | + return sampleTarget; | |
| 132 | + } | |
| 133 | + | |
| 134 | + public void setSampleTarget(String sampleTarget) { | |
| 135 | + this.sampleTarget = sampleTarget; | |
| 136 | + } | |
| 137 | + | |
| 138 | + public String getUnit() { | |
| 139 | + return unit; | |
| 140 | + } | |
| 141 | + | |
| 142 | + public void setUnit(String unit) { | |
| 143 | + this.unit = unit; | |
| 144 | + } | |
| 145 | + | |
| 146 | + public String getDangerChar() { | |
| 147 | + return dangerChar; | |
| 148 | + } | |
| 149 | + | |
| 150 | + public void setDangerChar(String dangerChar) { | |
| 151 | + this.dangerChar = dangerChar; | |
| 152 | + } | |
| 153 | + | |
| 154 | + public Double getDangerUpper() { | |
| 155 | + return dangerUpper; | |
| 156 | + } | |
| 157 | + | |
| 158 | + public void setDangerUpper(Double dangerUpper) { | |
| 159 | + this.dangerUpper = dangerUpper; | |
| 160 | + } | |
| 161 | + | |
| 162 | + public String getDangerUpperPro() { | |
| 163 | + return dangerUpperPro; | |
| 164 | + } | |
| 165 | + | |
| 166 | + public void setDangerUpperPro(String dangerUpperPro) { | |
| 167 | + this.dangerUpperPro = dangerUpperPro; | |
| 168 | + } | |
| 169 | + | |
| 170 | + public String getDangerUpperService() { | |
| 171 | + return dangerUpperService; | |
| 172 | + } | |
| 173 | + | |
| 174 | + public void setDangerUpperService(String dangerUpperService) { | |
| 175 | + this.dangerUpperService = dangerUpperService; | |
| 176 | + } | |
| 177 | + | |
| 178 | + public Double getDangerLower() { | |
| 179 | + return dangerLower; | |
| 180 | + } | |
| 181 | + | |
| 182 | + public void setDangerLower(Double dangerLower) { | |
| 183 | + this.dangerLower = dangerLower; | |
| 184 | + } | |
| 185 | + | |
| 186 | + public String getDangerLowerPro() { | |
| 187 | + return dangerLowerPro; | |
| 188 | + } | |
| 189 | + | |
| 190 | + public void setDangerLowerPro(String dangerLowerPro) { | |
| 191 | + this.dangerLowerPro = dangerLowerPro; | |
| 192 | + } | |
| 193 | + | |
| 194 | + public String getDangerLowerService() { | |
| 195 | + return dangerLowerService; | |
| 196 | + } | |
| 197 | + | |
| 198 | + public void setDangerLowerService(String dangerLowerService) { | |
| 199 | + this.dangerLowerService = dangerLowerService; | |
| 200 | + } | |
| 201 | + | |
| 202 | + public Integer getEnable() { | |
| 203 | + return enable; | |
| 204 | + } | |
| 205 | + | |
| 206 | + public void setEnable(Integer enable) { | |
| 207 | + this.enable = enable; | |
| 208 | + } | |
| 209 | + | |
| 210 | + public Integer getIfdel() { | |
| 211 | + return ifdel; | |
| 212 | + } | |
| 213 | + | |
| 214 | + public void setIfdel(Integer ifdel) { | |
| 215 | + this.ifdel = ifdel; | |
| 216 | + } | |
| 217 | + | |
| 218 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/AssayCustomerConfService.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.service.conf; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssayCustomerConf; | |
| 4 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 5 | +import com.lyms.web.service.BaseService; | |
| 6 | +import java.io.Serializable; | |
| 7 | +import java.util.List; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * <p> | |
| 11 | + * 服务类 | |
| 12 | + * </p> | |
| 13 | + * | |
| 14 | + * @author fangcheng | |
| 15 | + * @since 2017-05-08 | |
| 16 | + */ | |
| 17 | +public interface AssayCustomerConfService extends BaseService<AssayCustomerConf> { | |
| 18 | + | |
| 19 | + /** | |
| 20 | + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 | |
| 21 | + * <li>@param id 删除主键id | |
| 22 | + * <li>@return 大于0修改成功,否则为失败 | |
| 23 | + */ | |
| 24 | + public Integer deleteLogicById(Serializable id); | |
| 25 | + | |
| 26 | + /** | |
| 27 | + * <li>@Description:根据机构id获取机构自定义危急配置 | |
| 28 | + * <li>@param orgId | |
| 29 | + * <li>@return | |
| 30 | + * <li>创建人:方承 | |
| 31 | + * <li>创建时间:2017年5月8日 | |
| 32 | + * <li>修改人: | |
| 33 | + * <li>修改时间: | |
| 34 | + */ | |
| 35 | + public List<AssaySourceConf> getCustomerConf(Serializable orgId); | |
| 36 | + | |
| 37 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/AssaySourceConfService.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.service.conf; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 4 | +import com.lyms.web.service.BaseService; | |
| 5 | +import java.io.Serializable; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * <p> | |
| 9 | + * 服务类 | |
| 10 | + * </p> | |
| 11 | + * | |
| 12 | + * @author fangcheng | |
| 13 | + * @since 2017-05-08 | |
| 14 | + */ | |
| 15 | +public interface AssaySourceConfService extends BaseService<AssaySourceConf> { | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 | |
| 19 | + * <li>@param id 删除主键id | |
| 20 | + * <li>@return 大于0修改成功,否则为失败 | |
| 21 | + */ | |
| 22 | + public Integer deleteLogicById(Serializable id); | |
| 23 | + | |
| 24 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/AssaySourceService.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.service.conf; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssaySource; | |
| 4 | +import com.lyms.web.service.BaseService; | |
| 5 | +import java.io.Serializable; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * <p> | |
| 9 | + * 服务类 | |
| 10 | + * </p> | |
| 11 | + * | |
| 12 | + * @author fangcheng | |
| 13 | + * @since 2017-05-08 | |
| 14 | + */ | |
| 15 | +public interface AssaySourceService extends BaseService<AssaySource> { | |
| 16 | + | |
| 17 | + /** | |
| 18 | + * <li>@Description:逻辑删除,ifDel = 1 为删除,否则为没有删除 | |
| 19 | + * <li>@param id 删除主键id | |
| 20 | + * <li>@return 大于0修改成功,否则为失败 | |
| 21 | + */ | |
| 22 | + public Integer deleteLogicById(Serializable id); | |
| 23 | + | |
| 24 | + | |
| 25 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/AssayCustomerConfServiceImpl.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.service.conf.impl; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssayCustomerConf; | |
| 4 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 5 | +import com.lyms.base.common.dao.conf.AssayCustomerConfMapper; | |
| 6 | +import com.lyms.base.common.service.conf.AssayCustomerConfService; | |
| 7 | +import com.lyms.util.StrUtils; | |
| 8 | +import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 9 | +import org.springframework.stereotype.Service; | |
| 10 | +import java.io.Serializable; | |
| 11 | +import java.util.List; | |
| 12 | + | |
| 13 | +/** | |
| 14 | + * <p> | |
| 15 | + * 自定义化验项基础项配置表 服务实现类 | |
| 16 | + * </p> | |
| 17 | + * | |
| 18 | + * @author fangcheng | |
| 19 | + * @since 2017-05-08 | |
| 20 | + */ | |
| 21 | +@Service | |
| 22 | +public class AssayCustomerConfServiceImpl extends ServiceImpl<AssayCustomerConfMapper, AssayCustomerConf> implements AssayCustomerConfService { | |
| 23 | + | |
| 24 | + public Integer deleteLogicById(Serializable id){ | |
| 25 | + return baseMapper.deleteLogicById(id); | |
| 26 | + } | |
| 27 | + | |
| 28 | + @Override | |
| 29 | + public boolean insert(AssayCustomerConf entity) { | |
| 30 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 31 | + entity.setId(StrUtils.uuid()); | |
| 32 | + } | |
| 33 | + return super.insert(entity); | |
| 34 | + } | |
| 35 | + | |
| 36 | + @Override | |
| 37 | + public List<AssaySourceConf> getCustomerConf(Serializable orgId) { | |
| 38 | + return baseMapper.getCustomerConf(orgId); | |
| 39 | + } | |
| 40 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/AssaySourceConfServiceImpl.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.service.conf.impl; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssaySource; | |
| 4 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 5 | +import com.lyms.base.common.dao.conf.AssaySourceConfMapper; | |
| 6 | +import com.lyms.base.common.service.conf.AssaySourceConfService; | |
| 7 | +import com.lyms.util.StrUtils; | |
| 8 | +import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 9 | +import org.springframework.stereotype.Service; | |
| 10 | +import java.io.Serializable; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * <p> | |
| 14 | + * 化验项基础项配置表 服务实现类 | |
| 15 | + * </p> | |
| 16 | + * | |
| 17 | + * @author fangcheng | |
| 18 | + * @since 2017-05-08 | |
| 19 | + */ | |
| 20 | +@Service | |
| 21 | +public class AssaySourceConfServiceImpl extends ServiceImpl<AssaySourceConfMapper, AssaySourceConf> implements AssaySourceConfService { | |
| 22 | + | |
| 23 | + public Integer deleteLogicById(Serializable id){ | |
| 24 | + return baseMapper.deleteLogicById(id); | |
| 25 | + } | |
| 26 | + @Override | |
| 27 | + public boolean insert(AssaySourceConf entity) { | |
| 28 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 29 | + entity.setId(StrUtils.uuid()); | |
| 30 | + } | |
| 31 | + return super.insert(entity); | |
| 32 | + } | |
| 33 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/AssaySourceServiceImpl.java
View file @
e4a8426
| 1 | +package com.lyms.base.common.service.conf.impl; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.conf.AssaySource; | |
| 4 | +import com.lyms.base.common.dao.conf.AssaySourceMapper; | |
| 5 | +import com.lyms.base.common.service.conf.AssaySourceService; | |
| 6 | +import com.lyms.util.StrUtils; | |
| 7 | +import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 8 | +import org.springframework.stereotype.Service; | |
| 9 | +import java.io.Serializable; | |
| 10 | + | |
| 11 | +/** | |
| 12 | + * <p> | |
| 13 | + * 化验项基础表 服务实现类 | |
| 14 | + * </p> | |
| 15 | + * | |
| 16 | + * @author fangcheng | |
| 17 | + * @since 2017-05-08 | |
| 18 | + */ | |
| 19 | +@Service | |
| 20 | +public class AssaySourceServiceImpl extends ServiceImpl<AssaySourceMapper, AssaySource> implements AssaySourceService { | |
| 21 | + | |
| 22 | + public Integer deleteLogicById(Serializable id){ | |
| 23 | + return baseMapper.deleteLogicById(id); | |
| 24 | + } | |
| 25 | + | |
| 26 | + @Override | |
| 27 | + public boolean insert(AssaySource entity) { | |
| 28 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 29 | + entity.setId(StrUtils.uuid()); | |
| 30 | + } | |
| 31 | + return super.insert(entity); | |
| 32 | + } | |
| 33 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseConfServiceImpl.java
View file @
e4a8426
| ... | ... | @@ -5,6 +5,7 @@ |
| 5 | 5 | import com.lyms.base.common.dao.conf.DiagnoseConfMapper; |
| 6 | 6 | import com.lyms.base.common.service.conf.DiagnoseConfService; |
| 7 | 7 | import com.lyms.base.common.utils.SyncComponent; |
| 8 | +import com.lyms.util.StrUtils; | |
| 8 | 9 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| 9 | 10 | |
| 10 | 11 | import org.springframework.beans.factory.annotation.Autowired; |
| ... | ... | @@ -35,6 +36,9 @@ |
| 35 | 36 | |
| 36 | 37 | @Override |
| 37 | 38 | public boolean insert(DiagnoseConf entity) { |
| 39 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 40 | + entity.setId(StrUtils.uuid()); | |
| 41 | + } | |
| 38 | 42 | boolean tag = super.insert(entity); |
| 39 | 43 | if(tag){ |
| 40 | 44 | syncComponent.addPushSyncOperation(SyncParamEnum.DIAGNOSE_CONF_INSERT, entity); |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseSourceServiceImpl.java
View file @
e4a8426
| ... | ... | @@ -42,8 +42,9 @@ |
| 42 | 42 | |
| 43 | 43 | @Override |
| 44 | 44 | public boolean insert(DiagnoseSource entity) { |
| 45 | - String id = StrUtils.uuid(); | |
| 46 | - entity.setId(id); | |
| 45 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 46 | + entity.setId(StrUtils.uuid()); | |
| 47 | + } | |
| 47 | 48 | boolean tag = super.insert(entity); |
| 48 | 49 | if(tag){ |
| 49 | 50 | syncComponent.addPushSyncOperation(SyncParamEnum.DIAGNOSE_SOURCE_DELETE, entity); |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/DiagnoseVersionServiceImpl.java
View file @
e4a8426
| ... | ... | @@ -50,8 +50,9 @@ |
| 50 | 50 | |
| 51 | 51 | @Override |
| 52 | 52 | public boolean insert(DiagnoseVersion entity) { |
| 53 | - String id = StrUtils.uuid(); | |
| 54 | - entity.setId(id); | |
| 53 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 54 | + entity.setId(StrUtils.uuid()); | |
| 55 | + } | |
| 55 | 56 | boolean tag = super.insert(entity); |
| 56 | 57 | if(tag){ |
| 57 | 58 | syncComponent.addPushSyncOperation(SyncParamEnum.DIAGNOSE_VERSION_INSERT, entity); |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/HighriskConfServiceImpl.java
View file @
e4a8426
| ... | ... | @@ -47,8 +47,9 @@ |
| 47 | 47 | |
| 48 | 48 | @Override |
| 49 | 49 | public boolean insert(HighriskConf entity) { |
| 50 | - String id = StrUtils.uuid(); | |
| 51 | - entity.setId(id); | |
| 50 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 51 | + entity.setId(StrUtils.uuid()); | |
| 52 | + } | |
| 52 | 53 | boolean tag = super.insert(entity); |
| 53 | 54 | if(tag){ |
| 54 | 55 | syncComponent.addPushSyncOperation(SyncParamEnum.HIGHRISK_CONF_INSERT, entity); |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/HighriskSourceServiceImpl.java
View file @
e4a8426
| ... | ... | @@ -45,8 +45,9 @@ |
| 45 | 45 | |
| 46 | 46 | @Override |
| 47 | 47 | public boolean insert(HighriskSource entity) { |
| 48 | - String id = StrUtils.uuid(); | |
| 49 | - entity.setId(id); | |
| 48 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 49 | + entity.setId(StrUtils.uuid()); | |
| 50 | + } | |
| 50 | 51 | boolean tag = super.insert(entity); |
| 51 | 52 | if(tag){ |
| 52 | 53 | syncComponent.addPushSyncOperation(SyncParamEnum.HIGHRISK_SOURCE_INSERT, entity); |
parent/base.common/src/main/java/com/lyms/base/common/service/conf/impl/HighriskVersionServiceImpl.java
View file @
e4a8426
| ... | ... | @@ -11,6 +11,7 @@ |
| 11 | 11 | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| 12 | 12 | import com.lyms.base.common.dao.conf.HighriskConfMapper; |
| 13 | 13 | import com.lyms.base.common.dao.conf.HighriskVersionMapper; |
| 14 | +import com.lyms.base.common.entity.conf.AssaySource; | |
| 14 | 15 | import com.lyms.base.common.entity.conf.HighriskConf; |
| 15 | 16 | import com.lyms.base.common.entity.conf.HighriskVersion; |
| 16 | 17 | import com.lyms.base.common.enums.StatusEnum; |
| ... | ... | @@ -51,8 +52,9 @@ |
| 51 | 52 | |
| 52 | 53 | @Override |
| 53 | 54 | public boolean insert(HighriskVersion entity) { |
| 54 | - String id = StrUtils.uuid(); | |
| 55 | - entity.setId(id); | |
| 55 | + if(StrUtils.isEmpty(entity.getId())){ | |
| 56 | + entity.setId(StrUtils.uuid()); | |
| 57 | + } | |
| 56 | 58 | boolean tag = super.insert(entity); |
| 57 | 59 | if(tag){ |
| 58 | 60 | syncComponent.addPushSyncOperation(SyncParamEnum.HIGHRISK_VERSION_INSERT, entity); |
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssayCustomerConfController.java
View file @
e4a8426
| 1 | +package com.lyms.cm.controller.conf; | |
| 2 | + | |
| 3 | +import java.util.Map; | |
| 4 | + | |
| 5 | +import org.apache.commons.lang3.StringUtils; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.stereotype.Controller; | |
| 8 | +import org.springframework.ui.Model; | |
| 9 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 10 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 11 | +import org.springframework.web.bind.annotation.RequestMethod; | |
| 12 | +import org.springframework.web.bind.annotation.ResponseBody; | |
| 13 | + | |
| 14 | +import com.alibaba.fastjson.JSONObject; | |
| 15 | +import com.baomidou.mybatisplus.mapper.EntityWrapper; | |
| 16 | +import com.baomidou.mybatisplus.plugins.Page; | |
| 17 | +import com.lyms.base.common.entity.conf.AssayCustomerConf; | |
| 18 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 19 | +import com.lyms.base.common.service.conf.AssayCustomerConfService; | |
| 20 | +import com.lyms.base.common.service.conf.AssaySourceConfService; | |
| 21 | +import com.lyms.constants.OperationName; | |
| 22 | +import com.lyms.util.StrUtils; | |
| 23 | +import com.lyms.web.bean.AjaxResult; | |
| 24 | +import com.lyms.web.controller.BaseController; | |
| 25 | + | |
| 26 | +/** | |
| 27 | + * <p> | |
| 28 | + * 自定义化验项基础项配置表 前端控制器 | |
| 29 | + * </p> | |
| 30 | + * | |
| 31 | + * @author fangcheng | |
| 32 | + * @since 2017-05-08 | |
| 33 | + */ | |
| 34 | +@Controller | |
| 35 | +@RequestMapping("/assayCustomerConf") | |
| 36 | +public class AssayCustomerConfController extends BaseController { | |
| 37 | + @Autowired | |
| 38 | + private AssayCustomerConfService assayCustomerConfService; | |
| 39 | + | |
| 40 | + | |
| 41 | + /** | |
| 42 | + * 跳转到列表页面 | |
| 43 | + * | |
| 44 | + * @return | |
| 45 | + */ | |
| 46 | + @RequestMapping(value = "/toList", method = { RequestMethod.GET }) | |
| 47 | + public String toList() { | |
| 48 | + return "/conf/assay/customer_list"; | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** | |
| 52 | + * 列表 | |
| 53 | + * | |
| 54 | + * @param page | |
| 55 | + * @param model | |
| 56 | + * @return | |
| 57 | + */ | |
| 58 | + @RequestMapping(value = "/list", method = { RequestMethod.POST, RequestMethod.GET }) | |
| 59 | + @ResponseBody | |
| 60 | + public Map<String, Object> list(Model model) { | |
| 61 | + Page<AssayCustomerConf> page = getPage(); | |
| 62 | + EntityWrapper<AssayCustomerConf> ew = new EntityWrapper<AssayCustomerConf>(); | |
| 63 | + String searchName = getParameter("name"); | |
| 64 | + if (StrUtils.isNotEmpty(searchName)) { | |
| 65 | + ew.and("source_Id like {0}", searchName.trim() + "%"); | |
| 66 | + } | |
| 67 | + page = assayCustomerConfService.selectPage(page,ew); | |
| 68 | + return toGridData(page); | |
| 69 | + } | |
| 70 | + | |
| 71 | + /** | |
| 72 | + * 跳转到编辑页面 | |
| 73 | + * | |
| 74 | + * @return | |
| 75 | + */ | |
| 76 | + @RequestMapping(value = { "/{id}/toEdit" }, method = RequestMethod.GET) | |
| 77 | + public String toEdit(@PathVariable String id, Model model) { | |
| 78 | + if (!StringUtils.isBlank(id)&&!"0".equals(id)) { | |
| 79 | + AssayCustomerConf entity = assayCustomerConfService.selectById(id); | |
| 80 | + model.addAttribute("conf", entity); | |
| 81 | + } | |
| 82 | + return "/conf/assay/customer_edit"; | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** | |
| 86 | + * 创建用户 | |
| 87 | + * <p> | |
| 88 | + * TODO | |
| 89 | + * | |
| 90 | + * @param user | |
| 91 | + * @return | |
| 92 | + */ | |
| 93 | + @RequestMapping(value = "/create", method = RequestMethod.POST) | |
| 94 | + @ResponseBody | |
| 95 | + public AjaxResult create(AssayCustomerConf AssayCustomerConf, AjaxResult ajaxResult) { | |
| 96 | + boolean tag = assayCustomerConfService.insert(AssayCustomerConf); | |
| 97 | + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE); | |
| 98 | + } | |
| 99 | + | |
| 100 | + /** | |
| 101 | + * 修改信息 | |
| 102 | + */ | |
| 103 | + @RequestMapping(value = "/update", method = { RequestMethod.POST }) | |
| 104 | + @ResponseBody | |
| 105 | + public AjaxResult update(AssayCustomerConf AssayCustomerConf, AjaxResult ajaxResult) { | |
| 106 | + boolean tag = assayCustomerConfService.updateById(AssayCustomerConf); | |
| 107 | + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE); | |
| 108 | + } | |
| 109 | + | |
| 110 | + /** | |
| 111 | + * 删除 | |
| 112 | + * | |
| 113 | + * @return | |
| 114 | + */ | |
| 115 | + @RequestMapping(value = "/{id}/assay", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 116 | + @ResponseBody | |
| 117 | + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) { | |
| 118 | + int tag = assayCustomerConfService.deleteLogicById(id); | |
| 119 | + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE); | |
| 120 | + } | |
| 121 | + | |
| 122 | + | |
| 123 | + /** | |
| 124 | + * 删除 | |
| 125 | + * | |
| 126 | + * @return | |
| 127 | + */ | |
| 128 | + @RequestMapping(value = "/{id}/getCustomerConf", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 129 | + @ResponseBody | |
| 130 | + public String getCustomerConf(@PathVariable String id, AjaxResult ajaxResult) { | |
| 131 | + return JSONObject.toJSONString(assayCustomerConfService.getCustomerConf("11")); | |
| 132 | + } | |
| 133 | +} |
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssaySourceConfController.java
View file @
e4a8426
| 1 | +package com.lyms.cm.controller.conf; | |
| 2 | + | |
| 3 | +import java.util.Map; | |
| 4 | + | |
| 5 | +import org.apache.commons.lang3.StringUtils; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.stereotype.Controller; | |
| 8 | +import org.springframework.ui.Model; | |
| 9 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 10 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 11 | +import org.springframework.web.bind.annotation.RequestMethod; | |
| 12 | +import org.springframework.web.bind.annotation.ResponseBody; | |
| 13 | + | |
| 14 | +import com.baomidou.mybatisplus.mapper.EntityWrapper; | |
| 15 | +import com.baomidou.mybatisplus.plugins.Page; | |
| 16 | +import com.lyms.base.common.entity.conf.AssaySourceConf; | |
| 17 | +import com.lyms.base.common.service.conf.AssaySourceConfService; | |
| 18 | +import com.lyms.constants.OperationName; | |
| 19 | +import com.lyms.util.StrUtils; | |
| 20 | +import com.lyms.web.bean.AjaxResult; | |
| 21 | +import com.lyms.web.controller.BaseController; | |
| 22 | + | |
| 23 | +/** | |
| 24 | + * <p> | |
| 25 | + * 化验项基础项配置表 前端控制器 | |
| 26 | + * </p> | |
| 27 | + * | |
| 28 | + * @author fangcheng | |
| 29 | + * @since 2017-05-08 | |
| 30 | + */ | |
| 31 | +@Controller | |
| 32 | +@RequestMapping("/assaySourceConf") | |
| 33 | +public class AssaySourceConfController extends BaseController { | |
| 34 | + | |
| 35 | + @Autowired | |
| 36 | + private AssaySourceConfService assaySourceConfService; | |
| 37 | + | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 跳转到列表页面 | |
| 41 | + * | |
| 42 | + * @return | |
| 43 | + */ | |
| 44 | + @RequestMapping(value = "/toList", method = { RequestMethod.GET }) | |
| 45 | + public String toList() { | |
| 46 | + return "/conf/assay/conf_list"; | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * 列表 | |
| 51 | + * | |
| 52 | + * @param page | |
| 53 | + * @param model | |
| 54 | + * @return | |
| 55 | + */ | |
| 56 | + @RequestMapping(value = "/list", method = { RequestMethod.POST, RequestMethod.GET }) | |
| 57 | + @ResponseBody | |
| 58 | + public Map<String, Object> list(Model model) { | |
| 59 | + Page<AssaySourceConf> page = getPage(); | |
| 60 | + EntityWrapper<AssaySourceConf> ew = new EntityWrapper<AssaySourceConf>(); | |
| 61 | + String searchName = getParameter("name"); | |
| 62 | + if (StrUtils.isNotEmpty(searchName)) { | |
| 63 | + ew.and("source_ID like {0}", searchName.trim() + "%"); | |
| 64 | + } | |
| 65 | + page = assaySourceConfService.selectPage(page,ew); | |
| 66 | + return toGridData(page); | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * 跳转到编辑页面 | |
| 71 | + * | |
| 72 | + * @return | |
| 73 | + */ | |
| 74 | + @RequestMapping(value = { "/{id}/toEdit" }, method = RequestMethod.GET) | |
| 75 | + public String toEdit(@PathVariable String id, Model model) { | |
| 76 | + if (!StringUtils.isBlank(id)&&!"0".equals(id)) { | |
| 77 | + AssaySourceConf entity = assaySourceConfService.selectById(id); | |
| 78 | + model.addAttribute("conf", entity); | |
| 79 | + } | |
| 80 | + return "/conf/assay/conf_edit"; | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * 创建用户 | |
| 85 | + * <p> | |
| 86 | + * TODO | |
| 87 | + * | |
| 88 | + * @param user | |
| 89 | + * @return | |
| 90 | + */ | |
| 91 | + @RequestMapping(value = "/create", method = RequestMethod.POST) | |
| 92 | + @ResponseBody | |
| 93 | + public AjaxResult create(AssaySourceConf AssaySourceConf, AjaxResult ajaxResult) { | |
| 94 | + boolean tag = assaySourceConfService.insert(AssaySourceConf); | |
| 95 | + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE); | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * 修改信息 | |
| 100 | + */ | |
| 101 | + @RequestMapping(value = "/update", method = { RequestMethod.POST }) | |
| 102 | + @ResponseBody | |
| 103 | + public AjaxResult update(AssaySourceConf AssaySourceConf, AjaxResult ajaxResult) { | |
| 104 | + boolean tag = assaySourceConfService.updateById(AssaySourceConf); | |
| 105 | + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE); | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * 删除 | |
| 110 | + * | |
| 111 | + * @return | |
| 112 | + */ | |
| 113 | + @RequestMapping(value = "/{id}/delete", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 114 | + @ResponseBody | |
| 115 | + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) { | |
| 116 | + int tag = assaySourceConfService.deleteLogicById(id); | |
| 117 | + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE); | |
| 118 | + } | |
| 119 | + | |
| 120 | +} |
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssaySourceController.java
View file @
e4a8426
| 1 | +package com.lyms.cm.controller.conf; | |
| 2 | + | |
| 3 | +import java.util.Map; | |
| 4 | + | |
| 5 | +import org.apache.commons.lang3.StringUtils; | |
| 6 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 7 | +import org.springframework.stereotype.Controller; | |
| 8 | +import org.springframework.ui.Model; | |
| 9 | +import org.springframework.web.bind.annotation.PathVariable; | |
| 10 | +import org.springframework.web.bind.annotation.RequestMapping; | |
| 11 | +import org.springframework.web.bind.annotation.RequestMethod; | |
| 12 | +import org.springframework.web.bind.annotation.ResponseBody; | |
| 13 | + | |
| 14 | +import com.baomidou.mybatisplus.mapper.EntityWrapper; | |
| 15 | +import com.baomidou.mybatisplus.plugins.Page; | |
| 16 | +import com.lyms.base.common.entity.conf.AssaySource; | |
| 17 | +import com.lyms.base.common.service.conf.AssaySourceService; | |
| 18 | +import com.lyms.constants.OperationName; | |
| 19 | +import com.lyms.util.StrUtils; | |
| 20 | +import com.lyms.web.bean.AjaxResult; | |
| 21 | +import com.lyms.web.controller.BaseController; | |
| 22 | + | |
| 23 | +/** | |
| 24 | + * <p> | |
| 25 | + * 化验项基础表 前端控制器 | |
| 26 | + * </p> | |
| 27 | + * | |
| 28 | + * @author fangcheng | |
| 29 | + * @since 2017-05-08 | |
| 30 | + */ | |
| 31 | +@Controller | |
| 32 | +@RequestMapping("/assaySource") | |
| 33 | +public class AssaySourceController extends BaseController { | |
| 34 | + | |
| 35 | + @Autowired | |
| 36 | + private AssaySourceService assaySourceService; | |
| 37 | + | |
| 38 | + | |
| 39 | + /** | |
| 40 | + * 跳转到列表页面 | |
| 41 | + * | |
| 42 | + * @return | |
| 43 | + */ | |
| 44 | + @RequestMapping(value = "/toList", method = { RequestMethod.GET }) | |
| 45 | + public String toList() { | |
| 46 | + return "/conf/assay/source_list"; | |
| 47 | + } | |
| 48 | + | |
| 49 | + /** | |
| 50 | + * 列表 | |
| 51 | + * | |
| 52 | + * @param page | |
| 53 | + * @param model | |
| 54 | + * @return | |
| 55 | + */ | |
| 56 | + @RequestMapping(value = "/list", method = { RequestMethod.POST, RequestMethod.GET }) | |
| 57 | + @ResponseBody | |
| 58 | + public Map<String, Object> list(Model model) { | |
| 59 | + Page<AssaySource> page = getPage(); | |
| 60 | + EntityWrapper<AssaySource> ew = new EntityWrapper<AssaySource>(); | |
| 61 | + String searchName = getParameter("name"); | |
| 62 | + if (StrUtils.isNotEmpty(searchName)) { | |
| 63 | + ew.and("name like {0}", searchName.trim() + "%"); | |
| 64 | + } | |
| 65 | + page = assaySourceService.selectPage(page,ew); | |
| 66 | + return toGridData(page); | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** | |
| 70 | + * 跳转到编辑页面 | |
| 71 | + * | |
| 72 | + * @return | |
| 73 | + */ | |
| 74 | + @RequestMapping(value = { "/{id}/toEdit" }, method = RequestMethod.GET) | |
| 75 | + public String toEdit(@PathVariable String id, Model model) { | |
| 76 | + if (!StringUtils.isBlank(id)&&!"0".equals(id)) { | |
| 77 | + AssaySource entity = assaySourceService.selectById(id); | |
| 78 | + model.addAttribute("source", entity); | |
| 79 | + } | |
| 80 | + return "/conf/assay/source_edit"; | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** | |
| 84 | + * 创建用户 | |
| 85 | + * <p> | |
| 86 | + * TODO | |
| 87 | + * | |
| 88 | + * @param user | |
| 89 | + * @return | |
| 90 | + */ | |
| 91 | + @RequestMapping(value = "/create", method = RequestMethod.POST) | |
| 92 | + @ResponseBody | |
| 93 | + public AjaxResult create(AssaySource AssaySource, AjaxResult ajaxResult) { | |
| 94 | + boolean tag = assaySourceService.insert(AssaySource); | |
| 95 | + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE); | |
| 96 | + } | |
| 97 | + | |
| 98 | + /** | |
| 99 | + * 修改信息 | |
| 100 | + */ | |
| 101 | + @RequestMapping(value = "/update", method = { RequestMethod.POST }) | |
| 102 | + @ResponseBody | |
| 103 | + public AjaxResult update(AssaySource AssaySource, AjaxResult ajaxResult) { | |
| 104 | + boolean tag = assaySourceService.updateById(AssaySource); | |
| 105 | + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE); | |
| 106 | + } | |
| 107 | + | |
| 108 | + /** | |
| 109 | + * 删除 | |
| 110 | + * | |
| 111 | + * @return | |
| 112 | + */ | |
| 113 | + @RequestMapping(value = "/{id}/delete", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 114 | + @ResponseBody | |
| 115 | + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) { | |
| 116 | + int tag = assaySourceService.deleteLogicById(id); | |
| 117 | + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE); | |
| 118 | + } | |
| 119 | + | |
| 120 | +} |
parent/center.manager/src/main/resources/dev/xml/app-mapper-reload.xml
View file @
e4a8426
| ... | ... | @@ -12,7 +12,7 @@ |
| 12 | 12 | <!-- mybatis plus mapper 文件热加载 --> |
| 13 | 13 | <bean class="com.baomidou.mybatisplus.spring.MybatisMapperRefresh"> |
| 14 | 14 | <constructor-arg name="sqlSessionFactory" ref="sqlSessionFactory"/> |
| 15 | - <constructor-arg name="mapperLocations" value="classpath*:com/lyms/cm/dao/*/*.xml"/> | |
| 15 | + <constructor-arg name="mapperLocations" value="classpath*:com/lyms/cm/dao/*/*.xml,classpath*:com/lyms/base/common/dao/*/*.xml"/> | |
| 16 | 16 | <constructor-arg name="enabled" value="true"/> |
| 17 | 17 | </bean> |
| 18 | 18 | </beans> |
parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/conf_edit.html
View file @
e4a8426
| 1 | +#override("body") | |
| 2 | +<div class="ibox float-e-margins"> | |
| 3 | + <div class="ibox-content"> | |
| 4 | + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate"> | |
| 5 | + <div class="form-group"> | |
| 6 | + <label class="col-sm-3 control-label">id编号:</label> | |
| 7 | + <div class="col-sm-8"> | |
| 8 | + <input type="text" placeholder="id编号" value="$!conf.id" readOnly="true" class="form-control" minlength="2" name="id" id="id"> | |
| 9 | + </div> | |
| 10 | + </div> | |
| 11 | + <div class="form-group"> | |
| 12 | + <label class="col-sm-3 control-label">sourceId:</label> | |
| 13 | + <div class="col-sm-8"> | |
| 14 | + <input type="text" placeholder="sourceId" value="$!conf.sourceId" aria-required="true" required="true" class="form-control" minlength="2" name="sourceId" id="sourceId"> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | + <div class="form-group"> | |
| 18 | + <label class="col-sm-3 control-label">样本来源:</label> | |
| 19 | + <div class="col-sm-8"> | |
| 20 | + <input type="text" placeholder="样本来源" value="$!conf.sampleSouce" aria-required="true" required="true" class="form-control" minlength="2" name="sampleSouce" id="sampleSouce"> | |
| 21 | + </div> | |
| 22 | + </div> | |
| 23 | + <div class="form-group"> | |
| 24 | + <label class="col-sm-3 control-label">样本说明:</label> | |
| 25 | + <div class="col-sm-8"> | |
| 26 | + <input type="text" placeholder="样本说明" value="$!conf.sampleDesc" aria-required="true" required="true" class="form-control" minlength="2" name="sampleDesc" id="sampleDesc"> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | + <div class="form-group"> | |
| 30 | + <label class="col-sm-3 control-label">样本目标:</label> | |
| 31 | + <div class="col-sm-8"> | |
| 32 | + <input type="text" placeholder="样本目标" value="$!conf.sampleTarget" aria-required="true" required="true" class="form-control" minlength="2" name="sampleTarget" id="sampleTarget"> | |
| 33 | + </div> | |
| 34 | + </div> | |
| 35 | + <div class="form-group"> | |
| 36 | + <label class="col-sm-3 control-label">项目单位:</label> | |
| 37 | + <div class="col-sm-8"> | |
| 38 | + <input type="text" placeholder="项目单位" value="$!conf.unit" aria-required="true" required="true" class="form-control" minlength="2" name="unit" id="unit"> | |
| 39 | + </div> | |
| 40 | + </div> | |
| 41 | + <div class="form-group"> | |
| 42 | + <label class="col-sm-3 control-label">危急字符:</label> | |
| 43 | + <div class="col-sm-8"> | |
| 44 | + <input type="text" placeholder="危急字符" value="$!conf.dangerChar" aria-required="true" required="true" class="form-control" minlength="2" name="dangerChar" id="dangerChar"> | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + <div class="form-group"> | |
| 48 | + <label class="col-sm-3 control-label">危急下限:</label> | |
| 49 | + <div class="col-sm-8"> | |
| 50 | + <input type="text" placeholder="危急下限" value="$!conf.dangerLower" aria-required="true" required="true" class="form-control" minlength="2" name="dangerLower" id="dangerLower"> | |
| 51 | + </div> | |
| 52 | + </div> | |
| 53 | + <div class="form-group"> | |
| 54 | + <label class="col-sm-3 control-label">危急下限处理:</label> | |
| 55 | + <div class="col-sm-8"> | |
| 56 | + <input type="text" placeholder="危急下限处理" value="$!conf.dangerLowerPro" aria-required="true" required="true" class="form-control" minlength="2" name="dangerLowerPro" id="dangerLowerPro"> | |
| 57 | + </div> | |
| 58 | + </div> | |
| 59 | + <div class="form-group"> | |
| 60 | + <label class="col-sm-3 control-label">危急下限服务:</label> | |
| 61 | + <div class="col-sm-8"> | |
| 62 | + <input type="text" placeholder="危急下限服务" value="$!conf.dangerLowerService" aria-required="true" required="true" class="form-control" minlength="2" name="dangerLowerService" id="dangerLowerService"> | |
| 63 | + </div> | |
| 64 | + </div> | |
| 65 | + <div class="form-group"> | |
| 66 | + <label class="col-sm-3 control-label">危急上限:</label> | |
| 67 | + <div class="col-sm-8"> | |
| 68 | + <input type="text" placeholder="危急上限" value="$!conf.dangerUpper" aria-required="true" required="true" class="form-control" minlength="2" name="dangerUpper" id="dangerUpper"> | |
| 69 | + </div> | |
| 70 | + </div> | |
| 71 | + <div class="form-group"> | |
| 72 | + <label class="col-sm-3 control-label">危急上限处理:</label> | |
| 73 | + <div class="col-sm-8"> | |
| 74 | + <input type="text" placeholder="危急上限处理" value="$!conf.dangerUpperPro" aria-required="true" required="true" class="form-control" minlength="2" name="dangerUpperPro" id="dangerUpperPro"> | |
| 75 | + </div> | |
| 76 | + </div> | |
| 77 | + <div class="form-group"> | |
| 78 | + <label class="col-sm-3 control-label">危急上限服务:</label> | |
| 79 | + <div class="col-sm-8"> | |
| 80 | + <input type="text" placeholder="危急上限服务" value="$!conf.dangerUpperService" aria-required="true" required="true" class="form-control" minlength="2" name="dangerUpperService" id="dangerUpperService"> | |
| 81 | + </div> | |
| 82 | + </div> | |
| 83 | + <div class="form-group"> | |
| 84 | + <label class="col-sm-3 control-label"></label> | |
| 85 | + <div class="col-sm-8"> | |
| 86 | + <label class="checkbox-inline i-checks"> | |
| 87 | + <div class="icheckbox_square-green" style="position: relative;"> | |
| 88 | + <input type="checkbox" value="0" name="enable" #if ($conf.enable == 0) checked="checked" #end | |
| 89 | + style="position: absolute; opacity: 0;" > | |
| 90 | + <ins class="iCheck-helper" | |
| 91 | + style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins> | |
| 92 | + </div>是否禁用(选中禁用,不选中可用) | |
| 93 | + </label> | |
| 94 | + </div> | |
| 95 | + </div> | |
| 96 | + <div class="hr-line-dashed"></div> | |
| 97 | + <div class="form-group"> | |
| 98 | + <div class="col-sm-4 col-sm-offset-3 pull-right"> | |
| 99 | + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i> 提交</button> | |
| 100 | + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i> 取消</button> | |
| 101 | + </div> | |
| 102 | + </div> | |
| 103 | + </form> | |
| 104 | + </div> | |
| 105 | +</div> | |
| 106 | +<script type="text/javascript"> | |
| 107 | + function save(){ | |
| 108 | + if($('#validForm').valid()){ | |
| 109 | + var data = $('#validForm').serialize(); | |
| 110 | + //console.log(data); | |
| 111 | + if("$!conf.id" == ""){ | |
| 112 | + ajaxPost(APP.PATH + "/assaySourceConf/create",data); | |
| 113 | + }else{ | |
| 114 | + ajaxPost(APP.PATH + "/assaySourceConf/update",data); | |
| 115 | + } | |
| 116 | + parent.reloadGrid('dataTable'); | |
| 117 | + } | |
| 118 | + } | |
| 119 | +</script> | |
| 120 | +#end | |
| 121 | +#extends("/common/base_list.html") |
parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/conf_list.html
View file @
e4a8426
| 1 | +#override("body") | |
| 2 | +<div class="row wrapper border-bottom white-bg page-heading"> | |
| 3 | + <div class="col-sm-10"> | |
| 4 | + <div style="padding-top:30px;"> | |
| 5 | + <form role="form" class="form-inline"> | |
| 6 | + <div class="form-group"> | |
| 7 | + <input type="text" placeholder="请输入基础化验项sourceId" id="nameSearch" class="form-control"> | |
| 8 | + </div> | |
| 9 | + </form> | |
| 10 | + </div> | |
| 11 | + </div> | |
| 12 | + <div class="col-sm-2"> | |
| 13 | + <div class="title-action" onclick="search();"> | |
| 14 | + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | +</div> | |
| 18 | +<div class="wrapper wrapper-content"> | |
| 19 | + <div class="row"> | |
| 20 | + <div class="col-sm-12"> | |
| 21 | + <div id="toolbar"> | |
| 22 | + <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> 新增</button> | |
| 23 | + <button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button> | |
| 24 | + <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> 删除</button> | |
| 25 | + </div> | |
| 26 | + <table id="dataTable"></table> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | +</div> | |
| 30 | +#end | |
| 31 | +#override("js") | |
| 32 | +<script type="text/javascript"> | |
| 33 | +function search(){ | |
| 34 | + var queryParams = { | |
| 35 | + query:{ | |
| 36 | + name: $("#nameSearch").val() | |
| 37 | + } | |
| 38 | + } | |
| 39 | + $('#dataTable').bootstrapTable('refresh', queryParams ); | |
| 40 | +} | |
| 41 | +var controllerRequestMappint = "/assaySourceConf/"; | |
| 42 | + | |
| 43 | +function add() { | |
| 44 | + fullWindow("新增化验项", APP.PATH + controllerRequestMappint + "0/toEdit"); | |
| 45 | +} | |
| 46 | + | |
| 47 | +function edit(){ | |
| 48 | + var id = getSingleSelectedValue("dataTable","id"); | |
| 49 | + if(id){ | |
| 50 | + fullWindow("修改化验项", APP.PATH + controllerRequestMappint + id + "/toEdit"); | |
| 51 | + } | |
| 52 | +} | |
| 53 | + | |
| 54 | +function del(){ | |
| 55 | + goDelete("dataTable","id", APP.PATH + controllerRequestMappint + "@value@/delete"); | |
| 56 | +} | |
| 57 | +## 参考 base_table_init.js 或者根据empty_bootstrap_table_init.js 来自己创建特殊的table | |
| 58 | +## 注意:自己创建的特殊的table不能extends base_list.html | |
| 59 | +var default_dataUrl = APP.PATH + controllerRequestMappint + "list"; | |
| 60 | +var default_dataColumns = [{ | |
| 61 | + field: 'check_state', | |
| 62 | + title: '', | |
| 63 | + checkbox: true | |
| 64 | + },{ | |
| 65 | + field: 'id', | |
| 66 | + title: '编号' | |
| 67 | + },{ | |
| 68 | + field: 'sourceId', | |
| 69 | + title: '化验项来源SOURCE_ID' | |
| 70 | + },{ | |
| 71 | + field: 'unit', | |
| 72 | + title: '项目单位' | |
| 73 | + },{ | |
| 74 | + field: 'dangerChar', | |
| 75 | + title: '危急字符' | |
| 76 | + },{ | |
| 77 | + field: 'dangerLower', | |
| 78 | + title: '危急下限' | |
| 79 | + },{ | |
| 80 | + field: 'dangerUpper', | |
| 81 | + title: '危急上限' | |
| 82 | + },{ | |
| 83 | + field: 'enable', | |
| 84 | + title: '启/停用', | |
| 85 | + formatter:enableFormatter | |
| 86 | + }]; | |
| 87 | + | |
| 88 | +</script> | |
| 89 | +#end | |
| 90 | +#extends("/common/base_list.html") |
parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/customer_edit.html
View file @
e4a8426
| 1 | +#override("body") | |
| 2 | +<div class="ibox float-e-margins"> | |
| 3 | + <div class="ibox-content"> | |
| 4 | + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate"> | |
| 5 | + <div class="form-group"> | |
| 6 | + <label class="col-sm-3 control-label">id编号:</label> | |
| 7 | + <div class="col-sm-8"> | |
| 8 | + <input type="text" placeholder="id编号" value="$!conf.id" readOnly="true" class="form-control" minlength="2" name="id" id="id"> | |
| 9 | + </div> | |
| 10 | + </div> | |
| 11 | + <div class="form-group"> | |
| 12 | + <label class="col-sm-3 control-label">confId:</label> | |
| 13 | + <div class="col-sm-8"> | |
| 14 | + <input type="text" placeholder="confId" value="$!conf.confId" class="form-control" minlength="2" name="confId" id="confId"> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | + <div class="form-group"> | |
| 18 | + <label class="col-sm-3 control-label">机构ID:</label> | |
| 19 | + <div class="col-sm-8"> | |
| 20 | + <input type="text" placeholder="机构ID" value="$!conf.orgId" class="form-control" minlength="2" name="orgId" id="orgId"> | |
| 21 | + </div> | |
| 22 | + </div> | |
| 23 | + <div class="form-group"> | |
| 24 | + <label class="col-sm-3 control-label">sourceId:</label> | |
| 25 | + <div class="col-sm-8"> | |
| 26 | + <input type="text" placeholder="sourceId" value="$!conf.sourceId" aria-required="true" required="true" class="form-control" minlength="2" name="sourceId" id="sourceId"> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | + <div class="form-group"> | |
| 30 | + <label class="col-sm-3 control-label">样本来源:</label> | |
| 31 | + <div class="col-sm-8"> | |
| 32 | + <input type="text" placeholder="样本来源" value="$!conf.sampleSouce" aria-required="true" required="true" class="form-control" minlength="2" name="sampleSouce" id="sampleSouce"> | |
| 33 | + </div> | |
| 34 | + </div> | |
| 35 | + <div class="form-group"> | |
| 36 | + <label class="col-sm-3 control-label">样本说明:</label> | |
| 37 | + <div class="col-sm-8"> | |
| 38 | + <input type="text" placeholder="样本说明" value="$!conf.sampleDesc" aria-required="true" required="true" class="form-control" minlength="2" name="sampleDesc" id="sampleDesc"> | |
| 39 | + </div> | |
| 40 | + </div> | |
| 41 | + <div class="form-group"> | |
| 42 | + <label class="col-sm-3 control-label">样本目标:</label> | |
| 43 | + <div class="col-sm-8"> | |
| 44 | + <input type="text" placeholder="样本目标" value="$!conf.sampleTarget" aria-required="true" required="true" class="form-control" minlength="2" name="sampleTarget" id="sampleTarget"> | |
| 45 | + </div> | |
| 46 | + </div> | |
| 47 | + <div class="form-group"> | |
| 48 | + <label class="col-sm-3 control-label">项目单位:</label> | |
| 49 | + <div class="col-sm-8"> | |
| 50 | + <input type="text" placeholder="项目单位" value="$!conf.unit" aria-required="true" required="true" class="form-control" minlength="2" name="unit" id="unit"> | |
| 51 | + </div> | |
| 52 | + </div> | |
| 53 | + <div class="form-group"> | |
| 54 | + <label class="col-sm-3 control-label">危急字符:</label> | |
| 55 | + <div class="col-sm-8"> | |
| 56 | + <input type="text" placeholder="危急字符" value="$!conf.dangerChar" aria-required="true" required="true" class="form-control" minlength="2" name="dangerChar" id="dangerChar"> | |
| 57 | + </div> | |
| 58 | + </div> | |
| 59 | + <div class="form-group"> | |
| 60 | + <label class="col-sm-3 control-label">危急下限:</label> | |
| 61 | + <div class="col-sm-8"> | |
| 62 | + <input type="text" placeholder="危急下限" value="$!conf.dangerLower" aria-required="true" required="true" class="form-control" minlength="2" name="dangerLower" id="dangerLower"> | |
| 63 | + </div> | |
| 64 | + </div> | |
| 65 | + <div class="form-group"> | |
| 66 | + <label class="col-sm-3 control-label">危急下限处理:</label> | |
| 67 | + <div class="col-sm-8"> | |
| 68 | + <input type="text" placeholder="危急下限处理" value="$!conf.dangerLowerPro" aria-required="true" required="true" class="form-control" minlength="2" name="dangerLowerPro" id="dangerLowerPro"> | |
| 69 | + </div> | |
| 70 | + </div> | |
| 71 | + <div class="form-group"> | |
| 72 | + <label class="col-sm-3 control-label">危急下限服务:</label> | |
| 73 | + <div class="col-sm-8"> | |
| 74 | + <input type="text" placeholder="危急下限服务" value="$!conf.dangerLowerService" aria-required="true" required="true" class="form-control" minlength="2" name="dangerLowerService" id="dangerLowerService"> | |
| 75 | + </div> | |
| 76 | + </div> | |
| 77 | + <div class="form-group"> | |
| 78 | + <label class="col-sm-3 control-label">危急上限:</label> | |
| 79 | + <div class="col-sm-8"> | |
| 80 | + <input type="text" placeholder="危急上限" value="$!conf.dangerUpper" aria-required="true" required="true" class="form-control" minlength="2" name="dangerUpper" id="dangerUpper"> | |
| 81 | + </div> | |
| 82 | + </div> | |
| 83 | + <div class="form-group"> | |
| 84 | + <label class="col-sm-3 control-label">危急上限处理:</label> | |
| 85 | + <div class="col-sm-8"> | |
| 86 | + <input type="text" placeholder="危急上限处理" value="$!conf.dangerUpperPro" aria-required="true" required="true" class="form-control" minlength="2" name="dangerUpperPro" id="dangerUpperPro"> | |
| 87 | + </div> | |
| 88 | + </div> | |
| 89 | + <div class="form-group"> | |
| 90 | + <label class="col-sm-3 control-label">危急上限服务:</label> | |
| 91 | + <div class="col-sm-8"> | |
| 92 | + <input type="text" placeholder="危急上限服务" value="$!conf.dangerUpperService" aria-required="true" required="true" class="form-control" minlength="2" name="dangerUpperService" id="dangerUpperService"> | |
| 93 | + </div> | |
| 94 | + </div> | |
| 95 | + <div class="form-group"> | |
| 96 | + <label class="col-sm-3 control-label"></label> | |
| 97 | + <div class="col-sm-8"> | |
| 98 | + <label class="checkbox-inline i-checks"> | |
| 99 | + <div class="icheckbox_square-green" style="position: relative;"> | |
| 100 | + <input type="checkbox" value="0" name="enable" #if ($conf.enable == 0) checked="checked" #end | |
| 101 | + style="position: absolute; opacity: 0;" > | |
| 102 | + <ins class="iCheck-helper" | |
| 103 | + style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins> | |
| 104 | + </div>是否禁用(选中禁用,不选中可用) | |
| 105 | + </label> | |
| 106 | + </div> | |
| 107 | + </div> | |
| 108 | + <div class="hr-line-dashed"></div> | |
| 109 | + <div class="form-group"> | |
| 110 | + <div class="col-sm-4 col-sm-offset-3 pull-right"> | |
| 111 | + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i> 提交</button> | |
| 112 | + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i> 取消</button> | |
| 113 | + </div> | |
| 114 | + </div> | |
| 115 | + </form> | |
| 116 | + </div> | |
| 117 | +</div> | |
| 118 | +<script type="text/javascript"> | |
| 119 | + function save(){ | |
| 120 | + if($('#validForm').valid()){ | |
| 121 | + var data = $('#validForm').serialize(); | |
| 122 | + //console.log(data); | |
| 123 | + if("$!conf.id" == ""){ | |
| 124 | + ajaxPost(APP.PATH + "/assayCustomerConf/create",data); | |
| 125 | + }else{ | |
| 126 | + ajaxPost(APP.PATH + "/assayCustomerConf/update",data); | |
| 127 | + } | |
| 128 | + parent.reloadGrid('dataTable'); | |
| 129 | + } | |
| 130 | + } | |
| 131 | +</script> | |
| 132 | +#end | |
| 133 | +#extends("/common/base_list.html") |
parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/customer_list.html
View file @
e4a8426
| 1 | +#override("body") | |
| 2 | +<div class="row wrapper border-bottom white-bg page-heading"> | |
| 3 | + <div class="col-sm-10"> | |
| 4 | + <div style="padding-top:30px;"> | |
| 5 | + <form role="form" class="form-inline"> | |
| 6 | + <div class="form-group"> | |
| 7 | + <input type="text" placeholder="请输入sourceId" id="nameSearch" class="form-control"> | |
| 8 | + </div> | |
| 9 | + </form> | |
| 10 | + </div> | |
| 11 | + </div> | |
| 12 | + <div class="col-sm-2"> | |
| 13 | + <div class="title-action" onclick="search();"> | |
| 14 | + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | +</div> | |
| 18 | +<div class="wrapper wrapper-content"> | |
| 19 | + <div class="row"> | |
| 20 | + <div class="col-sm-12"> | |
| 21 | + <div id="toolbar"> | |
| 22 | + <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> 新增</button> | |
| 23 | + <button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button> | |
| 24 | + <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> 删除</button> | |
| 25 | + </div> | |
| 26 | + <table id="dataTable"></table> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | +</div> | |
| 30 | +#end | |
| 31 | +#override("js") | |
| 32 | +<script type="text/javascript"> | |
| 33 | +function search(){ | |
| 34 | + var queryParams = { | |
| 35 | + query:{ | |
| 36 | + name: $("#nameSearch").val() | |
| 37 | + } | |
| 38 | + } | |
| 39 | + $('#dataTable').bootstrapTable('refresh', queryParams ); | |
| 40 | +} | |
| 41 | +var controllerRequestMappint = "/assayCustomerConf/"; | |
| 42 | + | |
| 43 | +function add() { | |
| 44 | + fullWindow("新增自定义化验项配置", APP.PATH + controllerRequestMappint + "0/toEdit"); | |
| 45 | +} | |
| 46 | + | |
| 47 | +function edit(){ | |
| 48 | + var id = getSingleSelectedValue("dataTable","id"); | |
| 49 | + if(id){ | |
| 50 | + fullWindow("修改自定义化验项配置", APP.PATH + controllerRequestMappint + id + "/toEdit"); | |
| 51 | + } | |
| 52 | +} | |
| 53 | + | |
| 54 | +function del(){ | |
| 55 | + goDelete("dataTable","id", APP.PATH + controllerRequestMappint + "@value@/delete"); | |
| 56 | +} | |
| 57 | +## 参考 base_table_init.js 或者根据empty_bootstrap_table_init.js 来自己创建特殊的table | |
| 58 | +## 注意:自己创建的特殊的table不能extends base_list.html | |
| 59 | +var default_dataUrl = APP.PATH + controllerRequestMappint + "list"; | |
| 60 | +var default_dataColumns = [{ | |
| 61 | + field: 'check_state', | |
| 62 | + title: '', | |
| 63 | + checkbox: true | |
| 64 | + },{ | |
| 65 | + field: 'id', | |
| 66 | + title: '编号' | |
| 67 | + },{ | |
| 68 | + field: 'confId', | |
| 69 | + title: '配置项ID' | |
| 70 | + },{ | |
| 71 | + field: 'orgId', | |
| 72 | + title: '机构ID' | |
| 73 | + },{ | |
| 74 | + field: 'sourceId', | |
| 75 | + title: 'sourceId' | |
| 76 | + },{ | |
| 77 | + field: 'unit', | |
| 78 | + title: '项目单位' | |
| 79 | + },{ | |
| 80 | + field: 'dangerChar', | |
| 81 | + title: '危急字符' | |
| 82 | + },{ | |
| 83 | + field: 'dangerLower', | |
| 84 | + title: '危急下限' | |
| 85 | + },{ | |
| 86 | + field: 'dangerUpper', | |
| 87 | + title: '危急上限' | |
| 88 | + },{ | |
| 89 | + field: 'enable', | |
| 90 | + title: '启/停用', | |
| 91 | + formatter:enableFormatter | |
| 92 | + }]; | |
| 93 | + | |
| 94 | +</script> | |
| 95 | +#end | |
| 96 | +#extends("/common/base_list.html") |
parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/source_edit.html
View file @
e4a8426
| 1 | +#override("body") | |
| 2 | +<div class="ibox float-e-margins"> | |
| 3 | + <div class="ibox-content"> | |
| 4 | + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate"> | |
| 5 | + <div class="form-group"> | |
| 6 | + <label class="col-sm-3 control-label">sourceId:</label> | |
| 7 | + <div class="col-sm-8"> | |
| 8 | + <input type="text" placeholder="sourceId" value="$!source.id" readOnly="true" class="form-control" minlength="2" name="id" id="id"> | |
| 9 | + </div> | |
| 10 | + </div> | |
| 11 | + <div class="form-group"> | |
| 12 | + <label class="col-sm-3 control-label">项目代码:</label> | |
| 13 | + <div class="col-sm-8"> | |
| 14 | + <input type="text" placeholder="项目代码" value="$!source.code" aria-required="true" required="true" class="form-control" minlength="2" name="code" id="code"> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | + <div class="form-group"> | |
| 18 | + <label class="col-sm-3 control-label">标准名称:</label> | |
| 19 | + <div class="col-sm-8"> | |
| 20 | + <input type="text" placeholder="标准名称" value="$!source.standardCode" aria-required="true" required="true" class="form-control" minlength="2" name="standardCode" id="standardCode"> | |
| 21 | + </div> | |
| 22 | + </div> | |
| 23 | + <div class="form-group"> | |
| 24 | + <label class="col-sm-3 control-label">项目名称:</label> | |
| 25 | + <div class="col-sm-8"> | |
| 26 | + <input type="text" placeholder="项目名称" value="$!source.name" aria-required="true" required="true" class="form-control" minlength="2" name="name" id="name"> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | + <div class="form-group"> | |
| 30 | + <label class="col-sm-3 control-label">检验分类:</label> | |
| 31 | + <div class="col-sm-8"> | |
| 32 | + <select class="form-control m-b" name="type"> | |
| 33 | + <option value="0" #if ($source.type == 0) selected="selected" #end >其他</option> | |
| 34 | + <option value="1" #if ($source.type == 1) selected="selected" #end >血检</option> | |
| 35 | + <option value="2" #if ($source.type == 2) selected="selected" #end >尿检</option> | |
| 36 | + <option value="3" #if ($source.type == 3) selected="selected" #end >白细胞</option> | |
| 37 | + </select> | |
| 38 | + </div> | |
| 39 | + </div> | |
| 40 | + <div class="form-group"> | |
| 41 | + <label class="col-sm-3 control-label"></label> | |
| 42 | + <div class="col-sm-8"> | |
| 43 | + <label class="checkbox-inline i-checks"> | |
| 44 | + <div class="icheckbox_square-green" style="position: relative;"> | |
| 45 | + <input type="checkbox" value="0" name="enable" #if ($source.enable == 0) checked="checked" #end | |
| 46 | + style="position: absolute; opacity: 0;" > | |
| 47 | + <ins class="iCheck-helper" | |
| 48 | + style="position: absolute; top: 0%; left: 0%; display: block; width: 100%; height: 100%; margin: 0px; padding: 0px; background: rgb(255, 255, 255); border: 0px; opacity: 0;"></ins> | |
| 49 | + </div>是否禁用(选中禁用,不选中可用) | |
| 50 | + </label> | |
| 51 | + </div> | |
| 52 | + </div> | |
| 53 | + <div class="hr-line-dashed"></div> | |
| 54 | + <div class="form-group"> | |
| 55 | + <div class="col-sm-4 col-sm-offset-3 pull-right"> | |
| 56 | + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i> 提交</button> | |
| 57 | + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i> 取消</button> | |
| 58 | + </div> | |
| 59 | + </div> | |
| 60 | + </form> | |
| 61 | + </div> | |
| 62 | +</div> | |
| 63 | +<script type="text/javascript"> | |
| 64 | + function save(){ | |
| 65 | + if($('#validForm').valid()){ | |
| 66 | + var data = $('#validForm').serialize(); | |
| 67 | + //console.log(data); | |
| 68 | + if("$!source.id" == ""){ | |
| 69 | + ajaxPost(APP.PATH + "/assaySource/create",data); | |
| 70 | + }else{ | |
| 71 | + ajaxPost(APP.PATH + "/assaySource/update",data); | |
| 72 | + } | |
| 73 | + parent.reloadGrid('dataTable'); | |
| 74 | + } | |
| 75 | + } | |
| 76 | +</script> | |
| 77 | +#end | |
| 78 | +#extends("/common/base_list.html") |
parent/center.manager/src/main/webapp/WEB-INF/views/conf/assay/source_list.html
View file @
e4a8426
| 1 | +#override("body") | |
| 2 | +<div class="row wrapper border-bottom white-bg page-heading"> | |
| 3 | + <div class="col-sm-10"> | |
| 4 | + <div style="padding-top:30px;"> | |
| 5 | + <form role="form" class="form-inline"> | |
| 6 | + <div class="form-group"> | |
| 7 | + <input type="text" placeholder="请输入化验项名称" id="nameSearch" class="form-control"> | |
| 8 | + </div> | |
| 9 | + </form> | |
| 10 | + </div> | |
| 11 | + </div> | |
| 12 | + <div class="col-sm-2"> | |
| 13 | + <div class="title-action" onclick="search();"> | |
| 14 | + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | +</div> | |
| 18 | +<div class="wrapper wrapper-content"> | |
| 19 | + <div class="row"> | |
| 20 | + <div class="col-sm-12"> | |
| 21 | + <div id="toolbar"> | |
| 22 | + <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> 新增</button> | |
| 23 | + <button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button> | |
| 24 | + <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> 删除</button> | |
| 25 | + </div> | |
| 26 | + <table id="dataTable"></table> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | +</div> | |
| 30 | +#end | |
| 31 | +#override("js") | |
| 32 | +<script type="text/javascript"> | |
| 33 | +function search(){ | |
| 34 | + var queryParams = { | |
| 35 | + query:{ | |
| 36 | + name: $("#nameSearch").val() | |
| 37 | + } | |
| 38 | + } | |
| 39 | + $('#dataTable').bootstrapTable('refresh', queryParams ); | |
| 40 | +} | |
| 41 | +var controllerRequestMappint = "/assaySource/"; | |
| 42 | + | |
| 43 | +function add() { | |
| 44 | + fullWindow("新增化验项", APP.PATH + controllerRequestMappint + "0/toEdit"); | |
| 45 | +} | |
| 46 | + | |
| 47 | +function edit(){ | |
| 48 | + var id = getSingleSelectedValue("dataTable","id"); | |
| 49 | + if(id){ | |
| 50 | + fullWindow("修改化验项", APP.PATH + controllerRequestMappint + id + "/toEdit"); | |
| 51 | + } | |
| 52 | +} | |
| 53 | + | |
| 54 | +function del(){ | |
| 55 | + goDelete("dataTable","id", APP.PATH + controllerRequestMappint + "@value@/delete"); | |
| 56 | +} | |
| 57 | +## 参考 base_table_init.js 或者根据empty_bootstrap_table_init.js 来自己创建特殊的table | |
| 58 | +## 注意:自己创建的特殊的table不能extends base_list.html | |
| 59 | +var default_dataUrl = APP.PATH + controllerRequestMappint + "list"; | |
| 60 | +var default_dataColumns = [{ | |
| 61 | + field: 'check_state', | |
| 62 | + title: '', | |
| 63 | + checkbox: true | |
| 64 | + },{ | |
| 65 | + field: 'id', | |
| 66 | + title: 'sourceId' | |
| 67 | + },{ | |
| 68 | + field: 'code', | |
| 69 | + title: '项目代码' | |
| 70 | + },{ | |
| 71 | + field: 'standardCode', | |
| 72 | + title: '标准代码' | |
| 73 | + },{ | |
| 74 | + field: 'name', | |
| 75 | + title: '项目名称' | |
| 76 | + },{ | |
| 77 | + field: 'type', | |
| 78 | + title: '检验分类' | |
| 79 | + },{ | |
| 80 | + field: 'resultType', | |
| 81 | + title: '结果类型' | |
| 82 | + },{ | |
| 83 | + field: 'enable', | |
| 84 | + title: '启/停用', | |
| 85 | + formatter:enableFormatter | |
| 86 | + }]; | |
| 87 | + | |
| 88 | +</script> | |
| 89 | +#end | |
| 90 | +#extends("/common/base_list.html") |
parent/hospital.web/src/test/java/test/hospital/assay/AssayTest.java
View file @
e4a8426
| 1 | +package test.hospital.assay; | |
| 2 | + | |
| 3 | +import org.junit.Test; | |
| 4 | +import org.springframework.beans.factory.annotation.Autowired; | |
| 5 | + | |
| 6 | +import com.lyms.base.common.service.conf.AssayCustomerConfService; | |
| 7 | + | |
| 8 | +import test.hospital.BaseServiceTest; | |
| 9 | + | |
| 10 | +public class AssayTest extends BaseServiceTest{ | |
| 11 | + | |
| 12 | + @Autowired | |
| 13 | + private AssayCustomerConfService assayCustomerConfService; | |
| 14 | + | |
| 15 | + @Test | |
| 16 | + public void getCustomerConf(){ | |
| 17 | + outJson(assayCustomerConfService.getCustomerConf("11")); | |
| 18 | + } | |
| 19 | + | |
| 20 | +} |
parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java
View file @
e4a8426
| ... | ... | @@ -44,16 +44,16 @@ |
| 44 | 44 | |
| 45 | 45 | private static void customSet(GlobalConfig gc, StrategyConfig strategy, PackageConfig pc) { |
| 46 | 46 | gc.setOutputDir("D://mybatis-plus-generate"); |
| 47 | - gc.setAuthor("xujiahong"); | |
| 47 | + gc.setAuthor("fangcheng"); | |
| 48 | 48 | |
| 49 | 49 | // strategy.setInclude(new String[] { |
| 50 | 50 | // "SYS_USERS","SYS_USER_ROLE_MAPS","SYS_ROLES" }); // 需要生成的表 |
| 51 | - strategy.setInclude(new String[] { "DIAGNOSE_TAI"}); // 需要生成的表 | |
| 52 | - pc.setParent("com.lyms.hospital"); | |
| 51 | + strategy.setInclude(new String[] { "ASSAY_SOURCE","ASSAY_SOURCE_CONF","ASSAY_CUSTOMER_CONF"}); // 需要生成的表 | |
| 52 | + pc.setParent("com.lyms.base.common"); | |
| 53 | 53 | // pc.setParent("com.lyms.base.common"); |
| 54 | 54 | |
| 55 | 55 | // 加在controller后面 |
| 56 | - pc.setFunctionName("diagnose"); // com.lyms.hospital.web.controller.sys | |
| 56 | + pc.setFunctionName("conf"); // com.lyms.hospital.web.controller.sys | |
| 57 | 57 | // pc.setModuleName("sys"); //com.lyms.hospital.sys.controller |
| 58 | 58 | // 加在controller前面 |
| 59 | 59 | |
| 60 | 60 | |
| ... | ... | @@ -103,9 +103,9 @@ |
| 103 | 103 | DataSourceConfig dsc = new DataSourceConfig(); |
| 104 | 104 | dsc.setDbType(DbType.MYSQL); |
| 105 | 105 | dsc.setDriverName("com.mysql.jdbc.Driver"); |
| 106 | - dsc.setUsername("hospital");//center | |
| 106 | + dsc.setUsername("center");//center | |
| 107 | 107 | dsc.setPassword("lyms2015"); |
| 108 | - dsc.setUrl("jdbc:mysql://119.90.57.26:3306/hospital?characterEncoding=utf8"); | |
| 108 | + dsc.setUrl("jdbc:mysql://119.90.57.26:3306/center?characterEncoding=utf8"); | |
| 109 | 109 | mpg.setDataSource(dsc); |
| 110 | 110 | |
| 111 | 111 | // 策略配置 |