diff --git a/parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.java b/parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.java new file mode 100644 index 0000000..d2834fe --- /dev/null +++ b/parent/base.common/src/main/java/com/lyms/base/common/dao/content/HospitalMessageVersionMapper.java @@ -0,0 +1,20 @@ +package com.lyms.base.common.dao.content; + +import com.lyms.base.common.entity.content.HospitalMessageVersion; +import com.baomidou.mybatisplus.mapper.BaseMapper; +import org.springframework.stereotype.Repository; +import java.io.Serializable; +/** + *
+ * Mapper接口 + *
+ * + * @author yangfei + * @since 2017-05-31 + */ +@Repository +public interface HospitalMessageVersionMapper extends BaseMapper+ * + *
+ * + * @author yangfei + * @since 2017-05-31 + */ +@TableName("HOSPITAL_MESSAGE_VERSION") +public class HospitalMessageVersion implements Serializable { + + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + @TableField(value="ID") + private String id; + /** + * 消息模板版本id + */ + @TableField(value="TV_ID") + private String tvId; + /** + * 医院id + */ + @TableField(value="HOSPITAL") + private String hospital; + /** + * 创建时间 + */ + @TableField(value="CREATE_TIME") + private Date createTime; + /** + * 创建人ID + */ + @TableField(value="CREATE_ID") + private String createId; + /** + * 创建人名称 + */ + @TableField(value="CREATE_NAME") + private String createName; + /** + * 修改人ID + */ + @TableField(value="MODIFY_ID") + private String modifyId; + /** + * 修改人名称 + */ + @TableField(value="MODIFY_NAME") + private String modifyName; + /** + * 最后修改时间 + */ + @TableField(value="MODIFY_TIME") + private Date modifyTime; + /** + * 是否删除 + */ + @TableField(value="IFDEL") + private Integer ifdel; + /** + * 是否启用 + */ + @TableField(value="ENABLE") + private Integer enable; + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public String getTvId() { + return tvId; + } + + public void setTvId(String tvId) { + this.tvId = tvId; + } + + public String getHospital() { + return hospital; + } + + public void setHospital(String hospital) { + this.hospital = hospital; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public String getCreateId() { + return createId; + } + + public void setCreateId(String createId) { + this.createId = createId; + } + + public String getCreateName() { + return createName; + } + + public void setCreateName(String createName) { + this.createName = createName; + } + + public String getModifyId() { + return modifyId; + } + + public void setModifyId(String modifyId) { + this.modifyId = modifyId; + } + + public String getModifyName() { + return modifyName; + } + + public void setModifyName(String modifyName) { + this.modifyName = modifyName; + } + + public Date getModifyTime() { + return modifyTime; + } + + public void setModifyTime(Date modifyTime) { + this.modifyTime = modifyTime; + } + + public Integer getIfdel() { + return ifdel; + } + + public void setIfdel(Integer ifdel) { + this.ifdel = ifdel; + } + + public Integer getEnable() { + return enable; + } + + public void setEnable(Integer enable) { + this.enable = enable; + } + +} diff --git a/parent/base.common/src/main/java/com/lyms/base/common/service/content/HospitalMessageVersionService.java b/parent/base.common/src/main/java/com/lyms/base/common/service/content/HospitalMessageVersionService.java new file mode 100644 index 0000000..4547446 --- /dev/null +++ b/parent/base.common/src/main/java/com/lyms/base/common/service/content/HospitalMessageVersionService.java @@ -0,0 +1,24 @@ +package com.lyms.base.common.service.content; + +import com.lyms.base.common.entity.content.HospitalMessageVersion; +import com.lyms.web.service.BaseService; +import java.io.Serializable; + +/** + *+ * 服务类 + *
+ * + * @author yangfei + * @since 2017-05-31 + */ +public interface HospitalMessageVersionService extends BaseService+ * 服务实现类 + *
+ * + * @author yangfei + * @since 2017-05-31 + */ +@Service +public class HospitalMessageVersionServiceImpl extends ServiceImpl+ * 前端控制器 + *
+ * + * @author yangfei + * @since 2017-05-31 + */ +@Controller +@RequestMapping("/hospitalMessageVersion") +public class HospitalMessageVersionController extends BaseController { + +} diff --git a/parent/center.manager/src/main/java/com/lyms/cm/controller/content/OrganizMessageController.java b/parent/center.manager/src/main/java/com/lyms/cm/controller/content/OrganizMessageController.java index 545b4be..a6ad0bf 100644 --- a/parent/center.manager/src/main/java/com/lyms/cm/controller/content/OrganizMessageController.java +++ b/parent/center.manager/src/main/java/com/lyms/cm/controller/content/OrganizMessageController.java @@ -6,7 +6,7 @@ import org.springframework.web.bind.annotation.RequestMapping; /** * @auther yangfei - * @createTime 20170527 16ʱ38 + * @createTime 2017??05??27?? 16?38?? * @discription */ @Controller @@ -17,4 +17,4 @@ public class OrganizMessageController extends BaseController { public String toOrgan() { return "/content/org_list"; } -} +} \ No newline at end of file diff --git a/parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java b/parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java index c81ac92..7b8ad19 100644 --- a/parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java +++ b/parent/mybatis-plus/src/test/java/com/baomidou/mybatisplus/test/generator/MysqlGenerator.java @@ -1,35 +1,34 @@ -/** - * Copyright (c) 2011-2016, hubin (jobob@qq.com). - * - * Licensed under the Apache License, Version 2.0 (the "License"); you may not - * use this file except in compliance with the License. You may obtain a copy of - * the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT - * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the - * License for the specific language governing permissions and limitations under - * the License. - */ -package com.baomidou.mybatisplus.test.generator; - -import java.util.HashMap; -import java.util.Map; - -import org.junit.Test; - -import com.baomidou.mybatisplus.generator.AutoGenerator; -import com.baomidou.mybatisplus.generator.InjectionConfig; -import com.baomidou.mybatisplus.generator.config.DataSourceConfig; -import com.baomidou.mybatisplus.generator.config.GlobalConfig; -import com.baomidou.mybatisplus.generator.config.PackageConfig; -import com.baomidou.mybatisplus.generator.config.StrategyConfig; -import com.baomidou.mybatisplus.generator.config.rules.DbType; -import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; -import com.baomidou.mybatisplus.mapper.EntityWrapper; - +/** + * Copyright (c) 2011-2016, hubin (jobob@qq.com). + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may not + * use this file except in compliance with the License. You may obtain a copy of + * the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations under + * the License. + */ +package com.baomidou.mybatisplus.test.generator; + +import com.baomidou.mybatisplus.generator.AutoGenerator; +import com.baomidou.mybatisplus.generator.InjectionConfig; +import com.baomidou.mybatisplus.generator.config.DataSourceConfig; +import com.baomidou.mybatisplus.generator.config.GlobalConfig; +import com.baomidou.mybatisplus.generator.config.PackageConfig; +import com.baomidou.mybatisplus.generator.config.StrategyConfig; +import com.baomidou.mybatisplus.generator.config.rules.DbType; +import com.baomidou.mybatisplus.generator.config.rules.NamingStrategy; +import com.baomidou.mybatisplus.mapper.EntityWrapper; +import org.junit.Test; + +import java.util.HashMap; +import java.util.Map; + /** ** 代码生成器演示 @@ -44,16 +43,16 @@ public class MysqlGenerator { private static void customSet(GlobalConfig gc, StrategyConfig strategy, PackageConfig pc) { gc.setOutputDir("D://mybatis-plus-generate"); - gc.setAuthor("fangcheng"); + gc.setAuthor("yangfei"); // strategy.setInclude(new String[] { // "SYS_USERS","SYS_USER_ROLE_MAPS","SYS_ROLES" }); // 需要生成的表 - strategy.setInclude(new String[] { "ASSAY_SOURCE","ASSAY_SOURCE_CONF","ASSAY_CUSTOMER_CONF"}); // 需要生成的表 + strategy.setInclude(new String[] { "HOSPITAL_MESSAGE_VERSION"}); // 需要生成的表 pc.setParent("com.lyms.base.common"); // pc.setParent("com.lyms.base.common"); // 加在controller后面 - pc.setFunctionName("conf"); // com.lyms.hospital.web.controller.sys + pc.setFunctionName("content"); // com.lyms.hospital.web.controller.sys // pc.setModuleName("sys"); //com.lyms.hospital.sys.controller // 加在controller前面