Pārlūkot izejas kodu

删除没用的shrio框架

chenweida 7 gadi atpakaļ
vecāks
revīzija
a6df2a1e98
30 mainītis faili ar 174 papildinājumiem un 589 dzēšanām
  1. 0 11
      patient-co-wlyy/pom.xml
  2. 0 2
      patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/hospital/HospitalService.java
  3. 17 2
      patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/statistics/StatisticsService.java
  4. 3 2
      patient-co-wlyy/src/main/java/com/yihu/wlyy/util/Base64Utils.java
  5. 3 3
      patient-co-wlyy/src/main/java/com/yihu/wlyy/util/DesUtils.java
  6. 0 126
      patient-co-wlyy/src/main/java/com/yihu/wlyy/web/manager/account/ShiroDbRealm.java
  7. 10 1
      patient-co-wlyy/src/main/java/com/yihu/wlyy/web/statistic/StatisticsController.java
  8. 37 37
      patient-co-wlyy/src/main/resources/application.properties
  9. 0 44
      patient-co-wlyy/src/main/resources/applicationContext-shiro.xml
  10. 0 12
      patient-co-wlyy/src/main/resources/ehcache/ehcache-shiro.xml
  11. 0 7
      patient-co-wlyy/src/main/resources/log4jdbc.properties
  12. 104 104
      patient-co-wlyy/src/main/resources/system.properties
  13. 0 38
      patient-co-wlyy/src/main/webapp/WEB-INF/layouts/default.jsp
  14. 0 5
      patient-co-wlyy/src/main/webapp/WEB-INF/layouts/footer.jsp
  15. 0 28
      patient-co-wlyy/src/main/webapp/WEB-INF/layouts/header.jsp
  16. 0 48
      patient-co-wlyy/src/main/webapp/WEB-INF/tags/pagination.tag
  17. 0 13
      patient-co-wlyy/src/main/webapp/WEB-INF/tags/sort.tag
  18. 0 20
      patient-co-wlyy/src/main/webapp/WEB-INF/web.xml
  19. 0 9
      patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/css/bootstrap-responsive.min.css
  20. 0 9
      patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/css/bootstrap.min.css
  21. BIN
      patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/img/glyphicons-halflings-white.png
  22. BIN
      patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/img/glyphicons-halflings.png
  23. 0 6
      patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/js/bootstrap.min.js
  24. BIN
      patient-co-wlyy/src/main/webapp/static/images/favicon.ico
  25. BIN
      patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/images/unchecked.gif
  26. 0 2
      patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/jquery.validate.min.js
  27. 0 27
      patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/messages_bs_zh.js
  28. 0 8
      patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/validate.css
  29. 0 5
      patient-co-wlyy/src/main/webapp/static/jquery/jquery-1.9.1.min.js
  30. 0 20
      patient-co-wlyy/src/main/webapp/static/styles/default.css

+ 0 - 11
patient-co-wlyy/pom.xml

@ -16,7 +16,6 @@
        <spring-data-jpa.version>1.6.0.RELEASE</spring-data-jpa.version>
        <tomcat-jdbc.version>7.0.53</tomcat-jdbc.version>
        <sitemesh.version>2.4.2</sitemesh.version>
        <shiro.version>1.2.3</shiro.version>
        <hibernate-validator.version>5.0.3.Final</hibernate-validator.version>
        <jackson.version>2.4.0</jackson.version>
        <aspectj.version>1.7.4</aspectj.version>
@ -226,16 +225,6 @@
        <!-- WEB end -->
        <!-- SECURITY begin -->
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-spring</artifactId>
            <version>${shiro.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.shiro</groupId>
            <artifactId>shiro-ehcache</artifactId>
            <version>${shiro.version}</version>
        </dependency>
        <dependency>
            <groupId>commons-codec</groupId>
            <artifactId>commons-codec</artifactId>

+ 0 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/hospital/HospitalService.java

@ -5,10 +5,8 @@ import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.thoughtworks.xstream.persistence.XmlArrayList;
import com.yihu.wlyy.entity.address.Town;
import com.yihu.wlyy.repository.address.TownDao;
import org.apache.commons.collections.ArrayStack;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;

+ 17 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/service/app/statistics/StatisticsService.java

@ -18,7 +18,6 @@ import com.yihu.wlyy.service.app.team.AdminTeamService;
import com.yihu.wlyy.util.DateUtil;
import com.yihu.wlyy.util.MapListUtils;
import com.yihu.wlyy.util.SystemConf;
import org.apache.shiro.authc.ExcessiveAttemptsException;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
@ -311,7 +310,22 @@ public class StatisticsService extends BaseService {
        }
        List<Map<String, Object>> resultList = jdbcTemplate.queryForList(sql, low_level, endDate, area);
        //如果resultList 不为空,low_level==1 那么就遍历去掉被删除的团队
        if("1".equals(low_level)){
              //得到全部的团队
            List<AdminTeam> teams = adminTeamDao.findByOrgCode(area);
            //转map
           Map<String,String> teamsMap=new HashMap<>();
            teams.stream().forEach(one->{
                teamsMap.put(String.valueOf(one.getId()),String.valueOf(one.getId()));
            });
            //遍历list排除被删除的团队
            for(Iterator<Map<String, Object>> it = resultList.iterator();it.hasNext();){
                if(!teamsMap.containsKey(it.next().get("code"))){
                    it.remove();
                }
            }
        }
        // 结果为空时,自建结果集
        if (resultList == null || resultList.size() < 1) {
            resultList = new ArrayList<>();
@ -379,6 +393,7 @@ public class StatisticsService extends BaseService {
            }
        }
        if (resultList != null) {
            DecimalFormat df = new DecimalFormat("0.0000");
            for (Map<String, Object> map : resultList) {

+ 3 - 2
patient-co-wlyy/src/main/java/com/yihu/wlyy/util/Base64Utils.java

@ -1,5 +1,7 @@
package com.yihu.wlyy.util;
import org.apache.axis.encoding.Base64;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
@ -8,7 +10,6 @@ import java.io.FileOutputStream;
import java.io.InputStream;
import java.io.OutputStream;
import org.apache.shiro.codec.Base64;
/**
 * <p>
@ -39,7 +40,7 @@ public class Base64Utils {
	 * @throws Exception
	 */
	public static byte[] decode(String base64) throws Exception {
		return Base64.decode(base64.getBytes());
		return Base64.decode(base64);
	}
	/**

+ 3 - 3
patient-co-wlyy/src/main/java/com/yihu/wlyy/util/DesUtils.java

@ -8,9 +8,9 @@
package com.yihu.wlyy.util;
import org.apache.shiro.codec.Base64;
import java.security.Key;
import java.util.Base64;
import javax.crypto.Cipher;
import javax.crypto.SecretKeyFactory;
@ -49,7 +49,7 @@ public class DesUtils {
        IvParameterSpec ips = new IvParameterSpec(iv.getBytes());  
        cipher.init(Cipher.ENCRYPT_MODE, deskey, ips);  
        byte [] encryptData = cipher.doFinal(plainText.getBytes(encoding));  
        return Base64.encodeToString(encryptData);
        return Base64.getEncoder().encodeToString(encryptData);
    }  
       
    /** 
@ -69,7 +69,7 @@ public class DesUtils {
        IvParameterSpec ips = new IvParameterSpec(iv.getBytes());  
        cipher.init(Cipher.DECRYPT_MODE, deskey, ips);  
       
        byte [] decryptData = cipher.doFinal(Base64.decode(encryptText));  
        byte [] decryptData = cipher.doFinal(Base64.getDecoder().decode(encryptText));
       
        return new String(decryptData, encoding);  
    }  

+ 0 - 126
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/manager/account/ShiroDbRealm.java

@ -1,126 +0,0 @@
package com.yihu.wlyy.web.manager.account;
import java.io.Serializable;
import javax.annotation.PostConstruct;
import org.apache.shiro.authc.AuthenticationException;
import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authz.AuthorizationInfo;
import org.apache.shiro.realm.AuthorizingRealm;
import org.apache.shiro.subject.PrincipalCollection;
import com.google.common.base.Objects;
import com.yihu.wlyy.service.common.account.DoctorService;
public class ShiroDbRealm extends AuthorizingRealm {
	protected DoctorService doctorService;
	/**
	 * 认证回调函数,登录时调用.
	 */
	@Override
	protected AuthenticationInfo doGetAuthenticationInfo(AuthenticationToken authcToken) throws AuthenticationException {
//		UsernamePasswordToken token = (UsernamePasswordToken) authcToken;
//		User user = accountService.findUserByLoginName(token.getUsername());
//		if (user != null) {
//			byte[] salt = Encodes.decodeHex(user.getSalt());
//			return new SimpleAuthenticationInfo(new ShiroUser(user.getId(), user.getLoginName(), user.getName()),
//					user.getPassword(), ByteSource.Util.bytes(salt), getName());
//		} else {
//			return null;
//		}
		return null;
	}
	/**
	 * 授权查询回调函数, 进行鉴权但缓存中无用户的授权信息时调用.
	 */
	@Override
	protected AuthorizationInfo doGetAuthorizationInfo(PrincipalCollection principals) {
//		ShiroUser shiroUser = (ShiroUser) principals.getPrimaryPrincipal();
//		User user = accountService.findUserByLoginName(shiroUser.loginName);
//		SimpleAuthorizationInfo info = new SimpleAuthorizationInfo();
//		info.addRoles(user.getRoleList());
//		return info;
		return null;
	}
	/**
	 * 设定Password校验的Hash算法与迭代次数.
	 */
	@PostConstruct
	public void initCredentialsMatcher() {
//		HashedCredentialsMatcher matcher = new HashedCredentialsMatcher(AccountService.HASH_ALGORITHM);
//		matcher.setHashIterations(AccountService.HASH_INTERATIONS);
//
//		setCredentialsMatcher(matcher);
	}
	public void setDoctorService(DoctorService doctorService) {
		this.doctorService = doctorService;
	}
	/**
	 * 自定义Authentication对象,使得Subject除了携带用户的登录名外还可以携带更多信息.
	 */
	public static class ShiroUser implements Serializable {
		private static final long serialVersionUID = -1373760761780840081L;
		public Long id;
		public String loginName;
		public String name;
		public ShiroUser(Long id, String loginName, String name) {
			this.id = id;
			this.loginName = loginName;
			this.name = name;
		}
		public String getName() {
			return name;
		}
		/**
		 * 本函数输出将作为默认的<shiro:principal/>输出.
		 */
		@Override
		public String toString() {
			return loginName;
		}
		/**
		 * 重载hashCode,只计算loginName;
		 */
		@Override
		public int hashCode() {
			return Objects.hashCode(loginName);
		}
		/**
		 * 重载equals,只计算loginName;
		 */
		@Override
		public boolean equals(Object obj) {
			if (this == obj) {
				return true;
			}
			if (obj == null) {
				return false;
			}
			if (getClass() != obj.getClass()) {
				return false;
			}
			ShiroUser other = (ShiroUser) obj;
			if (loginName == null) {
				if (other.loginName != null) {
					return false;
				}
			} else if (!loginName.equals(other.loginName)) {
				return false;
			}
			return true;
		}
	}
}

+ 10 - 1
patient-co-wlyy/src/main/java/com/yihu/wlyy/web/statistic/StatisticsController.java

@ -298,7 +298,16 @@ public class StatisticsController extends BaseController {
                for (Map.Entry<String, JSONObject> one : index1.entrySet()) {
                    JSONObject map1 = one.getValue();
                    JSONObject map2 = index2.get(one.getKey());
                    String amount = map1.get("amount").toString() + "," + map2.get("amount").toString();
                    String amount1="0";
                    if(map1!=null&&map1.has("amount")){
                        amount1=map1.get("amount").toString();
                    }
                    String amount2="0";
                    if(map2!=null&&map2.has("amount")){
                        amount2=map2.get("amount").toString();
                    }
                    String amount = amount1 + "," + amount2;
                    map1.put("amount", amount);
                    returnJa.put(map1);
                }

+ 37 - 37
patient-co-wlyy/src/main/resources/application.properties

@ -53,50 +53,50 @@
##------------------------------------�����������ݿ�����------------------------------------#
### mysql database setting
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://172.19.103.77/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
jdbc.username=root
jdbc.password=123456
#### health index
health.jdbc.driver=com.mysql.jdbc.Driver
health.jdbc.url=jdbc:mysql://172.19.103.77/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
health.jdbc.username=root
health.jdbc.password=123456
#### suifang
fv.jdbc.driver=com.mysql.jdbc.Driver
fv.jdbc.url=jdbc:mysql://172.19.103.77/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
fv.jdbc.username=root
fv.jdbc.password=123456
#### redis
redis.host=172.19.103.47
redis.port=6379
redis.password=
#---------------------------------���Ի������ݿ�����---------------------------------------#
#### mysql database setting
#jdbc.driver=com.mysql.jdbc.Driver
#jdbc.url=jdbc:mysql://172.19.103.85/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#jdbc.username=linzhou
#jdbc.password=linzhou
#jdbc.url=jdbc:mysql://172.19.103.77/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#jdbc.username=root
#jdbc.password=123456
#
###### health index
##### health index
#health.jdbc.driver=com.mysql.jdbc.Driver
#health.jdbc.url=jdbc:mysql://172.19.103.85/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#health.jdbc.username=linzhou
#health.jdbc.password=linzhou
#health.jdbc.url=jdbc:mysql://172.19.103.77/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#health.jdbc.username=root
#health.jdbc.password=123456
#
###### suifang
##### suifang
#fv.jdbc.driver=com.mysql.jdbc.Driver
#fv.jdbc.url=jdbc:mysql://172.19.103.85/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#fv.jdbc.username=linzhou
#fv.jdbc.password=linzhou
##
###### redis
#redis.host=172.19.103.88
#fv.jdbc.url=jdbc:mysql://172.19.103.77/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
#fv.jdbc.username=root
#fv.jdbc.password=123456
#
##### redis
#redis.host=172.19.103.47
#redis.port=6379
#redis.password=
#---------------------------------���Ի������ݿ�����---------------------------------------#
#### mysql database setting
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://172.19.103.85/wlyy?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
jdbc.username=linzhou
jdbc.password=linzhou
##### health index
health.jdbc.driver=com.mysql.jdbc.Driver
health.jdbc.url=jdbc:mysql://172.19.103.85/device?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
health.jdbc.username=linzhou
health.jdbc.password=linzhou
##### suifang
fv.jdbc.driver=com.mysql.jdbc.Driver
fv.jdbc.url=jdbc:mysql://172.19.103.85/fv?useUnicode=true&characterEncoding=utf-8&autoReconnect=true
fv.jdbc.username=linzhou
fv.jdbc.password=linzhou
#
##### redis
redis.host=172.19.103.88
redis.port=6379
redis.password=
#-----------------------------------ͨ������--------------------------------------------#
##### redis

+ 0 - 44
patient-co-wlyy/src/main/resources/applicationContext-shiro.xml

@ -1,44 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.0.xsd"
	default-lazy-init="true">
	<description>Shiro安全配置</description>
	<!-- Shiro's main business-tier object for web-enabled applications -->
	<bean id="securityManager" class="org.apache.shiro.web.mgt.DefaultWebSecurityManager">
		<property name="realm" ref="shiroDbRealm" />
		<property name="cacheManager" ref="shiroEhcacheManager" />
	</bean>
	<!-- 項目自定义的Realm, 所有accountService依赖的dao都需要用depends-on声明 -->
	<bean id="shiroDbRealm" class="com.yihu.wlyy.web.manager.account.ShiroDbRealm">
		<property name="doctorService" ref="doctorService"/>
	</bean>
	
	<!-- Shiro Filter -->
	<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
		<property name="securityManager" ref="securityManager" />
		<property name="loginUrl" value="/login" />
		<property name="successUrl" value="/" />
		<property name="filterChainDefinitions">
			<value>
				/login = authc
				/logout = logout
				/static/** = anon
				/api/** = anon
				/admin/** = roles[admin]
				/common/** = anon
				/** = anon
			</value>
		</property>
	</bean>
	
	<!-- 用户授权信息Cache, 采用EhCache -->
	<bean id="shiroEhcacheManager" class="org.apache.shiro.cache.ehcache.EhCacheManager">
		<property name="cacheManagerConfigFile" value="classpath:ehcache/ehcache-shiro.xml"/>
	</bean>
	
	<!-- 保证实现了Shiro内部lifecycle函数的bean执行 -->
	<bean id="lifecycleBeanPostProcessor" class="org.apache.shiro.spring.LifecycleBeanPostProcessor"/>
</beans>

+ 0 - 12
patient-co-wlyy/src/main/resources/ehcache/ehcache-shiro.xml

@ -1,12 +0,0 @@
<ehcache updateCheck="false" name="shiroCache">
   <defaultCache
            maxElementsInMemory="10000"
            eternal="false"
            timeToIdleSeconds="120"
            timeToLiveSeconds="120"
            overflowToDisk="false"
            diskPersistent="false"
            diskExpiryThreadIntervalSeconds="120"
            />
</ehcache>

+ 0 - 7
patient-co-wlyy/src/main/resources/log4jdbc.properties

@ -1,7 +0,0 @@
#Optional properties
#log4jdbc.debug.stack.prefix=
#log4jdbc.sqltiming.warn.threshold=
#log4jdbc.dump.sql.select=false
#log4jdbc.dump.sql.insert=false
#log4jdbc.dump.sql.update=false
#log4jdbc.dump.sql.delete=false

+ 104 - 104
patient-co-wlyy/src/main/resources/system.properties

@ -85,145 +85,145 @@ return_url={server}/wx/html/qygl/html/pay_result.html
#-------------------------开发环境配置-------------------------#
# 服务器基本配置
server_ip=weixin.xmtyw.cn
server_port=
server_domain=wlyy-dev
server_url=http://weixin.xmtyw.cn/wlyy-dev/
# 上传文件配置
image_server=http://weixin.xmtyw.cn/res/images/
voice_server=http://weixin.xmtyw.cn/res/voice/
chat_server=http://weixin.xmtyw.cn/res/chat/
# 是否签约检查和签约数据上传
sign_check_upload=http://172.19.103.87:8011/wlyy_service
# IM配置
im_list_get=http://172.19.103.88:3000/
im_group_server=http://172.19.103.29:3000/api/v1/chats/gm
msg_push_server=http://172.19.103.29:3000/api/v1/chats/sm
# 微信基本配置
accId=gh_ffd64560fb21
appId=wxd03f859efdf0873d
appSecret=2935b54b53a957d9516c920a544f2537
# 个人微信测试平台基本配置
#appId=wxb3827510b2e15012
#appSecret=c5bdedd909ded9c2ee08028487e6f50d
wechat_base_url=http%3a%2f%2fweixin.xmtyw.cn%2fwlyy-dev
wechat_token=27eb3bb24f149a7760cf1bb154b08040
# 微信模板消息ID
#签约邀请
doctor_invitel_template=TLWrBtNE2kBJaFCdVzDOOnQC8N2TtRY9ZxEzwZXQcR0
#咨询回复
template_consult_notice=qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc
#签约成功
template_sign_success=hDWV_sknKlhxhOwR5h68OCXbAhRpcgnx9INrT8BybE8
#签约失败
template_sign_failed=ezgttXE7rG4rAboQK2ituG1dKq4PeyCj3LxGJWO_vOA
#健康指导提醒
template_health_notice=128RCfyCHi22jW8PZzo7vabKMsA3SBv5VeHaDPr2Bhw
#解约提醒
template_termination=LrrzHjnIF67ww5uQUvSiv3_pVKJiIK4ZE3fKrvsT0AE
#预约成功
template_appoint_success=Bo2yqNczSU9zkg4wXoouv9tSeefZ6TziggWL3dTXPYE
#预约取消
template_appoint_failed=pErTBTdweIdrNRf_1Oo62YtQC0aHwPvtLaCzw44JzCQ
#缴费提醒
template_expenses_remind=BkTGJ8S18qZ3DfaptAXnZznAk8RJjx9v93og5vyO0bs
#健康教育
template_healthy_article=LA7erINJ0CSsG2G_ZCrgsDaX3krhsI4qg_NSHEyL_l4
#医生变更
template_doctor_change=TNIDMjduVKgVL4-k71umYLpHROvFB8K6mmm8aZC_EH8
#问卷调查
template_doctor_survey=IjQvzBy0PLeft2kN9mdBhACXPE9I_jyJywJ6B-JRxsY
#template_doctor_survey=fgYiMntj1amEkE8_GLUPmAIyssUAroJrNSHqvydt-PQ
#群发图文消息图片地址
renew_path=/usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/renew.png
sign_path=/usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/familycontract.png
#健康之路开放平台
yihu_OpenPlatform_url=http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
yihu_OpenPlatform_appId=9000276
yihu_OpenPlatform_secret=OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
# FastDFS文件Http访问地址
fastdfs_file_url=http://172.19.103.54:80/
im数据库名
im_dataBase =ichat
#-------------------------测试环境配置-------------------------#
## 服务器基本配置
#server_ip=ehr.yihu.com
#server_ip=weixin.xmtyw.cn
#server_port=
#server_domain=wlyy
#server_url=http://ehr.yihu.com/wlyy/
#server_domain=wlyy-dev
#server_url=http://weixin.xmtyw.cn/wlyy-dev/
#
## 上传文件配置
#image_server=http://ehr.yihu.com/res/images/
#voice_server=http://ehr.yihu.com/res/voice/
#chat_server=http://ehr.yihu.com/res/chat/
#image_server=http://weixin.xmtyw.cn/res/images/
#voice_server=http://weixin.xmtyw.cn/res/voice/
#chat_server=http://weixin.xmtyw.cn/res/chat/
#
## 是否签约检查和签约数据上传
#sign_check_upload=http://172.19.103.85:8011/wlyy_service
#sign_check_upload=http://172.19.103.87:8011/wlyy_service
#
## IM配置
#im_list_get=http://172.19.103.88:3000/
#im_group_server=http://172.19.103.88:3000/api/v1/chats/gm
#msg_push_server=http://172.19.103.88:3000/api/v1/chats/sm
#im_group_server=http://172.19.103.29:3000/api/v1/chats/gm
#msg_push_server=http://172.19.103.29:3000/api/v1/chats/sm
#
## 微信基本配置
#accId=gh_ffd64560fb21
#appId=wx1f129f7b51701428
#appSecret=988f005d8309ed1795939e0f042431fb
#wechat_base_url=http%3a%2f%2fehr.yihu.com%2fwlyy
#appId=wxd03f859efdf0873d
#appSecret=2935b54b53a957d9516c920a544f2537
## 个人微信测试平台基本配置
##appId=wxb3827510b2e15012
##appSecret=c5bdedd909ded9c2ee08028487e6f50d
#
#wechat_base_url=http%3a%2f%2fweixin.xmtyw.cn%2fwlyy-dev
#wechat_token=27eb3bb24f149a7760cf1bb154b08040
#
## 微信模板消息ID
##签约邀请
#doctor_invitel_template=uXdBJVbrhKG-WLaCG4s8C4SXSr2kknQ94vKFt-3rIiA
#doctor_invitel_template=TLWrBtNE2kBJaFCdVzDOOnQC8N2TtRY9ZxEzwZXQcR0
##咨询回复
#template_consult_notice=-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18
#template_consult_notice=qSOW0DBxO3qEBm4ucG0Ial0jxsOyD7_f2TFK5e-mQEc
##签约成功
#template_sign_success=VYGj8OUKj6FH4i4_nZS2UAHurJxQHx-7_OBPILIdB8s
#template_sign_success=hDWV_sknKlhxhOwR5h68OCXbAhRpcgnx9INrT8BybE8
##签约失败
#template_sign_failed=m221Jrkm0UUY00ExTCpQNTB8t_1U_V4LR9Bg8BgH9-o
#template_sign_failed=ezgttXE7rG4rAboQK2ituG1dKq4PeyCj3LxGJWO_vOA
##健康指导提醒
#template_health_notice=5Nts8lA_at9Cd1JuTK-qDxx95lchpcmUfPTEwYDgXYQ
#template_health_notice=128RCfyCHi22jW8PZzo7vabKMsA3SBv5VeHaDPr2Bhw
##解约提醒
#template_termination=qZm1NwSueAsbHaOf9DrnLoSj0X5gZuh9W7aDYzLWNds
#template_termination=LrrzHjnIF67ww5uQUvSiv3_pVKJiIK4ZE3fKrvsT0AE
##预约成功
#template_appoint_success=-vU5x2tGyk1zUngBrEqMfnFqqMa6M8J98w8k5MCSUYM
#template_appoint_success=Bo2yqNczSU9zkg4wXoouv9tSeefZ6TziggWL3dTXPYE
##预约取消
#template_appoint_failed=r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
#template_appoint_failed=pErTBTdweIdrNRf_1Oo62YtQC0aHwPvtLaCzw44JzCQ
##缴费提醒
#template_expenses_remind=pZby4Mz3H5angmjGTuvXzo9lwlaVfEiqORwI8soI-5E
#template_expenses_remind=BkTGJ8S18qZ3DfaptAXnZznAk8RJjx9v93og5vyO0bs
##健康教育
#template_healthy_article=aO_qqk5nAXaGXhsikPVLNelqzwlrp1LTPfIQ1qRMpxo
#template_healthy_article=LA7erINJ0CSsG2G_ZCrgsDaX3krhsI4qg_NSHEyL_l4
##医生变更
#template_doctor_change=V5h0F84t972kUzQvWy8qYrgdaYGJVj10pFeFVl19Nb8
#template_doctor_change=TNIDMjduVKgVL4-k71umYLpHROvFB8K6mmm8aZC_EH8
##问卷调查
#template_doctor_survey=OqQXrb-e43_TJpq_70_K_y6vYJgY5mpjFYY4c5RWFP4
#template_doctor_survey=IjQvzBy0PLeft2kN9mdBhACXPE9I_jyJywJ6B-JRxsY
##template_doctor_survey=fgYiMntj1amEkE8_GLUPmAIyssUAroJrNSHqvydt-PQ
#
##群发图文消息图片地址
#renew_path=/usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/renew.png
#sign_path=/usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/familycontract.png
#renew_path=/usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/renew.png
#sign_path=/usr/local/apache-tomcat-8.0.26/webapps/wlyy/images/familycontract.png
#
## FastDFS文件Http访问地址
#fastdfs_file_url=http://172.19.103.54:80/
#
##健康之路开放平台
#yihu_OpenPlatform_url=http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
#yihu_OpenPlatform_appId=9000276
#yihu_OpenPlatform_secret=OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
#
##im数据库名
#im_dataBase = im_new
## FastDFS文件Http访问地址
#fastdfs_file_url=http://172.19.103.54:80/
#
#im数据库名
#im_dataBase =ichat
#-------------------------测试环境配置-------------------------#
# 服务器基本配置
server_ip=ehr.yihu.com
server_port=
server_domain=wlyy
server_url=http://ehr.yihu.com/wlyy/
# 上传文件配置
image_server=http://ehr.yihu.com/res/images/
voice_server=http://ehr.yihu.com/res/voice/
chat_server=http://ehr.yihu.com/res/chat/
# 是否签约检查和签约数据上传
sign_check_upload=http://172.19.103.85:8011/wlyy_service
# IM配置
im_list_get=http://172.19.103.88:3000/
im_group_server=http://172.19.103.88:3000/api/v1/chats/gm
msg_push_server=http://172.19.103.88:3000/api/v1/chats/sm
# 微信基本配置
accId=gh_ffd64560fb21
appId=wx1f129f7b51701428
appSecret=988f005d8309ed1795939e0f042431fb
wechat_base_url=http%3a%2f%2fehr.yihu.com%2fwlyy
wechat_token=27eb3bb24f149a7760cf1bb154b08040
# 微信模板消息ID
#签约邀请
doctor_invitel_template=uXdBJVbrhKG-WLaCG4s8C4SXSr2kknQ94vKFt-3rIiA
#咨询回复
template_consult_notice=-dr4QNyFoRvVsf8uWxXMC1dRyjwnbUuJwJ21vBLhf18
#签约成功
template_sign_success=VYGj8OUKj6FH4i4_nZS2UAHurJxQHx-7_OBPILIdB8s
#签约失败
template_sign_failed=m221Jrkm0UUY00ExTCpQNTB8t_1U_V4LR9Bg8BgH9-o
#健康指导提醒
template_health_notice=5Nts8lA_at9Cd1JuTK-qDxx95lchpcmUfPTEwYDgXYQ
#解约提醒
template_termination=qZm1NwSueAsbHaOf9DrnLoSj0X5gZuh9W7aDYzLWNds
#预约成功
template_appoint_success=-vU5x2tGyk1zUngBrEqMfnFqqMa6M8J98w8k5MCSUYM
#预约取消
template_appoint_failed=r-bVEKgXVyl8O96saoJXlLd7DX1zW7fXA4a0PZHxiQM
#缴费提醒
template_expenses_remind=pZby4Mz3H5angmjGTuvXzo9lwlaVfEiqORwI8soI-5E
#健康教育
template_healthy_article=aO_qqk5nAXaGXhsikPVLNelqzwlrp1LTPfIQ1qRMpxo
#医生变更
template_doctor_change=V5h0F84t972kUzQvWy8qYrgdaYGJVj10pFeFVl19Nb8
#问卷调查
template_doctor_survey=OqQXrb-e43_TJpq_70_K_y6vYJgY5mpjFYY4c5RWFP4
#群发图文消息图片地址
renew_path=/usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/renew.png
sign_path=/usr/local/apache-tomcat-8.0.36/webapps/wlyy/images/familycontract.png
# FastDFS文件Http访问地址
fastdfs_file_url=http://172.19.103.54:80/
#健康之路开放平台
yihu_OpenPlatform_url=http://ssotest.yihu.cn/OpenPlatform/cgiBin/1.0/
yihu_OpenPlatform_appId=9000276
yihu_OpenPlatform_secret=OKC8BS1KGXTDE9GPP1EO4VYLUXF8DJ7QUP72H613ZXA
#im数据库名
im_dataBase = im_new
#-------------------------正式环境配置-------------------------#
## 服务器基本配置
#server_ip=www.xmtyw.cn

+ 0 - 38
patient-co-wlyy/src/main/webapp/WEB-INF/layouts/default.jsp

@ -1,38 +0,0 @@
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ taglib prefix="sitemesh" uri="http://www.opensymphony.com/sitemesh/decorator" %>  
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html>
<html>
<head>
<title>QuickStart示例:<sitemesh:title/></title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta http-equiv="Cache-Control" content="no-store" />
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Expires" content="0" />
<link type="image/x-icon" href="${ctx}/static/images/favicon.ico" rel="shortcut icon">
<link href="${ctx}/static/bootstrap/2.3.2/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/jquery-validation/1.11.1/validate.css" type="text/css" rel="stylesheet" />
<link href="${ctx}/static/styles/default.css" type="text/css" rel="stylesheet" />
<script src="${ctx}/static/jquery/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="${ctx}/static/jquery-validation/1.11.1/jquery.validate.min.js" type="text/javascript"></script>
<script src="${ctx}/static/jquery-validation/1.11.1/messages_bs_zh.js" type="text/javascript"></script>
<sitemesh:head/>
</head>
<body>
	<div class="container">
		<%@ include file="/WEB-INF/layouts/header.jsp"%>
		<div id="content">
			<sitemesh:body/>
		</div>
		<%@ include file="/WEB-INF/layouts/footer.jsp"%>
	</div>
	<script src="${ctx}/static/bootstrap/2.3.2/js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>

+ 0 - 5
patient-co-wlyy/src/main/webapp/WEB-INF/layouts/footer.jsp

@ -1,5 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8" %>
<div id="footer">
	Copyright &copy; 2005-2012 <a href="http://www.springside.org.cn">springside.org.cn</a>
</div>

+ 0 - 28
patient-co-wlyy/src/main/webapp/WEB-INF/layouts/header.jsp

@ -1,28 +0,0 @@
<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<div id="header">
	<div id="title">
	    <h1><a href="${ctx}">QuickStart示例</a><small>--TodoList应用演示</small>
	    <shiro:user>
			<div class="btn-group pull-right">
				<a class="btn dropdown-toggle" data-toggle="dropdown" href="#">
					<i class="icon-user"></i> <shiro:principal property="name"/>
					<span class="caret"></span>
				</a>
			
				<ul class="dropdown-menu">
					<shiro:hasRole name="admin">
						<li><a href="${ctx}/admin/user">Admin Users</a></li>
						<li class="divider"></li>
					</shiro:hasRole>
					<li><a href="${ctx}/api">APIs</a></li>
					<li><a href="${ctx}/profile">Edit Profile</a></li>
					<li><a href="${ctx}/logout">Logout</a></li>
				</ul>
			</div>
		</shiro:user>
		</h1>
	</div>
</div>

+ 0 - 48
patient-co-wlyy/src/main/webapp/WEB-INF/tags/pagination.tag

@ -1,48 +0,0 @@
<%@tag pageEncoding="UTF-8"%>
<%@ attribute name="page" type="org.springframework.data.domain.Page" required="true"%>
<%@ attribute name="paginationSize" type="java.lang.Integer" required="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
int current =  page.getNumber() + 1;
int begin = Math.max(1, current - paginationSize/2);
int end = Math.min(begin + (paginationSize - 1), page.getTotalPages());
request.setAttribute("current", current);
request.setAttribute("begin", begin);
request.setAttribute("end", end);
%>
<div class="pagination">
	<ul>
		 <% if (page.hasPreviousPage()){%>
               	<li><a href="?page=1&sortType=${sortType}&${searchParams}">&lt;&lt;</a></li>
                <li><a href="?page=${current-1}&sortType=${sortType}&${searchParams}">&lt;</a></li>
         <%}else{%>
                <li class="disabled"><a href="#">&lt;&lt;</a></li>
                <li class="disabled"><a href="#">&lt;</a></li>
         <%} %>
 
		<c:forEach var="i" begin="${begin}" end="${end}">
            <c:choose>
                <c:when test="${i == current}">
                    <li class="active"><a href="?page=${i}&sortType=${sortType}&${searchParams}">${i}</a></li>
                </c:when>
                <c:otherwise>
                    <li><a href="?page=${i}&sortType=${sortType}&${searchParams}">${i}</a></li>
                </c:otherwise>
            </c:choose>
        </c:forEach>
	  
	  	 <% if (page.hasNextPage()){%>
               	<li><a href="?page=${current+1}&sortType=${sortType}&${searchParams}">&gt;</a></li>
                <li><a href="?page=${page.totalPages}&sortType=${sortType}&${searchParams}">&gt;&gt;</a></li>
         <%}else{%>
                <li class="disabled"><a href="#">&gt;</a></li>
                <li class="disabled"><a href="#">&gt;&gt;</a></li>
         <%} %>
	</ul>
</div>

+ 0 - 13
patient-co-wlyy/src/main/webapp/WEB-INF/tags/sort.tag

@ -1,13 +0,0 @@
<%@tag pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<div class="nav dropdown pull-right">
    <a class="dropdown-toggle" data-toggle="dropdown" href="#">
    	排序: ${sortTypes[param.sortType]} <b class="caret"></b>
    </a>
	<ul class="dropdown-menu" >
	   	<c:forEach items="${sortTypes}" var="entry">
	   		<li><a href="?sortType=${entry.key}&${searchParams}">${entry.value}</a></li>
		</c:forEach>
	</ul>
</div>

+ 0 - 20
patient-co-wlyy/src/main/webapp/WEB-INF/web.xml

@ -41,26 +41,6 @@
    <filter-name>openEntityManagerInViewFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <!-- <filter>
    <filter-name>shiroFilter</filter-name>
    <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
    <init-param>
      <param-name>targetFilterLifecycle</param-name>
      <param-value>true</param-value>
    </init-param>
  </filter>
  <filter-mapping>
    <filter-name>shiroFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping> -->
  <!--<filter>-->
    <!--<filter-name>sitemeshFilter</filter-name>-->
    <!--<filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>-->
  <!--</filter>-->
  <!--<filter-mapping>-->
    <!--<filter-name>sitemeshFilter</filter-name>-->
    <!--<url-pattern>/*</url-pattern>-->
  <!--</filter-mapping>-->
  <servlet>
    <servlet-name>springServlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 9
patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/css/bootstrap-responsive.min.css


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 9
patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/css/bootstrap.min.css


BIN
patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/img/glyphicons-halflings-white.png


BIN
patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/img/glyphicons-halflings.png


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 6
patient-co-wlyy/src/main/webapp/static/bootstrap/2.3.2/js/bootstrap.min.js


BIN
patient-co-wlyy/src/main/webapp/static/images/favicon.ico


BIN
patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/images/unchecked.gif


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 2
patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/jquery.validate.min.js


+ 0 - 27
patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/messages_bs_zh.js

@ -1,27 +0,0 @@
/*
 * Translated default messages for the jQuery validation plugin.
 * Locale: ZH (Chinese, 中文 (Zhōngwén), 汉语, 漢語)
 */
jQuery.extend(jQuery.validator.messages, {
        required: "必选字段",
		remote: "请修正该字段",
		email: "请输入正确格式的电子邮件",
		url: "请输入合法的网址",
		date: "请输入合法的日期",
		dateISO: "请输入合法的日期 (ISO).",
		number: "请输入合法的数字",
		digits: "只能输入整数",
		creditcard: "请输入合法的信用卡号",
		equalTo: "请再次输入相同的值",
		accept: "请输入拥有合法后缀名的字符串",
		maxlength: jQuery.validator.format("请输入一个长度最多是 {0} 的字符串"),
		minlength: jQuery.validator.format("请输入一个长度最少是 {0} 的字符串"),
		rangelength: jQuery.validator.format("请输入一个长度介于 {0} 和 {1} 之间的字符串"),
		range: jQuery.validator.format("请输入一个介于 {0} 和 {1} 之间的值"),
		max: jQuery.validator.format("请输入一个最大为 {0} 的值"),
		min: jQuery.validator.format("请输入一个最小为 {0} 的值")
});
jQuery.extend(jQuery.validator.defaults, {
    errorElement: "span"
});

+ 0 - 8
patient-co-wlyy/src/main/webapp/static/jquery-validation/1.11.1/validate.css

@ -1,8 +0,0 @@
span.error {
  background:url("images/unchecked.gif") no-repeat 0px 0px;
  padding-left: 16px;
  margin-left: 1em;
  padding-bottom: 2px;
  font-weight: bold;
  color: #EA5200;
}

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 0 - 5
patient-co-wlyy/src/main/webapp/static/jquery/jquery-1.9.1.min.js


+ 0 - 20
patient-co-wlyy/src/main/webapp/static/styles/default.css

@ -1,20 +0,0 @@
/* header */
#header {margin-bottom:15px;}
#header h1 a {
	color: #658A16;
	text-decoration: none
}
#header h1 small {color: #BACE87;}
/* footer */
#footer {
	margin-top: 15px;
	padding: 15px 0px 0px 0px;
	font-size: 95%;
	text-align: center;
	border-top: 2px solid #658A16;
}
#footer a {color: #999;}