Commit c91593021a3983a7e153761d592eae39e312ea82
1 parent
19d271261f
Exists in
master
医生分配短信消息模板
Showing 34 changed files with 1272 additions and 645 deletions
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentDoctorMessageMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentDoctorMessageMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageTagsMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageTagsMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageVersionMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageVersionMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageTagsMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageTagsMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.java
- parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.xml
- parent/base.common/src/main/java/com/lyms/base/common/entity/content/ContentDoctorMessage.java
- parent/base.common/src/main/java/com/lyms/base/common/entity/content/ContentHospitalMessageTags.java
- parent/base.common/src/main/java/com/lyms/base/common/entity/content/ContentHospitalMessageVersion.java
- parent/base.common/src/main/java/com/lyms/base/common/entity/content/HospitalMessageTags.java
- parent/base.common/src/main/java/com/lyms/base/common/entity/content/HospitalMessageVersion.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/ContentDoctorMessageService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/ContentHospitalMessageTagsService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/ContentHospitalMessageVersionService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/HospitalMessageTagsService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/HospitalMessageVersionService.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/ContentDoctorMessageServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/ContentHospitalMessageTagsServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/ContentHospitalMessageVersionServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/HospitalMessageTagsServiceImpl.java
- parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/HospitalMessageVersionServiceImpl.java
- parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssaySourceController.java
- parent/center.manager/src/main/java/com/lyms/cm/controller/content/ContentDoctorMessageController.java
- parent/center.manager/src/main/java/com/lyms/cm/controller/sys/SysOrganizationsController.java
- parent/center.manager/src/main/resources/rebel.xml
- parent/center.manager/src/main/webapp/WEB-INF/views/content/org_list.html
- parent/center.manager/src/main/webapp/WEB-INF/views/content/org_msg_edit.html
- parent/center.manager/src/main/webapp/WEB-INF/views/content/org_operate.html
- parent/hospital.web/src/test/java/test/hospital/Test.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/content/ContentDoctorMessageMapper.java
View file @
c915930
| 1 | 1 | package com.lyms.base.common.dao.content; |
| 2 | 2 | |
| 3 | 3 | import com.baomidou.mybatisplus.mapper.BaseMapper; |
| 4 | +import com.baomidou.mybatisplus.plugins.Page; | |
| 4 | 5 | import com.lyms.base.common.entity.content.ContentDoctorMessage; |
| 5 | 6 | import org.springframework.stereotype.Repository; |
| 6 | 7 | |
| 7 | 8 | import java.io.Serializable; |
| 9 | +import java.util.List; | |
| 10 | + | |
| 8 | 11 | /** |
| 9 | 12 | * <p> |
| 10 | 13 | * Mapper接口 |
| 11 | 14 | * </p> |
| 12 | 15 | * |
| 13 | 16 | * @author yangfei |
| 14 | - * @since 2017-04-14 | |
| 17 | + * @since 2017-05-31 | |
| 15 | 18 | */ |
| 16 | 19 | @Repository |
| 17 | 20 | public interface ContentDoctorMessageMapper extends BaseMapper<ContentDoctorMessage> { |
| 18 | 21 | |
| 19 | 22 | public Integer deleteLogicById(Serializable id); |
| 23 | + | |
| 24 | + public List<ContentDoctorMessage> getHospMessage(Page<ContentDoctorMessage> page , ContentDoctorMessage doctMsg); | |
| 20 | 25 | |
| 21 | 26 | } |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentDoctorMessageMapper.xml
View file @
c915930
| ... | ... | @@ -4,26 +4,45 @@ |
| 4 | 4 | |
| 5 | 5 | <!-- 通用查询映射结果 --> |
| 6 | 6 | <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.content.ContentDoctorMessage"> |
| 7 | - <id column="ID" property="id" /> | |
| 7 | + <result column="ID" property="id" /> | |
| 8 | 8 | <result column="DOCTOR_ID" property="doctorId" /> |
| 9 | - <result column="MESSAGE_TEMPLATED" property="messageTemplated" /> | |
| 9 | + <result column="TEMPLET_MSG_ID" property="templetMsgId" /> | |
| 10 | 10 | <result column="CONTENT" property="content" /> |
| 11 | - <result column="ARTICLES_ID" property="articlesId" /> | |
| 11 | + <result column="RICH_TEXT" property="richText" /> | |
| 12 | + <result column="RICH_TITLE" property="richTitle" /> | |
| 13 | + <result column="IS_RICH" property="isRich" /> | |
| 12 | 14 | <result column="KEY_CODE" property="keyCode" /> |
| 13 | - <result column="VERSION_ID" property="versionId" /> | |
| 14 | 15 | <result column="CREATE_TIME" property="createTime" /> |
| 15 | 16 | <result column="CREATE_ID" property="createId" /> |
| 16 | 17 | <result column="CREATE_NAME" property="createName" /> |
| 17 | 18 | <result column="MODIFY_ID" property="modifyId" /> |
| 18 | 19 | <result column="MODIFY_NAME" property="modifyName" /> |
| 19 | 20 | <result column="MODIFY_TIME" property="modifyTime" /> |
| 21 | + <result column="TAGS_IDS" property="tagsIds" /> | |
| 20 | 22 | <result column="IFDEL" property="ifdel" /> |
| 21 | 23 | <result column="ENABLE" property="enable" /> |
| 22 | 24 | </resultMap> |
| 23 | 25 | |
| 24 | - <!-- 通用查询结果列 --> | |
| 25 | - <sql id="Base_Column_List"> | |
| 26 | - ID AS id, DOCTOR_ID AS doctorId, MESSAGE_TEMPLATED AS messageTemplated, CONTENT AS content, ARTICLES_ID AS articlesId, KEY_CODE AS keyCode, VERSION_ID AS versionId, CREATE_TIME AS createTime, CREATE_ID AS createId, CREATE_NAME AS createName, MODIFY_ID AS modifyId, MODIFY_NAME AS modifyName, MODIFY_TIME AS modifyTime, IFDEL AS ifdel, ENABLE AS enable | |
| 26 | + <!-- 通用查询结果列 --> | |
| 27 | + <sql id="Base_Column_List"> | |
| 28 | + ID AS id, DOCTOR_ID AS doctorId, TEMPLET_MSG_ID AS templetMsgId, CONTENT AS content, RICH_TEXT AS richText, RICH_TITLE AS richTitle, IS_RICH AS isRich, KEY_CODE AS keyCode, CREATE_TIME AS createTime, CREATE_ID AS createId, CREATE_NAME AS createName, MODIFY_ID AS modifyId, MODIFY_NAME AS modifyName, MODIFY_TIME AS modifyTime, IFDEL AS ifdel, ENABLE AS enable | |
| 27 | 29 | </sql> |
| 30 | + <select id="getHospMessage" resultMap="BaseResultMap" parameterType="com.lyms.base.common.entity.content.ContentDoctorMessage"> | |
| 31 | + select dm.*,mt.TAGS_IDS from CONTENT_DOCTOR_MESSAGE dm left join CONTENT_HOSPITAL_MESSAGE_TAGS mt | |
| 32 | + ON | |
| 33 | + dm.ID = mt.HOSPITAL_MESSAGE_ID | |
| 34 | + <where> | |
| 35 | + <if test="content!=null"> | |
| 36 | + dm.CONTENT LIKE concat("%",#{content},"%") | |
| 37 | + </if> | |
| 38 | + <if test="tagsIds!=null"> | |
| 39 | + and mt.TAGS_IDS LIKE concat("%,",#{tagsIds},",%") | |
| 40 | + </if> | |
| 41 | + <if test="doctorId!=null"> | |
| 42 | + and dm.DOCTOR_ID = #{doctorId} | |
| 43 | + </if> | |
| 44 | + AND dm.IFDEL = 0 | |
| 45 | + </where> | |
| 46 | + </select> | |
| 28 | 47 | </mapper> |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageTagsMapper.java
View file @
c915930
| 1 | +package com.lyms.base.common.dao.content; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.content.ContentHospitalMessageTags; | |
| 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 yangfei | |
| 13 | + * @since 2017-05-31 | |
| 14 | + */ | |
| 15 | +@Repository | |
| 16 | +public interface ContentHospitalMessageTagsMapper extends BaseMapper<ContentHospitalMessageTags> { | |
| 17 | + | |
| 18 | + public Integer deleteLogicById(Serializable id); | |
| 19 | + | |
| 20 | +} |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageTagsMapper.xml
View file @
c915930
| 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.content.ContentHospitalMessageTagsMapper"> | |
| 4 | + | |
| 5 | + <!-- 通用查询映射结果 --> | |
| 6 | + <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.content.ContentHospitalMessageTags"> | |
| 7 | + <result column="ID" property="id" /> | |
| 8 | + <result column="HOSPITAL_MESSAGE_ID" property="hospitalMessageId" /> | |
| 9 | + <result column="TAGS_IDS" property="tagsIds" /> | |
| 10 | + </resultMap> | |
| 11 | + | |
| 12 | + <!-- 通用查询结果列 --> | |
| 13 | + <sql id="Base_Column_List"> | |
| 14 | + ID AS id, HOSPITAL_MESSAGE_ID AS hospitalMessageId, TAGS_IDS AS tagsIds | |
| 15 | + </sql> | |
| 16 | + | |
| 17 | + | |
| 18 | +</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageVersionMapper.java
View file @
c915930
| 1 | +package com.lyms.base.common.dao.content; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.content.ContentHospitalMessageVersion; | |
| 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 yangfei | |
| 13 | + * @since 2017-05-31 | |
| 14 | + */ | |
| 15 | +@Repository | |
| 16 | +public interface ContentHospitalMessageVersionMapper extends BaseMapper<ContentHospitalMessageVersion> { | |
| 17 | + | |
| 18 | + public Integer deleteLogicById(Serializable id); | |
| 19 | + | |
| 20 | +} |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/ContentHospitalMessageVersionMapper.xml
View file @
c915930
| 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.content.ContentHospitalMessageVersionMapper"> | |
| 4 | + | |
| 5 | + <!-- 通用查询映射结果 --> | |
| 6 | + <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.content.ContentHospitalMessageVersion"> | |
| 7 | + <result column="ID" property="id" /> | |
| 8 | + <result column="TV_ID" property="tvId" /> | |
| 9 | + <result column="HOSPITAL" property="hospital" /> | |
| 10 | + <result column="CREATE_TIME" property="createTime" /> | |
| 11 | + <result column="CREATE_ID" property="createId" /> | |
| 12 | + <result column="CREATE_NAME" property="createName" /> | |
| 13 | + <result column="MODIFY_ID" property="modifyId" /> | |
| 14 | + <result column="MODIFY_NAME" property="modifyName" /> | |
| 15 | + <result column="MODIFY_TIME" property="modifyTime" /> | |
| 16 | + <result column="IFDEL" property="ifdel" /> | |
| 17 | + <result column="ENABLE" property="enable" /> | |
| 18 | + </resultMap> | |
| 19 | + | |
| 20 | + <!-- 通用查询结果列 --> | |
| 21 | + <sql id="Base_Column_List"> | |
| 22 | + ID AS id, TV_ID AS tvId, HOSPITAL AS hospital, CREATE_TIME AS createTime, CREATE_ID AS createId, CREATE_NAME AS createName, MODIFY_ID AS modifyId, MODIFY_NAME AS modifyName, MODIFY_TIME AS modifyTime, IFDEL AS ifdel, ENABLE AS enable | |
| 23 | + </sql> | |
| 24 | +</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageTagsMapper.java
View file @
c915930
| 1 | -package com.lyms.base.common.dao.content; | |
| 2 | - | |
| 3 | -import com.lyms.base.common.entity.content.HospitalMessageTags; | |
| 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 yangfei | |
| 13 | - * @since 2017-05-31 | |
| 14 | - */ | |
| 15 | -@Repository | |
| 16 | -public interface HospitalMessageTagsMapper extends BaseMapper<HospitalMessageTags> { | |
| 17 | - | |
| 18 | - public Integer deleteLogicById(Serializable id); | |
| 19 | - | |
| 20 | -} |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageTagsMapper.xml
View file @
c915930
| 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.content.HospitalMessageTagsMapper"> | |
| 4 | - | |
| 5 | - <!-- 通用查询映射结果 --> | |
| 6 | - <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.content.HospitalMessageTags"> | |
| 7 | - <result column="ID" property="id" /> | |
| 8 | - <result column="HOSPITAL_MESSAGE_ID" property="hospitalMessageId" /> | |
| 9 | - <result column="TAGS_IDS" property="tagsIds" /> | |
| 10 | - </resultMap> | |
| 11 | - | |
| 12 | - <!-- 通用查询结果列 --> | |
| 13 | - <sql id="Base_Column_List"> | |
| 14 | - ID AS id, HOSPITAL_MESSAGE_ID AS hospitalMessageId, TAGS_IDS AS tagsIds | |
| 15 | - </sql> | |
| 16 | -</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.java
View file @
c915930
| 1 | -package com.lyms.base.common.dao.content; | |
| 2 | - | |
| 3 | -import com.lyms.base.common.entity.content.HospitalMessageVersion; | |
| 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 yangfei | |
| 13 | - * @since 2017-05-31 | |
| 14 | - */ | |
| 15 | -@Repository | |
| 16 | -public interface HospitalMessageVersionMapper extends BaseMapper<HospitalMessageVersion> { | |
| 17 | - | |
| 18 | - public Integer deleteLogicById(Serializable id); | |
| 19 | - | |
| 20 | -} |
parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.xml
View file @
c915930
| 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.content.HospitalMessageVersionMapper"> | |
| 4 | - | |
| 5 | - <!-- 通用查询映射结果 --> | |
| 6 | - <resultMap id="BaseResultMap" type="com.lyms.base.common.entity.content.HospitalMessageVersion"> | |
| 7 | - <result column="ID" property="id" /> | |
| 8 | - <result column="TV_ID" property="tvId" /> | |
| 9 | - <result column="HOSPITAL" property="hospital" /> | |
| 10 | - <result column="CREATE_TIME" property="createTime" /> | |
| 11 | - <result column="CREATE_ID" property="createId" /> | |
| 12 | - <result column="CREATE_NAME" property="createName" /> | |
| 13 | - <result column="MODIFY_ID" property="modifyId" /> | |
| 14 | - <result column="MODIFY_NAME" property="modifyName" /> | |
| 15 | - <result column="MODIFY_TIME" property="modifyTime" /> | |
| 16 | - <result column="IFDEL" property="ifdel" /> | |
| 17 | - <result column="ENABLE" property="enable" /> | |
| 18 | - </resultMap> | |
| 19 | - | |
| 20 | - <!-- 通用查询结果列 --> | |
| 21 | - <sql id="Base_Column_List"> | |
| 22 | - ID AS id, TV_ID AS tvId, HOSPITAL AS hospital, CREATE_TIME AS createTime, CREATE_ID AS createId, CREATE_NAME AS createName, MODIFY_ID AS modifyId, MODIFY_NAME AS modifyName, MODIFY_TIME AS modifyTime, IFDEL AS ifdel, ENABLE AS enable | |
| 23 | - </sql> | |
| 24 | -</mapper> |
parent/base.common/src/main/java/com/lyms/base/common/entity/content/ContentDoctorMessage.java
View file @
c915930
| 1 | 1 | package com.lyms.base.common.entity.content; |
| 2 | 2 | |
| 3 | 3 | import com.baomidou.mybatisplus.annotations.TableField; |
| 4 | -import com.baomidou.mybatisplus.annotations.TableId; | |
| 5 | 4 | import com.baomidou.mybatisplus.annotations.TableName; |
| 6 | 5 | |
| 7 | 6 | import java.io.Serializable; |
| ... | ... | @@ -13,7 +12,7 @@ |
| 13 | 12 | * </p> |
| 14 | 13 | * |
| 15 | 14 | * @author yangfei |
| 16 | - * @since 2017-04-14 | |
| 15 | + * @since 2017-05-31 | |
| 17 | 16 | */ |
| 18 | 17 | @TableName("CONTENT_DOCTOR_MESSAGE") |
| 19 | 18 | public class ContentDoctorMessage implements Serializable { |
| ... | ... | @@ -23,7 +22,7 @@ |
| 23 | 22 | /** |
| 24 | 23 | * 主键ID |
| 25 | 24 | */ |
| 26 | - @TableId(value="ID") | |
| 25 | + @TableField(value="ID") | |
| 27 | 26 | private String id; |
| 28 | 27 | /** |
| 29 | 28 | * 医院ID |
| 30 | 29 | |
| 31 | 30 | |
| 32 | 31 | |
| 33 | 32 | |
| 34 | 33 | |
| ... | ... | @@ -31,31 +30,36 @@ |
| 31 | 30 | @TableField(value="DOCTOR_ID") |
| 32 | 31 | private String doctorId; |
| 33 | 32 | /** |
| 34 | - * 消息模板ID | |
| 33 | + * 模板短信ID | |
| 35 | 34 | */ |
| 36 | - @TableField(value="MESSAGE_TEMPLATED") | |
| 37 | - private String messageTemplated; | |
| 35 | + @TableField(value="TEMPLET_MSG_ID") | |
| 36 | + private String templetMsgId; | |
| 38 | 37 | /** |
| 39 | 38 | * 信息内容 |
| 40 | 39 | */ |
| 41 | 40 | @TableField(value="CONTENT") |
| 42 | 41 | private String content; |
| 43 | 42 | /** |
| 44 | - * 图文信息ID | |
| 43 | + * 是否图文 | |
| 45 | 44 | */ |
| 46 | - @TableField(value="ARTICLES_ID") | |
| 47 | - private String articlesId; | |
| 45 | + @TableField(value="IS_RICH") | |
| 46 | + private int isRich; | |
| 48 | 47 | /** |
| 48 | + * 富文本标题 | |
| 49 | + */ | |
| 50 | + @TableField(value="RICH_TITLE") | |
| 51 | + private String richTitle; | |
| 52 | + /** | |
| 53 | + * 富文本内容 | |
| 54 | + */ | |
| 55 | + @TableField(value="RICH_TEXT") | |
| 56 | + private String richText; | |
| 57 | + /** | |
| 49 | 58 | * 标志键 |
| 50 | 59 | */ |
| 51 | 60 | @TableField(value="KEY_CODE") |
| 52 | 61 | private String keyCode; |
| 53 | 62 | /** |
| 54 | - * 模板信息版本ID | |
| 55 | - */ | |
| 56 | - @TableField(value="VERSION_ID") | |
| 57 | - private String versionId; | |
| 58 | - /** | |
| 59 | 63 | * 创建时间 |
| 60 | 64 | */ |
| 61 | 65 | @TableField(value="CREATE_TIME") |
| 62 | 66 | |
| 63 | 67 | |
| ... | ... | @@ -95,8 +99,37 @@ |
| 95 | 99 | */ |
| 96 | 100 | @TableField(value="ENABLE") |
| 97 | 101 | private Integer enable; |
| 102 | + /** | |
| 103 | + * 标签id | |
| 104 | + */ | |
| 105 | + @TableField(exist = false) | |
| 106 | + private String tagsIds; | |
| 107 | + /** | |
| 108 | + * 标签集合 | |
| 109 | + */ | |
| 110 | + @TableField(exist = false) | |
| 111 | + private String contentTagIds; | |
| 98 | 112 | |
| 113 | + public static long getSerialVersionUID() { | |
| 114 | + return serialVersionUID; | |
| 115 | + } | |
| 99 | 116 | |
| 117 | + public String getTagsIds() { | |
| 118 | + return tagsIds; | |
| 119 | + } | |
| 120 | + | |
| 121 | + public void setTagsIds(String tagsIds) { | |
| 122 | + this.tagsIds = tagsIds; | |
| 123 | + } | |
| 124 | + | |
| 125 | + public String getContentTagIds() { | |
| 126 | + return contentTagIds; | |
| 127 | + } | |
| 128 | + | |
| 129 | + public void setContentTagIds(String contentTagIds) { | |
| 130 | + this.contentTagIds = contentTagIds; | |
| 131 | + } | |
| 132 | + | |
| 100 | 133 | public String getId() { |
| 101 | 134 | return id; |
| 102 | 135 | } |
| 103 | 136 | |
| ... | ... | @@ -113,12 +146,12 @@ |
| 113 | 146 | this.doctorId = doctorId; |
| 114 | 147 | } |
| 115 | 148 | |
| 116 | - public String getMessageTemplated() { | |
| 117 | - return messageTemplated; | |
| 149 | + public String getTempletMsgId() { | |
| 150 | + return templetMsgId; | |
| 118 | 151 | } |
| 119 | 152 | |
| 120 | - public void setMessageTemplated(String messageTemplated) { | |
| 121 | - this.messageTemplated = messageTemplated; | |
| 153 | + public void setTempletMsgId(String templetMsgId) { | |
| 154 | + this.templetMsgId = templetMsgId; | |
| 122 | 155 | } |
| 123 | 156 | |
| 124 | 157 | public String getContent() { |
| 125 | 158 | |
| 126 | 159 | |
| 127 | 160 | |
| 128 | 161 | |
| 129 | 162 | |
| ... | ... | @@ -129,28 +162,36 @@ |
| 129 | 162 | this.content = content; |
| 130 | 163 | } |
| 131 | 164 | |
| 132 | - public String getArticlesId() { | |
| 133 | - return articlesId; | |
| 165 | + public int getIsRich() { | |
| 166 | + return isRich; | |
| 134 | 167 | } |
| 135 | 168 | |
| 136 | - public void setArticlesId(String articlesId) { | |
| 137 | - this.articlesId = articlesId; | |
| 169 | + public void setIsRich(int isRich) { | |
| 170 | + this.isRich = isRich; | |
| 138 | 171 | } |
| 139 | 172 | |
| 140 | - public String getKeyCode() { | |
| 141 | - return keyCode; | |
| 173 | + public String getRichTitle() { | |
| 174 | + return richTitle; | |
| 142 | 175 | } |
| 143 | 176 | |
| 144 | - public void setKeyCode(String keyCode) { | |
| 145 | - this.keyCode = keyCode; | |
| 177 | + public void setRichTitle(String richTitle) { | |
| 178 | + this.richTitle = richTitle; | |
| 146 | 179 | } |
| 147 | 180 | |
| 148 | - public String getVersionId() { | |
| 149 | - return versionId; | |
| 181 | + public String getRichText() { | |
| 182 | + return richText; | |
| 150 | 183 | } |
| 151 | 184 | |
| 152 | - public void setVersionId(String versionId) { | |
| 153 | - this.versionId = versionId; | |
| 185 | + public void setRichText(String richText) { | |
| 186 | + this.richText = richText; | |
| 187 | + } | |
| 188 | + | |
| 189 | + public String getKeyCode() { | |
| 190 | + return keyCode; | |
| 191 | + } | |
| 192 | + | |
| 193 | + public void setKeyCode(String keyCode) { | |
| 194 | + this.keyCode = keyCode; | |
| 154 | 195 | } |
| 155 | 196 | |
| 156 | 197 | public Date getCreateTime() { |
parent/base.common/src/main/java/com/lyms/base/common/entity/content/ContentHospitalMessageTags.java
View file @
c915930
| 1 | +package com.lyms.base.common.entity.content; | |
| 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 yangfei | |
| 14 | + * @since 2017-05-31 | |
| 15 | + */ | |
| 16 | +@TableName("CONTENT_HOSPITAL_MESSAGE_TAGS") | |
| 17 | +public class ContentHospitalMessageTags implements Serializable { | |
| 18 | + | |
| 19 | + private static final long serialVersionUID = 1L; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * 主键 | |
| 23 | + */ | |
| 24 | + @TableField(value="ID") | |
| 25 | + private String id; | |
| 26 | + /** | |
| 27 | + * 医院消息ID | |
| 28 | + */ | |
| 29 | + @TableField(value="HOSPITAL_MESSAGE_ID") | |
| 30 | + private String hospitalMessageId; | |
| 31 | + /** | |
| 32 | + * 标签IDS | |
| 33 | + */ | |
| 34 | + @TableField(value="TAGS_IDS") | |
| 35 | + private String tagsIds; | |
| 36 | + | |
| 37 | + | |
| 38 | + public String getId() { | |
| 39 | + return id; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public void setId(String id) { | |
| 43 | + this.id = id; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public String getHospitalMessageId() { | |
| 47 | + return hospitalMessageId; | |
| 48 | + } | |
| 49 | + | |
| 50 | + public void setHospitalMessageId(String hospitalMessageId) { | |
| 51 | + this.hospitalMessageId = hospitalMessageId; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public String getTagsIds() { | |
| 55 | + return tagsIds; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public void setTagsIds(String tagsIds) { | |
| 59 | + this.tagsIds = tagsIds; | |
| 60 | + } | |
| 61 | + | |
| 62 | +} |
parent/base.common/src/main/java/com/lyms/base/common/entity/content/ContentHospitalMessageVersion.java
View file @
c915930
| 1 | +package com.lyms.base.common.entity.content; | |
| 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 | +import java.util.Date; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * <p> | |
| 11 | + * 医院消息模板关系 | |
| 12 | + * </p> | |
| 13 | + * | |
| 14 | + * @author yangfei | |
| 15 | + * @since 2017-05-31 | |
| 16 | + */ | |
| 17 | +@TableName("CONTENT_HOSPITAL_MESSAGE_VERSION") | |
| 18 | +public class ContentHospitalMessageVersion implements Serializable { | |
| 19 | + | |
| 20 | + private static final long serialVersionUID = 1L; | |
| 21 | + | |
| 22 | + /** | |
| 23 | + * 主键 | |
| 24 | + */ | |
| 25 | + @TableField(value="ID") | |
| 26 | + private String id; | |
| 27 | + /** | |
| 28 | + * 消息模板版本id | |
| 29 | + */ | |
| 30 | + @TableField(value="TV_ID") | |
| 31 | + private String tvId; | |
| 32 | + /** | |
| 33 | + * 医院id | |
| 34 | + */ | |
| 35 | + @TableField(value="HOSPITAL") | |
| 36 | + private String hospital; | |
| 37 | + /** | |
| 38 | + * 创建时间 | |
| 39 | + */ | |
| 40 | + @TableField(value="CREATE_TIME") | |
| 41 | + private Date createTime; | |
| 42 | + /** | |
| 43 | + * 创建人ID | |
| 44 | + */ | |
| 45 | + @TableField(value="CREATE_ID") | |
| 46 | + private String createId; | |
| 47 | + /** | |
| 48 | + * 创建人名称 | |
| 49 | + */ | |
| 50 | + @TableField(value="CREATE_NAME") | |
| 51 | + private String createName; | |
| 52 | + /** | |
| 53 | + * 修改人ID | |
| 54 | + */ | |
| 55 | + @TableField(value="MODIFY_ID") | |
| 56 | + private String modifyId; | |
| 57 | + /** | |
| 58 | + * 修改人名称 | |
| 59 | + */ | |
| 60 | + @TableField(value="MODIFY_NAME") | |
| 61 | + private String modifyName; | |
| 62 | + /** | |
| 63 | + * 最后修改时间 | |
| 64 | + */ | |
| 65 | + @TableField(value="MODIFY_TIME") | |
| 66 | + private Date modifyTime; | |
| 67 | + /** | |
| 68 | + * 是否删除 | |
| 69 | + */ | |
| 70 | + @TableField(value="IFDEL") | |
| 71 | + private Integer ifdel; | |
| 72 | + /** | |
| 73 | + * 是否启用 | |
| 74 | + */ | |
| 75 | + @TableField(value="ENABLE") | |
| 76 | + private Integer enable; | |
| 77 | + | |
| 78 | + | |
| 79 | + public String getId() { | |
| 80 | + return id; | |
| 81 | + } | |
| 82 | + | |
| 83 | + public void setId(String id) { | |
| 84 | + this.id = id; | |
| 85 | + } | |
| 86 | + | |
| 87 | + public String getTvId() { | |
| 88 | + return tvId; | |
| 89 | + } | |
| 90 | + | |
| 91 | + public void setTvId(String tvId) { | |
| 92 | + this.tvId = tvId; | |
| 93 | + } | |
| 94 | + | |
| 95 | + public String getHospital() { | |
| 96 | + return hospital; | |
| 97 | + } | |
| 98 | + | |
| 99 | + public void setHospital(String hospital) { | |
| 100 | + this.hospital = hospital; | |
| 101 | + } | |
| 102 | + | |
| 103 | + public Date getCreateTime() { | |
| 104 | + return createTime; | |
| 105 | + } | |
| 106 | + | |
| 107 | + public void setCreateTime(Date createTime) { | |
| 108 | + this.createTime = createTime; | |
| 109 | + } | |
| 110 | + | |
| 111 | + public String getCreateId() { | |
| 112 | + return createId; | |
| 113 | + } | |
| 114 | + | |
| 115 | + public void setCreateId(String createId) { | |
| 116 | + this.createId = createId; | |
| 117 | + } | |
| 118 | + | |
| 119 | + public String getCreateName() { | |
| 120 | + return createName; | |
| 121 | + } | |
| 122 | + | |
| 123 | + public void setCreateName(String createName) { | |
| 124 | + this.createName = createName; | |
| 125 | + } | |
| 126 | + | |
| 127 | + public String getModifyId() { | |
| 128 | + return modifyId; | |
| 129 | + } | |
| 130 | + | |
| 131 | + public void setModifyId(String modifyId) { | |
| 132 | + this.modifyId = modifyId; | |
| 133 | + } | |
| 134 | + | |
| 135 | + public String getModifyName() { | |
| 136 | + return modifyName; | |
| 137 | + } | |
| 138 | + | |
| 139 | + public void setModifyName(String modifyName) { | |
| 140 | + this.modifyName = modifyName; | |
| 141 | + } | |
| 142 | + | |
| 143 | + public Date getModifyTime() { | |
| 144 | + return modifyTime; | |
| 145 | + } | |
| 146 | + | |
| 147 | + public void setModifyTime(Date modifyTime) { | |
| 148 | + this.modifyTime = modifyTime; | |
| 149 | + } | |
| 150 | + | |
| 151 | + public Integer getIfdel() { | |
| 152 | + return ifdel; | |
| 153 | + } | |
| 154 | + | |
| 155 | + public void setIfdel(Integer ifdel) { | |
| 156 | + this.ifdel = ifdel; | |
| 157 | + } | |
| 158 | + | |
| 159 | + public Integer getEnable() { | |
| 160 | + return enable; | |
| 161 | + } | |
| 162 | + | |
| 163 | + public void setEnable(Integer enable) { | |
| 164 | + this.enable = enable; | |
| 165 | + } | |
| 166 | + | |
| 167 | +} |
parent/base.common/src/main/java/com/lyms/base/common/entity/content/HospitalMessageTags.java
View file @
c915930
| 1 | -package com.lyms.base.common.entity.content; | |
| 2 | - | |
| 3 | -import com.baomidou.mybatisplus.annotations.TableField; | |
| 4 | -import com.baomidou.mybatisplus.annotations.TableName; | |
| 5 | - | |
| 6 | -import java.io.Serializable; | |
| 7 | - | |
| 8 | -/** | |
| 9 | - * <p> | |
| 10 | - * | |
| 11 | - * </p> | |
| 12 | - * | |
| 13 | - * @author yangfei | |
| 14 | - * @since 2017-05-31 | |
| 15 | - */ | |
| 16 | -@TableName("HOSPITAL_MESSAGE_TAGS") | |
| 17 | -public class HospitalMessageTags implements Serializable { | |
| 18 | - | |
| 19 | - private static final long serialVersionUID = 1L; | |
| 20 | - | |
| 21 | - /** | |
| 22 | - * 主键 | |
| 23 | - */ | |
| 24 | - @TableField(value="ID") | |
| 25 | - private String id; | |
| 26 | - /** | |
| 27 | - * 医院消息ID | |
| 28 | - */ | |
| 29 | - @TableField(value="HOSPITAL_MESSAGE_ID") | |
| 30 | - private String hospitalMessageId; | |
| 31 | - /** | |
| 32 | - * 标签IDS | |
| 33 | - */ | |
| 34 | - @TableField(value="TAGS_IDS") | |
| 35 | - private String tagsIds; | |
| 36 | - | |
| 37 | - | |
| 38 | - public String getId() { | |
| 39 | - return id; | |
| 40 | - } | |
| 41 | - | |
| 42 | - public void setId(String id) { | |
| 43 | - this.id = id; | |
| 44 | - } | |
| 45 | - | |
| 46 | - public String getHospitalMessageId() { | |
| 47 | - return hospitalMessageId; | |
| 48 | - } | |
| 49 | - | |
| 50 | - public void setHospitalMessageId(String hospitalMessageId) { | |
| 51 | - this.hospitalMessageId = hospitalMessageId; | |
| 52 | - } | |
| 53 | - | |
| 54 | - public String getTagsIds() { | |
| 55 | - return tagsIds; | |
| 56 | - } | |
| 57 | - | |
| 58 | - public void setTagsIds(String tagsIds) { | |
| 59 | - this.tagsIds = tagsIds; | |
| 60 | - } | |
| 61 | - | |
| 62 | -} |
parent/base.common/src/main/java/com/lyms/base/common/entity/content/HospitalMessageVersion.java
View file @
c915930
| 1 | -package com.lyms.base.common.entity.content; | |
| 2 | - | |
| 3 | -import com.baomidou.mybatisplus.annotations.TableField; | |
| 4 | -import com.baomidou.mybatisplus.annotations.TableName; | |
| 5 | - | |
| 6 | -import java.io.Serializable; | |
| 7 | -import java.util.Date; | |
| 8 | - | |
| 9 | -/** | |
| 10 | - * <p> | |
| 11 | - * | |
| 12 | - * </p> | |
| 13 | - * | |
| 14 | - * @author yangfei | |
| 15 | - * @since 2017-05-31 | |
| 16 | - */ | |
| 17 | -@TableName("HOSPITAL_MESSAGE_VERSION") | |
| 18 | -public class HospitalMessageVersion implements Serializable { | |
| 19 | - | |
| 20 | - private static final long serialVersionUID = 1L; | |
| 21 | - | |
| 22 | - /** | |
| 23 | - * 主键 | |
| 24 | - */ | |
| 25 | - @TableField(value="ID") | |
| 26 | - private String id; | |
| 27 | - /** | |
| 28 | - * 消息模板版本id | |
| 29 | - */ | |
| 30 | - @TableField(value="TV_ID") | |
| 31 | - private String tvId; | |
| 32 | - /** | |
| 33 | - * 医院id | |
| 34 | - */ | |
| 35 | - @TableField(value="HOSPITAL") | |
| 36 | - private String hospital; | |
| 37 | - /** | |
| 38 | - * 创建时间 | |
| 39 | - */ | |
| 40 | - @TableField(value="CREATE_TIME") | |
| 41 | - private Date createTime; | |
| 42 | - /** | |
| 43 | - * 创建人ID | |
| 44 | - */ | |
| 45 | - @TableField(value="CREATE_ID") | |
| 46 | - private String createId; | |
| 47 | - /** | |
| 48 | - * 创建人名称 | |
| 49 | - */ | |
| 50 | - @TableField(value="CREATE_NAME") | |
| 51 | - private String createName; | |
| 52 | - /** | |
| 53 | - * 修改人ID | |
| 54 | - */ | |
| 55 | - @TableField(value="MODIFY_ID") | |
| 56 | - private String modifyId; | |
| 57 | - /** | |
| 58 | - * 修改人名称 | |
| 59 | - */ | |
| 60 | - @TableField(value="MODIFY_NAME") | |
| 61 | - private String modifyName; | |
| 62 | - /** | |
| 63 | - * 最后修改时间 | |
| 64 | - */ | |
| 65 | - @TableField(value="MODIFY_TIME") | |
| 66 | - private Date modifyTime; | |
| 67 | - /** | |
| 68 | - * 是否删除 | |
| 69 | - */ | |
| 70 | - @TableField(value="IFDEL") | |
| 71 | - private Integer ifdel; | |
| 72 | - /** | |
| 73 | - * 是否启用 | |
| 74 | - */ | |
| 75 | - @TableField(value="ENABLE") | |
| 76 | - private Integer enable; | |
| 77 | - | |
| 78 | - | |
| 79 | - public String getId() { | |
| 80 | - return id; | |
| 81 | - } | |
| 82 | - | |
| 83 | - public void setId(String id) { | |
| 84 | - this.id = id; | |
| 85 | - } | |
| 86 | - | |
| 87 | - public String getTvId() { | |
| 88 | - return tvId; | |
| 89 | - } | |
| 90 | - | |
| 91 | - public void setTvId(String tvId) { | |
| 92 | - this.tvId = tvId; | |
| 93 | - } | |
| 94 | - | |
| 95 | - public String getHospital() { | |
| 96 | - return hospital; | |
| 97 | - } | |
| 98 | - | |
| 99 | - public void setHospital(String hospital) { | |
| 100 | - this.hospital = hospital; | |
| 101 | - } | |
| 102 | - | |
| 103 | - public Date getCreateTime() { | |
| 104 | - return createTime; | |
| 105 | - } | |
| 106 | - | |
| 107 | - public void setCreateTime(Date createTime) { | |
| 108 | - this.createTime = createTime; | |
| 109 | - } | |
| 110 | - | |
| 111 | - public String getCreateId() { | |
| 112 | - return createId; | |
| 113 | - } | |
| 114 | - | |
| 115 | - public void setCreateId(String createId) { | |
| 116 | - this.createId = createId; | |
| 117 | - } | |
| 118 | - | |
| 119 | - public String getCreateName() { | |
| 120 | - return createName; | |
| 121 | - } | |
| 122 | - | |
| 123 | - public void setCreateName(String createName) { | |
| 124 | - this.createName = createName; | |
| 125 | - } | |
| 126 | - | |
| 127 | - public String getModifyId() { | |
| 128 | - return modifyId; | |
| 129 | - } | |
| 130 | - | |
| 131 | - public void setModifyId(String modifyId) { | |
| 132 | - this.modifyId = modifyId; | |
| 133 | - } | |
| 134 | - | |
| 135 | - public String getModifyName() { | |
| 136 | - return modifyName; | |
| 137 | - } | |
| 138 | - | |
| 139 | - public void setModifyName(String modifyName) { | |
| 140 | - this.modifyName = modifyName; | |
| 141 | - } | |
| 142 | - | |
| 143 | - public Date getModifyTime() { | |
| 144 | - return modifyTime; | |
| 145 | - } | |
| 146 | - | |
| 147 | - public void setModifyTime(Date modifyTime) { | |
| 148 | - this.modifyTime = modifyTime; | |
| 149 | - } | |
| 150 | - | |
| 151 | - public Integer getIfdel() { | |
| 152 | - return ifdel; | |
| 153 | - } | |
| 154 | - | |
| 155 | - public void setIfdel(Integer ifdel) { | |
| 156 | - this.ifdel = ifdel; | |
| 157 | - } | |
| 158 | - | |
| 159 | - public Integer getEnable() { | |
| 160 | - return enable; | |
| 161 | - } | |
| 162 | - | |
| 163 | - public void setEnable(Integer enable) { | |
| 164 | - this.enable = enable; | |
| 165 | - } | |
| 166 | - | |
| 167 | -} |
parent/base.common/src/main/java/com/lyms/base/common/service/content/ContentDoctorMessageService.java
View file @
c915930
| 1 | 1 | package com.lyms.base.common.service.content; |
| 2 | 2 | |
| 3 | +import com.baomidou.mybatisplus.plugins.Page; | |
| 3 | 4 | import com.lyms.base.common.entity.content.ContentDoctorMessage; |
| 4 | 5 | import com.lyms.web.service.BaseService; |
| 5 | - | |
| 6 | 6 | import java.io.Serializable; |
| 7 | +import java.util.List; | |
| 7 | 8 | |
| 8 | 9 | /** |
| 9 | 10 | * <p> |
| ... | ... | @@ -11,7 +12,7 @@ |
| 11 | 12 | * </p> |
| 12 | 13 | * |
| 13 | 14 | * @author yangfei |
| 14 | - * @since 2017-04-14 | |
| 15 | + * @since 2017-05-31 | |
| 15 | 16 | */ |
| 16 | 17 | public interface ContentDoctorMessageService extends BaseService<ContentDoctorMessage> { |
| 17 | 18 | |
| ... | ... | @@ -21,6 +22,9 @@ |
| 21 | 22 | * <li>@return 大于0修改成功,否则为失败 |
| 22 | 23 | */ |
| 23 | 24 | public Integer deleteLogicById(Serializable id); |
| 24 | - | |
| 25 | + | |
| 26 | + public List<ContentDoctorMessage> getHospMessage(Page<ContentDoctorMessage> page , ContentDoctorMessage doctMsg); | |
| 27 | + | |
| 28 | + | |
| 25 | 29 | } |
parent/base.common/src/main/java/com/lyms/base/common/service/content/ContentHospitalMessageTagsService.java
View file @
c915930
| 1 | +package com.lyms.base.common.service.content; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.content.ContentHospitalMessageTags; | |
| 4 | +import com.lyms.web.service.BaseService; | |
| 5 | +import java.io.Serializable; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * <p> | |
| 9 | + * 服务类 | |
| 10 | + * </p> | |
| 11 | + * | |
| 12 | + * @author yangfei | |
| 13 | + * @since 2017-05-31 | |
| 14 | + */ | |
| 15 | +public interface ContentHospitalMessageTagsService extends BaseService<ContentHospitalMessageTags> { | |
| 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/content/ContentHospitalMessageVersionService.java
View file @
c915930
| 1 | +package com.lyms.base.common.service.content; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.content.ContentHospitalMessageVersion; | |
| 4 | +import com.lyms.web.service.BaseService; | |
| 5 | +import java.io.Serializable; | |
| 6 | + | |
| 7 | +/** | |
| 8 | + * <p> | |
| 9 | + * 服务类 | |
| 10 | + * </p> | |
| 11 | + * | |
| 12 | + * @author yangfei | |
| 13 | + * @since 2017-05-31 | |
| 14 | + */ | |
| 15 | +public interface ContentHospitalMessageVersionService extends BaseService<ContentHospitalMessageVersion> { | |
| 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/content/HospitalMessageTagsService.java
View file @
c915930
| 1 | -package com.lyms.base.common.service.content; | |
| 2 | - | |
| 3 | -import com.lyms.base.common.entity.content.HospitalMessageTags; | |
| 4 | -import com.lyms.web.service.BaseService; | |
| 5 | -import java.io.Serializable; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * <p> | |
| 9 | - * 服务类 | |
| 10 | - * </p> | |
| 11 | - * | |
| 12 | - * @author yangfei | |
| 13 | - * @since 2017-05-31 | |
| 14 | - */ | |
| 15 | -public interface HospitalMessageTagsService extends BaseService<HospitalMessageTags> { | |
| 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/content/HospitalMessageVersionService.java
View file @
c915930
| 1 | -package com.lyms.base.common.service.content; | |
| 2 | - | |
| 3 | -import com.lyms.base.common.entity.content.HospitalMessageVersion; | |
| 4 | -import com.lyms.web.service.BaseService; | |
| 5 | -import java.io.Serializable; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * <p> | |
| 9 | - * 服务类 | |
| 10 | - * </p> | |
| 11 | - * | |
| 12 | - * @author yangfei | |
| 13 | - * @since 2017-05-31 | |
| 14 | - */ | |
| 15 | -public interface HospitalMessageVersionService extends BaseService<HospitalMessageVersion> { | |
| 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/content/impl/ContentDoctorMessageServiceImpl.java
View file @
c915930
| 1 | 1 | package com.lyms.base.common.service.content.impl; |
| 2 | 2 | |
| 3 | -import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 4 | -import com.lyms.base.common.dao.content.ContentDoctorMessageMapper; | |
| 3 | +import com.baomidou.mybatisplus.plugins.Page; | |
| 5 | 4 | import com.lyms.base.common.entity.content.ContentDoctorMessage; |
| 5 | +import com.lyms.base.common.dao.content.ContentDoctorMessageMapper; | |
| 6 | 6 | import com.lyms.base.common.service.content.ContentDoctorMessageService; |
| 7 | +import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 7 | 8 | import org.springframework.stereotype.Service; |
| 8 | - | |
| 9 | 9 | import java.io.Serializable; |
| 10 | +import java.util.List; | |
| 10 | 11 | |
| 11 | 12 | /** |
| 12 | 13 | * <p> |
| 13 | 14 | |
| ... | ... | @@ -14,13 +15,18 @@ |
| 14 | 15 | * </p> |
| 15 | 16 | * |
| 16 | 17 | * @author yangfei |
| 17 | - * @since 2017-04-14 | |
| 18 | + * @since 2017-05-31 | |
| 18 | 19 | */ |
| 19 | 20 | @Service |
| 20 | 21 | public class ContentDoctorMessageServiceImpl extends ServiceImpl<ContentDoctorMessageMapper, ContentDoctorMessage> implements ContentDoctorMessageService { |
| 21 | 22 | |
| 22 | 23 | public Integer deleteLogicById(Serializable id){ |
| 23 | 24 | return baseMapper.deleteLogicById(id); |
| 25 | + } | |
| 26 | + | |
| 27 | + @Override | |
| 28 | + public List<ContentDoctorMessage> getHospMessage(Page<ContentDoctorMessage> page, ContentDoctorMessage doctMsg) { | |
| 29 | + return baseMapper.getHospMessage(page,doctMsg); | |
| 24 | 30 | } |
| 25 | 31 | } |
parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/ContentHospitalMessageTagsServiceImpl.java
View file @
c915930
| 1 | +package com.lyms.base.common.service.content.impl; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.content.ContentHospitalMessageTags; | |
| 4 | +import com.lyms.base.common.dao.content.ContentHospitalMessageTagsMapper; | |
| 5 | +import com.lyms.base.common.service.content.ContentHospitalMessageTagsService; | |
| 6 | +import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | +import java.io.Serializable; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * <p> | |
| 12 | + * 医院消息标签 服务实现类 | |
| 13 | + * </p> | |
| 14 | + * | |
| 15 | + * @author yangfei | |
| 16 | + * @since 2017-05-31 | |
| 17 | + */ | |
| 18 | +@Service | |
| 19 | +public class ContentHospitalMessageTagsServiceImpl extends ServiceImpl<ContentHospitalMessageTagsMapper, ContentHospitalMessageTags> implements ContentHospitalMessageTagsService { | |
| 20 | + | |
| 21 | + public Integer deleteLogicById(Serializable id){ | |
| 22 | + return baseMapper.deleteLogicById(id); | |
| 23 | + } | |
| 24 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/ContentHospitalMessageVersionServiceImpl.java
View file @
c915930
| 1 | +package com.lyms.base.common.service.content.impl; | |
| 2 | + | |
| 3 | +import com.lyms.base.common.entity.content.ContentHospitalMessageVersion; | |
| 4 | +import com.lyms.base.common.dao.content.ContentHospitalMessageVersionMapper; | |
| 5 | +import com.lyms.base.common.service.content.ContentHospitalMessageVersionService; | |
| 6 | +import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 7 | +import org.springframework.stereotype.Service; | |
| 8 | +import java.io.Serializable; | |
| 9 | + | |
| 10 | +/** | |
| 11 | + * <p> | |
| 12 | + * 医院消息模板关系 服务实现类 | |
| 13 | + * </p> | |
| 14 | + * | |
| 15 | + * @author yangfei | |
| 16 | + * @since 2017-05-31 | |
| 17 | + */ | |
| 18 | +@Service | |
| 19 | +public class ContentHospitalMessageVersionServiceImpl extends ServiceImpl<ContentHospitalMessageVersionMapper, ContentHospitalMessageVersion> implements ContentHospitalMessageVersionService { | |
| 20 | + | |
| 21 | + public Integer deleteLogicById(Serializable id){ | |
| 22 | + return baseMapper.deleteLogicById(id); | |
| 23 | + } | |
| 24 | +} |
parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/HospitalMessageTagsServiceImpl.java
View file @
c915930
| 1 | -package com.lyms.base.common.service.content.impl; | |
| 2 | - | |
| 3 | -import com.lyms.base.common.entity.content.HospitalMessageTags; | |
| 4 | -import com.lyms.base.common.dao.content.HospitalMessageTagsMapper; | |
| 5 | -import com.lyms.base.common.service.content.HospitalMessageTagsService; | |
| 6 | -import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | -import java.io.Serializable; | |
| 9 | - | |
| 10 | -/** | |
| 11 | - * <p> | |
| 12 | - * 服务实现类 | |
| 13 | - * </p> | |
| 14 | - * | |
| 15 | - * @author yangfei | |
| 16 | - * @since 2017-05-31 | |
| 17 | - */ | |
| 18 | -@Service | |
| 19 | -public class HospitalMessageTagsServiceImpl extends ServiceImpl<HospitalMessageTagsMapper, HospitalMessageTags> implements HospitalMessageTagsService { | |
| 20 | - | |
| 21 | - public Integer deleteLogicById(Serializable id){ | |
| 22 | - return baseMapper.deleteLogicById(id); | |
| 23 | - } | |
| 24 | -} |
parent/base.common/src/main/java/com/lyms/base/common/service/content/impl/HospitalMessageVersionServiceImpl.java
View file @
c915930
| 1 | -package com.lyms.base.common.service.content.impl; | |
| 2 | - | |
| 3 | -import com.lyms.base.common.entity.content.HospitalMessageVersion; | |
| 4 | -import com.lyms.base.common.dao.content.HospitalMessageVersionMapper; | |
| 5 | -import com.lyms.base.common.service.content.HospitalMessageVersionService; | |
| 6 | -import com.baomidou.mybatisplus.service.impl.ServiceImpl; | |
| 7 | -import org.springframework.stereotype.Service; | |
| 8 | -import java.io.Serializable; | |
| 9 | - | |
| 10 | -/** | |
| 11 | - * <p> | |
| 12 | - * 服务实现类 | |
| 13 | - * </p> | |
| 14 | - * | |
| 15 | - * @author yangfei | |
| 16 | - * @since 2017-05-31 | |
| 17 | - */ | |
| 18 | -@Service | |
| 19 | -public class HospitalMessageVersionServiceImpl extends ServiceImpl<HospitalMessageVersionMapper, HospitalMessageVersion> implements HospitalMessageVersionService { | |
| 20 | - | |
| 21 | - public Integer deleteLogicById(Serializable id){ | |
| 22 | - return baseMapper.deleteLogicById(id); | |
| 23 | - } | |
| 24 | -} |
parent/center.manager/src/main/java/com/lyms/cm/controller/conf/AssaySourceController.java
View file @
c915930
parent/center.manager/src/main/java/com/lyms/cm/controller/content/ContentDoctorMessageController.java
View file @
c915930
| ... | ... | @@ -3,20 +3,27 @@ |
| 3 | 3 | import com.baomidou.mybatisplus.mapper.EntityWrapper; |
| 4 | 4 | import com.baomidou.mybatisplus.mapper.Wrapper; |
| 5 | 5 | import com.baomidou.mybatisplus.plugins.Page; |
| 6 | -import com.lyms.base.common.entity.content.ContentDoctorMessage; | |
| 7 | -import com.lyms.base.common.service.content.ContentDoctorMessageService; | |
| 6 | +import com.lyms.base.common.entity.content.*; | |
| 7 | +import com.lyms.base.common.service.content.*; | |
| 8 | +import com.lyms.base.common.service.content.impl.ContentTagsServiceImpl; | |
| 9 | +import com.lyms.base.common.service.organ.OrganizationsService; | |
| 10 | +import com.lyms.base.common.vo.content.ContentMessageTemplateDTO; | |
| 11 | +import com.lyms.base.common.vo.content.InContentMessageTemplateDTO; | |
| 12 | +import com.lyms.base.common.vo.content.MsgTempSerachDTO; | |
| 13 | +import com.lyms.util.CollectionUtils; | |
| 14 | +import com.lyms.util.StrUtils; | |
| 15 | +import com.lyms.web.bean.AjaxResult; | |
| 8 | 16 | import com.lyms.web.controller.BaseController; |
| 9 | -import org.apache.commons.lang.StringUtils; | |
| 10 | 17 | import org.springframework.beans.factory.annotation.Autowired; |
| 11 | 18 | import org.springframework.stereotype.Controller; |
| 12 | -import org.springframework.web.bind.annotation.RequestMapping; | |
| 13 | -import org.springframework.web.bind.annotation.ResponseBody; | |
| 19 | +import org.springframework.ui.Model; | |
| 20 | +import org.springframework.web.bind.annotation.*; | |
| 14 | 21 | |
| 15 | -import java.util.Map; | |
| 22 | +import java.util.*; | |
| 16 | 23 | |
| 17 | 24 | /** |
| 18 | 25 | * <p> |
| 19 | - * 医院消息 前端控制器 | |
| 26 | + * 医院消息 | |
| 20 | 27 | * </p> |
| 21 | 28 | * |
| 22 | 29 | * @author yangfei |
| 23 | 30 | |
| 24 | 31 | |
| 25 | 32 | |
| 26 | 33 | |
| 27 | 34 | |
| 28 | 35 | |
| 29 | 36 | |
| 30 | 37 | |
| 31 | 38 | |
| ... | ... | @@ -25,29 +32,214 @@ |
| 25 | 32 | @Controller |
| 26 | 33 | @RequestMapping("/contentDoctorMessage") |
| 27 | 34 | public class ContentDoctorMessageController extends BaseController { |
| 28 | - //医院信息 | |
| 29 | 35 | @Autowired |
| 36 | + private ContentHospitalMessageVersionService contentHospitalMessageVersionService; | |
| 37 | + @Autowired | |
| 30 | 38 | private ContentDoctorMessageService contentDoctorMessageService; |
| 39 | + @Autowired | |
| 40 | + private ContentHospitalMessageTagsService contentHospitalMessageTagsService; | |
| 41 | + @Autowired | |
| 42 | + private ContentTemplateVersionService templateVersionService; | |
| 43 | + //模板信息 | |
| 44 | + @Autowired | |
| 45 | + private ContentMessageTemplateService messageTemplateService; | |
| 46 | + @Autowired | |
| 47 | + private OrganizationsService organService; | |
| 31 | 48 | |
| 32 | 49 | /** |
| 33 | - * 获取消息内容列表 | |
| 50 | + * 新增消息模板信息 | |
| 51 | + * <p> | |
| 52 | + * TODO | |
| 34 | 53 | * |
| 35 | - * @param cdMsg 医院消息对象 | |
| 36 | - * @return 医院消息列表 | |
| 54 | + * @return | |
| 37 | 55 | */ |
| 56 | + @RequestMapping(value = "/update", method = RequestMethod.POST) | |
| 38 | 57 | @ResponseBody |
| 58 | + public AjaxResult update(@ModelAttribute InContentMessageTemplateDTO contentMessage, AjaxResult ajaxResult) { | |
| 59 | + ContentDoctorMessage messTemp = new ContentDoctorMessage(); | |
| 60 | + if(StrUtils.isNotEmpty(contentMessage.getId())&&!contentMessage.getId().equals("0")){//更新 | |
| 61 | + messTemp = contentDoctorMessageService.selectById(contentMessage.getId()); | |
| 62 | + if(messTemp!=null){ | |
| 63 | + messTemp.setModifyTime(new Date()); | |
| 64 | + } | |
| 65 | + Map<String, Object> map = new HashMap<>(); | |
| 66 | + map.put("HOSPITAL_MESSAGE_ID",messTemp.getId()); | |
| 67 | + //先删除标签关系 | |
| 68 | + contentHospitalMessageTagsService.deleteByMap(map); | |
| 69 | + } | |
| 70 | + messTemp.setContent(contentMessage.getContent()); | |
| 71 | + messTemp.setRichTitle(contentMessage.getRichTitle()); | |
| 72 | + messTemp.setRichText(contentMessage.getRichText()); | |
| 73 | + messTemp.setIsRich(contentMessage.getIsRich()); | |
| 74 | + List<ContentHospitalMessageTags> tempTags = new ArrayList<>(); | |
| 75 | + for (String tags : contentMessage.getContentTagIds()) { | |
| 76 | + ContentHospitalMessageTags ctmt = new ContentHospitalMessageTags(); | |
| 77 | + ctmt.setId(StrUtils.uuid()); | |
| 78 | + ctmt.setHospitalMessageId(messTemp.getId()); | |
| 79 | + ctmt.setTagsIds(tags); | |
| 80 | + tempTags.add(ctmt); | |
| 81 | + } | |
| 82 | + | |
| 83 | + boolean tags = contentHospitalMessageTagsService.insertBatch(tempTags); | |
| 84 | + boolean tag = contentDoctorMessageService.insertOrUpdate(messTemp); | |
| 85 | + return handleAjaxResult(ajaxResult, tag&&tags, "修改成功"); | |
| 86 | + } | |
| 87 | + | |
| 88 | + /** | |
| 89 | + * 跳转到编辑页面 | |
| 90 | + *@param dmId 医院消息ID | |
| 91 | + * @return | |
| 92 | + */ | |
| 93 | + @RequestMapping(value = {"/{dmId}/toEdit"}, method = RequestMethod.GET) | |
| 94 | + public String toEdit(@PathVariable String dmId, Model model) { | |
| 95 | + model.addAttribute("dmId", dmId); | |
| 96 | + if (StrUtils.isNotEmpty(dmId)) {//查询 | |
| 97 | + ContentDoctorMessage tempInfo = contentDoctorMessageService.selectById(dmId); | |
| 98 | + String hName = organService.getNameById(tempInfo.getDoctorId()); | |
| 99 | + model.addAttribute("hName", hName); | |
| 100 | + model.addAttribute("tempInfo", tempInfo); | |
| 101 | + | |
| 102 | + Map<String, Object> colMap = new HashMap<>(); | |
| 103 | + colMap.put("HOSPITAL_MESSAGE_ID", dmId); | |
| 104 | + List<ContentHospitalMessageTags> tagList = contentHospitalMessageTagsService.selectByMap(colMap); | |
| 105 | + model.addAttribute("tags", tagList); | |
| 106 | + } | |
| 107 | + return "/content/org_msg_edit"; | |
| 108 | + } | |
| 109 | + | |
| 110 | + /** | |
| 111 | + * 给医院配置短信模板 | |
| 112 | + * | |
| 113 | + * @param hosptId 医院ID | |
| 114 | + * @param tvId 短信版本 | |
| 115 | + * @param ajaxResult | |
| 116 | + * @return | |
| 117 | + */ | |
| 118 | + @RequestMapping(value = "/configrTempVer", method = {RequestMethod.GET, RequestMethod.POST}) | |
| 119 | + @ResponseBody | |
| 120 | + public AjaxResult configrTempVer(String hosptId, String tvId, AjaxResult ajaxResult) { | |
| 121 | + Wrapper<ContentHospitalMessageVersion> wrapper = new EntityWrapper<>(); | |
| 122 | + wrapper.where("HOSPITAL = {0}", hosptId); | |
| 123 | + | |
| 124 | + ContentHospitalMessageVersion chmv = contentHospitalMessageVersionService.selectOne(wrapper); | |
| 125 | + if (chmv != null) { | |
| 126 | + //存在 | |
| 127 | + if (chmv.getTvId().equals(tvId)) {//相同不做修改 | |
| 128 | + return handleAjaxResult(ajaxResult, true, "未作改动"); | |
| 129 | + } else {//不一致,删除以前记录,插入新的短信 | |
| 130 | + contentHospitalMessageVersionService.deleteById(chmv.getId()); | |
| 131 | + Wrapper<ContentDoctorMessage> cdmWrapper = new EntityWrapper<>(); | |
| 132 | + cdmWrapper.where("DOCTOR_ID = {0}", hosptId); | |
| 133 | + cdmWrapper.isNotNull("TEMPLET_MSG_ID"); | |
| 134 | + List<ContentDoctorMessage> messageList = contentDoctorMessageService.selectList(cdmWrapper); | |
| 135 | + for (ContentDoctorMessage ml : messageList) { | |
| 136 | + ml.setIfdel(1); | |
| 137 | + } | |
| 138 | + contentDoctorMessageService.updateBatchById(messageList); | |
| 139 | + } | |
| 140 | + } | |
| 141 | + | |
| 142 | + MsgTempSerachDTO msgTemp = new MsgTempSerachDTO(); | |
| 143 | + msgTemp.setVerId(tvId); | |
| 144 | + List<ContentMessageTemplateDTO> messageTemplateDTOS = messageTemplateService.getContentMessageTemplate(msgTemp); | |
| 145 | + List<ContentDoctorMessage> doctorMessages = new ArrayList<>(); | |
| 146 | + List<ContentHospitalMessageTags> hdoctorMessages = new ArrayList<>(); | |
| 147 | + | |
| 148 | + ContentHospitalMessageVersion hospitalMessageVersion = new ContentHospitalMessageVersion(); | |
| 149 | + hospitalMessageVersion.setId(StrUtils.uuid()); | |
| 150 | + hospitalMessageVersion.setCreateTime(new Date()); | |
| 151 | + hospitalMessageVersion.setEnable(0); | |
| 152 | + hospitalMessageVersion.setHospital(hosptId); | |
| 153 | + hospitalMessageVersion.setTvId(tvId); | |
| 154 | + contentHospitalMessageVersionService.insert(hospitalMessageVersion); | |
| 155 | + | |
| 156 | + //添加医院消息信息 | |
| 157 | + for (ContentMessageTemplateDTO mt : messageTemplateDTOS) { | |
| 158 | + ContentDoctorMessage cdm = new ContentDoctorMessage(); | |
| 159 | + cdm.setIfdel(0); | |
| 160 | + cdm.setKeyCode(mt.getKeyCode()); | |
| 161 | + cdm.setTempletMsgId(mt.getId()); | |
| 162 | + cdm.setId(StrUtils.uuid()); | |
| 163 | + cdm.setContent(mt.getContent()); | |
| 164 | + cdm.setDoctorId(hosptId); | |
| 165 | + cdm.setIsRich(mt.getIsRich()); | |
| 166 | + cdm.setRichText(mt.getRichText()); | |
| 167 | + cdm.setRichTitle(mt.getRichTitle()); | |
| 168 | + cdm.setEnable(1); | |
| 169 | + cdm.setCreateTime(new Date()); | |
| 170 | + doctorMessages.add(cdm); | |
| 171 | + if(StrUtils.isNotEmpty(mt.getContentTagIds())){ | |
| 172 | + ContentHospitalMessageTags messageTags = new ContentHospitalMessageTags(); | |
| 173 | + messageTags.setId(StrUtils.uuid()); | |
| 174 | + messageTags.setTagsIds(mt.getContentTagIds()); | |
| 175 | + messageTags.setHospitalMessageId(cdm.getId()); | |
| 176 | + hdoctorMessages.add(messageTags); | |
| 177 | + } | |
| 178 | + } | |
| 179 | + | |
| 180 | + if(CollectionUtils.isNotEmpty(doctorMessages)){ | |
| 181 | + //批量添加消息 | |
| 182 | + boolean saveResult = contentDoctorMessageService.insertBatch(doctorMessages); | |
| 183 | + } | |
| 184 | + | |
| 185 | + if(CollectionUtils.isNotEmpty(hdoctorMessages)){ | |
| 186 | + //批量添加消息标签 | |
| 187 | + boolean saveTagResult = contentHospitalMessageTagsService.insertBatch(hdoctorMessages); | |
| 188 | + } | |
| 189 | + return handleAjaxResult(ajaxResult, true, "更改成功"); | |
| 190 | + } | |
| 191 | + | |
| 192 | + @RequestMapping(value = "/{housId}/getVersion", method = {RequestMethod.GET, RequestMethod.POST}) | |
| 193 | + @ResponseBody | |
| 194 | + public AjaxResult getVersion(@PathVariable String housId, AjaxResult ajaxResult) { | |
| 195 | + | |
| 196 | + ajaxResult.setData("未配置"); | |
| 197 | + Wrapper<ContentHospitalMessageVersion> wrapper = new EntityWrapper<>(); | |
| 198 | + //wrapper.where("id in ({0})",ids); | |
| 199 | + wrapper.in("hospital", housId); | |
| 200 | + ContentHospitalMessageVersion chmv = contentHospitalMessageVersionService.selectOne(wrapper); | |
| 201 | + if (chmv != null) { | |
| 202 | + ContentTemplateVersion version = templateVersionService.selectById(chmv.getTvId()); | |
| 203 | + if (version != null) { | |
| 204 | + ajaxResult.setData(version.getVersionName()); | |
| 205 | + } | |
| 206 | + return handleAjaxResult(ajaxResult, true, "查询成功"); | |
| 207 | + } else { | |
| 208 | + return handleAjaxResult(ajaxResult, true, "没有数据"); | |
| 209 | + } | |
| 210 | + } | |
| 211 | + | |
| 212 | + /** | |
| 213 | + * @param cdMsg | |
| 214 | + * @return | |
| 215 | + */ | |
| 216 | + @ResponseBody | |
| 217 | + @RequestMapping(value = "/list", method = {RequestMethod.GET, RequestMethod.POST}) | |
| 39 | 218 | public Map<String, Object> list(ContentDoctorMessage cdMsg) { |
| 219 | + if (StrUtils.isEmpty(cdMsg.getContent())) { | |
| 220 | + cdMsg.setContent(null); | |
| 221 | + } | |
| 222 | + if (StrUtils.isEmpty(cdMsg.getTagsIds())) { | |
| 223 | + cdMsg.setTagsIds(null); | |
| 224 | + } | |
| 40 | 225 | Page<ContentDoctorMessage> page = getPage(); |
| 41 | - Wrapper<ContentDoctorMessage> wrapper = new EntityWrapper<ContentDoctorMessage>(); | |
| 42 | - if (StringUtils.isNotEmpty(cdMsg.getContent())) { | |
| 43 | - wrapper.like("CONTENT", cdMsg.getContent()); | |
| 226 | + List<ContentDoctorMessage> cdmList = contentDoctorMessageService.getHospMessage(page, cdMsg); | |
| 227 | + for (ContentDoctorMessage ct : cdmList) { | |
| 228 | + if (StrUtils.isEmpty(ct.getTagsIds())) { | |
| 229 | + ct.setContentTagIds(""); | |
| 230 | + continue; | |
| 231 | + } | |
| 232 | + String[] contentTags = ct.getTagsIds().split(","); | |
| 233 | + String tagName = ContentTagsServiceImpl.tagIdToTagName(contentTags); | |
| 234 | + if (StrUtils.isNotEmpty(tagName)) { | |
| 235 | + ct.setContentTagIds(tagName.substring(0, tagName.length() - 1).toString()); | |
| 236 | + } else { | |
| 237 | + ct.setContentTagIds(""); | |
| 238 | + } | |
| 44 | 239 | } |
| 45 | - // | |
| 46 | - // if(cdMsg.gett){ | |
| 47 | - // | |
| 48 | - // } | |
| 49 | - contentDoctorMessageService.selectMapsPage(page, wrapper); | |
| 50 | - return null; | |
| 240 | + page.setRecords(cdmList); | |
| 241 | + | |
| 242 | + return toGridData(page); | |
| 51 | 243 | |
| 52 | 244 | } |
| 53 | 245 | } |
parent/center.manager/src/main/java/com/lyms/cm/controller/sys/SysOrganizationsController.java
View file @
c915930
| ... | ... | @@ -31,130 +31,135 @@ |
| 31 | 31 | @RequestMapping("/sysOrganizations") |
| 32 | 32 | public class SysOrganizationsController extends BaseController { |
| 33 | 33 | |
| 34 | - @Autowired | |
| 35 | - private OrganizationsService organService; | |
| 34 | + @Autowired | |
| 35 | + private OrganizationsService organService; | |
| 36 | 36 | |
| 37 | - /** | |
| 38 | - * <li>@Description:跳转到机构列表页 | |
| 39 | - * <li>@return | |
| 40 | - * <li>创建人:maliang | |
| 41 | - * <li>创建时间:2017年3月8日 | |
| 42 | - * <li>修改人: | |
| 43 | - * <li>修改时间: | |
| 44 | - */ | |
| 45 | - @RequestMapping("/toList") | |
| 46 | - public String toOrgan() { | |
| 47 | - return "/organ/org_list"; | |
| 48 | - } | |
| 49 | - /** | |
| 50 | - * <li>@Description:跳转到机构列表页 | |
| 51 | - * <li>@return | |
| 52 | - * <li>创建人:maliang | |
| 53 | - * <li>创建时间:2017年3月8日 | |
| 54 | - * <li>修改人: | |
| 55 | - * <li>修改时间: | |
| 56 | - */ | |
| 57 | - @RequestMapping("/toOrgOperate") | |
| 58 | - public String toOrgOperate() { | |
| 59 | - return "/content/org_operate"; | |
| 60 | - } | |
| 37 | + /** | |
| 38 | + * <li>@Description:跳转到机构列表页 | |
| 39 | + * <li>@return | |
| 40 | + * <li>创建人:maliang | |
| 41 | + * <li>创建时间:2017年3月8日 | |
| 42 | + * <li>修改人: | |
| 43 | + * <li>修改时间: | |
| 44 | + */ | |
| 45 | + @RequestMapping("/toList") | |
| 46 | + public String toOrgan() { | |
| 47 | + return "/organ/org_list"; | |
| 48 | + } | |
| 61 | 49 | |
| 62 | - /** | |
| 63 | - * <li>@Description:获取结构列表 | |
| 64 | - * <li>@return | |
| 65 | - * <li>创建人:maliang | |
| 66 | - * <li>创建时间:2017年3月8日 | |
| 67 | - * <li>修改人: | |
| 68 | - * <li>修改时间: | |
| 69 | - */ | |
| 70 | - @RequestMapping(value = "/list", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 71 | - @ResponseBody | |
| 72 | - public Map<String, Object> list(Organizations organizations) { | |
| 73 | - Page<Organizations> page = getPage(); | |
| 74 | - EntityWrapper<Organizations> ew = new EntityWrapper<Organizations>(); | |
| 75 | - ew.where("ifDel=0"); | |
| 50 | + /** | |
| 51 | + * <li>@Description:跳转到机构列表页 | |
| 52 | + * <li>@return | |
| 53 | + * <li>创建人:maliang | |
| 54 | + * <li>创建时间:2017年3月8日 | |
| 55 | + * <li>修改人: | |
| 56 | + * <li>修改时间: | |
| 57 | + */ | |
| 58 | + @RequestMapping("/{id}/toOrgOperate") | |
| 59 | + public String toOrgOperate(@PathVariable String id,Model model) { | |
| 60 | + if (StrUtils.isNotEmpty(id)) { | |
| 61 | + model.addAttribute("hospId", id); | |
| 62 | + return "/content/org_operate"; | |
| 63 | + } else return ""; | |
| 76 | 64 | |
| 77 | - String provinceId = organizations.getProvinceId(); | |
| 78 | - String cityId = organizations.getCityId(); | |
| 79 | - String areaId = organizations.getAreaId(); | |
| 80 | - if(StringUtils.isNotBlank(organizations.getName())){ | |
| 81 | - ew.where("NAME like {0}", "%"+organizations.getName()+"%"); | |
| 82 | - } | |
| 83 | - if (StringUtils.isNotBlank(provinceId)) { | |
| 84 | - ew.where("PROVINCE_ID={0}", provinceId); | |
| 85 | - } | |
| 86 | - if (StringUtils.isNotBlank(cityId)) { | |
| 87 | - ew.where("CITY_ID={0}", cityId); | |
| 88 | - } | |
| 89 | - if (StringUtils.isNotBlank(areaId)) { | |
| 90 | - ew.where("AREA_ID={0}", areaId); | |
| 91 | - } | |
| 92 | - page = organService.selectPage(page, ew); | |
| 93 | - return toGridData(page); | |
| 94 | - } | |
| 65 | + } | |
| 95 | 66 | |
| 96 | - /** | |
| 97 | - * <li>@Description:跳转到添加编辑页面 | |
| 98 | - * <li> | |
| 99 | - * <li>创建人:maliang | |
| 100 | - * <li>创建时间:2017年3月8日 | |
| 101 | - * <li>修改人: | |
| 102 | - * <li>修改时间: | |
| 103 | - */ | |
| 104 | - @RequestMapping(value = "/toEdit", method = { RequestMethod.GET }) | |
| 105 | - public String toEdit(String orgId, Model model) { | |
| 106 | - Organizations org = organService.selectById(orgId); | |
| 107 | - model.addAttribute("org", org); | |
| 108 | - return "/organ/org_edit"; | |
| 109 | - } | |
| 67 | + /** | |
| 68 | + * <li>@Description:获取结构列表 | |
| 69 | + * <li>@return | |
| 70 | + * <li>创建人:maliang | |
| 71 | + * <li>创建时间:2017年3月8日 | |
| 72 | + * <li>修改人: | |
| 73 | + * <li>修改时间: | |
| 74 | + */ | |
| 75 | + @RequestMapping(value = "/list", method = {RequestMethod.GET, RequestMethod.POST}) | |
| 76 | + @ResponseBody | |
| 77 | + public Map<String, Object> list(Organizations organizations) { | |
| 78 | + Page<Organizations> page = getPage(); | |
| 79 | + EntityWrapper<Organizations> ew = new EntityWrapper<Organizations>(); | |
| 80 | + ew.where("ifDel=0"); | |
| 110 | 81 | |
| 111 | - /** | |
| 112 | - * <li>@Description:修改机构信息 | |
| 113 | - * <li>@param organizations | |
| 114 | - * <li>@param ajaxResult | |
| 115 | - * <li>@return | |
| 116 | - * <li>创建人:maliang | |
| 117 | - * <li>创建时间:2017年3月8日 | |
| 118 | - * <li>修改人: | |
| 119 | - * <li>修改时间: | |
| 120 | - */ | |
| 121 | - @ResponseBody | |
| 122 | - @RequestMapping(value = "/update", method = { RequestMethod.POST }) | |
| 123 | - public AjaxResult edit(Organizations organizations, AjaxResult ajaxResult) { | |
| 124 | - boolean tag = organService.updateOrg(organizations); | |
| 125 | - return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE); | |
| 126 | - } | |
| 82 | + String provinceId = organizations.getProvinceId(); | |
| 83 | + String cityId = organizations.getCityId(); | |
| 84 | + String areaId = organizations.getAreaId(); | |
| 85 | + if (StringUtils.isNotBlank(organizations.getName())) { | |
| 86 | + ew.where("NAME like {0}", "%" + organizations.getName() + "%"); | |
| 87 | + } | |
| 88 | + if (StringUtils.isNotBlank(provinceId)) { | |
| 89 | + ew.where("PROVINCE_ID={0}", provinceId); | |
| 90 | + } | |
| 91 | + if (StringUtils.isNotBlank(cityId)) { | |
| 92 | + ew.where("CITY_ID={0}", cityId); | |
| 93 | + } | |
| 94 | + if (StringUtils.isNotBlank(areaId)) { | |
| 95 | + ew.where("AREA_ID={0}", areaId); | |
| 96 | + } | |
| 97 | + page = organService.selectPage(page, ew); | |
| 98 | + return toGridData(page); | |
| 99 | + } | |
| 127 | 100 | |
| 128 | - /** | |
| 129 | - * <li>@Description:添加机构信息 | |
| 130 | - * <li>@param organizations | |
| 131 | - * <li>@param ajaxResult | |
| 132 | - * <li>@return | |
| 133 | - * <li>创建人:maliang | |
| 134 | - * <li>创建时间:2017年3月8日 | |
| 135 | - * <li>修改人: | |
| 136 | - * <li>修改时间: | |
| 137 | - */ | |
| 138 | - @ResponseBody | |
| 139 | - @RequestMapping(value = "/create", method = { RequestMethod.POST }) | |
| 140 | - public AjaxResult add(Organizations organizations, AjaxResult ajaxResult) { | |
| 141 | - boolean tag = organService.addOrg(organizations); | |
| 142 | - return handleAjaxResult(ajaxResult, tag, OperationName.CREATE); | |
| 143 | - } | |
| 101 | + /** | |
| 102 | + * <li>@Description:跳转到添加编辑页面 | |
| 103 | + * <li> | |
| 104 | + * <li>创建人:maliang | |
| 105 | + * <li>创建时间:2017年3月8日 | |
| 106 | + * <li>修改人: | |
| 107 | + * <li>修改时间: | |
| 108 | + */ | |
| 109 | + @RequestMapping(value = "/toEdit", method = {RequestMethod.GET}) | |
| 110 | + public String toEdit(String orgId, Model model) { | |
| 111 | + Organizations org = organService.selectById(orgId); | |
| 112 | + model.addAttribute("org", org); | |
| 113 | + return "/organ/org_edit"; | |
| 114 | + } | |
| 144 | 115 | |
| 145 | - @RequestMapping(value = "/{id}/delete", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 146 | - @ResponseBody | |
| 147 | - public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) { | |
| 148 | - boolean tag = organService.deleteOrganById(id); | |
| 149 | - return handleAjaxResult(ajaxResult, tag, OperationName.DELETE); | |
| 150 | - } | |
| 151 | - | |
| 152 | - @ResponseBody | |
| 153 | - @RequestMapping(value = "/listOrgs/{orgids}", method = { RequestMethod.GET, RequestMethod.POST }) | |
| 116 | + /** | |
| 117 | + * <li>@Description:修改机构信息 | |
| 118 | + * <li>@param organizations | |
| 119 | + * <li>@param ajaxResult | |
| 120 | + * <li>@return | |
| 121 | + * <li>创建人:maliang | |
| 122 | + * <li>创建时间:2017年3月8日 | |
| 123 | + * <li>修改人: | |
| 124 | + * <li>修改时间: | |
| 125 | + */ | |
| 126 | + @ResponseBody | |
| 127 | + @RequestMapping(value = "/update", method = {RequestMethod.POST}) | |
| 128 | + public AjaxResult edit(Organizations organizations, AjaxResult ajaxResult) { | |
| 129 | + boolean tag = organService.updateOrg(organizations); | |
| 130 | + return handleAjaxResult(ajaxResult, tag, OperationName.UPDATE); | |
| 131 | + } | |
| 132 | + | |
| 133 | + /** | |
| 134 | + * <li>@Description:添加机构信息 | |
| 135 | + * <li>@param organizations | |
| 136 | + * <li>@param ajaxResult | |
| 137 | + * <li>@return | |
| 138 | + * <li>创建人:maliang | |
| 139 | + * <li>创建时间:2017年3月8日 | |
| 140 | + * <li>修改人: | |
| 141 | + * <li>修改时间: | |
| 142 | + */ | |
| 143 | + @ResponseBody | |
| 144 | + @RequestMapping(value = "/create", method = {RequestMethod.POST}) | |
| 145 | + public AjaxResult add(Organizations organizations, AjaxResult ajaxResult) { | |
| 146 | + boolean tag = organService.addOrg(organizations); | |
| 147 | + return handleAjaxResult(ajaxResult, tag, OperationName.CREATE); | |
| 148 | + } | |
| 149 | + | |
| 150 | + @RequestMapping(value = "/{id}/delete", method = {RequestMethod.GET, RequestMethod.POST}) | |
| 151 | + @ResponseBody | |
| 152 | + public AjaxResult delete(@PathVariable String id, AjaxResult ajaxResult) { | |
| 153 | + boolean tag = organService.deleteOrganById(id); | |
| 154 | + return handleAjaxResult(ajaxResult, tag, OperationName.DELETE); | |
| 155 | + } | |
| 156 | + | |
| 157 | + @ResponseBody | |
| 158 | + @RequestMapping(value = "/listOrgs/{orgids}", method = {RequestMethod.GET, RequestMethod.POST}) | |
| 154 | 159 | public Map<String, Object> listOrgs(@PathVariable String orgids) { |
| 155 | 160 | Page<Organizations> page = getPage(); |
| 156 | - if(StrUtils.isNotEmpty(orgids)){ | |
| 157 | - page = organService.listOrgs(page,orgids); | |
| 161 | + if (StrUtils.isNotEmpty(orgids)) { | |
| 162 | + page = organService.listOrgs(page, orgids); | |
| 158 | 163 | } |
| 159 | 164 | return toGridData(page); |
| 160 | 165 | } |
parent/center.manager/src/main/resources/rebel.xml
View file @
c915930
| ... | ... | @@ -2,13 +2,13 @@ |
| 2 | 2 | <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.zeroturnaround.com" xsi:schemaLocation="http://www.zeroturnaround.com http://www.zeroturnaround.com/alderaan/rebel-2_0.xsd"> |
| 3 | 3 | |
| 4 | 4 | <classpath> |
| 5 | - <dir name="D:/lyms_wrok/parent/parent/center.manager/target/classes"> | |
| 5 | + <dir name="D:/lyms_wrok/center/parent/center.manager/target/classes"> | |
| 6 | 6 | </dir> |
| 7 | 7 | </classpath> |
| 8 | 8 | |
| 9 | 9 | <web> |
| 10 | 10 | <link target="/"> |
| 11 | - <dir name="D:/lyms_wrok/parent/parent/center.manager/src/main/webapp"> | |
| 11 | + <dir name="D:/lyms_wrok/center/parent/center.manager/src/main/webapp"> | |
| 12 | 12 | </dir> |
| 13 | 13 | </link> |
| 14 | 14 | </web> |
parent/center.manager/src/main/webapp/WEB-INF/views/content/org_list.html
View file @
c915930
| ... | ... | @@ -66,7 +66,7 @@ |
| 66 | 66 | <script src="${ctx}/static/js/area.js"></script> |
| 67 | 67 | <script type="text/javascript"> |
| 68 | 68 | function allotContent(id) { |
| 69 | - fullWindow("功能", APP.PATH + controllerRequestMappint + "/toOrgOperate"); | |
| 69 | + fullWindow("功能", APP.PATH + controllerRequestMappint +id+"/toOrgOperate"); | |
| 70 | 70 | } |
| 71 | 71 | //初始信息 |
| 72 | 72 | get("", function (data) { |
parent/center.manager/src/main/webapp/WEB-INF/views/content/org_msg_edit.html
View file @
c915930
| 1 | +#override("css") | |
| 2 | +#end | |
| 3 | +#override("body") | |
| 4 | + | |
| 5 | + | |
| 6 | +<div class="ibox float-e-margins"> | |
| 7 | + <div class="ibox-content"> | |
| 8 | + <div class="col-sm-12"> | |
| 9 | + <form id="validForm" class="form-horizontal m-t" novalidate="novalidate"> | |
| 10 | + <div class="form-group"> | |
| 11 | + <label class="col-sm-2 control-label">医院名称:</label> | |
| 12 | + <div class="col-sm-9"> | |
| 13 | + <input type="text" name="hName" value="$!hName" disabled class="form-control"> | |
| 14 | + <input type="hidden" name="id" value="$!dmId" class="form-control"> | |
| 15 | + </div> | |
| 16 | + </div> | |
| 17 | + | |
| 18 | + <div class="form-group"> | |
| 19 | + <label class="col-sm-2 control-label">*短信内容:</label> | |
| 20 | + <div class="col-sm-9"> | |
| 21 | + <textarea class="form-control" rows="4" maxlength="128" cols="12" name="content" id="content" required placeholder="请输入短信内容">$!tempInfo.content</textarea> | |
| 22 | + </div> | |
| 23 | + </div> | |
| 24 | + <div class="form-group"> | |
| 25 | + <label class="col-sm-2 control-label">标签:</label><button type="button" onclick="addSeleTags()" class="glyphicon glyphicon-plus btn glyphicon btn-primary btn-sm"></button> | |
| 26 | + <div class="col-sm-9" id="seleTagArrs"> | |
| 27 | + </div> | |
| 28 | + </div> | |
| 29 | + | |
| 30 | + <div class="form-group"> | |
| 31 | + <label class="col-sm-2 control-label">图文指导:</label> | |
| 32 | + <div class="col-sm-9"> | |
| 33 | + <label class="checkbox-inline i-checks"> | |
| 34 | + <div class="icheckbox_square-green" style="position: relative;"> | |
| 35 | + <input type="checkbox" #if($!tempInfo.isRich==1) checked="checked" #end class="i-checks" id="multChe" style="position: absolute; opacity: 0;" > | |
| 36 | + </div> | |
| 37 | + </label> | |
| 38 | + </div> | |
| 39 | + <div class="form-group hidden" id="imageTitle"> | |
| 40 | + <label class="col-sm-2 control-label">标题:</label> | |
| 41 | + <div class="col-sm-9"> | |
| 42 | + <input type="text" name="richTitle" id="richTitle" value="$!tempInfo.richTitle" class="form-control" placeholder="请输入图文指导标题"> | |
| 43 | + </div> | |
| 44 | + </div> | |
| 45 | + <div class="form-group hidden" id="imageContext"> | |
| 46 | + <label class="col-sm-2 control-label">正文:</label> | |
| 47 | + <div class="col-sm-9"> | |
| 48 | + <script id="editor" name="richText" type="text/plain"></script> | |
| 49 | + </div> | |
| 50 | + </div> | |
| 51 | + <div class="hr-line-dashed"></div> | |
| 52 | + <div class="form-group"> | |
| 53 | + <div class="col-sm-7 col-sm-offset-3 pull-right"> | |
| 54 | + <button type="button" class="btn btn-primary" onclick="save();"><i class="fa fa-check"></i> 提交</button> | |
| 55 | + <button type="button" class="btn btn-white" onclick="parent.closeAll();"><i class="fa fa-close"></i> 取消</button> | |
| 56 | + </div> | |
| 57 | + </div> | |
| 58 | + </div> | |
| 59 | + </form> | |
| 60 | + </div> | |
| 61 | + </div> | |
| 62 | +</div> | |
| 63 | +#end | |
| 64 | +#extends("/common/base_list.html") | |
| 65 | +<script type="text/javascript" charset="utf-8" src="${ctx}/static/js/plugins/ueditor/ueditor.config.js"></script> | |
| 66 | +<script type="text/javascript" charset="utf-8" src="${ctx}/static/js/plugins/ueditor/ueditor.all.min.js"></script> | |
| 67 | +<script type="text/javascript" charset="utf-8" src="${ctx}/static/js/plugins/ueditor/lang/zh-cn/zh-cn.js"></script> | |
| 68 | +<script type="text/javascript"> | |
| 69 | + var seleTagNum = 1; | |
| 70 | + //var optionTagHtml = ""; | |
| 71 | + var tagsData; | |
| 72 | + | |
| 73 | + function addSeleTags(seleIds){ | |
| 74 | + var seleHtml = "<select id='select"+seleTagNum+"' style='width: 100%;height: 36px;' multiple data-selectator-keep-open='true'>"; | |
| 75 | + tagsData.forEach(function(d, i) { | |
| 76 | + seleHtml += "<option"; | |
| 77 | + if(seleIds!=null) { | |
| 78 | + for(t in seleIds){ | |
| 79 | + if(seleIds[t]!=""){ | |
| 80 | + if (d.id == seleIds[t]) { | |
| 81 | + seleHtml += ' selected '; | |
| 82 | + } | |
| 83 | + } | |
| 84 | + } | |
| 85 | + } | |
| 86 | + seleHtml += " value='"+d.id+"'>" + d.tagName + "</option>"; | |
| 87 | + }); | |
| 88 | + seleHtml+="</select>"; | |
| 89 | + $("#seleTagArrs").append(seleHtml); | |
| 90 | + $('#select'+seleTagNum).selectator({ | |
| 91 | + prefix : 'selectator_', // CSS class prefix | |
| 92 | + height : '36', // auto or element | |
| 93 | + useDimmer : false, // dims the screen when option list is visible | |
| 94 | + useSearch : true, // if false, the search boxes are removed and | |
| 95 | + keepOpen : true, // if true, then the dropdown will not close when | |
| 96 | + showAllOptionsOnFocus : true, // shows all options if input box is empty | |
| 97 | + selectFirstOptionOnSearch : true, // selects the topmost option on every search | |
| 98 | + searchCallback : function(value) { | |
| 99 | + }, | |
| 100 | + labels : { | |
| 101 | + search : 'Search...' // Placeholder text in search box in single select box | |
| 102 | + } | |
| 103 | + }); | |
| 104 | + //ID累计 | |
| 105 | + seleTagNum++; | |
| 106 | + } | |
| 107 | + | |
| 108 | + function initTagsData(){ | |
| 109 | + $.get("${ctx}/contentTags/seleList", "json", function(data) { | |
| 110 | + if (data.success) { | |
| 111 | + tagsData = data.data; | |
| 112 | + initSeleTags(); | |
| 113 | + } | |
| 114 | + }); | |
| 115 | + } | |
| 116 | + | |
| 117 | + $('#multChe').on('ifClicked', function (event) { | |
| 118 | + $("#imageTitle").toggleClass("hidden"); | |
| 119 | + $("#imageContext").toggleClass("hidden"); | |
| 120 | + $("#imageTitle").toggleClass("show"); | |
| 121 | + $("#imageContext").toggleClass("show"); | |
| 122 | + //初始化富文本 | |
| 123 | + var ue = UE.getEditor('editor',{initialFrameHeight:200,initialFrameWidth:"100%" }); | |
| 124 | + }); | |
| 125 | + | |
| 126 | + function initSeleTags(){ | |
| 127 | + if("$!tags" != "" && "$!tags" != "[]"){ | |
| 128 | + #foreach($tg in $tags) | |
| 129 | + //alert("${tg.tagsIds}".split(",")); | |
| 130 | + addSeleTags("${tg.tagsIds}".split(",")); | |
| 131 | + #end | |
| 132 | + }else{ | |
| 133 | + //默认一个选择标签 | |
| 134 | + addSeleTags(); | |
| 135 | + } | |
| 136 | + } | |
| 137 | + | |
| 138 | + | |
| 139 | + $(function(){ | |
| 140 | + initTagsData(); | |
| 141 | + if("$!dmId"!=""&&"$!tempInfo.isRich"==1){ | |
| 142 | + $("#imageTitle").toggleClass("hidden"); | |
| 143 | + $("#imageContext").toggleClass("hidden"); | |
| 144 | + $("#imageTitle").toggleClass("show"); | |
| 145 | + $("#imageContext").toggleClass("show"); | |
| 146 | + var ue = UE.getEditor('editor',{initialFrameHeight:200,initialFrameWidth:"100%" }); | |
| 147 | + ue.ready(function(){ | |
| 148 | + //设置编辑器的内容 | |
| 149 | + ue.setContent('$!tempInfo.richText'); | |
| 150 | + }); | |
| 151 | + } | |
| 152 | + }); | |
| 153 | + | |
| 154 | + function save(){ | |
| 155 | + if($('#validForm').valid()){ | |
| 156 | + var data = $('#validForm').serialize(); | |
| 157 | + if($("#multChe:checked").val() == "on"){//图文指导 | |
| 158 | + data+="&isRich=1"; | |
| 159 | + }else{ | |
| 160 | + data+="&isRich=0"; | |
| 161 | + } | |
| 162 | + for(var i=1;i<seleTagNum;i++){ | |
| 163 | + data+="&contentTagIds["+(i-1)+"]=,"+$("#select"+i).val()+","; | |
| 164 | + } | |
| 165 | + ajaxPost(APP.PATH + "/contentDoctorMessage/update",data,function (r) { | |
| 166 | + msg(r.message); | |
| 167 | + parent.showMessageList();//关闭弹窗 | |
| 168 | + }); | |
| 169 | + | |
| 170 | +// $('#validForm')[0].reset(); | |
| 171 | +// UE.getEditor('editor').setContent(""); | |
| 172 | + } | |
| 173 | + } | |
| 174 | +</script> |
parent/center.manager/src/main/webapp/WEB-INF/views/content/org_operate.html
View file @
c915930
| 1 | 1 | #override("body") |
| 2 | 2 | <div class="wrapper wrapper-content"> |
| 3 | - <div class="panel panel-default"> | |
| 4 | - <div class="panel-body"> | |
| 5 | - <h2>医院名称</h2> | |
| 6 | - </div> | |
| 7 | - </div> | |
| 8 | 3 | <div class="row"> |
| 9 | 4 | <div class="col-sm-3"> |
| 10 | 5 | <div class="ibox float-e-margins"> |
| ... | ... | @@ -19,7 +14,7 @@ |
| 19 | 14 | <li onclick='showMessageList()' class='list-group-item col-sm-9'>儿童保健</li> |
| 20 | 15 | <li onclick='showMessageList()' class='list-group-item col-sm-9'>孕妇学校</li> |
| 21 | 16 | <li onclick='showMessageList()' class='list-group-item col-sm-9'>床位预约</li> |
| 22 | - <li onclick='showMessageList()' class='list-group-item col-sm-9'>短信内容设置</li> | |
| 17 | + <li onclick='showMessageList()' class='col-sm-9 btn btn-w-m btn-primary'>短信内容设置</li> | |
| 23 | 18 | </ul> |
| 24 | 19 | <div class="clearfix"></div> |
| 25 | 20 | </div> |
| 26 | 21 | |
| 27 | 22 | |
| 28 | 23 | |
| 29 | 24 | |
| 30 | 25 | |
| 31 | 26 | |
| 32 | 27 | |
| ... | ... | @@ -28,49 +23,72 @@ |
| 28 | 23 | </div> |
| 29 | 24 | <div class="col-sm-9 animated fadeInRight"> |
| 30 | 25 | <div class="panel panel-default"> |
| 31 | - <div class="panel-body"> | |
| 32 | - <label>版本:</label><label id="version">加载中</label><label style="margin-left: 80px;"> | |
| 33 | - <!-- 当前状态:</label><label id="status">未更改</label> --> | |
| 34 | - <input type="hidden" value="" id="verId"> | |
| 26 | + <div class="panel-heading"> | |
| 27 | + <label><h3 class="panel-title">短信内容设置</h3></label> | |
| 35 | 28 | </div> |
| 29 | + <div class="panel-body" id="showVer"> | |
| 30 | + <label>短信基础版本选择 : <span id="verName"></span></label> <a | |
| 31 | + href="javascript:changeVer()">更改</a> | |
| 32 | + </div> | |
| 33 | + | |
| 34 | + <div class="panel-body row hidden" id="dataVer"> | |
| 35 | + <div class="col-sm-12"> | |
| 36 | + <form class="form-inline"> | |
| 37 | + <div class="col-sm-4"> | |
| 38 | + <div class="form-group"> | |
| 39 | + <label for="tagsIds"> 短信基础版本选择:</label> | |
| 40 | + <select class="form-control" id="tempVerId" style="width: 195px"> | |
| 41 | + </select> | |
| 42 | + </div> | |
| 43 | + </div> | |
| 44 | + <div class="col-sm-8"> | |
| 45 | + <div class="form-group" onclick="confirmVer();"> | |
| 46 | + <a class="btn btn-primary" href="javascript:configVer()">确定</a> | |
| 47 | + </div> | |
| 48 | + </div> | |
| 49 | + </form> | |
| 50 | + </div> | |
| 51 | + </div> | |
| 36 | 52 | </div> |
| 37 | 53 | |
| 38 | 54 | <div class="ibox float-e-margins"> |
| 39 | 55 | <div class="row wrapper border-bottom white-bg page-heading"> |
| 40 | 56 | <div class="col-sm-10"> |
| 41 | - <div style="padding-top:30px;"> | |
| 57 | + <div> | |
| 42 | 58 | <form role="form" class="form-inline"> |
| 43 | - <div class="form-group"> | |
| 44 | - <label for="msgContent">短信内容:</label> | |
| 45 | - <input type="text" class="form-control" id="msgContent" placeholder="短信内容"> | |
| 59 | + <div class="row"> | |
| 60 | + <div class="col-sm-4"> | |
| 61 | + <div class="form-group"> | |
| 62 | + <label for="content">短信内容:</label> | |
| 63 | + <input type="text" class="form-control" id="content" placeholder="短信内容"> | |
| 64 | + </div> | |
| 65 | + </div> | |
| 66 | + <div class="col-sm-4"> | |
| 67 | + <div class="form-group"> | |
| 68 | + <label for="tagsIds">标签:</label> | |
| 69 | + <select class="form-control" id="tagsIds" style="width: 195px"> | |
| 70 | + </select> | |
| 71 | + </div> | |
| 72 | + </div> | |
| 73 | + <div class="col-sm-2"> | |
| 74 | + <div class="form-group" onclick="search();"> | |
| 75 | + <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a> | |
| 76 | + </div> | |
| 77 | + </div> | |
| 46 | 78 | </div> |
| 47 | - <div class="form-group" style="margin-left: 20px;display: none;"> | |
| 48 | - <label>标签:</label> | |
| 49 | - <select class="form-control m-b" id="searchTags" style="margin-bottom: 0;"> | |
| 50 | - </select> | |
| 79 | + <div> | |
| 80 | + <button class="btn btn-info" type="button" onclick="add();"><i | |
| 81 | + class="fa fa-plus"></i> | |
| 82 | + 新增 | |
| 83 | + </button> | |
| 51 | 84 | </div> |
| 52 | - | |
| 53 | 85 | </form> |
| 54 | 86 | </div> |
| 55 | 87 | </div> |
| 56 | - <div class="col-sm-2"> | |
| 57 | - <div class="title-action" onclick="search();"> | |
| 58 | - <a class="btn btn-primary"><i class="fa fa-search"></i> 查询</a> | |
| 59 | - </div> | |
| 60 | - </div> | |
| 61 | 88 | </div> |
| 62 | 89 | <div class="wrapper wrapper-content"> |
| 63 | 90 | <div class="row"> |
| 64 | 91 | <div class="col-sm-12"> |
| 65 | - <div id="toolbar"> | |
| 66 | - <button class="btn btn-info " type="button" onclick="add();"><i class="fa fa-plus"></i> | |
| 67 | - 新增 | |
| 68 | - </button> | |
| 69 | - <!--<button class="btn btn-info " type="button" onclick="edit();"><i class="fa fa-paste"></i> 编辑</button>--> | |
| 70 | - <button class="btn btn-info " type="button" onclick="del();"><i class="fa fa-trash"></i> | |
| 71 | - 删除 | |
| 72 | - </button> | |
| 73 | - </div> | |
| 74 | 92 | <table id="dataTable"></table> |
| 75 | 93 | </div> |
| 76 | 94 | </div> |
| ... | ... | @@ -78,6 +96,154 @@ |
| 78 | 96 | |
| 79 | 97 | </div> |
| 80 | 98 | </div> |
| 99 | + #end | |
| 100 | + #override("js") | |
| 101 | + <script type="text/javascript"> | |
| 102 | + var controllerRequestMappint = "/contentDoctorMessage/"; | |
| 103 | + | |
| 104 | + function showMessageList() { | |
| 105 | + layer.closeAll();//关闭弹窗 | |
| 106 | + var queryParams = { | |
| 107 | + query: { | |
| 108 | + content: $("#content").val(), | |
| 109 | + tagsIds: $("#tagsIds").val() | |
| 110 | + } | |
| 111 | + } | |
| 112 | + $('#dataTable').bootstrapTable('refresh', queryParams); | |
| 113 | + } | |
| 114 | + | |
| 115 | + function changeVer() { | |
| 116 | + $("#showVer").hide(); | |
| 117 | + $("#dataVer").removeClass("hidden"); | |
| 118 | + } | |
| 119 | + | |
| 120 | + function configVer() { | |
| 121 | + var verId = $("#tempVerId option:selected").val(); | |
| 122 | + | |
| 123 | + //发起Ajax进行修改 | |
| 124 | +// alert(verId); | |
| 125 | + $.post(controllerRequestMappint + "configrTempVer", "hosptId=$hospId&tvId=" + verId, function (data) { | |
| 126 | + alert(JSON.stringify(data)); | |
| 127 | + }, "json"); | |
| 128 | + | |
| 129 | + $("#showVer").show(); | |
| 130 | + $("#dataVer").addClass("hidden"); | |
| 131 | + } | |
| 132 | + | |
| 133 | + function initTempVer() { | |
| 134 | + $.get("/contentTemplateVersion/list", "json", function (data) { | |
| 135 | + if (data) { | |
| 136 | + var optionTagHtml = "<option>未选择</option>"; | |
| 137 | + data.forEach(function (i, d) { | |
| 138 | + optionTagHtml += '<option value="' + i.id + '">' + i.versionName + '</option>'; | |
| 139 | + }); | |
| 140 | + $("#tempVerId").append(optionTagHtml); | |
| 141 | + } | |
| 142 | + }) | |
| 143 | + } | |
| 144 | + | |
| 145 | + function initHouspVer() { | |
| 146 | + $.get(controllerRequestMappint + "/$hospId/getVersion", "json", function (data) { | |
| 147 | + if (data.success) { | |
| 148 | + $("#verName").append(data.data); | |
| 149 | + } | |
| 150 | + }); | |
| 151 | + } | |
| 152 | + | |
| 153 | + function search() { | |
| 154 | + var queryParams = { | |
| 155 | + query: { | |
| 156 | + content: $("#content").val(), | |
| 157 | + tagsIds: $("#tagsIds").val() | |
| 158 | + } | |
| 159 | + } | |
| 160 | + $('#dataTable').bootstrapTable('refresh', queryParams); | |
| 161 | + } | |
| 162 | + | |
| 163 | + function initTagsData() { | |
| 164 | + $.get("${ctx}/contentTags/seleList", "json", function (data) { | |
| 165 | + if (data.success) { | |
| 166 | + var optionTagHtml = "<option value=''>全部</option>"; | |
| 167 | + data.data.forEach(function (d, i) { | |
| 168 | + optionTagHtml += '<option value="' + d.id + '">' + d.tagName + '</option>'; | |
| 169 | + }); | |
| 170 | + $("#tagsIds").append(optionTagHtml); | |
| 171 | + } | |
| 172 | + }); | |
| 173 | + } | |
| 174 | + | |
| 175 | + function initMsgTab() { | |
| 176 | + $('#dataTable').bootstrapTable({ | |
| 177 | + url: '${ctx}/contentDoctorMessage/list?doctorId=$hospId', //请求后台的URL(*) | |
| 178 | + method: 'get', //请求方式(*) | |
| 179 | + striped: true, //是否显示行间隔色 | |
| 180 | + pagination: true, | |
| 181 | + cache: false, //是否使用缓存,默认为true,所以一般情况下需要设置一下这个属性(*) | |
| 182 | + sortable: false, //是否启用排序 | |
| 183 | + sidePagination: "server", //分页方式:client客户端分页,server服务端分页(*) | |
| 184 | + pageNumber: 1, //初始化加载第一页,默认第一页 | |
| 185 | + pageSize: 10, //每页的记录行数(*) | |
| 186 | + pageList: [200], //可供选择的每页的行数(*) | |
| 187 | + strictSearch: true, | |
| 188 | + onDblClickRow: function (row, ev) { | |
| 189 | + popWindow("修改信息", APP.PATH + controllerRequestMappint + row.id + "/toEdit?hName=", 850, 800); | |
| 190 | + }, | |
| 191 | + queryParams: function (params) { | |
| 192 | + return { | |
| 193 | + _size: params.limit, //每页记录数 | |
| 194 | + _offset: params.offset, //偏移量 | |
| 195 | + }; | |
| 196 | + }, | |
| 197 | + clickToSelect: true, //是否启用点击选中行 | |
| 198 | + //height: 600, //行高,如果没有设置height属性,表格自动根据记录条数觉得表格高度 | |
| 199 | + uniqueId: "id", //每一行的唯一标识,一般为主键列 | |
| 200 | + cardView: false, //是否显示详细视图 | |
| 201 | + detailView: false, //是否显示父子表 | |
| 202 | + columns: [{ | |
| 203 | + field: 'content', | |
| 204 | + title: '短信内容', | |
| 205 | + width: "50%" | |
| 206 | + }, { | |
| 207 | + field: 'contentTagIds', | |
| 208 | + title: '标签', | |
| 209 | + width: "30%", | |
| 210 | + formatter: function (value, row, index) { | |
| 211 | + var tagsNames = value.split(","); | |
| 212 | + var tagsHtml = ""; | |
| 213 | + for (var i = 0; i < tagsNames.length; i++) { | |
| 214 | + if ((i + 1) % 5 == 1) { | |
| 215 | + tagsHtml += '<span class="badge badge-primary" style="margin: 3px;">' + tagsNames[i] + '</span>'; | |
| 216 | + } else if ((i + 1) % 5 == 2) { | |
| 217 | + tagsHtml += '<span class="badge label-info" style="margin: 3px;">' + tagsNames[i] + '</span>'; | |
| 218 | + } else if ((i + 1) % 5 == 3) { | |
| 219 | + tagsHtml += '<span class="badge label-success" style="margin: 3px;">' + tagsNames[i] + '</span>'; | |
| 220 | + } else if ((i + 1) % 5 == 4) { | |
| 221 | + tagsHtml += '<span class="badge label-warning" style="margin: 3px;">' + tagsNames[i] + '</span>'; | |
| 222 | + } else { | |
| 223 | + tagsHtml += '<span class="badge label-danger" style="margin: 3px;">' + tagsNames[i] + '</span>'; | |
| 224 | + } | |
| 225 | + } | |
| 226 | + return tagsHtml; | |
| 227 | + } | |
| 228 | + }, { | |
| 229 | + field: 'id', | |
| 230 | + title: '操作', | |
| 231 | + width: "20%", | |
| 232 | + formatter: function (value, row, index) { | |
| 233 | + return "<button class='btn btn-sm btn-success m-r-xs'>修改</button><button class='btn btn-sm btn-danger m-r-xs'>删除</button>"; | |
| 234 | + } | |
| 235 | + }] | |
| 236 | + }); | |
| 237 | + } | |
| 238 | + | |
| 239 | + $(function () { | |
| 240 | + initTagsData(); | |
| 241 | + initMsgTab(); | |
| 242 | + initHouspVer(); | |
| 243 | + initTempVer(); | |
| 244 | + }); | |
| 245 | + </script> | |
| 246 | + | |
| 81 | 247 | #end |
| 82 | 248 | #extends("/common/base_list.html") |
parent/hospital.web/src/test/java/test/hospital/Test.java
View file @
c915930
| 1 | 1 | package test.hospital; |
| 2 | 2 | |
| 3 | -import com.lyms.base.common.utils.ConverUtils; | |
| 3 | +import java.util.Scanner; | |
| 4 | 4 | |
| 5 | 5 | public class Test { |
| 6 | 6 | |
| 7 | - public static void main(String[] args) { | |
| 8 | - System.out.println(123123123); | |
| 9 | - ConverUtils conver = ConverUtils.build(); | |
| 10 | - String str = conver.set(0, "你好").converBase64Str(); | |
| 11 | - System.out.println(str); | |
| 12 | - conver.conver(str); | |
| 13 | - System.out.println(conver.get(0)); | |
| 7 | + public static void main(String[] args) { | |
| 8 | + // System.out.println(123123123); | |
| 9 | + // ConverUtils conver = ConverUtils.build(); | |
| 10 | + // String str = conver.set(0, "你好").converBase64Str(); | |
| 11 | + // System.out.println(str); | |
| 12 | + // conver.conver(str); | |
| 13 | + // System.out.println(conver.get(0)); | |
| 14 | + // | |
| 15 | + // System.out.println(String.format("%s", "hello")); | |
| 16 | + // System.out.println(String.format("{0}", "fd")); | |
| 14 | 17 | |
| 15 | - System.out.println(String.format("%s", "hello")); | |
| 16 | - System.out.println(String.format("{0}", "fd")); | |
| 18 | + fun(); | |
| 17 | 19 | |
| 18 | - } | |
| 20 | + } | |
| 19 | 21 | |
| 20 | - // 创建 | |
| 21 | - static class BitArray { | |
| 22 | - | |
| 23 | - } | |
| 24 | - | |
| 22 | + public static void fun() { | |
| 23 | + Scanner input = new Scanner(System.in); | |
| 24 | + int score[] = new int[5]; | |
| 25 | + for (int i = 0; i < score.length; i++) { | |
| 26 | + while (true) { | |
| 27 | + System.out.print("请输入第" + (i + 1) + "个学生成绩"); | |
| 28 | + score[i] = input.nextInt(); | |
| 29 | + if (score[i] < 0 | score[i] > 100) { | |
| 30 | + System.out.println("输入错误,请重新输入0-100之间的整数"); | |
| 31 | + continue; | |
| 32 | + } else { | |
| 33 | + break; | |
| 34 | + } | |
| 35 | + } | |
| 36 | + } | |
| 37 | + } | |
| 25 | 38 | } |
parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java
View file @
c915930
| ... | ... | @@ -47,7 +47,7 @@ |
| 47 | 47 | |
| 48 | 48 | // strategy.setInclude(new String[] { |
| 49 | 49 | // "SYS_USERS","SYS_USER_ROLE_MAPS","SYS_ROLES" }); // 需要生成的表 |
| 50 | - strategy.setInclude(new String[] { "HOSPITAL_MESSAGE_TAGS"}); // 需要生成的表 | |
| 50 | + strategy.setInclude(new String[] { "CONTENT_DOCTOR_MESSAGE"}); // 需要生成的表 | |
| 51 | 51 | pc.setParent("com.lyms.base.common"); |
| 52 | 52 | // pc.setParent("com.lyms.base.common"); |
| 53 | 53 |