diff --git a/power-admin/src/main/java/com/manage/controller/LoginController.java b/power-admin/src/main/java/com/manage/controller/LoginController.java index dc85f37..9f32259 100644 --- a/power-admin/src/main/java/com/manage/controller/LoginController.java +++ b/power-admin/src/main/java/com/manage/controller/LoginController.java @@ -1,6 +1,7 @@ package com.manage.controller; import com.alibaba.fastjson.JSON; +import com.manage.dao.Power_Login_SetMapper; import com.manage.encrypt.Base64; import com.manage.encrypt.MD5; import com.manage.entity.*; @@ -14,6 +15,7 @@ import org.springframework.beans.BeanUtils; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Value; import org.springframework.stereotype.Controller; +import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseBody; @@ -36,11 +38,15 @@ public class LoginController { private LogService logService; @Autowired private Power_DeptService power_deptService; + @Autowired + private Power_Login_SetMapper powerLoginSetMapper; @RequestMapping(value = "login",method = RequestMethod.GET) - public String toLogin(){ + public String toLogin(Model model){ + Power_Login_Set loginSet = powerLoginSetMapper.selectByPrimaryKey(1); + model.addAttribute("loginSet",loginSet); CacheManager.addExcCount("noExc"); - return "loginDir/login174"; + return "loginDir/login"; } @RequestMapping(value = "login",method = RequestMethod.POST) @@ -143,7 +149,7 @@ public class LoginController { e.printStackTrace(); CacheManager.addExcCount("exc"); } - return "loginDir/login174"; + return "loginDir/login"; } @RequestMapping("refuse") public String refuse(){ diff --git a/power-admin/src/main/webapp/WEB-INF/views/loginDir/login.jsp b/power-admin/src/main/webapp/WEB-INF/views/loginDir/login.jsp index 97043bd..2c95be9 100644 --- a/power-admin/src/main/webapp/WEB-INF/views/loginDir/login.jsp +++ b/power-admin/src/main/webapp/WEB-INF/views/loginDir/login.jsp @@ -36,18 +36,22 @@
- 嘉时   病历无纸化归档管理系统
+ ${loginSet.context}
- + + +
-
-
+ +
+
+
@@ -75,7 +79,7 @@
-
技术支持:厦门嘉时软件科技有限公司
+
${loginSet.footContext}
diff --git a/power-admin/src/main/webapp/static/css/login.css b/power-admin/src/main/webapp/static/css/login.css index b1610fd..fc09b85 100644 --- a/power-admin/src/main/webapp/static/css/login.css +++ b/power-admin/src/main/webapp/static/css/login.css @@ -88,7 +88,7 @@ h3{ *头部左侧 */ .head_left{ - width:66%; + width:50%; height:100%; } /** @@ -103,8 +103,8 @@ h3{ *头部右侧 */ .head_right{ - padding-left: 107px; - width: 33%; + text-align: right; + width: 50%; height: 100%; padding-top: 28px; } diff --git a/power-admin/src/main/webapp/static/img/login/logo/gaoming.png b/power-admin/src/main/webapp/static/img/login/logo/gaoming.png new file mode 100644 index 0000000..62f597a Binary files /dev/null and b/power-admin/src/main/webapp/static/img/login/logo/gaoming.png differ diff --git a/power-admin/src/main/webapp/static/img/login/logo/yingde.png b/power-admin/src/main/webapp/static/img/login/logo/yingde.png new file mode 100644 index 0000000..d4b824d Binary files /dev/null and b/power-admin/src/main/webapp/static/img/login/logo/yingde.png differ diff --git a/power-admin/src/main/webapp/static/img/login/zhanjiang.png b/power-admin/src/main/webapp/static/img/login/logo/zhanjiang.png similarity index 100% rename from power-admin/src/main/webapp/static/img/login/zhanjiang.png rename to power-admin/src/main/webapp/static/img/login/logo/zhanjiang.png diff --git a/power-admin/src/main/webapp/static/img/login/yingde.png b/power-admin/src/main/webapp/static/img/login/yingde.png deleted file mode 100644 index f35ecf1..0000000 Binary files a/power-admin/src/main/webapp/static/img/login/yingde.png and /dev/null differ diff --git a/power-admin/src/main/webapp/static/img/login/²¡Àú²É¼¯.png b/power-admin/src/main/webapp/static/img/login/²¡Àú²É¼¯.png deleted file mode 100644 index 306ad9e..0000000 Binary files a/power-admin/src/main/webapp/static/img/login/²¡Àú²É¼¯.png and /dev/null differ diff --git a/power-admin/src/main/webapp/static/template/用户列表导入模板.xls b/power-admin/src/main/webapp/static/template/用户列表导入模板.xls index eb3ce4f..0a9b7cc 100644 Binary files a/power-admin/src/main/webapp/static/template/用户列表导入模板.xls and b/power-admin/src/main/webapp/static/template/用户列表导入模板.xls differ diff --git a/power-dao/src/main/java/com/manage/dao/Power_Login_SetMapper.java b/power-dao/src/main/java/com/manage/dao/Power_Login_SetMapper.java new file mode 100644 index 0000000..71dbecf --- /dev/null +++ b/power-dao/src/main/java/com/manage/dao/Power_Login_SetMapper.java @@ -0,0 +1,17 @@ +package com.manage.dao; + +import com.manage.entity.Power_Login_Set; + +public interface Power_Login_SetMapper { + int deleteByPrimaryKey(Integer id); + + int insert(Power_Login_Set record); + + int insertSelective(Power_Login_Set record); + + Power_Login_Set selectByPrimaryKey(Integer id); + + int updateByPrimaryKeySelective(Power_Login_Set record); + + int updateByPrimaryKey(Power_Login_Set record); +} \ No newline at end of file diff --git a/power-dao/src/main/java/com/manage/entity/Power_Login_Set.java b/power-dao/src/main/java/com/manage/entity/Power_Login_Set.java new file mode 100644 index 0000000..aafea37 --- /dev/null +++ b/power-dao/src/main/java/com/manage/entity/Power_Login_Set.java @@ -0,0 +1,73 @@ +package com.manage.entity; + +public class Power_Login_Set { + private Integer id; + + private String context; + + private String logoPath; + + private Integer logoWidth; + + private Integer logoHeight; + + private String pic1Path; + + private String footContext; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getContext() { + return context; + } + + public void setContext(String context) { + this.context = context == null ? null : context.trim(); + } + + public String getLogoPath() { + return logoPath; + } + + public void setLogoPath(String logoPath) { + this.logoPath = logoPath == null ? null : logoPath.trim(); + } + + public Integer getLogoWidth() { + return logoWidth; + } + + public void setLogoWidth(Integer logoWidth) { + this.logoWidth = logoWidth; + } + + public Integer getLogoHeight() { + return logoHeight; + } + + public void setLogoHeight(Integer logoHeight) { + this.logoHeight = logoHeight; + } + + public String getPic1Path() { + return pic1Path; + } + + public void setPic1Path(String pic1Path) { + this.pic1Path = pic1Path == null ? null : pic1Path.trim(); + } + + public String getFootContext() { + return footContext; + } + + public void setFootContext(String footContext) { + this.footContext = footContext == null ? null : footContext.trim(); + } +} \ No newline at end of file diff --git a/power-dao/src/main/resources/mapper/Power_Login_SetMapper.xml b/power-dao/src/main/resources/mapper/Power_Login_SetMapper.xml new file mode 100644 index 0000000..dec4576 --- /dev/null +++ b/power-dao/src/main/resources/mapper/Power_Login_SetMapper.xml @@ -0,0 +1,117 @@ + + + + + + + + + + + + + + id, context, logo_path, logo_width, logo_height, pic1_path, foot_context + + + + delete from power_login_set + where id = #{id,jdbcType=INTEGER} + + + insert into power_login_set (id, context, logo_path, + logo_width, logo_height, pic1_path, + foot_context) + values (#{id,jdbcType=INTEGER}, #{context,jdbcType=VARCHAR}, #{logoPath,jdbcType=VARCHAR}, + #{logoWidth,jdbcType=INTEGER}, #{logoHeight,jdbcType=INTEGER}, #{pic1Path,jdbcType=VARCHAR}, + #{footContext,jdbcType=VARCHAR}) + + + insert into power_login_set + + + id, + + + context, + + + logo_path, + + + logo_width, + + + logo_height, + + + pic1_path, + + + foot_context, + + + + + #{id,jdbcType=INTEGER}, + + + #{context,jdbcType=VARCHAR}, + + + #{logoPath,jdbcType=VARCHAR}, + + + #{logoWidth,jdbcType=INTEGER}, + + + #{logoHeight,jdbcType=INTEGER}, + + + #{pic1Path,jdbcType=VARCHAR}, + + + #{footContext,jdbcType=VARCHAR}, + + + + + update power_login_set + + + context = #{context,jdbcType=VARCHAR}, + + + logo_path = #{logoPath,jdbcType=VARCHAR}, + + + logo_width = #{logoWidth,jdbcType=INTEGER}, + + + logo_height = #{logoHeight,jdbcType=INTEGER}, + + + pic1_path = #{pic1Path,jdbcType=VARCHAR}, + + + foot_context = #{footContext,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update power_login_set + set context = #{context,jdbcType=VARCHAR}, + logo_path = #{logoPath,jdbcType=VARCHAR}, + logo_width = #{logoWidth,jdbcType=INTEGER}, + logo_height = #{logoHeight,jdbcType=INTEGER}, + pic1_path = #{pic1Path,jdbcType=VARCHAR}, + foot_context = #{footContext,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/power-service/src/main/java/com/manage/service/User_Dept_MenuService.java b/power-service/src/main/java/com/manage/service/User_Dept_MenuService.java index 1623f39..9845987 100644 --- a/power-service/src/main/java/com/manage/service/User_Dept_MenuService.java +++ b/power-service/src/main/java/com/manage/service/User_Dept_MenuService.java @@ -8,6 +8,4 @@ import java.util.List; public interface User_Dept_MenuService { List selectAll(String userName,String sysFlag,Integer userId,Integer roleId, Integer sysId,Integer hospitalId); - - List selectAllMenusByUserIdAndSysFlag(Integer userId,String sysFlag); } diff --git a/power-service/src/main/java/com/manage/service/ipml/User_Dept_MenuServiceImpl.java b/power-service/src/main/java/com/manage/service/ipml/User_Dept_MenuServiceImpl.java index 36ed622..658c1c5 100644 --- a/power-service/src/main/java/com/manage/service/ipml/User_Dept_MenuServiceImpl.java +++ b/power-service/src/main/java/com/manage/service/ipml/User_Dept_MenuServiceImpl.java @@ -36,9 +36,4 @@ public class User_Dept_MenuServiceImpl implements User_Dept_MenuService { return userDeptMenuMapper.selectAll(userName, sysFlag, userId, roleId, sysId, hospitalId); } } - - @Override - public List selectAllMenusByUserIdAndSysFlag(Integer userId, String sysFlag) { - return userDeptMenuMapper.selectAllMenusByUserIdAndSysFlag(userId, sysFlag); - } }