├── .gitignore ├── src └── main │ ├── webapp │ ├── img │ │ ├── 1.png │ │ ├── miao.png │ │ ├── cloud.jpg │ │ └── ticket.png │ ├── index.jsp │ ├── css │ │ ├── 404 │ │ │ └── reset.css │ │ ├── img.css │ │ ├── libs │ │ │ ├── dataTables.fixedHeader.css │ │ │ ├── fullcalendar.print.css │ │ │ ├── morris.css │ │ │ ├── jquery-jvectormap-1.2.2.css │ │ │ ├── ns-default.css │ │ │ ├── jquery.nouislider.css │ │ │ ├── bootstrap-wizard.css │ │ │ ├── bootstrap-timepicker.css │ │ │ ├── daterangepicker.css │ │ │ └── xcharts.css │ │ └── compiled │ │ │ ├── calendar.css │ │ │ └── wizard.css │ ├── fonts │ │ ├── fontawesome-webfont.eot │ │ ├── fontawesome-webfont.ttf │ │ ├── fontawesome-webfont.woff │ │ └── glyphicons-halflings-regular.woff │ ├── js │ │ ├── modalEffects.js │ │ ├── jquery.pwstrength.js │ │ ├── gdp-data.js │ │ ├── jquery.hotkeys.js │ │ ├── html5shiv.js │ │ ├── scripts.js │ │ ├── social │ │ │ ├── searchName.js │ │ │ ├── searchId.js │ │ │ ├── searchPhone.js │ │ │ └── searchMail.js │ │ ├── jquery.maskedinput.min.js │ │ ├── jquery.easypiechart.min.js │ │ ├── respond.min.js │ │ └── wizard.js │ ├── views │ │ ├── nav.jsp │ │ ├── showDrops.jsp │ │ ├── searchName.jsp │ │ ├── searchPhone.jsp │ │ ├── searchId.jsp │ │ └── searchMail.jsp │ ├── WEB-INF │ │ └── web.xml │ └── error │ │ ├── 400.html │ │ └── 404.html │ ├── java │ └── com │ │ └── jiyufei │ │ └── social │ │ ├── service │ │ ├── WyHistoryService.java │ │ ├── SdIndexChar1Service.java │ │ ├── SdIndexChar2Service.java │ │ ├── SdIndexNumService.java │ │ ├── SdIndexChar4Service.java │ │ ├── WyCountService.java │ │ ├── Sd163Service.java │ │ ├── SdRenrenService.java │ │ ├── Sd7k7kService.java │ │ ├── SdCsdnService.java │ │ ├── SdOtherService.java │ │ ├── SdWeiboService.java │ │ ├── Sd17173Service.java │ │ ├── SocialCountService.java │ │ ├── SdZhenaiService.java │ │ ├── SocialRecordService.java │ │ ├── SocialHistoryService.java │ │ ├── LoginUserService.java │ │ ├── Sd12306Service.java │ │ ├── WyDropsService.java │ │ ├── SdIndexNumServiceImpl.java │ │ ├── SdIndexChar2ServiceImpl.java │ │ ├── SdIndexChar4ServiceImpl.java │ │ ├── SdIndexChar1ServiceImpl.java │ │ ├── SdOtherServiceImpl.java │ │ ├── SdWeiboServiceImpl.java │ │ ├── SdRenrenServiceImpl.java │ │ ├── SdZhenaiServiceImpl.java │ │ ├── Sd163ServiceImpl.java │ │ ├── Sd7k7kServiceImpl.java │ │ ├── SdCsdnServiceImpl.java │ │ ├── Sd17173ServiceImpl.java │ │ ├── SocialHistoryServiceImpl.java │ │ ├── LoginUserServiceImpl.java │ │ ├── SocialRecordServiceImpl.java │ │ ├── Sd12306ServiceImpl.java │ │ ├── WyCountServiceImpl.java │ │ ├── SocialCountServiceImpl.java │ │ └── WyDropsServiceImpl.java │ │ ├── util │ │ ├── SocialCountString.java │ │ ├── WyCountString.java │ │ ├── AjaxSocial.java │ │ ├── AjaxResponse.java │ │ ├── Md5.java │ │ ├── DropsHistory.java │ │ ├── WyDropsResponse.java │ │ ├── SocialResultThree.java │ │ ├── SocialResultFour.java │ │ └── SocialResultSeven.java │ │ ├── bean │ │ ├── WyCount.java │ │ ├── SocialCount.java │ │ ├── WyHistory.java │ │ ├── SdIndexNum.java │ │ ├── Sd163.java │ │ ├── Sd7k7k.java │ │ ├── SdIndexChar1.java │ │ ├── SdIndexChar2.java │ │ ├── SdIndexChar4.java │ │ ├── SdOther.java │ │ ├── SdRenren.java │ │ ├── SdWeibo.java │ │ ├── SdCsdn.java │ │ ├── Sd17173.java │ │ ├── SdZhenai.java │ │ ├── SocialHistory.java │ │ ├── SocialRecord.java │ │ ├── Sd12306.java │ │ ├── LoginUser.java │ │ └── WyDrops.java │ │ ├── controller │ │ ├── DropsPageController.java │ │ ├── DatabasePageController.java │ │ └── LoginPageController.java │ │ ├── dao │ │ ├── Sd163Mapper.java │ │ ├── Sd7k7kMapper.java │ │ ├── SdCsdnMapper.java │ │ ├── WyCountMapper.java │ │ ├── Sd12306Mapper.java │ │ ├── Sd17173Mapper.java │ │ ├── SdOtherMapper.java │ │ ├── SdWeiboMapper.java │ │ ├── SdRenrenMapper.java │ │ ├── SdZhenaiMapper.java │ │ ├── LoginUserMapper.java │ │ ├── WyHistoryMapper.java │ │ ├── SdIndexNumMapper.java │ │ ├── SocialCountMapper.java │ │ ├── SocialRecordMapper.java │ │ ├── SdIndexChar1Mapper.java │ │ ├── SdIndexChar2Mapper.java │ │ ├── SdIndexChar4Mapper.java │ │ ├── SocialHistoryMapper.java │ │ └── WyDropsMapper.java │ │ └── security │ │ └── myUserDetailsService.java │ └── resources │ ├── application.xml │ ├── log4j.properties │ ├── generatorConfig.xml │ ├── security-context.xml │ ├── mybatis.xml │ └── root-context.xml └── .springBeans /.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /src/main/webapp/img/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/img/1.png -------------------------------------------------------------------------------- /src/main/webapp/index.jsp: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Hello World!

4 | 5 | 6 | -------------------------------------------------------------------------------- /src/main/webapp/css/img.css: -------------------------------------------------------------------------------- 1 | @CHARSET "UTF-8"; 2 | .drops-img{ 3 | width:100%; 4 | height:100%: 5 | } -------------------------------------------------------------------------------- /src/main/webapp/img/miao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/img/miao.png -------------------------------------------------------------------------------- /src/main/webapp/img/cloud.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/img/cloud.jpg -------------------------------------------------------------------------------- /src/main/webapp/img/ticket.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/img/ticket.png -------------------------------------------------------------------------------- /src/main/webapp/fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /src/main/webapp/fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /src/main/webapp/fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /src/main/webapp/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TridentJ/social/HEAD/src/main/webapp/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /src/main/webapp/css/libs/dataTables.fixedHeader.css: -------------------------------------------------------------------------------- 1 | div.FixedHeader_Cloned th,div.FixedHeader_Cloned td{background-color:white!important;}@media (max-width: 767px) {div.FixedHeader_Cloned{display:none;}} -------------------------------------------------------------------------------- /src/main/webapp/css/libs/fullcalendar.print.css: -------------------------------------------------------------------------------- 1 | .fc-event{background:#fff!important;color:#000!important;}.fc-event-bg{display:none!important;}.fc-event .ui-resizable-handle{display:none!important;} 2 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/WyHistoryService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | /* 3 | *Created by jiyufei on 2016年11月4日 上午11:39:46 . 4 | */ 5 | public interface WyHistoryService { 6 | 7 | public Integer addHistory() throws Exception; 8 | 9 | 10 | } 11 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexChar1Service.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import com.jiyufei.social.bean.SdIndexChar1; 4 | 5 | /* 6 | *Created by jiyufei on 2016年10月26日 下午2:09:22 . 7 | */ 8 | public interface SdIndexChar1Service { 9 | 10 | public SdIndexChar1 getRecordByMail(String mail) throws Exception; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexChar2Service.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import com.jiyufei.social.bean.SdIndexChar2; 4 | 5 | /* 6 | *Created by jiyufei on 2016年10月26日 下午2:09:36 . 7 | */ 8 | public interface SdIndexChar2Service { 9 | 10 | public SdIndexChar2 getRecordByMail(String mail) throws Exception; 11 | } 12 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexNumService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import com.jiyufei.social.bean.SdIndexNum; 4 | 5 | /* 6 | *Created by jiyufei on 2016年10月26日 下午2:10:02 . 7 | */ 8 | public interface SdIndexNumService { 9 | 10 | public SdIndexNum getRecordByMail(String mail) throws Exception; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexChar4Service.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import com.jiyufei.social.bean.SdIndexChar4; 4 | 5 | /* 6 | *Created by jiyufei on 2016年10月26日 下午2:09:50 . 7 | */ 8 | public interface SdIndexChar4Service { 9 | 10 | public SdIndexChar4 getRecordByMail(String mail) throws Exception; 11 | 12 | } 13 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/WyCountService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.WyCount; 6 | 7 | /* 8 | *Created by jiyufei on 2016年11月1日 下午4:56:23 . 9 | */ 10 | public interface WyCountService { 11 | 12 | public List getWyCount() throws Exception; 13 | 14 | public Integer upWyCountNum() throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd163Service.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.Sd163; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:08:28 . 9 | */ 10 | public interface Sd163Service { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public Sd163 getRecordByMail(String mail) throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdRenrenService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.SdRenren; 6 | /* 7 | *Created by jiyufei on 2016年10月26日 下午2:11:30 . 8 | */ 9 | public interface SdRenrenService { 10 | 11 | public List getAllRecord() throws Exception; 12 | 13 | public SdRenren getRecordByMail(String mail) throws Exception; 14 | } 15 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd7k7kService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.Sd7k7k; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:08:55 . 9 | */ 10 | public interface Sd7k7kService { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public Sd7k7k getRecordByMail(String mail) throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdCsdnService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.SdCsdn; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:09:08 . 9 | */ 10 | public interface SdCsdnService { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public SdCsdn getRecordByMail(String mail) throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdOtherService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.SdOther; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:10:31 . 9 | */ 10 | public interface SdOtherService { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public SdOther getRecordByMail(String mail) throws Exception; 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdWeiboService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | /* 5 | *Created by jiyufei on 2016年10月26日 下午2:11:50 . 6 | */ 7 | 8 | import com.jiyufei.social.bean.SdWeibo; 9 | public interface SdWeiboService { 10 | 11 | public List getAllRecord() throws Exception; 12 | 13 | public SdWeibo getRecordByMail(String mail)throws Exception; 14 | 15 | } 16 | -------------------------------------------------------------------------------- /src/main/webapp/css/libs/morris.css: -------------------------------------------------------------------------------- 1 | .morris-hover{position:absolute;z-index:1000}.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(255,255,255,0.8);border:solid 2px rgba(230,230,230,0.8);font-family:sans-serif;font-size:12px;text-align:center}.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0}.morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0} -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd17173Service.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.Sd17173; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:08:43 . 9 | */ 10 | public interface Sd17173Service { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public Sd17173 getRecordByMail(String mail) throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SocialCountService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.SocialCount; 6 | 7 | /* 8 | *Created by jiyufei on 2016年11月1日 下午1:53:39 . 9 | */ 10 | public interface SocialCountService { 11 | 12 | public List getSocialCount() throws Exception; 13 | 14 | public Integer upSocialCountNum() throws Exception; 15 | } 16 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdZhenaiService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.SdZhenai; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:12:00 . 9 | */ 10 | public interface SdZhenaiService { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public SdZhenai getRecordByMail(String mail) throws Exception; 15 | 16 | } 17 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SocialRecordService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | 4 | import com.jiyufei.social.bean.SocialRecord; 5 | 6 | /* 7 | *Created by jiyufei on 2016年11月1日 上午9:16:38 . 8 | */ 9 | 10 | public interface SocialRecordService { 11 | 12 | public SocialRecord getRecord() throws Exception; 13 | 14 | public Integer updateRecord(SocialRecord socialRecord) throws Exception; 15 | 16 | public Integer upSocialRecordNum(Integer hit) throws Exception; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/SocialCountString.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | /* 3 | *Created by jiyufei on 2016年11月1日 下午3:56:53 . 4 | */ 5 | public class SocialCountString { 6 | private String date; 7 | private Integer num; 8 | 9 | public String getDate() { 10 | return date; 11 | } 12 | public void setDate(String date) { 13 | this.date = date; 14 | } 15 | public Integer getNum() { 16 | return num; 17 | } 18 | public void setNum(Integer num) { 19 | this.num = num; 20 | } 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/WyCountString.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | /* 3 | *Created by jiyufei on 2016年11月1日 下午5:55:16 . 4 | */ 5 | public class WyCountString { 6 | 7 | private String date; 8 | private Integer num; 9 | 10 | public String getDate() { 11 | return date; 12 | } 13 | public void setDate(String date) { 14 | this.date = date; 15 | } 16 | public Integer getNum() { 17 | return num; 18 | } 19 | public void setNum(Integer num) { 20 | this.num = num; 21 | } 22 | 23 | 24 | 25 | } 26 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SocialHistoryService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.SocialHistory; 6 | 7 | /* 8 | *Created by jiyufei on 2016年11月1日 下午12:19:00 . 9 | */ 10 | public interface SocialHistoryService { 11 | 12 | public List getHistory() throws Exception; 13 | 14 | public List getAllHistory(Integer pageNum,Integer pageSize) throws Exception; 15 | 16 | public Integer addHistory(SocialHistory history) throws Exception; 17 | } 18 | -------------------------------------------------------------------------------- /src/main/webapp/css/libs/jquery-jvectormap-1.2.2.css: -------------------------------------------------------------------------------- 1 | .jvectormap-label{position:absolute;display:none;-webkit-border-radius:3px;-moz-border-radius:3px;border-radius:3px;background:#292929;color:white;font-size:smaller;padding:3px;}.jvectormap-zoomin,.jvectormap-zoomout{position:absolute;left:10px;background:#fff;border:1px solid #e1e1e1;color:#3498db;cursor:pointer;text-align:center;height:24px;line-height:24px;width:24px;font-size:0.75em;}.jvectormap-zoomin{top:10px;border-radius:3px 3px 0 0;}.jvectormap-zoomout{top:33px;border-radius:0 0 3px 3px;}.jvectormap-zoomin:hover,.jvectormap-zoomout:hover{background-color:#eeeeee;} 2 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/LoginUserService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import com.jiyufei.social.bean.LoginUser; 4 | 5 | /* 6 | *Created by jiyufei on 2016年10月27日 上午10:14:02 . 7 | */ 8 | public interface LoginUserService { 9 | 10 | public LoginUser getUserById(Integer id) throws Exception; 11 | 12 | public LoginUser getUserByMail(String mail) throws Exception; 13 | 14 | public int addUser(LoginUser user) throws Exception; 15 | 16 | public int frozeUserById(Integer id) throws Exception; 17 | 18 | public int updateUserById(LoginUser user) throws Exception; 19 | 20 | } 21 | -------------------------------------------------------------------------------- /.springBeans: -------------------------------------------------------------------------------- 1 | 2 | 3 | 1 4 | 5 | 6 | 7 | 8 | 9 | 10 | src/main/resources/bean-context.xml 11 | src/main/resources/root-context.xml 12 | src/main/resources/application.xml 13 | 14 | 15 | 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd12306Service.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.Sd12306; 6 | 7 | /* 8 | *Created by jiyufei on 2016年10月26日 下午2:08:14 . 9 | */ 10 | public interface Sd12306Service { 11 | 12 | public List getAllRecord() throws Exception; 13 | 14 | public Sd12306 getRecordByMail(String mail) throws Exception; 15 | 16 | public Sd12306 getRecordByName(String name) throws Exception; 17 | 18 | public Sd12306 getRecordByCard(String card) throws Exception; 19 | 20 | public Sd12306 getRecordByPhone(String phone) throws Exception; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/WyCount.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | import java.util.Date; 4 | 5 | public class WyCount { 6 | private Integer id; 7 | 8 | private Date date; 9 | 10 | private Integer num; 11 | 12 | public Integer getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Integer id) { 17 | this.id = id; 18 | } 19 | 20 | public Date getDate() { 21 | return date; 22 | } 23 | 24 | public void setDate(Date date) { 25 | this.date = date; 26 | } 27 | 28 | public Integer getNum() { 29 | return num; 30 | } 31 | 32 | public void setNum(Integer num) { 33 | this.num = num; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SocialCount.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | import java.util.Date; 4 | 5 | public class SocialCount { 6 | private Integer id; 7 | 8 | private Date date; 9 | 10 | private Integer num; 11 | 12 | public Integer getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Integer id) { 17 | this.id = id; 18 | } 19 | 20 | public Date getDate() { 21 | return date; 22 | } 23 | 24 | public void setDate(Date date) { 25 | this.date = date; 26 | } 27 | 28 | public Integer getNum() { 29 | return num; 30 | } 31 | 32 | public void setNum(Integer num) { 33 | this.num = num; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/WyHistory.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | import java.util.Date; 4 | 5 | public class WyHistory { 6 | private Integer id; 7 | 8 | private Integer wyId; 9 | 10 | private Date time; 11 | 12 | public Integer getId() { 13 | return id; 14 | } 15 | 16 | public void setId(Integer id) { 17 | this.id = id; 18 | } 19 | 20 | public Integer getWyId() { 21 | return wyId; 22 | } 23 | 24 | public void setWyId(Integer wyId) { 25 | this.wyId = wyId; 26 | } 27 | 28 | public Date getTime() { 29 | return time; 30 | } 31 | 32 | public void setTime(Date time) { 33 | this.time = time; 34 | } 35 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdIndexNum.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdIndexNum { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userFlag; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserFlag() { 27 | return userFlag; 28 | } 29 | 30 | public void setUserFlag(String userFlag) { 31 | this.userFlag = userFlag; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/Sd163.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class Sd163 { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userPasswd; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserPasswd() { 27 | return userPasswd; 28 | } 29 | 30 | public void setUserPasswd(String userPasswd) { 31 | this.userPasswd = userPasswd; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/Sd7k7k.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class Sd7k7k { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userPasswd; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserPasswd() { 27 | return userPasswd; 28 | } 29 | 30 | public void setUserPasswd(String userPasswd) { 31 | this.userPasswd = userPasswd; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdIndexChar1.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdIndexChar1 { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userFlag; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserFlag() { 27 | return userFlag; 28 | } 29 | 30 | public void setUserFlag(String userFlag) { 31 | this.userFlag = userFlag; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdIndexChar2.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdIndexChar2 { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userFlag; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserFlag() { 27 | return userFlag; 28 | } 29 | 30 | public void setUserFlag(String userFlag) { 31 | this.userFlag = userFlag; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdIndexChar4.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdIndexChar4 { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userFlag; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserFlag() { 27 | return userFlag; 28 | } 29 | 30 | public void setUserFlag(String userFlag) { 31 | this.userFlag = userFlag; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdOther.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdOther { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userPasswd; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserPasswd() { 27 | return userPasswd; 28 | } 29 | 30 | public void setUserPasswd(String userPasswd) { 31 | this.userPasswd = userPasswd; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdRenren.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdRenren { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userPasswd; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserPasswd() { 27 | return userPasswd; 28 | } 29 | 30 | public void setUserPasswd(String userPasswd) { 31 | this.userPasswd = userPasswd; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdWeibo.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdWeibo { 4 | private Integer userId; 5 | 6 | private String userMail; 7 | 8 | private String userPasswd; 9 | 10 | public Integer getUserId() { 11 | return userId; 12 | } 13 | 14 | public void setUserId(Integer userId) { 15 | this.userId = userId; 16 | } 17 | 18 | public String getUserMail() { 19 | return userMail; 20 | } 21 | 22 | public void setUserMail(String userMail) { 23 | this.userMail = userMail; 24 | } 25 | 26 | public String getUserPasswd() { 27 | return userPasswd; 28 | } 29 | 30 | public void setUserPasswd(String userPasswd) { 31 | this.userPasswd = userPasswd; 32 | } 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/controller/DropsPageController.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.controller; 2 | 3 | import org.springframework.stereotype.Controller; 4 | import org.springframework.web.bind.annotation.RequestMapping; 5 | /* 6 | *Created by jiyufei on 2016年11月3日 下午2:39:24 . 7 | */ 8 | import org.springframework.web.servlet.ModelAndView; 9 | 10 | @Controller 11 | public class DropsPageController { 12 | 13 | 14 | @RequestMapping("showDrops.htm") 15 | public ModelAndView showDropsPage(Integer id){ 16 | ModelAndView modelAndView = new ModelAndView("showDrops"); 17 | modelAndView.addObject("id", id); 18 | return modelAndView; 19 | } 20 | 21 | @RequestMapping("wyDrops.htm") 22 | public ModelAndView wyDropsPage(){ 23 | ModelAndView modelAndView = new ModelAndView("wyDrops"); 24 | 25 | return modelAndView; 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/WyDropsService.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import com.jiyufei.social.bean.WyDrops; 6 | /* 7 | *Created by jiyufei on 2016年11月3日 上午11:25:40 . 8 | */ 9 | 10 | public interface WyDropsService { 11 | 12 | public List getAllDrops(Integer pageNum,Integer pageSize) throws Exception; 13 | 14 | public WyDrops getDropsById(Integer id) throws Exception; 15 | 16 | public List searchDrops(WyDrops wyDrops,Integer pageNum,Integer pageSize) throws Exception; 17 | 18 | public List getDropsByTitle(String title) throws Exception; 19 | 20 | public List getDropsByAuthor(String author) throws Exception; 21 | 22 | public Integer addReadNumById(Integer id) throws Exception; 23 | 24 | public Integer getDropsNum() throws Exception; 25 | 26 | public List getDropsTop10() throws Exception; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/Sd163Mapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.Sd163; 4 | import com.jiyufei.social.bean.Sd163Example; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface Sd163Mapper { 9 | int countByExample(Sd163Example example); 10 | 11 | int deleteByExample(Sd163Example example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(Sd163 record); 16 | 17 | int insertSelective(Sd163 record); 18 | 19 | List selectByExample(Sd163Example example); 20 | 21 | Sd163 selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") Sd163 record, @Param("example") Sd163Example example); 24 | 25 | int updateByExample(@Param("record") Sd163 record, @Param("example") Sd163Example example); 26 | 27 | int updateByPrimaryKeySelective(Sd163 record); 28 | 29 | int updateByPrimaryKey(Sd163 record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/AjaxSocial.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | 5 | /* 6 | *Created by jiyufei on 2016年11月1日 下午11:22:54 . 7 | */ 8 | @JsonInclude(JsonInclude.Include.NON_NULL) 9 | public class AjaxSocial { 10 | 11 | private Integer code; 12 | private String msg; 13 | private Integer column; 14 | private Object content; 15 | public Integer getCode() { 16 | return code; 17 | } 18 | public void setCode(Integer code) { 19 | this.code = code; 20 | } 21 | public String getMsg() { 22 | return msg; 23 | } 24 | public void setMsg(String msg) { 25 | this.msg = msg; 26 | } 27 | public Integer getColumn() { 28 | return column; 29 | } 30 | public void setColumn(Integer column) { 31 | this.column = column; 32 | } 33 | public Object getContent() { 34 | return content; 35 | } 36 | public void setContent(Object content) { 37 | this.content = content; 38 | } 39 | 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/webapp/js/modalEffects.js: -------------------------------------------------------------------------------- 1 | var ModalEffects=(function(){function init(){var overlay=document.querySelector('.md-overlay');[].slice.call(document.querySelectorAll('.md-trigger')).forEach(function(el,i){var modal=document.querySelector('#'+ el.getAttribute('data-modal')),close=modal.querySelector('.md-close');function removeModal(hasPerspective){classie.remove(modal,'md-show');if(hasPerspective){classie.remove(document.documentElement,'md-perspective');}} 2 | function removeModalHandler(){removeModal(classie.has(el,'md-setperspective'));} 3 | el.addEventListener('click',function(ev){classie.add(modal,'md-show');overlay.removeEventListener('click',removeModalHandler);overlay.addEventListener('click',removeModalHandler);if(classie.has(el,'md-setperspective')){setTimeout(function(){classie.add(document.documentElement,'md-perspective');},25);}});close.addEventListener('click',function(ev){ev.stopPropagation();removeModalHandler();});$(document).keyup(function(e){if(e.keyCode==27){e.stopPropagation();removeModalHandler();}});});} 4 | init();})(); -------------------------------------------------------------------------------- /src/main/webapp/css/404/reset.css: -------------------------------------------------------------------------------- 1 | /* http://meyerweb.com/eric/tools/css/reset/ 2 | v2.0 | 20110126 3 | License: none (public domain) 4 | */ 5 | 6 | html, body, div, span, applet, object, iframe, 7 | h1, h2, h3, h4, h5, h6, p, blockquote, pre, 8 | a, abbr, acronym, address, big, cite, code, 9 | del, dfn, em, img, ins, kbd, q, s, samp, 10 | small, strike, strong, sub, sup, tt, var, 11 | b, u, i, center, 12 | dl, dt, dd, ol, ul, li, 13 | fieldset, form, label, legend, 14 | table, caption, tbody, tfoot, thead, tr, th, td, 15 | article, aside, canvas, details, embed, 16 | figure, figcaption, footer, header, hgroup, 17 | menu, nav, output, ruby, section, summary, 18 | time, mark, audio, video { 19 | margin:0; 20 | padding:0; 21 | border:0; 22 | font-size:100%; 23 | font:inherit; 24 | vertical-align:baseline; 25 | } 26 | /* HTML5 display-role reset for older browsers */ 27 | article, aside, details, figcaption, figure, 28 | footer, header, hgroup, menu, nav, section { 29 | display:block; 30 | } 31 | body { 32 | line-height:1; 33 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/Sd7k7kMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.Sd7k7k; 4 | import com.jiyufei.social.bean.Sd7k7kExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface Sd7k7kMapper { 9 | int countByExample(Sd7k7kExample example); 10 | 11 | int deleteByExample(Sd7k7kExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(Sd7k7k record); 16 | 17 | int insertSelective(Sd7k7k record); 18 | 19 | List selectByExample(Sd7k7kExample example); 20 | 21 | Sd7k7k selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") Sd7k7k record, @Param("example") Sd7k7kExample example); 24 | 25 | int updateByExample(@Param("record") Sd7k7k record, @Param("example") Sd7k7kExample example); 26 | 27 | int updateByPrimaryKeySelective(Sd7k7k record); 28 | 29 | int updateByPrimaryKey(Sd7k7k record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdCsdnMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdCsdn; 4 | import com.jiyufei.social.bean.SdCsdnExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdCsdnMapper { 9 | int countByExample(SdCsdnExample example); 10 | 11 | int deleteByExample(SdCsdnExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdCsdn record); 16 | 17 | int insertSelective(SdCsdn record); 18 | 19 | List selectByExample(SdCsdnExample example); 20 | 21 | SdCsdn selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdCsdn record, @Param("example") SdCsdnExample example); 24 | 25 | int updateByExample(@Param("record") SdCsdn record, @Param("example") SdCsdnExample example); 26 | 27 | int updateByPrimaryKeySelective(SdCsdn record); 28 | 29 | int updateByPrimaryKey(SdCsdn record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/WyCountMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.WyCount; 4 | import com.jiyufei.social.bean.WyCountExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface WyCountMapper { 9 | int countByExample(WyCountExample example); 10 | 11 | int deleteByExample(WyCountExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(WyCount record); 16 | 17 | int insertSelective(WyCount record); 18 | 19 | List selectByExample(WyCountExample example); 20 | 21 | WyCount selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") WyCount record, @Param("example") WyCountExample example); 24 | 25 | int updateByExample(@Param("record") WyCount record, @Param("example") WyCountExample example); 26 | 27 | int updateByPrimaryKeySelective(WyCount record); 28 | 29 | int updateByPrimaryKey(WyCount record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/Sd12306Mapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.Sd12306; 4 | import com.jiyufei.social.bean.Sd12306Example; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface Sd12306Mapper { 9 | int countByExample(Sd12306Example example); 10 | 11 | int deleteByExample(Sd12306Example example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(Sd12306 record); 16 | 17 | int insertSelective(Sd12306 record); 18 | 19 | List selectByExample(Sd12306Example example); 20 | 21 | Sd12306 selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") Sd12306 record, @Param("example") Sd12306Example example); 24 | 25 | int updateByExample(@Param("record") Sd12306 record, @Param("example") Sd12306Example example); 26 | 27 | int updateByPrimaryKeySelective(Sd12306 record); 28 | 29 | int updateByPrimaryKey(Sd12306 record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/Sd17173Mapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.Sd17173; 4 | import com.jiyufei.social.bean.Sd17173Example; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface Sd17173Mapper { 9 | int countByExample(Sd17173Example example); 10 | 11 | int deleteByExample(Sd17173Example example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(Sd17173 record); 16 | 17 | int insertSelective(Sd17173 record); 18 | 19 | List selectByExample(Sd17173Example example); 20 | 21 | Sd17173 selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") Sd17173 record, @Param("example") Sd17173Example example); 24 | 25 | int updateByExample(@Param("record") Sd17173 record, @Param("example") Sd17173Example example); 26 | 27 | int updateByPrimaryKeySelective(Sd17173 record); 28 | 29 | int updateByPrimaryKey(Sd17173 record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdOtherMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdOther; 4 | import com.jiyufei.social.bean.SdOtherExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdOtherMapper { 9 | int countByExample(SdOtherExample example); 10 | 11 | int deleteByExample(SdOtherExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdOther record); 16 | 17 | int insertSelective(SdOther record); 18 | 19 | List selectByExample(SdOtherExample example); 20 | 21 | SdOther selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdOther record, @Param("example") SdOtherExample example); 24 | 25 | int updateByExample(@Param("record") SdOther record, @Param("example") SdOtherExample example); 26 | 27 | int updateByPrimaryKeySelective(SdOther record); 28 | 29 | int updateByPrimaryKey(SdOther record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdWeiboMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdWeibo; 4 | import com.jiyufei.social.bean.SdWeiboExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdWeiboMapper { 9 | int countByExample(SdWeiboExample example); 10 | 11 | int deleteByExample(SdWeiboExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdWeibo record); 16 | 17 | int insertSelective(SdWeibo record); 18 | 19 | List selectByExample(SdWeiboExample example); 20 | 21 | SdWeibo selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdWeibo record, @Param("example") SdWeiboExample example); 24 | 25 | int updateByExample(@Param("record") SdWeibo record, @Param("example") SdWeiboExample example); 26 | 27 | int updateByPrimaryKeySelective(SdWeibo record); 28 | 29 | int updateByPrimaryKey(SdWeibo record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdCsdn.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdCsdn { 4 | private Integer userId; 5 | 6 | private String userName; 7 | 8 | private String userMail; 9 | 10 | private String userPasswd; 11 | 12 | public Integer getUserId() { 13 | return userId; 14 | } 15 | 16 | public void setUserId(Integer userId) { 17 | this.userId = userId; 18 | } 19 | 20 | public String getUserName() { 21 | return userName; 22 | } 23 | 24 | public void setUserName(String userName) { 25 | this.userName = userName; 26 | } 27 | 28 | public String getUserMail() { 29 | return userMail; 30 | } 31 | 32 | public void setUserMail(String userMail) { 33 | this.userMail = userMail; 34 | } 35 | 36 | public String getUserPasswd() { 37 | return userPasswd; 38 | } 39 | 40 | public void setUserPasswd(String userPasswd) { 41 | this.userPasswd = userPasswd; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/Sd17173.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class Sd17173 { 4 | private Integer userId; 5 | 6 | private String userName; 7 | 8 | private String userMail; 9 | 10 | private String userPasswd; 11 | 12 | public Integer getUserId() { 13 | return userId; 14 | } 15 | 16 | public void setUserId(Integer userId) { 17 | this.userId = userId; 18 | } 19 | 20 | public String getUserName() { 21 | return userName; 22 | } 23 | 24 | public void setUserName(String userName) { 25 | this.userName = userName; 26 | } 27 | 28 | public String getUserMail() { 29 | return userMail; 30 | } 31 | 32 | public void setUserMail(String userMail) { 33 | this.userMail = userMail; 34 | } 35 | 36 | public String getUserPasswd() { 37 | return userPasswd; 38 | } 39 | 40 | public void setUserPasswd(String userPasswd) { 41 | this.userPasswd = userPasswd; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SdZhenai.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SdZhenai { 4 | private Integer userId; 5 | 6 | private String userName; 7 | 8 | private String userMail; 9 | 10 | private String userPasswd; 11 | 12 | public Integer getUserId() { 13 | return userId; 14 | } 15 | 16 | public void setUserId(Integer userId) { 17 | this.userId = userId; 18 | } 19 | 20 | public String getUserName() { 21 | return userName; 22 | } 23 | 24 | public void setUserName(String userName) { 25 | this.userName = userName; 26 | } 27 | 28 | public String getUserMail() { 29 | return userMail; 30 | } 31 | 32 | public void setUserMail(String userMail) { 33 | this.userMail = userMail; 34 | } 35 | 36 | public String getUserPasswd() { 37 | return userPasswd; 38 | } 39 | 40 | public void setUserPasswd(String userPasswd) { 41 | this.userPasswd = userPasswd; 42 | } 43 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdRenrenMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdRenren; 4 | import com.jiyufei.social.bean.SdRenrenExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdRenrenMapper { 9 | int countByExample(SdRenrenExample example); 10 | 11 | int deleteByExample(SdRenrenExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdRenren record); 16 | 17 | int insertSelective(SdRenren record); 18 | 19 | List selectByExample(SdRenrenExample example); 20 | 21 | SdRenren selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdRenren record, @Param("example") SdRenrenExample example); 24 | 25 | int updateByExample(@Param("record") SdRenren record, @Param("example") SdRenrenExample example); 26 | 27 | int updateByPrimaryKeySelective(SdRenren record); 28 | 29 | int updateByPrimaryKey(SdRenren record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdZhenaiMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdZhenai; 4 | import com.jiyufei.social.bean.SdZhenaiExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdZhenaiMapper { 9 | int countByExample(SdZhenaiExample example); 10 | 11 | int deleteByExample(SdZhenaiExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdZhenai record); 16 | 17 | int insertSelective(SdZhenai record); 18 | 19 | List selectByExample(SdZhenaiExample example); 20 | 21 | SdZhenai selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdZhenai record, @Param("example") SdZhenaiExample example); 24 | 25 | int updateByExample(@Param("record") SdZhenai record, @Param("example") SdZhenaiExample example); 26 | 27 | int updateByPrimaryKeySelective(SdZhenai record); 28 | 29 | int updateByPrimaryKey(SdZhenai record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexNumServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdIndexNum; 9 | import com.jiyufei.social.bean.SdIndexNumExample; 10 | import com.jiyufei.social.dao.SdIndexNumMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午4:55:16 . 14 | */ 15 | @Service("sdIndexNumService") 16 | public class SdIndexNumServiceImpl implements SdIndexNumService { 17 | 18 | @Autowired 19 | private SdIndexNumMapper SdIndexNumMapper; 20 | 21 | @Override 22 | public SdIndexNum getRecordByMail(String mail) throws Exception { 23 | SdIndexNumExample example = new SdIndexNumExample(); 24 | example.createCriteria().andUserMailEqualTo(mail); 25 | List list = SdIndexNumMapper.selectByExample(example); 26 | if(list.isEmpty()){ 27 | return null; 28 | } 29 | return list.get(0); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/LoginUserMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.LoginUser; 4 | import com.jiyufei.social.bean.LoginUserExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface LoginUserMapper { 9 | int countByExample(LoginUserExample example); 10 | 11 | int deleteByExample(LoginUserExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(LoginUser record); 16 | 17 | int insertSelective(LoginUser record); 18 | 19 | List selectByExample(LoginUserExample example); 20 | 21 | LoginUser selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") LoginUser record, @Param("example") LoginUserExample example); 24 | 25 | int updateByExample(@Param("record") LoginUser record, @Param("example") LoginUserExample example); 26 | 27 | int updateByPrimaryKeySelective(LoginUser record); 28 | 29 | int updateByPrimaryKey(LoginUser record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/WyHistoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.WyHistory; 4 | import com.jiyufei.social.bean.WyHistoryExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface WyHistoryMapper { 9 | int countByExample(WyHistoryExample example); 10 | 11 | int deleteByExample(WyHistoryExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(WyHistory record); 16 | 17 | int insertSelective(WyHistory record); 18 | 19 | List selectByExample(WyHistoryExample example); 20 | 21 | WyHistory selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") WyHistory record, @Param("example") WyHistoryExample example); 24 | 25 | int updateByExample(@Param("record") WyHistory record, @Param("example") WyHistoryExample example); 26 | 27 | int updateByPrimaryKeySelective(WyHistory record); 28 | 29 | int updateByPrimaryKey(WyHistory record); 30 | } -------------------------------------------------------------------------------- /src/main/webapp/css/libs/ns-default.css: -------------------------------------------------------------------------------- 1 | .ns-box{position:fixed;background:rgba(42,45,50,0.85);padding:22px;line-height:1.4;z-index:1000;pointer-events:none;color:rgba(250,251,255,0.95);font-size:90%;font-family:'Helvetica Neue','Segoe UI',Helvetica,Arial,sans-serif;}.ns-box.ns-show{pointer-events:auto;}.ns-box a{color:inherit;opacity:0.7;font-weight:700;}.ns-box a:hover,.ns-box a:focus{opacity:1;}.ns-box p{margin:0;}.ns-box.ns-show,.ns-box.ns-visible{pointer-events:auto;}.ns-close{width:20px;height:20px;position:absolute;right:4px;top:4px;overflow:hidden;text-indent:100%;cursor:pointer;-webkit-backface-visibility:hidden;backface-visibility:hidden;}.ns-close:hover,.ns-close:focus{outline:none;}.ns-close::before,.ns-close::after{content:'';position:absolute;width:3px;height:60%;top:50%;left:50%;background:#6e6e6e;}.ns-close:hover::before,.ns-close:hover::after{background:#fff;}.ns-close::before{-webkit-transform:translate(-50%,-50%) rotate(45deg);transform:translate(-50%,-50%) rotate(45deg);}.ns-close::after{-webkit-transform:translate(-50%,-50%) rotate(-45deg);transform:translate(-50%,-50%) rotate(-45deg);} -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexChar2ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdIndexChar2; 9 | import com.jiyufei.social.bean.SdIndexChar2Example; 10 | import com.jiyufei.social.dao.SdIndexChar2Mapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午4:40:12 . 14 | */ 15 | @Service("sdIndexChar2") 16 | public class SdIndexChar2ServiceImpl implements SdIndexChar2Service { 17 | 18 | @Autowired 19 | private SdIndexChar2Mapper sdIndexChar2Mapper; 20 | 21 | @Override 22 | public SdIndexChar2 getRecordByMail(String mail) throws Exception { 23 | SdIndexChar2Example example = new SdIndexChar2Example(); 24 | example.createCriteria().andUserMailEqualTo(mail); 25 | List list = sdIndexChar2Mapper.selectByExample(example); 26 | if(list.isEmpty()){ 27 | return null; 28 | } 29 | return list.get(0); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexChar4ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdIndexChar4; 9 | import com.jiyufei.social.bean.SdIndexChar4Example; 10 | import com.jiyufei.social.dao.SdIndexChar4Mapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午4:40:12 . 14 | */ 15 | @Service("sdIndexChar4") 16 | public class SdIndexChar4ServiceImpl implements SdIndexChar4Service { 17 | 18 | @Autowired 19 | private SdIndexChar4Mapper sdIndexChar4Mapper; 20 | 21 | @Override 22 | public SdIndexChar4 getRecordByMail(String mail) throws Exception { 23 | SdIndexChar4Example example = new SdIndexChar4Example(); 24 | example.createCriteria().andUserMailEqualTo(mail); 25 | List list = sdIndexChar4Mapper.selectByExample(example); 26 | if(list.isEmpty()){ 27 | return null; 28 | } 29 | return list.get(0); 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdIndexChar1ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | 4 | import java.util.List; 5 | 6 | import org.springframework.beans.factory.annotation.Autowired; 7 | import org.springframework.stereotype.Service; 8 | 9 | import com.jiyufei.social.bean.SdIndexChar1; 10 | import com.jiyufei.social.bean.SdIndexChar1Example; 11 | import com.jiyufei.social.dao.SdIndexChar1Mapper; 12 | 13 | /* 14 | *Created by jiyufei on 2016年10月26日 下午4:36:26 . 15 | */ 16 | @Service("sdIndexChar1") 17 | public class SdIndexChar1ServiceImpl implements SdIndexChar1Service { 18 | 19 | @Autowired 20 | private SdIndexChar1Mapper sdIndexChar1Mapper; 21 | 22 | @Override 23 | public SdIndexChar1 getRecordByMail(String mail) throws Exception { 24 | SdIndexChar1Example example = new SdIndexChar1Example(); 25 | example.createCriteria().andUserMailEqualTo(mail); 26 | List list = sdIndexChar1Mapper.selectByExample(example); 27 | if(list.isEmpty()){ 28 | return null; 29 | } 30 | return list.get(0); 31 | } 32 | 33 | } 34 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdIndexNumMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdIndexNum; 4 | import com.jiyufei.social.bean.SdIndexNumExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdIndexNumMapper { 9 | int countByExample(SdIndexNumExample example); 10 | 11 | int deleteByExample(SdIndexNumExample example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdIndexNum record); 16 | 17 | int insertSelective(SdIndexNum record); 18 | 19 | List selectByExample(SdIndexNumExample example); 20 | 21 | SdIndexNum selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdIndexNum record, @Param("example") SdIndexNumExample example); 24 | 25 | int updateByExample(@Param("record") SdIndexNum record, @Param("example") SdIndexNumExample example); 26 | 27 | int updateByPrimaryKeySelective(SdIndexNum record); 28 | 29 | int updateByPrimaryKey(SdIndexNum record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/AjaxResponse.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | 3 | import com.fasterxml.jackson.annotation.JsonInclude; 4 | 5 | /* 6 | *Created by jiyufei on 2016年8月27日 下午2:25:40 . 7 | */ 8 | 9 | @JsonInclude(JsonInclude.Include.NON_NULL) 10 | public class AjaxResponse { 11 | private Integer code; 12 | private String msg; 13 | private Object content; 14 | 15 | public AjaxResponse(){ 16 | 17 | } 18 | 19 | public AjaxResponse(Integer code,String msg,String content){ 20 | this.code = code; 21 | this.msg = msg; 22 | this.content = content; 23 | } 24 | 25 | public Integer getCode() { 26 | return code; 27 | } 28 | 29 | public void setCode(Integer code) { 30 | this.code = code; 31 | } 32 | 33 | public String getMsg() { 34 | return msg; 35 | } 36 | 37 | public void setMsg(String msg) { 38 | this.msg = msg; 39 | } 40 | 41 | public Object getContent() { 42 | return content; 43 | } 44 | 45 | public void setContent(Object content) { 46 | this.content = content; 47 | } 48 | 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SocialCountMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SocialCount; 4 | import com.jiyufei.social.bean.SocialCountExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SocialCountMapper { 9 | int countByExample(SocialCountExample example); 10 | 11 | int deleteByExample(SocialCountExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(SocialCount record); 16 | 17 | int insertSelective(SocialCount record); 18 | 19 | List selectByExample(SocialCountExample example); 20 | 21 | SocialCount selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") SocialCount record, @Param("example") SocialCountExample example); 24 | 25 | int updateByExample(@Param("record") SocialCount record, @Param("example") SocialCountExample example); 26 | 27 | int updateByPrimaryKeySelective(SocialCount record); 28 | 29 | int updateByPrimaryKey(SocialCount record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SocialRecordMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SocialRecord; 4 | import com.jiyufei.social.bean.SocialRecordExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SocialRecordMapper { 9 | int countByExample(SocialRecordExample example); 10 | 11 | int deleteByExample(SocialRecordExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(SocialRecord record); 16 | 17 | int insertSelective(SocialRecord record); 18 | 19 | List selectByExample(SocialRecordExample example); 20 | 21 | SocialRecord selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") SocialRecord record, @Param("example") SocialRecordExample example); 24 | 25 | int updateByExample(@Param("record") SocialRecord record, @Param("example") SocialRecordExample example); 26 | 27 | int updateByPrimaryKeySelective(SocialRecord record); 28 | 29 | int updateByPrimaryKey(SocialRecord record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdIndexChar1Mapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdIndexChar1; 4 | import com.jiyufei.social.bean.SdIndexChar1Example; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdIndexChar1Mapper { 9 | int countByExample(SdIndexChar1Example example); 10 | 11 | int deleteByExample(SdIndexChar1Example example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdIndexChar1 record); 16 | 17 | int insertSelective(SdIndexChar1 record); 18 | 19 | List selectByExample(SdIndexChar1Example example); 20 | 21 | SdIndexChar1 selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdIndexChar1 record, @Param("example") SdIndexChar1Example example); 24 | 25 | int updateByExample(@Param("record") SdIndexChar1 record, @Param("example") SdIndexChar1Example example); 26 | 27 | int updateByPrimaryKeySelective(SdIndexChar1 record); 28 | 29 | int updateByPrimaryKey(SdIndexChar1 record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdIndexChar2Mapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdIndexChar2; 4 | import com.jiyufei.social.bean.SdIndexChar2Example; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdIndexChar2Mapper { 9 | int countByExample(SdIndexChar2Example example); 10 | 11 | int deleteByExample(SdIndexChar2Example example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdIndexChar2 record); 16 | 17 | int insertSelective(SdIndexChar2 record); 18 | 19 | List selectByExample(SdIndexChar2Example example); 20 | 21 | SdIndexChar2 selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdIndexChar2 record, @Param("example") SdIndexChar2Example example); 24 | 25 | int updateByExample(@Param("record") SdIndexChar2 record, @Param("example") SdIndexChar2Example example); 26 | 27 | int updateByPrimaryKeySelective(SdIndexChar2 record); 28 | 29 | int updateByPrimaryKey(SdIndexChar2 record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SdIndexChar4Mapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SdIndexChar4; 4 | import com.jiyufei.social.bean.SdIndexChar4Example; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SdIndexChar4Mapper { 9 | int countByExample(SdIndexChar4Example example); 10 | 11 | int deleteByExample(SdIndexChar4Example example); 12 | 13 | int deleteByPrimaryKey(Integer userId); 14 | 15 | int insert(SdIndexChar4 record); 16 | 17 | int insertSelective(SdIndexChar4 record); 18 | 19 | List selectByExample(SdIndexChar4Example example); 20 | 21 | SdIndexChar4 selectByPrimaryKey(Integer userId); 22 | 23 | int updateByExampleSelective(@Param("record") SdIndexChar4 record, @Param("example") SdIndexChar4Example example); 24 | 25 | int updateByExample(@Param("record") SdIndexChar4 record, @Param("example") SdIndexChar4Example example); 26 | 27 | int updateByPrimaryKeySelective(SdIndexChar4 record); 28 | 29 | int updateByPrimaryKey(SdIndexChar4 record); 30 | } -------------------------------------------------------------------------------- /src/main/resources/application.xml: -------------------------------------------------------------------------------- 1 | 2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/SocialHistoryMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.SocialHistory; 4 | import com.jiyufei.social.bean.SocialHistoryExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface SocialHistoryMapper { 9 | int countByExample(SocialHistoryExample example); 10 | 11 | int deleteByExample(SocialHistoryExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(SocialHistory record); 16 | 17 | int insertSelective(SocialHistory record); 18 | 19 | List selectByExample(SocialHistoryExample example); 20 | 21 | SocialHistory selectByPrimaryKey(Integer id); 22 | 23 | int updateByExampleSelective(@Param("record") SocialHistory record, @Param("example") SocialHistoryExample example); 24 | 25 | int updateByExample(@Param("record") SocialHistory record, @Param("example") SocialHistoryExample example); 26 | 27 | int updateByPrimaryKeySelective(SocialHistory record); 28 | 29 | int updateByPrimaryKey(SocialHistory record); 30 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/Md5.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | 3 | import java.security.*; 4 | public class Md5 { 5 | /** 6 | * md5 7 | * @param message 8 | * @return 9 | */ 10 | public static String getMD5(String message) { 11 | String md5str = ""; 12 | try { 13 | // 14 | MessageDigest md = MessageDigest.getInstance("MD5"); 15 | 16 | //2 17 | byte[] input = message.getBytes(); 18 | 19 | //3 20 | byte[] buff = md.digest(input); 21 | 22 | //4 23 | md5str = bytesToHex(buff); 24 | 25 | } catch (Exception e) { 26 | e.printStackTrace(); 27 | } 28 | return md5str; 29 | } 30 | 31 | /** 32 | * 33 | * @param bytes 34 | * @return 35 | */ 36 | public static String bytesToHex(byte[] bytes) { 37 | StringBuffer md5str = new StringBuffer(); 38 | // 39 | int digital; 40 | for (int i = 0; i < bytes.length; i++) { 41 | digital = bytes[i]; 42 | 43 | if(digital < 0) { 44 | digital += 256; 45 | } 46 | if(digital < 16){ 47 | md5str.append("0"); 48 | } 49 | md5str.append(Integer.toHexString(digital)); 50 | } 51 | return md5str.toString(); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SocialHistory.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | import java.util.Date; 4 | 5 | public class SocialHistory { 6 | private Integer id; 7 | 8 | private String content; 9 | 10 | private Date time; 11 | 12 | private Integer type; 13 | 14 | private Integer hit; 15 | 16 | public Integer getId() { 17 | return id; 18 | } 19 | 20 | public void setId(Integer id) { 21 | this.id = id; 22 | } 23 | 24 | public String getContent() { 25 | return content; 26 | } 27 | 28 | public void setContent(String content) { 29 | this.content = content; 30 | } 31 | 32 | public Date getTime() { 33 | return time; 34 | } 35 | 36 | public void setTime(Date time) { 37 | this.time = time; 38 | } 39 | 40 | public Integer getType() { 41 | return type; 42 | } 43 | 44 | public void setType(Integer type) { 45 | this.type = type; 46 | } 47 | 48 | public Integer getHit() { 49 | return hit; 50 | } 51 | 52 | public void setHit(Integer hit) { 53 | this.hit = hit; 54 | } 55 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/DropsHistory.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | 3 | import com.jiyufei.social.bean.WyDrops; 4 | 5 | /* 6 | *Created by jiyufei on 2016年11月4日 上午11:47:54 . 7 | */ 8 | public class DropsHistory { 9 | 10 | private Integer id; 11 | private String title; 12 | private String author; 13 | private Integer num; 14 | 15 | public DropsHistory(){ 16 | 17 | } 18 | 19 | public DropsHistory(WyDrops drops){ 20 | this.id = drops.getId(); 21 | this.title = drops.getTitle(); 22 | this.author = drops.getAuthor(); 23 | this.num = drops.getNum(); 24 | } 25 | 26 | public Integer getId() { 27 | return id; 28 | } 29 | public void setId(Integer id) { 30 | this.id = id; 31 | } 32 | public String getTitle() { 33 | return title; 34 | } 35 | public void setTitle(String title) { 36 | this.title = title; 37 | } 38 | public String getAuthor() { 39 | return author; 40 | } 41 | public void setAuthor(String author) { 42 | this.author = author; 43 | } 44 | public Integer getNum() { 45 | return num; 46 | } 47 | public void setNum(Integer num) { 48 | this.num = num; 49 | } 50 | 51 | 52 | 53 | 54 | } 55 | -------------------------------------------------------------------------------- /src/main/webapp/css/compiled/calendar.css: -------------------------------------------------------------------------------- 1 | .main-box .fc{margin-top:15px;}.external-event{color:#FFFFFF;cursor:pointer;font-size:0.85em;margin:5px 0;padding:3px 8px;}#external-events p{margin:1.5em 0;font-size:11px;color:#666;}#external-events p input{margin:0;vertical-align:middle;}.fc-content{margin-top:10px;}.fc-header-title h2{background:none;border-left:0;margin-top:8px;padding:0;}.fc-state-default{background:#fff;border:1px solid #e1e1e1;box-shadow:none;color:#3498db;padding:4px 14px;height:auto;}.fc-state-default:hover{background-color:#eee;}.fc-state-highlight{background-color:#eee;}.fc-grid .fc-day-number{font-size:0.875em;font-weight:bold;padding:6px 5px 0 0;}.fc-grid .fc-state-highlight .fc-day-number{color:#3498db;}.fc-widget-header{background:none;border-left:medium none;border-right:medium none;border-top:medium none;border-color:#e7ebee;color:#616060;font-size:1.225em;font-weight:300;line-height:32px;}.fc-widget-content{border-color:#e7ebee;}.fc-ltr .fc-event-hori.fc-event-start,.fc-rtl .fc-event-hori.fc-event-end{border-radius:2px;}.fc-event-vert.fc-event-end,.fc-event-vert.fc-event-start{border-radius:0;}.fc-event{background:#3498db;border:0 none;border-radius:3px;font-size:0.75em;padding:1px;}.rtl .fc-grid .fc-day-number{padding:6px 0 0 5px;} -------------------------------------------------------------------------------- /src/main/resources/log4j.properties: -------------------------------------------------------------------------------- 1 | 2 | log4j.rootLogger = debug,stdout,info,error 3 | 4 | 5 | log4j.appender.stdout = org.apache.log4j.ConsoleAppender 6 | log4j.appender.stdout.Target = System.out 7 | log4j.appender.stdout.layout = org.apache.log4j.PatternLayout 8 | log4j.appender.stdout.layout.ConversionPattern = [%-5p] %d{yyyy-MM-dd HH:mm:ss,SSS} method:%l%n%m%n 9 | 10 | 11 | log4j.appender.info = org.apache.log4j.DailyRollingFileAppender 12 | log4j.appender.info.File =/opt/tomcat7/logs/social/info.log 13 | log4j.appender.info.MaxFileSize=20480KB 14 | log4j.appender.info.Append = true 15 | log4j.appender.info.Threshold = INFO 16 | log4j.appender.info.layout = org.apache.log4j.PatternLayout 17 | log4j.appender.info.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n 18 | 19 | 20 | log4j.appender.error = org.apache.log4j.DailyRollingFileAppender 21 | log4j.appender.error.File =/opt/tomcat7/logs/social/error.log 22 | log4j.appender.error.MaxFileSize=20480KB 23 | log4j.appender.error.Append = true 24 | log4j.appender.error.Threshold = ERROR 25 | log4j.appender.error.layout = org.apache.log4j.PatternLayout 26 | log4j.appender.error.layout.ConversionPattern = %-d{yyyy-MM-dd HH:mm:ss} [ %t:%r ] - [ %p ] %m%n -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdOtherServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdOther; 9 | import com.jiyufei.social.bean.SdOtherExample; 10 | import com.jiyufei.social.dao.SdOtherMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午5:01:11 . 14 | */ 15 | @Service("sdOtherService") 16 | public class SdOtherServiceImpl implements SdOtherService { 17 | 18 | @Autowired 19 | private SdOtherMapper sdOtherMapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | SdOtherExample example = new SdOtherExample(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sdOtherMapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public SdOther getRecordByMail(String mail) throws Exception { 31 | SdOtherExample example = new SdOtherExample(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sdOtherMapper.selectByExample(example); 34 | return list.get(0); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdWeiboServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdWeibo; 9 | import com.jiyufei.social.bean.SdWeiboExample; 10 | import com.jiyufei.social.dao.SdWeiboMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午5:10:38 . 14 | */ 15 | @Service("sdWeiboService") 16 | public class SdWeiboServiceImpl implements SdWeiboService { 17 | 18 | @Autowired 19 | private SdWeiboMapper sdWeiboMapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | SdWeiboExample example = new SdWeiboExample(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sdWeiboMapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public SdWeibo getRecordByMail(String mail) throws Exception { 31 | SdWeiboExample example = new SdWeiboExample(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sdWeiboMapper.selectByExample(example); 34 | return list.get(0); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/SocialRecord.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class SocialRecord { 4 | private Integer id; 5 | 6 | private Integer recordNum; 7 | 8 | private Integer selectNum; 9 | 10 | private Integer hitNum; 11 | 12 | private Integer dropsNum; 13 | 14 | public Integer getId() { 15 | return id; 16 | } 17 | 18 | public void setId(Integer id) { 19 | this.id = id; 20 | } 21 | 22 | public Integer getRecordNum() { 23 | return recordNum; 24 | } 25 | 26 | public void setRecordNum(Integer recordNum) { 27 | this.recordNum = recordNum; 28 | } 29 | 30 | public Integer getSelectNum() { 31 | return selectNum; 32 | } 33 | 34 | public void setSelectNum(Integer selectNum) { 35 | this.selectNum = selectNum; 36 | } 37 | 38 | public Integer getHitNum() { 39 | return hitNum; 40 | } 41 | 42 | public void setHitNum(Integer hitNum) { 43 | this.hitNum = hitNum; 44 | } 45 | 46 | public Integer getDropsNum() { 47 | return dropsNum; 48 | } 49 | 50 | public void setDropsNum(Integer dropsNum) { 51 | this.dropsNum = dropsNum; 52 | } 53 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdRenrenServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdRenren; 9 | import com.jiyufei.social.bean.SdRenrenExample; 10 | import com.jiyufei.social.dao.SdRenrenMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午5:07:01 . 14 | */ 15 | @Service("sdRenrenService") 16 | public class SdRenrenServiceImpl implements SdRenrenService { 17 | 18 | @Autowired 19 | private SdRenrenMapper sdRenrenMapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | SdRenrenExample example = new SdRenrenExample(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sdRenrenMapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public SdRenren getRecordByMail(String mail) throws Exception { 31 | SdRenrenExample example = new SdRenrenExample(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sdRenrenMapper.selectByExample(example); 34 | return list.get(0); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdZhenaiServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdZhenai; 9 | import com.jiyufei.social.bean.SdZhenaiExample; 10 | import com.jiyufei.social.dao.SdZhenaiMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午5:14:49 . 14 | */ 15 | @Service("sdZhenaiService") 16 | public class SdZhenaiServiceImpl implements SdZhenaiService { 17 | 18 | @Autowired 19 | private SdZhenaiMapper sdZhenaiMapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | SdZhenaiExample example = new SdZhenaiExample(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sdZhenaiMapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public SdZhenai getRecordByMail(String mail) throws Exception { 31 | SdZhenaiExample example = new SdZhenaiExample(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sdZhenaiMapper.selectByExample(example); 34 | return list.get(0); 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd163ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.Sd163; 9 | import com.jiyufei.social.bean.Sd163Example; 10 | import com.jiyufei.social.dao.Sd163Mapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午2:33:40 . 14 | */ 15 | @Service("sd163Service") 16 | public class Sd163ServiceImpl implements Sd163Service { 17 | 18 | @Autowired 19 | private Sd163Mapper sd163Mapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | Sd163Example example = new Sd163Example(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sd163Mapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public Sd163 getRecordByMail(String mail) throws Exception { 31 | Sd163Example example = new Sd163Example(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sd163Mapper.selectByExample(example); 34 | if(list.isEmpty()){ 35 | return null; 36 | } 37 | return list.get(0); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/dao/WyDropsMapper.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.dao; 2 | 3 | import com.jiyufei.social.bean.WyDrops; 4 | import com.jiyufei.social.bean.WyDropsExample; 5 | import java.util.List; 6 | import org.apache.ibatis.annotations.Param; 7 | 8 | public interface WyDropsMapper { 9 | int countByExample(WyDropsExample example); 10 | 11 | int deleteByExample(WyDropsExample example); 12 | 13 | int deleteByPrimaryKey(Integer id); 14 | 15 | int insert(WyDrops record); 16 | 17 | int insertSelective(WyDrops record); 18 | 19 | List selectByExampleWithBLOBs(WyDropsExample example); 20 | 21 | List selectByExample(WyDropsExample example); 22 | 23 | WyDrops selectByPrimaryKey(Integer id); 24 | 25 | int updateByExampleSelective(@Param("record") WyDrops record, @Param("example") WyDropsExample example); 26 | 27 | int updateByExampleWithBLOBs(@Param("record") WyDrops record, @Param("example") WyDropsExample example); 28 | 29 | int updateByExample(@Param("record") WyDrops record, @Param("example") WyDropsExample example); 30 | 31 | int updateByPrimaryKeySelective(WyDrops record); 32 | 33 | int updateByPrimaryKeyWithBLOBs(WyDrops record); 34 | 35 | int updateByPrimaryKey(WyDrops record); 36 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd7k7kServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.Sd7k7k; 9 | import com.jiyufei.social.bean.Sd7k7kExample; 10 | import com.jiyufei.social.dao.Sd7k7kMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午3:36:12 . 14 | */ 15 | @Service("sd7k7kService") 16 | public class Sd7k7kServiceImpl implements Sd7k7kService { 17 | 18 | @Autowired 19 | private Sd7k7kMapper sd7k7kMapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | Sd7k7kExample example = new Sd7k7kExample(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sd7k7kMapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public Sd7k7k getRecordByMail(String mail) throws Exception { 31 | Sd7k7kExample example = new Sd7k7kExample(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sd7k7kMapper.selectByExample(example); 34 | if(list.isEmpty()){ 35 | return null; 36 | } 37 | return list.get(0); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SdCsdnServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.SdCsdn; 9 | import com.jiyufei.social.bean.SdCsdnExample; 10 | import com.jiyufei.social.dao.SdCsdnMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午4:03:04 . 14 | */ 15 | @Service("sdCsdnService") 16 | public class SdCsdnServiceImpl implements SdCsdnService { 17 | 18 | @Autowired 19 | private SdCsdnMapper sdCsdnMapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | SdCsdnExample example = new SdCsdnExample(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sdCsdnMapper.selectByExample(example); 26 | return list; 27 | } 28 | 29 | @Override 30 | public SdCsdn getRecordByMail(String mail) throws Exception { 31 | SdCsdnExample example = new SdCsdnExample(); 32 | example.createCriteria().andUserMailEqualTo(mail); 33 | List list = sdCsdnMapper.selectByExample(example); 34 | if(list.isEmpty()){ 35 | return null; 36 | } 37 | return list.get(0); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd17173ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.Sd17173; 9 | import com.jiyufei.social.bean.Sd17173Example; 10 | import com.jiyufei.social.dao.Sd17173Mapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午3:27:52 . 14 | */ 15 | 16 | @Service("sd17173Service") 17 | public class Sd17173ServiceImpl implements Sd17173Service { 18 | 19 | @Autowired 20 | private Sd17173Mapper sd17173Mapper; 21 | 22 | @Override 23 | public List getAllRecord() throws Exception { 24 | Sd17173Example example = new Sd17173Example(); 25 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 26 | List list = sd17173Mapper.selectByExample(example); 27 | return list; 28 | } 29 | 30 | @Override 31 | public Sd17173 getRecordByMail(String mail) throws Exception { 32 | Sd17173Example example = new Sd17173Example(); 33 | example.createCriteria().andUserMailEqualTo(mail); 34 | List list = sd17173Mapper.selectByExample(example); 35 | if(list.isEmpty()){ 36 | return null; 37 | } 38 | return list.get(0); 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/webapp/js/jquery.pwstrength.js: -------------------------------------------------------------------------------- 1 | ;(function($){$.pwstrength=function(password){var score=0,length=password.length,upperCase,lowerCase,digits,nonAlpha;if(length<5)score+=0;else if(length<8)score+=5;else if(length<16)score+=10;else score+=15;lowerCase=password.match(/[a-z]/g);if(lowerCase)score+=1;upperCase=password.match(/[A-Z]/g);if(upperCase)score+=5;if(upperCase&&lowerCase)score+=2;digits=password.match(/\d/g);if(digits&&digits.length>1)score+=5;nonAlpha=password.match(/\W/g) 2 | if(nonAlpha)score+=(nonAlpha.length>1)?15:10;if(upperCase&&lowerCase&&digits&&nonAlpha)score+=15;if(password.match(/\s/))score+=10;if(score<15)return 0;if(score<20)return 1;if(score<35)return 2;if(score<50)return 3;return 4;};function updateIndicator(event){var strength=$.pwstrength($(this).val()),options=event.data,klass;klass=options.classes[strength];options.indicator.removeClass(options.indicator.data('pwclass'));options.indicator.data('pwclass',klass);options.indicator.addClass(klass);options.indicator.find(options.label).html(options.texts[strength]);} 3 | $.fn.pwstrength=function(options){var options=$.extend({label:'.label',classes:['pw-very-weak','pw-weak','pw-mediocre','pw-strong','pw-very-strong'],texts:['very weak','weak','mediocre','strong','very strong']},options||{});options.indicator=$('#'+ this.data('indicator'));return this.keyup(options,updateIndicator);};})(jQuery); -------------------------------------------------------------------------------- /src/main/webapp/css/libs/jquery.nouislider.css: -------------------------------------------------------------------------------- 1 | .noUi-target *{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;-webkit-touch-callout:none;-ms-touch-action:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;cursor:default;}.slider-label{padding-top:8px;display:block;}.noUi-base{width:100%;height:8px;position:relative;max-width:100%;max-height:100%;z-index:1;}.noUi-handle{background:#fff;border:1px solid #DDDDDD;border-radius:2px;height:16px;margin:-4px 0 0 -9px;width:16px;cursor:pointer;}.noUi-active{background:#E9E9E9;}.noUi-active:after{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;content:"";display:block;height:100%;border:1px solid #DDD;}.noUi-connect{background:#3498db;}.noUi-background{background:#eee;}.slider-danger .noUi-connect{background:#fe635f;}.slider-success .noUi-connect{background:#8dc859;}.slider-warning .noUi-connect{background:#f1c40f;}.slider-info .noUi-connect{background:#8F44AD;}.noUi-origin{position:absolute;right:0;top:0;bottom:0;z-index:0;border-radius:inherit;}.noUi-origin-upper{background:inherit!important;}.noUi-z-index{z-index:10;}.noUi-vertical{width:8px;height:100%;}.noUi-vertical .noUi-origin{bottom:0;left:0;}.noUi-vertical .noUi-handle{margin:-9px 0 0 -4px;}.noUi-target[disabled] .noUi-base{background:#999;}.noUi-target[disabled] .noUi-connect{background:#BBB;}.noUi-state-tap .noUi-origin{-webkit-transition:left 0.3s,top 0.3s;transition:left 0.3s,top 0.3s;} -------------------------------------------------------------------------------- /src/main/webapp/js/gdp-data.js: -------------------------------------------------------------------------------- 1 | var gdpData={"AF":16.63,"AL":11.58,"DZ":158.97,"AO":85.81,"AG":1.1,"AR":351.02,"AM":8.83,"AU":1219.72,"AT":366.26,"AZ":52.17,"BS":7.54,"BH":21.73,"BD":105.4,"BB":3.96,"BY":52.89,"BE":461.33,"CM":21.88,"CA":1563.66,"CV":1.57,"CI":22.38,"HR":59.92,"CY":22.75,"CZ":195.23,"DK":304.56,"DJ":1.14,"DM":0.38,"DO":50.87,"SV":21.8,"GQ":14.55,"ER":2.25,"EE":19.22,"ET":30.94,"FJ":3.15,"FI":231.98,"FR":2555.44,"GA":12.56,"GM":1.04,"GE":11.23,"DE":3305.9,"GH":18.06,"GR":305.01,"GD":0.65,"GT":40.77,"GN":4.34,"GW":0.83,"GY":2.2,"HT":6.5,"HN":15.34,"HK":226.49,"HU":132.28,"IS":12.77,"IN":1430.02,"ID":695.06,"IR":337.9,"IQ":84.14,"IE":204.14,"IL":201.25,"IT":2036.69,"JM":13.74,"JP":5390.9,"JO":27.13,"KZ":129.76,"KE":32.42,"KI":0.15,"KR":986.26,"UNDEFINED":5.73,"KW":117.32,"KG":4.44,"LA":6.34,"LV":23.39,"LB":39.15,"LS":1.8,"LR":0.98,"LY":77.91,"LT":35.73,"LU":52.43,"MK":9.58,"MG":8.33,"MW":5.04,"MY":218.95,"MV":1.43,"ML":9.08,"MT":7.8,"MR":3.49,"MU":9.43,"MX":1004.04,"MD":5.36,"MN":5.81,"ME":3.88,"MA":91.7,"MZ":10.21,"MM":35.65,"NA":11.45,"NP":15.11,"NL":770.31,"NZ":138,"NI":6.38,"NE":5.6,"NG":206.66,"NO":413.51,"OM":53.78,"PK":174.79,"PA":27.2,"PG":8.81,"PY":17.17,"PE":153.55,"PH":189.06,"PL":438.88,"PT":223.7,"QA":126.52,"RO":158.39,"RU":1476.91,"RW":5.69,"WS":0.55,"ST":0.19,"SA":434.44,"SN":12.66,"RS":38.92,"SC":0.92,"SL":1.9,"SG":217.38,"SK":86.26,"SI":46.44,"SB":0.67,"ZA":354.41,"ES":1374.78,"LK":48.24,"KN":0.56,"LC":1,"VC":0.58,"SD":65.93,"SR":3.3,"SZ":3.17,"SE":444.59,"CH":522.44,"SY":59.63,"TW":426.98,"TJ":5.58,"TZ":22.43,"TH":312.61,"TL":0.62,"TG":3.07,"TO":0.3,"TT":21.2,"TN":43.86,"TR":729.05,"TM":0,"UG":17.12,"UA":136.56,"AE":239.65,"GB":2258.57,"US":14624.18,"UY":40.71,"UZ":37.72,"VU":0.72,"VE":285.21,"VN":101.99,"YE":30.02,"ZM":15.69,"ZW":5.57}; -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/Sd12306.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | public class Sd12306 { 4 | private Integer userId; 5 | 6 | private String userName; 7 | 8 | private String userMail; 9 | 10 | private String userPasswd; 11 | 12 | private String userCard; 13 | 14 | private String userPhone; 15 | 16 | private String userUndef; 17 | 18 | public Integer getUserId() { 19 | return userId; 20 | } 21 | 22 | public void setUserId(Integer userId) { 23 | this.userId = userId; 24 | } 25 | 26 | public String getUserName() { 27 | return userName; 28 | } 29 | 30 | public void setUserName(String userName) { 31 | this.userName = userName; 32 | } 33 | 34 | public String getUserMail() { 35 | return userMail; 36 | } 37 | 38 | public void setUserMail(String userMail) { 39 | this.userMail = userMail; 40 | } 41 | 42 | public String getUserPasswd() { 43 | return userPasswd; 44 | } 45 | 46 | public void setUserPasswd(String userPasswd) { 47 | this.userPasswd = userPasswd; 48 | } 49 | 50 | public String getUserCard() { 51 | return userCard; 52 | } 53 | 54 | public void setUserCard(String userCard) { 55 | this.userCard = userCard; 56 | } 57 | 58 | public String getUserPhone() { 59 | return userPhone; 60 | } 61 | 62 | public void setUserPhone(String userPhone) { 63 | this.userPhone = userPhone; 64 | } 65 | 66 | public String getUserUndef() { 67 | return userUndef; 68 | } 69 | 70 | public void setUserUndef(String userUndef) { 71 | this.userUndef = userUndef; 72 | } 73 | } -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SocialHistoryServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.github.pagehelper.PageHelper; 9 | import com.jiyufei.social.bean.SocialHistory; 10 | import com.jiyufei.social.bean.SocialHistoryExample; 11 | import com.jiyufei.social.dao.SocialHistoryMapper; 12 | 13 | /* 14 | *Created by jiyufei on 2016年11月1日 下午12:20:42 . 15 | */ 16 | @Service("socialHistoryService") 17 | public class SocialHistoryServiceImpl implements SocialHistoryService { 18 | 19 | @Autowired 20 | private SocialHistoryMapper socialHistoryMapper; 21 | 22 | @Override 23 | public List getHistory() throws Exception { 24 | SocialHistoryExample example = new SocialHistoryExample(); 25 | example.createCriteria().andIdGreaterThan(new Integer(0)); 26 | example.setOrderByClause("time desc"); 27 | PageHelper.startPage(1, 10); 28 | List socialHistories = socialHistoryMapper.selectByExample(example); 29 | return socialHistories; 30 | } 31 | 32 | @Override 33 | public List getAllHistory(Integer pageNum,Integer pageSize) throws Exception { 34 | SocialHistoryExample example = new SocialHistoryExample(); 35 | example.createCriteria().andIdGreaterThan(new Integer(0)); 36 | PageHelper.startPage(pageNum, pageSize); 37 | List socialHistories = socialHistoryMapper.selectByExample(example); 38 | return socialHistories; 39 | } 40 | 41 | @Override 42 | public Integer addHistory(SocialHistory history) throws Exception { 43 | Integer result = socialHistoryMapper.insertSelective(history); 44 | return result; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/LoginUserServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.LoginUser; 9 | import com.jiyufei.social.bean.LoginUserExample; 10 | import com.jiyufei.social.dao.LoginUserMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月27日 上午10:52:10 . 14 | */ 15 | @Service("loginUserService") 16 | public class LoginUserServiceImpl implements LoginUserService { 17 | 18 | @Autowired 19 | private LoginUserMapper loginUserMapper; 20 | 21 | 22 | @Override 23 | public LoginUser getUserById(Integer id) throws Exception { 24 | LoginUser loginUser = loginUserMapper.selectByPrimaryKey(id); 25 | return loginUser; 26 | } 27 | 28 | @Override 29 | public LoginUser getUserByMail(String mail) throws Exception { 30 | LoginUserExample example = new LoginUserExample(); 31 | example.createCriteria().andMailEqualTo(mail); 32 | List loginUserList = loginUserMapper.selectByExample(example); 33 | return loginUserList.get(0); 34 | } 35 | 36 | @Override 37 | public int addUser(LoginUser user) throws Exception { 38 | int result = loginUserMapper.insertSelective(user); 39 | return result; 40 | } 41 | 42 | @Override 43 | public int frozeUserById(Integer id) throws Exception { 44 | LoginUser loginUser = new LoginUser(); 45 | loginUser.setId(id); 46 | loginUser.setStatus(0); 47 | int result = loginUserMapper.updateByPrimaryKeySelective(loginUser); 48 | return result; 49 | } 50 | 51 | @Override 52 | public int updateUserById(LoginUser user) throws Exception { 53 | int result = loginUserMapper.updateByPrimaryKeySelective(user); 54 | return result; 55 | } 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/LoginUser.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | import java.util.Date; 4 | 5 | public class LoginUser { 6 | private Integer id; 7 | 8 | private String username; 9 | 10 | private String mail; 11 | 12 | private String password; 13 | 14 | private String department; 15 | 16 | private Date createTime; 17 | 18 | private Integer auth; 19 | 20 | private Integer status; 21 | 22 | public Integer getId() { 23 | return id; 24 | } 25 | 26 | public void setId(Integer id) { 27 | this.id = id; 28 | } 29 | 30 | public String getUsername() { 31 | return username; 32 | } 33 | 34 | public void setUsername(String username) { 35 | this.username = username; 36 | } 37 | 38 | public String getMail() { 39 | return mail; 40 | } 41 | 42 | public void setMail(String mail) { 43 | this.mail = mail; 44 | } 45 | 46 | public String getPassword() { 47 | return password; 48 | } 49 | 50 | public void setPassword(String password) { 51 | this.password = password; 52 | } 53 | 54 | public String getDepartment() { 55 | return department; 56 | } 57 | 58 | public void setDepartment(String department) { 59 | this.department = department; 60 | } 61 | 62 | public Date getCreateTime() { 63 | return createTime; 64 | } 65 | 66 | public void setCreateTime(Date createTime) { 67 | this.createTime = createTime; 68 | } 69 | 70 | public Integer getAuth() { 71 | return auth; 72 | } 73 | 74 | public void setAuth(Integer auth) { 75 | this.auth = auth; 76 | } 77 | 78 | public Integer getStatus() { 79 | return status; 80 | } 81 | 82 | public void setStatus(Integer status) { 83 | this.status = status; 84 | } 85 | } -------------------------------------------------------------------------------- /src/main/webapp/js/jquery.hotkeys.js: -------------------------------------------------------------------------------- 1 | (function(jQuery){jQuery.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",191:"/",224:"meta"},shiftNums:{"`":"~","1":"!","2":"@","3":"#","4":"$","5":"%","6":"^","7":"&","8":"*","9":"(","0":")","-":"_","=":"+",";":": ","'":"\"",",":"<",".":">","/":"?","\\":"|"}};function keyHandler(handleObj){if(typeof handleObj.data!=="string"){return;} 2 | var origHandler=handleObj.handler,keys=handleObj.data.toLowerCase().split(" "),textAcceptingInputTypes=["text","password","number","email","url","range","date","month","week","time","datetime","datetime-local","search","color"];handleObj.handler=function(event){if(this!==event.target&&(/textarea|select/i.test(event.target.nodeName)||jQuery.inArray(event.target.type,textAcceptingInputTypes)>-1)){return;} 3 | var special=event.type!=="keypress"&&jQuery.hotkeys.specialKeys[event.which],character=String.fromCharCode(event.which).toLowerCase(),key,modif="",possible={};if(event.altKey&&special!=="alt"){modif+="alt+";} 4 | if(event.ctrlKey&&special!=="ctrl"){modif+="ctrl+";} 5 | if(event.metaKey&&!event.ctrlKey&&special!=="meta"){modif+="meta+";} 6 | if(event.shiftKey&&special!=="shift"){modif+="shift+";} 7 | if(special){possible[modif+ special]=true;}else{possible[modif+ character]=true;possible[modif+ jQuery.hotkeys.shiftNums[character]]=true;if(modif==="shift+"){possible[jQuery.hotkeys.shiftNums[character]]=true;}} 8 | for(var i=0,l=keys.length;i 3 |
4 |
5 | 16 | 76 |
77 |
-------------------------------------------------------------------------------- /src/main/webapp/css/libs/bootstrap-wizard.css: -------------------------------------------------------------------------------- 1 | .wizard{display:none;}.wizard-modal form{margin:0;padding:0;}.wizard-modal.modal{width:750px;margin-left:-375px;top:50%;background:#fff;left:50%;overflow:hidden;bottom:auto;position:fixed;}.wizard-modal-footer{padding:0;}.wizard-modal-header.modal-header h3{border-bottom:0 none;margin:0 -15px;padding:5px 0 5px 20px;}.wizard-modal-header.modal-header{border-bottom:0;}.wizard-subtitle{font-weight:bold;color:#AFAFAF;padding-left:20px;display:none;}.wizard-error,.wizard-failure,.wizard-success,.wizard-loading,.wizard-card{position:relative;padding:35px;padding-top:20px;overflow-y:auto;height:300px;display:none;border-top:1px solid #EEE;margin-right:5px;}.wizard-nav-link .icon-chevron-right{float:right;margin-top:12px;margin-right:-6px;opacity:.25;}li.wizard-nav-item.active .icon-chevron-right{opacity:1;}li.wizard-nav-item{line-height:40px;float:none;}.wizard-modal.modal .nav-list>li>a{background-color:#f5f5f5;padding:3px 15px 3px 20px;cursor:default;color:#B4B4B4;}.wizard-modal.modal .nav-list li.active>a{background-color:#3498db;}.wizard-modal.modal .nav-list>li.already-visited>a.wizard-nav-link{color:#3498db;cursor:pointer;}.wizard-modal.modal .nav-list>li.active>a.wizard-nav-link{color:white;}.already-visited>a.wizard-nav-link:hover{background-color:#E4E4E4;}.wizard-card>h3{margin-top:0;}.wizard-progress{padding:15px;bottom:0;}.wizard-progress-container{padding:20px;}.wizard-steps{width:28%;height:425px;background-color:#f5f5f5;}.wizard-nav-container{height:360px;}.nav>li>a.wizard-step-error{background-color:#F2DEDE;color:#B94A48;font-weight:bold;}.wizard-step-error .icon-chevron-right{opacity:0;}.wizard-input-section{margin-bottom:10px;}.wizard-buttons-container{padding:20px;}.wizard-cancel{display:none;margin-left:20px;}.wizard-modal .popover.error-popover{background-color:#F2DEDE;color:#A94442;border-color:#DD504C;}.wizard-modal .popover.error-popover .arrow::after{border-top-color:#F2DEDE;}.wizard-modal .popover.error-popover .popover-title{display:none;}.wizard-modal .popover.error-popover .arrow{border-top-color:#DD504C;} -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SocialRecordServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import org.springframework.beans.factory.annotation.Autowired; 4 | import org.springframework.stereotype.Service; 5 | import org.springframework.transaction.annotation.Isolation; 6 | import org.springframework.transaction.annotation.Propagation; 7 | import org.springframework.transaction.annotation.Transactional; 8 | 9 | import com.jiyufei.social.bean.SocialRecord; 10 | import com.jiyufei.social.dao.SocialRecordMapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年11月1日 上午9:26:29 . 14 | */ 15 | @Service("socialRecordService") 16 | public class SocialRecordServiceImpl implements SocialRecordService { 17 | 18 | @Autowired 19 | private SocialRecordMapper socialRecordMapper; 20 | 21 | @Override 22 | public SocialRecord getRecord() throws Exception { 23 | SocialRecord socialRecord = socialRecordMapper.selectByPrimaryKey(1); 24 | return socialRecord; 25 | } 26 | 27 | @Override 28 | public Integer updateRecord(SocialRecord socialRecord) throws Exception { 29 | Integer result = socialRecordMapper.updateByPrimaryKeySelective(socialRecord); 30 | return result; 31 | } 32 | 33 | @Override 34 | @Transactional(isolation=Isolation.READ_COMMITTED,propagation=Propagation.REQUIRED) 35 | public Integer upSocialRecordNum(Integer hit) throws Exception { 36 | SocialRecord socialRecord = socialRecordMapper.selectByPrimaryKey(new Integer(1)); 37 | int newSelectNum = 0; 38 | int newHitNum = 0; 39 | if(socialRecord != null){ 40 | newSelectNum = socialRecord.getSelectNum() + 1; 41 | if(hit == 1){ 42 | newHitNum = socialRecord.getHitNum() + 1; 43 | }else{ 44 | newHitNum = socialRecord.getHitNum(); 45 | } 46 | SocialRecord record = new SocialRecord(); 47 | record.setId(1); 48 | record.setSelectNum(newSelectNum); 49 | record.setHitNum(newHitNum); 50 | int result = socialRecordMapper.updateByPrimaryKeySelective(record); 51 | return result; 52 | } 53 | return 0; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/bean/WyDrops.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.bean; 2 | 3 | import java.util.Date; 4 | 5 | public class WyDrops { 6 | private Integer id; 7 | 8 | private String title; 9 | 10 | private String author; 11 | 12 | private Date createTime; 13 | 14 | private Integer type; 15 | 16 | private String tag; 17 | 18 | private Integer num; 19 | 20 | private Integer status; 21 | 22 | private String content; 23 | 24 | public Integer getId() { 25 | return id; 26 | } 27 | 28 | public void setId(Integer id) { 29 | this.id = id; 30 | } 31 | 32 | public String getTitle() { 33 | return title; 34 | } 35 | 36 | public void setTitle(String title) { 37 | this.title = title; 38 | } 39 | 40 | public String getAuthor() { 41 | return author; 42 | } 43 | 44 | public void setAuthor(String author) { 45 | this.author = author; 46 | } 47 | 48 | public Date getCreateTime() { 49 | return createTime; 50 | } 51 | 52 | public void setCreateTime(Date createTime) { 53 | this.createTime = createTime; 54 | } 55 | 56 | public Integer getType() { 57 | return type; 58 | } 59 | 60 | public void setType(Integer type) { 61 | this.type = type; 62 | } 63 | 64 | public String getTag() { 65 | return tag; 66 | } 67 | 68 | public void setTag(String tag) { 69 | this.tag = tag; 70 | } 71 | 72 | public Integer getNum() { 73 | return num; 74 | } 75 | 76 | public void setNum(Integer num) { 77 | this.num = num; 78 | } 79 | 80 | public Integer getStatus() { 81 | return status; 82 | } 83 | 84 | public void setStatus(Integer status) { 85 | this.status = status; 86 | } 87 | 88 | public String getContent() { 89 | return content; 90 | } 91 | 92 | public void setContent(String content) { 93 | this.content = content; 94 | } 95 | } -------------------------------------------------------------------------------- /src/main/webapp/css/libs/bootstrap-timepicker.css: -------------------------------------------------------------------------------- 1 | .bootstrap-timepicker{position:relative;}.bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu{left:auto;right:0;}.bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu:before{left:auto;right:12px;}.bootstrap-timepicker.pull-right .bootstrap-timepicker-widget.dropdown-menu:after{left:auto;right:13px;}.bootstrap-timepicker .add-on{cursor:pointer;}.bootstrap-timepicker .add-on i{display:inline-block;width:16px;height:16px;}.bootstrap-timepicker-widget.dropdown-menu{padding:2px 3px 2px 2px;}.bootstrap-timepicker-widget.dropdown-menu.open{display:inline-block;}.bootstrap-timepicker-widget.dropdown-menu:before{border-bottom:7px solid rgba(0,0,0,0.2);border-left:7px solid transparent;border-right:7px solid transparent;content:"";display:inline-block;left:9px;position:absolute;top:-7px;}.bootstrap-timepicker-widget.dropdown-menu:after{border-bottom:6px solid #FFFFFF;border-left:6px solid transparent;border-right:6px solid transparent;content:"";display:inline-block;left:10px;position:absolute;top:-6px;}.bootstrap-timepicker-widget a.btn,.bootstrap-timepicker-widget input{border-radius:4px;}.bootstrap-timepicker-widget table{width:100%;margin:0;}.bootstrap-timepicker-widget table td{text-align:center;height:30px;margin:0;padding:2px;}.bootstrap-timepicker-widget table td:not(.separator){min-width:30px;}.bootstrap-timepicker-widget table td span{width:100%;}.bootstrap-timepicker-widget table td a{border:1px transparent solid;width:100%;display:inline-block;margin:0;padding:8px 0;outline:0;color:#333;}.bootstrap-timepicker-widget table td a:hover{text-decoration:none;background-color:#eee;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;border-color:#ddd;}.bootstrap-timepicker-widget table td a i{margin-top:2px;}.bootstrap-timepicker-widget table td input{width:25px;margin:0;text-align:center;}.bootstrap-timepicker-widget .modal-content{padding:4px;}@media (min-width: 767px) {.bootstrap-timepicker-widget.modal{width:200px;margin-left:-100px;}}@media (max-width: 767px) {.bootstrap-timepicker{width:100%;}.bootstrap-timepicker .dropdown-menu{width:100%;}} -------------------------------------------------------------------------------- /src/main/webapp/js/html5shiv.js: -------------------------------------------------------------------------------- 1 | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(a);return b.canHaveChildren&&!s.test(a)?c.frag.appendChild(b):b}function t(a,b){if(!b.cache)b.cache={},b.createElem=a.createElement,b.createFrag=a.createDocumentFragment,b.frag=b.createFrag();a.createElement=function(c){return!e.shivMethods?b.createElem(c):p(c,a,b)};a.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+m().join().replace(/\w+/g,function(a){b.createElem(a);b.frag.createElement(a);return'c("'+a+'")'})+");return n}")(e,b.frag)}function q(a){a||(a=f);var b=i(a);if(e.shivCSS&&!j&&!b.hasCSS){var c,d=a;c=d.createElement("p");d=d.getElementsByTagName("head")[0]||d.documentElement;c.innerHTML="x";c=d.insertBefore(c.lastChild,d.firstChild);b.hasCSS=!!c}g||t(a,b);return a}var k=l.html5||{},s=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,r=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,j,o="_html5shiv",h=0,n={},g;(function(){try{var a=f.createElement("a");a.innerHTML="";j="hidden"in a;var b;if(!(b=1==a.childNodes.length)){f.createElement("a");var c=f.createDocumentFragment();b="undefined"==typeof c.cloneNode||"undefined"==typeof c.createDocumentFragment||"undefined"==typeof c.createElement}g=b}catch(d){g=j=!0}})();var e={elements:k.elements||"abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",version:"3.6.2pre",shivCSS:!1!==k.shivCSS,supportsUnknownElements:g,shivMethods:!1!==k.shivMethods,type:"default",shivDocument:q,createElement:p,createDocumentFragment:function(a,b){a||(a=f);if(g)return a.createDocumentFragment();for(var b=b||i(a),c=b.frag.cloneNode(),d=0,e=m(),h=e.length;d authList = new ArrayList(); 46 | if(loginUser.getAuth() == 2){ 47 | authList.add(new SimpleGrantedAuthority("ROLE_ADMIN")); 48 | }else if(loginUser.getAuth() == 1){ 49 | authList.add(new SimpleGrantedAuthority("ROLE_USER")); 50 | }else{ 51 | authList.add(new SimpleGrantedAuthority("ROLE_ANY")); 52 | } 53 | UserDetails userDetails = new User(loginUser.getMail(), loginUser.getPassword(), true, true, true, true, authList); 54 | return userDetails; 55 | } catch (Exception e) { 56 | errorLog.error("myUserDetailsService异常,用户名为:" + arg0 + "," + e.getMessage()); 57 | throw new UsernameNotFoundException("系统异常"); 58 | } 59 | } 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/Sd12306ServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | 8 | import com.jiyufei.social.bean.Sd12306; 9 | import com.jiyufei.social.bean.Sd12306Example; 10 | import com.jiyufei.social.dao.Sd12306Mapper; 11 | 12 | /* 13 | *Created by jiyufei on 2016年10月26日 下午2:18:33 . 14 | */ 15 | @Service("sd12306Service") 16 | public class Sd12306ServiceImpl implements Sd12306Service { 17 | 18 | @Autowired 19 | private Sd12306Mapper sd12306Mapper; 20 | 21 | @Override 22 | public List getAllRecord() throws Exception { 23 | Sd12306Example example = new Sd12306Example(); 24 | example.createCriteria().andUserIdGreaterThan(new Integer(0)); 25 | List list = sd12306Mapper.selectByExample(example); 26 | if(list.isEmpty()){ 27 | return null; 28 | } 29 | return list; 30 | } 31 | 32 | @Override 33 | public Sd12306 getRecordByMail(String mail) throws Exception { 34 | Sd12306Example example = new Sd12306Example(); 35 | example.createCriteria().andUserMailEqualTo(mail); 36 | List list = sd12306Mapper.selectByExample(example); 37 | if(list.isEmpty()){ 38 | return null; 39 | } 40 | return list.get(0); 41 | } 42 | 43 | @Override 44 | public Sd12306 getRecordByName(String name) throws Exception { 45 | Sd12306Example example = new Sd12306Example(); 46 | example.createCriteria().andUserNameEqualTo(name); 47 | List list = sd12306Mapper.selectByExample(example); 48 | if(list.isEmpty()){ 49 | return null; 50 | } 51 | return list.get(0); 52 | } 53 | 54 | @Override 55 | public Sd12306 getRecordByCard(String card) throws Exception { 56 | Sd12306Example example = new Sd12306Example(); 57 | example.createCriteria().andUserCardEqualTo(card); 58 | List list = sd12306Mapper.selectByExample(example); 59 | if(list.isEmpty()){ 60 | return null; 61 | } 62 | return list.get(0); 63 | } 64 | 65 | @Override 66 | public Sd12306 getRecordByPhone(String phone) throws Exception { 67 | Sd12306Example example = new Sd12306Example(); 68 | example.createCriteria().andUserPhoneEqualTo(phone); 69 | List list = sd12306Mapper.selectByExample(example); 70 | if(list.isEmpty()){ 71 | return null; 72 | } 73 | return list.get(0); 74 | } 75 | 76 | } 77 | -------------------------------------------------------------------------------- /src/main/webapp/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 4 | 5 | social 6 | 7 | 8 | 9 | org.springframework.web.context.ContextLoaderListener 10 | 11 | 12 | 13 | contextConfigLocation 14 | classpath:*-context.xml 15 | 16 | 17 | 18 | springSecurityFilterChain 19 | org.springframework.web.filter.DelegatingFilterProxy 20 | 21 | 22 | springSecurityFilterChain 23 | /* 24 | 25 | 26 | 27 | 28 | springDispatcherServlet 29 | org.springframework.web.servlet.DispatcherServlet 30 | 31 | contextConfigLocation 32 | /WEB-INF/classes/application.xml 33 | 34 | 1 35 | 36 | 37 | 38 | 39 | springDispatcherServlet 40 | *.htm 41 | 42 | 43 | 44 | 45 | 46 | org.springframework.web.util.Log4jConfigListener 47 | 48 | 49 | log4jConfigLocation 50 | classpath:log4j.properties 51 | 52 | 53 | 54 | index.htm 55 | 56 | 57 | 58 | 404 59 | /error/404.html 60 | 61 | 62 | 63 | 400 64 | /error/400.html 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/controller/DatabasePageController.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.controller; 2 | 3 | import java.io.UnsupportedEncodingException; 4 | import org.springframework.stereotype.Controller; 5 | import org.springframework.web.bind.annotation.RequestMapping; 6 | import org.springframework.web.servlet.ModelAndView; 7 | 8 | /* 9 | *Created by jiyufei on 2016年10月28日 下午1:57:59 . 10 | */ 11 | @Controller 12 | public class DatabasePageController { 13 | 14 | 15 | @RequestMapping(value="searchMail.htm") 16 | public ModelAndView SearchMailPage(String search){ 17 | ModelAndView modelAndView = new ModelAndView("searchMail"); 18 | modelAndView.addObject("search", search); 19 | return modelAndView; 20 | } 21 | 22 | @RequestMapping(value="searchPhone.htm") 23 | public ModelAndView SearchPhonePage(String search){ 24 | ModelAndView modelAndView = new ModelAndView("searchPhone"); 25 | modelAndView.addObject("search", search); 26 | return modelAndView; 27 | } 28 | 29 | @RequestMapping(value="searchId.htm") 30 | public ModelAndView SearchIdPage(String search){ 31 | ModelAndView modelAndView = new ModelAndView("searchId"); 32 | modelAndView.addObject("search", search); 33 | return modelAndView; 34 | } 35 | 36 | @RequestMapping(value="searchName.htm") 37 | public ModelAndView SearchNamePage(String search){ 38 | ModelAndView modelAndView = new ModelAndView("searchName"); 39 | String content = null; 40 | if(search != null){ 41 | try { 42 | content = new String(search.getBytes("iso8859-1"),"utf-8"); 43 | } catch (UnsupportedEncodingException e) { 44 | content = ""; 45 | } 46 | } 47 | modelAndView.addObject("search", content); 48 | return modelAndView; 49 | } 50 | 51 | @RequestMapping(value="searchDetail.htm") 52 | public ModelAndView searchDetail(String content,Integer type){ 53 | ModelAndView modelAndView = null; 54 | if(type == 1){ 55 | modelAndView = new ModelAndView("redirect:/searchMail.htm?search=" + content); 56 | }else if(type == 3){ 57 | modelAndView = new ModelAndView("redirect:/searchId.htm?search=" + content); 58 | }else if(type == 4){ 59 | modelAndView = new ModelAndView("redirect:/searchName.htm?search=" + content); 60 | }else if(type == 2){ 61 | modelAndView = new ModelAndView("redirect:/searchPhone.htm?search=" + content); 62 | }else{ 63 | modelAndView = new ModelAndView("redirect:/404.htm"); 64 | } 65 | return modelAndView; 66 | } 67 | } 68 | -------------------------------------------------------------------------------- /src/main/webapp/js/scripts.js: -------------------------------------------------------------------------------- 1 | $(function($){setTimeout(function(){$('#content-wrapper > .row').css({opacity:1});},200);$('#sidebar-nav .dropdown-toggle').on('click',function(e){e.preventDefault();var $item=$(this).parent();if(!$item.hasClass('open')){$item.parent().find('.open .submenu').slideUp('fast');$item.parent().find('.open').toggleClass('open');} 2 | $item.toggleClass('open');if($item.hasClass('open')){$item.children('.submenu').slideDown('fast');} 3 | else{$item.children('.submenu').slideUp('fast');}});$('body').on('mouseenter','#page-wrapper.nav-small #sidebar-nav .dropdown-toggle',function(e){var $sidebar=$(this).parents('#sidebar-nav');if($(document).width()>=992){var $item=$(this).parent();$item.addClass('open');$item.children('.submenu').slideDown('fast');}});$('body').on('mouseleave','#page-wrapper.nav-small #sidebar-nav > .nav-pills > li',function(e){var $sidebar=$(this).parents('#sidebar-nav');if($(document).width()>=992){var $item=$(this);if($item.hasClass('open')){$item.find('.open .submenu').slideUp('fast');$item.find('.open').removeClass('open');$item.children('.submenu').slideUp('fast');} 4 | $item.removeClass('open');}});$('#make-small-nav').click(function(e){$('#page-wrapper').toggleClass('nav-small');});$(window).smartresize(function(){if($(document).width()<=991){$('#page-wrapper').removeClass('nav-small');}});$('.mobile-search').click(function(e){e.preventDefault();$('.mobile-search').addClass('active');$('.mobile-search form input.form-control').focus();});$(document).mouseup(function(e){var container=$('.mobile-search');if(!container.is(e.target)&&container.has(e.target).length===0) 5 | {container.removeClass('active');}});$('.fixed-leftmenu #col-left').nanoScroller({alwaysVisible:true,iOSNativeScrolling:false,preventPageScrolling:true,contentClass:'col-left-nano-content'});$("[data-toggle='tooltip']").each(function(index,el){$(el).tooltip({placement:$(this).data("placement")||'top'});});});$.fn.removeClassPrefix=function(prefix){this.each(function(i,el){var classes=el.className.split(" ").filter(function(c){return c.lastIndexOf(prefix,0)!==0;});el.className=classes.join(" ");});return this;};(function($,sr){var debounce=function(func,threshold,execAsap){var timeout;return function debounced(){var obj=this,args=arguments;function delayed(){if(!execAsap) 6 | func.apply(obj,args);timeout=null;};if(timeout) 7 | clearTimeout(timeout);else if(execAsap) 8 | func.apply(obj,args);timeout=setTimeout(delayed,threshold||100);};} 9 | jQuery.fn[sr]=function(fn){return fn?this.bind('resize',debounce(fn)):this.trigger(sr);};})(jQuery,'smartresize'); -------------------------------------------------------------------------------- /src/main/webapp/error/400.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Error 400 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 |
20 |
21 |
22 |
23 | 24 |
25 |
26 |

400 请求错误

27 |

请确保请求参数正确

28 |

错误400

29 | 30 |

31 |

地球

32 |

33 |

土星

34 |

35 |

400

36 |

尝试另一次飞行

37 | 43 |
44 | 45 |
46 |

迷失在云端

47 |

400 请求错误

48 |

49 |

地球

50 |

51 |

土星

52 |

53 |

400

54 |

2

55 |

103076498

56 |
57 |
58 |
59 | 60 | 61 | 62 | 63 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/main/resources/generatorConfig.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | 53 | 54 |
-------------------------------------------------------------------------------- /src/main/webapp/error/404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Lost in the Clouds - Error 404 6 | 7 | 8 | 9 | 10 | 11 | 12 | 15 | 16 | 17 | 18 | 19 |
20 |
21 |
22 |
23 | 24 |
25 |
26 |

404 NOT FOUND

27 |

未找到航班

28 |

错误404

29 | 30 |

31 |

地球

32 |

33 |

火星

34 |

35 |

404

36 |

尝试另一次飞行

37 | 43 |
44 | 45 |
46 |

迷失在云端

47 |

404 NOT FOUND

48 |

49 |

地球

50 |

51 |

火星

52 |

53 |

404

54 |

1

55 |

124077248

56 |
57 |
58 |
59 | 60 | 61 | 62 | 63 | 74 | 75 | 76 | -------------------------------------------------------------------------------- /src/main/resources/security-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 33 | 34 | 37 | 42 | 43 | 44 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/WyCountServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.Date; 4 | import java.util.List; 5 | 6 | import org.apache.commons.logging.Log; 7 | import org.apache.commons.logging.LogFactory; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | import org.springframework.transaction.annotation.Isolation; 11 | import org.springframework.transaction.annotation.Propagation; 12 | import org.springframework.transaction.annotation.Transactional; 13 | 14 | import com.github.pagehelper.PageHelper; 15 | import com.jiyufei.social.bean.WyCount; 16 | import com.jiyufei.social.bean.WyCountExample; 17 | import com.jiyufei.social.dao.WyCountMapper; 18 | 19 | /* 20 | *Created by jiyufei on 2016年11月1日 下午4:59:06 . 21 | */ 22 | @Service("wyCountService") 23 | public class WyCountServiceImpl implements WyCountService { 24 | 25 | @Autowired 26 | private WyCountMapper wyCountMapper; 27 | 28 | Log error = LogFactory.getLog("error"); 29 | 30 | @Override 31 | public List getWyCount() throws Exception { 32 | WyCountExample example = new WyCountExample(); 33 | example.createCriteria().andIdGreaterThan(new Integer(0)); 34 | example.setOrderByClause("date desc"); 35 | PageHelper.startPage(1, 10); 36 | List wyCounts = wyCountMapper.selectByExample(example); 37 | return wyCounts; 38 | } 39 | 40 | 41 | @Override 42 | @Transactional(isolation=Isolation.READ_COMMITTED,propagation=Propagation.REQUIRED) 43 | public Integer upWyCountNum() throws Exception { 44 | Date now = new Date(); 45 | WyCountExample example = new WyCountExample(); 46 | example.createCriteria().andDateEqualTo(now); 47 | List wyCounts = wyCountMapper.selectByExample(example); 48 | if(wyCounts == null){ 49 | error.error("[WyCountService.upWyCountNum]添加记录失败"); 50 | }else if(wyCounts.isEmpty()){ 51 | WyCount wyCount = new WyCount(); 52 | wyCount.setDate(now); 53 | wyCount.setNum(1); 54 | int result = wyCountMapper.insertSelective(wyCount); 55 | if(result == 0){ 56 | error.error("[WyCountService.upWyCountNum]创建当天记录失败"); 57 | return 2; 58 | } 59 | }else{ 60 | WyCount count = wyCounts.get(0); 61 | if(count != null){ 62 | int newNum = count.getNum() + 1; 63 | WyCount wyCount = new WyCount(); 64 | wyCount.setNum(newNum); 65 | wyCount.setId(count.getId()); 66 | int result = wyCountMapper.updateByPrimaryKeySelective(wyCount); 67 | if(result == 0){ 68 | error.error("[WyCountService.upWyCountNum]添加记录失败"); 69 | return 3; 70 | } 71 | }else{ 72 | throw new RuntimeException("获取第一个对象失败"); 73 | } 74 | } 75 | return 1; 76 | } 77 | 78 | } 79 | -------------------------------------------------------------------------------- /src/main/webapp/js/social/searchName.js: -------------------------------------------------------------------------------- 1 | function searchByName(fuzzy){ 2 | var name = $("#name").val(); 3 | if(name == ""){ 4 | alert("姓名不能为空"); 5 | return; 6 | } 7 | $.ajax({ 8 | type:'POST', 9 | url:'searchByName.htm', 10 | data:{ 11 | 'search':name, 12 | 'fuzzy':fuzzy 13 | }, 14 | success:function(res){ 15 | if(res.code == 0){ 16 | var content = res.content; 17 | var col = res.column; 18 | $("#mb").removeClass("hidden"); 19 | $("#div_table").html('
'); 20 | if(col == 8){ 21 | $("#table_th").html('ID\ 22 | 用户名\ 23 | 邮箱\ 24 | 密码\ 25 | 身份证\ 26 | 电话\ 27 | 未知\ 28 | 来源'); 29 | }else if(col == 4){ 30 | $("#table_th").html('ID\ 31 | 邮箱\ 32 | 密码\ 33 | 来源'); 34 | }else if(col == 5){ 35 | $("#table_th").html('ID\ 36 | 用户名\ 37 | 邮箱\ 38 | 密码\ 39 | 来源'); 40 | } 41 | if(!(content instanceof Array)){ 42 | $("#table_tb").html(""); 43 | $("#table_tb").append(''); 44 | $.each(content,function(key,value){ 45 | $("tr:last").append('' + value + ''); 46 | }); 47 | $("#table_tb").append(""); 48 | }else{ 49 | $("#table_tb").html(""); 50 | $.each(content,function(key,value){ 51 | $("#table_tb").append(''); 52 | $.each(value,function(index,item){ 53 | $("tr:last").append('' + item + ''); 54 | }); 55 | $("#table_tb").append(""); 56 | }); 57 | } 58 | }else if(res.code == 100){ 59 | $("#mb").removeClass("hidden"); 60 | $("#div_table").html('

未命中!结果为空

'); 61 | }else{ 62 | $("#mb").addClass("hidden"); 63 | $("#div_table").html(""); 64 | $("#alert_strong").html(mail); 65 | $("#message").append(res.msg); 66 | $("#alert_div").removeClass("hidden"); 67 | } 68 | } 69 | }); 70 | } 71 | 72 | function auto(){ 73 | var name = $("#name").val(); 74 | console.log(name); 75 | if(name == ""){ 76 | return; 77 | }else{ 78 | searchByName(0); 79 | } 80 | } 81 | auto(); -------------------------------------------------------------------------------- /src/main/webapp/js/social/searchId.js: -------------------------------------------------------------------------------- 1 | function searchById(fuzzy){ 2 | var idcard = $("#idcard").val(); 3 | if(idcard == ""){ 4 | alert("身份证号不能为空"); 5 | return; 6 | } 7 | reg = /^\d{18}$/; 8 | if(!reg.test(idcard)){ 9 | alert("身份证不合法"); 10 | return; 11 | } 12 | $.ajax({ 13 | type:'POST', 14 | url:'searchById.htm', 15 | data:{ 16 | 'search':idcard, 17 | 'fuzzy':fuzzy 18 | }, 19 | success:function(res){ 20 | if(res.code == 0){ 21 | var content = res.content; 22 | var col = res.column; 23 | $("#mb").removeClass("hidden"); 24 | $("#div_table").html('
'); 25 | if(col == 8){ 26 | $("#table_th").html('ID\ 27 | 用户名\ 28 | 邮箱\ 29 | 密码\ 30 | 身份证\ 31 | 电话\ 32 | 未知\ 33 | 来源'); 34 | }else if(col == 4){ 35 | $("#table_th").html('ID\ 36 | 邮箱\ 37 | 密码\ 38 | 来源'); 39 | }else if(col == 5){ 40 | $("#table_th").html('ID\ 41 | 用户名\ 42 | 邮箱\ 43 | 密码\ 44 | 来源'); 45 | } 46 | if(!(content instanceof Array)){ 47 | $("#table_tb").html(""); 48 | $("#table_tb").append(''); 49 | $.each(content,function(key,value){ 50 | $("tr:last").append('' + value + ''); 51 | }); 52 | $("#table_tb").append(""); 53 | }else{ 54 | $("#table_tb").html(""); 55 | $.each(content,function(key,value){ 56 | $("#table_tb").append(''); 57 | $.each(value,function(index,item){ 58 | $("tr:last").append('' + item + ''); 59 | }); 60 | $("#table_tb").append(""); 61 | }); 62 | } 63 | }else if(res.code == 100){ 64 | $("#mb").removeClass("hidden"); 65 | $("#div_table").html('

未命中!结果为空

'); 66 | }else{ 67 | $("#mb").addClass("hidden"); 68 | $("#div_table").html(""); 69 | $("#alert_strong").html(mail); 70 | $("#message").append(res.msg); 71 | $("#alert_div").removeClass("hidden"); 72 | } 73 | } 74 | }); 75 | } 76 | 77 | function auto(){ 78 | var idcard = $("#idcard").val(); 79 | if(idcard == ""){ 80 | return; 81 | }else{ 82 | searchById(0); 83 | } 84 | } 85 | auto(); -------------------------------------------------------------------------------- /src/main/webapp/js/social/searchPhone.js: -------------------------------------------------------------------------------- 1 | function searchByPhone(fuzzy){ 2 | var phone = $("#phone").val(); 3 | if(phone == ""){ 4 | alert("手机号不能为空"); 5 | return; 6 | } 7 | reg = /^1\d{10}$/; 8 | if(!reg.test(phone)){ 9 | alert("手机号不合法"); 10 | return; 11 | } 12 | $.ajax({ 13 | type:'POST', 14 | url:'searchByPhone.htm', 15 | data:{ 16 | 'search':phone, 17 | 'fuzzy':fuzzy 18 | }, 19 | success:function(res){ 20 | if(res.code == 0){ 21 | var content = res.content; 22 | var col = res.column; 23 | $("#mb").removeClass("hidden"); 24 | $("#div_table").html('
'); 25 | if(col == 8){ 26 | $("#table_th").html('ID\ 27 | 用户名\ 28 | 邮箱\ 29 | 密码\ 30 | 身份证\ 31 | 电话\ 32 | 未知\ 33 | 来源'); 34 | }else if(col == 4){ 35 | $("#table_th").html('ID\ 36 | 邮箱\ 37 | 密码\ 38 | 来源'); 39 | }else if(col == 5){ 40 | $("#table_th").html('ID\ 41 | 用户名\ 42 | 邮箱\ 43 | 密码\ 44 | 来源'); 45 | } 46 | if(!(content instanceof Array)){ 47 | $("#table_tb").html(""); 48 | $("#table_tb").append(''); 49 | $.each(content,function(key,value){ 50 | $("tr:last").append('' + value + ''); 51 | }); 52 | $("#table_tb").append(""); 53 | }else{ 54 | $("#table_tb").html(""); 55 | $.each(content,function(key,value){ 56 | $("#table_tb").append(''); 57 | $.each(value,function(index,item){ 58 | $("tr:last").append('' + item + ''); 59 | }); 60 | $("#table_tb").append(""); 61 | }); 62 | } 63 | }else if(res.code == 100){ 64 | $("#mb").removeClass("hidden"); 65 | $("#div_table").html('

未命中!结果为空

'); 66 | }else{ 67 | $("#mb").addClass("hidden"); 68 | $("#div_table").html(""); 69 | $("#alert_strong").html(mail); 70 | $("#message").append(res.msg); 71 | $("#alert_div").removeClass("hidden"); 72 | } 73 | } 74 | }); 75 | } 76 | 77 | function auto(){ 78 | var phone = $("#phone").val(); 79 | if(phone == ""){ 80 | return; 81 | }else{ 82 | searchByPhone(0); 83 | } 84 | } 85 | auto(); -------------------------------------------------------------------------------- /src/main/webapp/css/compiled/wizard.css: -------------------------------------------------------------------------------- 1 | .wizard .wizard-inner{position:relative;overflow:hidden;background-color:#f9f9f9;border:1px solid #d4d4d4;*zoom:1;}.wizard .wizard-inner:before,.wizard .wizard-inner:after{display:table;line-height:0;content:"";}.wizard .wizard-inner:after{clear:both;}.wizard .wizard-inner ul{width:4000px;padding:0;margin:0;list-style:none outside none;}.wizard .wizard-inner ul li{position:relative;float:left;height:46px;padding:0 20px 0 30px;margin:0;font-size:16px;line-height:46px;color:#999999;cursor:default;background:#ededed;}.wizard .wizard-inner ul li .chevron{position:absolute;top:0;right:-14px;z-index:1;display:block;border:24px solid transparent;border-right:0;border-left:14px solid #d4d4d4;}.wizard .wizard-inner ul li .chevron:before{position:absolute;top:-24px;right:1px;display:block;border:24px solid transparent;border-right:0;border-left:14px solid #ededed;content:"";}.wizard .wizard-inner ul li.complete{color:#468847;background:#f3f4f5;}.wizard .wizard-inner ul li.complete:hover{cursor:pointer;background:#d9edf7;}.wizard .wizard-inner ul li.complete:hover .chevron:before{border-left:14px solid #d9edf7;}.wizard .wizard-inner ul li.complete .chevron:before{border-left:14px solid #f3f4f5;}.wizard .wizard-inner ul li.active{color:#3498db;background:#d9edf7;}.wizard .wizard-inner ul li.active .chevron:before{border-left:14px solid #d9edf7;}.wizard .wizard-inner ul li .badge{margin-right:8px;}.wizard .wizard-inner ul li:first-child{padding-left:20px;border-radius:4px 0 0 4px;}.wizard .wizard-inner .actions{position:absolute;right:0;z-index:1000;float:right;padding-right:15px;padding-left:15px;line-height:46px;vertical-align:middle;background-color:#e5e5e5;border-left:1px solid #d4d4d4;}.wizard .wizard-inner .actions a{margin-right:8px;font-size:12px;line-height:45px;}.wizard .wizard-inner .actions .btn-prev i{margin-right:5px;}.wizard .wizard-inner .actions .btn-next i{margin-left:5px;}.wizard .step-content{clear:both;}.wizard .step-content .step-pane{display:none;}.wizard .step-content .active{display:block;}.wizard .step-content .active .btn-group .active{display:inline-block;}.rtl .wizard .wizard-inner .actions{float:left;left:0;right:auto;}.rtl .wizard .wizard-inner ul{width:auto;float:right;}.rtl .wizard .wizard-inner ul li{float:right;}.rtl .wizard .wizard-inner ul li .badge{margin-right:0;margin-left:8px;}.rtl .wizard .wizard-inner ul li .chevron{right:auto;left:-14px;border-color:transparent #d4d4d4 transparent transparent;border-style:solid solid solid none;border-width:24px 14px 24px 0;}.rtl .wizard .wizard-inner ul li .chevron:before{left:1px;right:auto;border-width:24px 14px 24px 0;border-color:transparent #ededed transparent transparent;border-style:solid solid solid none;}.rtl .wizard .wizard-inner ul li:first-child{padding-right:20px;padding-left:20px;border-radius:0 4px 4px 0;}.rtl .wizard .wizard-inner ul li.active .chevron:before{border-right:14px solid #d9edf7;border-left-color:transparent;}.rtl .wizard .wizard-inner ul li.complete .chevron:before{border-right:14px solid #f3f4f5;} -------------------------------------------------------------------------------- /src/main/webapp/js/social/searchMail.js: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | function searchByMail(fuzzy){ 5 | var mail = $("#mail").val(); 6 | if(mail == ""){ 7 | alert("邮箱不能为空"); 8 | return; 9 | } 10 | reg = /^(\w-*\.*)+@(\w-?)+(\.\w{2,})+$/; 11 | if(!reg.test(mail)){ 12 | alert("邮箱不合法"); 13 | return; 14 | } 15 | $.ajax({ 16 | type:'POST', 17 | url:'searchByMail.htm', 18 | data:{ 19 | 'search':mail, 20 | 'fuzzy':fuzzy 21 | }, 22 | success:function(res){ 23 | if(res.code == 0){ 24 | var content = res.content; 25 | var col = res.column; 26 | $("#mb").removeClass("hidden"); 27 | $("#div_table").html('
'); 28 | if(col == 4){ 29 | $("#table_th").html('ID\ 30 | 邮箱\ 31 | 密码\ 32 | 来源'); 33 | }else if(col == 5){ 34 | $("#table_th").html('ID\ 35 | 用户名\ 36 | 邮箱\ 37 | 密码\ 38 | 来源'); 39 | }else if(col == 8){ 40 | $("#table_th").html('ID\ 41 | 用户名\ 42 | 邮箱\ 43 | 密码\ 44 | 身份证\ 45 | 电话\ 46 | 未知\ 47 | 来源'); 48 | } 49 | if(!(content instanceof Array)){ 50 | $("#table_tb").html(""); 51 | $("#table_tb").append(''); 52 | $.each(content,function(key,value){ 53 | $("tr:last").append('' + value + ''); 54 | }); 55 | $("#table_tb").append(""); 56 | }else{ 57 | $("#table_tb").html(""); 58 | $.each(content,function(key,value){ 59 | $("#table_tb").append(''); 60 | $.each(value,function(index,item){ 61 | $("tr:last").append('' + item + ''); 62 | }); 63 | $("#table_tb").append(""); 64 | }); 65 | } 66 | }else if(res.code == 100){ 67 | $("#mb").removeClass("hidden"); 68 | $("#div_table").html('

未命中!结果为空

'); 69 | }else{ 70 | $("#mb").addClass("hidden"); 71 | $("#div_table").html(""); 72 | $("#alert_strong").html(mail); 73 | $("#message").append(res.msg); 74 | $("#alert_div").removeClass("hidden"); 75 | } 76 | } 77 | }); 78 | } 79 | 80 | function auto(){ 81 | 82 | var mail = $("#mail").val(); 83 | if(mail == ""){ 84 | return; 85 | }else{ 86 | searchByMail(0); 87 | } 88 | } 89 | auto(); -------------------------------------------------------------------------------- /src/main/resources/mybatis.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/SocialCountServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.Date; 4 | import java.util.List; 5 | 6 | import org.apache.commons.logging.Log; 7 | import org.apache.commons.logging.LogFactory; 8 | import org.springframework.beans.factory.annotation.Autowired; 9 | import org.springframework.stereotype.Service; 10 | import org.springframework.transaction.annotation.Isolation; 11 | import org.springframework.transaction.annotation.Propagation; 12 | import org.springframework.transaction.annotation.Transactional; 13 | 14 | import com.github.pagehelper.PageHelper; 15 | import com.jiyufei.social.bean.SocialCount; 16 | import com.jiyufei.social.bean.SocialCountExample; 17 | import com.jiyufei.social.dao.SocialCountMapper; 18 | 19 | /* 20 | *Created by jiyufei on 2016年11月1日 下午1:57:02 . 21 | */ 22 | @Service("socialCountService") 23 | public class SocialCountServiceImpl implements SocialCountService { 24 | 25 | @Autowired 26 | private SocialCountMapper socialCountMapper; 27 | 28 | Log info = LogFactory.getLog("info"); 29 | Log error = LogFactory.getLog("error"); 30 | 31 | @Override 32 | public List getSocialCount() throws Exception { 33 | SocialCountExample example = new SocialCountExample(); 34 | example.createCriteria().andIdGreaterThan(new Integer(0)); 35 | example.setOrderByClause("date desc"); 36 | PageHelper.startPage(1, 10); 37 | List socialCounts = socialCountMapper.selectByExample(example); 38 | return socialCounts; 39 | } 40 | 41 | @Override 42 | @Transactional(isolation=Isolation.READ_COMMITTED,propagation=Propagation.REQUIRED) 43 | public Integer upSocialCountNum() throws Exception { 44 | Date now = new Date(); 45 | SocialCountExample example = new SocialCountExample(); 46 | example.createCriteria().andDateEqualTo(now); 47 | List socialCounts = socialCountMapper.selectByExample(example); 48 | if(socialCounts == null){ 49 | error.error("[SocialCountService.upSocialCountNum]socialCounts 为 null"); 50 | return 0; 51 | } 52 | if(socialCounts.isEmpty()){ 53 | SocialCount socialCount = new SocialCount(); 54 | socialCount.setNum(1); 55 | socialCount.setDate(now); 56 | int result = socialCountMapper.insertSelective(socialCount); 57 | if(result == 0){ 58 | error.error("[SocialCountService.upSocialCountNum]创建当天记录失败"); 59 | return 2; 60 | } 61 | }else{ 62 | if(socialCounts.get(0) != null){ 63 | SocialCount count = socialCounts.get(0); 64 | int newNum = count.getNum() + 1; 65 | SocialCount socialCount = new SocialCount(); 66 | socialCount.setId(count.getId()); 67 | socialCount.setNum(newNum); 68 | int result = socialCountMapper.updateByPrimaryKeySelective(socialCount); 69 | if(result == 0){ 70 | error.error("[SocialCountService.upSocialCountNum]添加记录失败"); 71 | return 3; 72 | } 73 | }else{ 74 | throw new RuntimeException("获取第一个对象失败"); 75 | } 76 | } 77 | return 1; 78 | } 79 | 80 | } 81 | -------------------------------------------------------------------------------- /src/main/webapp/views/showDrops.jsp: -------------------------------------------------------------------------------- 1 | <%@page import="org.apache.log4j.pattern.IntegerPatternConverter"%> 2 | <%@ page language="java" contentType="text/html; charset=UTF-8" 3 | pageEncoding="UTF-8"%> 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | <%@ include file="header.jsp" %> 18 | 19 |
20 |
21 | 22 | 25 | 26 |
27 |
28 |
29 | 41 |
42 |
43 |
44 |
45 |
46 | 52 |
53 |
54 | 55 |
56 |
57 |
58 |
59 | 60 | 61 | 62 | 63 | 64 | 65 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/util/SocialResultSeven.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.util; 2 | 3 | import com.jiyufei.social.bean.Sd12306; 4 | 5 | /* 6 | *Created by jiyufei on 2016年11月1日 下午10:45:42 . 7 | */ 8 | public class SocialResultSeven { 9 | 10 | private Integer userId; 11 | private String userName; 12 | private String userMail; 13 | private String userPasswd; 14 | private String userCard; 15 | private String userPhone; 16 | private String userUndef; 17 | private String userForm; 18 | 19 | public SocialResultSeven(){ 20 | 21 | } 22 | 23 | public SocialResultSeven(Sd12306 sd){ 24 | this.userId = sd.getUserId(); 25 | this.userName = sd.getUserName(); 26 | this.userMail = sd.getUserMail(); 27 | this.userPasswd = sd.getUserPasswd(); 28 | this.userCard = sd.getUserCard(); 29 | this.userPhone = sd.getUserPhone(); 30 | this.userUndef = sd.getUserUndef(); 31 | this.userForm = "铁路售票网"; 32 | } 33 | 34 | public SocialResultSeven(SocialResultFour sd){ 35 | this.userId = sd.getUserId(); 36 | this.userName = sd.getUserName(); 37 | this.userMail = sd.getUserMail(); 38 | this.userPasswd = sd.getUserPasswd(); 39 | this.userCard = ""; 40 | this.userPhone = ""; 41 | this.userUndef = ""; 42 | this.userForm = sd.getUserForm(); 43 | } 44 | 45 | public SocialResultSeven(SocialResultThree sd){ 46 | this.userId = sd.getUserId(); 47 | this.userName = ""; 48 | this.userMail = sd.getUserMail(); 49 | this.userPasswd = sd.getUserPasswd(); 50 | this.userCard = ""; 51 | this.userPhone = ""; 52 | this.userUndef = ""; 53 | this.userForm = sd.getUserForm(); 54 | } 55 | 56 | public Integer getUserId() { 57 | return userId; 58 | } 59 | 60 | public void setUserId(Integer userId) { 61 | this.userId = userId; 62 | } 63 | 64 | public String getUserName() { 65 | return userName; 66 | } 67 | 68 | public void setUserName(String userName) { 69 | this.userName = userName; 70 | } 71 | 72 | public String getUserMail() { 73 | return userMail; 74 | } 75 | 76 | public void setUserMail(String userMail) { 77 | this.userMail = userMail; 78 | } 79 | 80 | public String getUserPasswd() { 81 | return userPasswd; 82 | } 83 | 84 | public void setUserPasswd(String userPasswd) { 85 | this.userPasswd = userPasswd; 86 | } 87 | 88 | public String getUserCard() { 89 | return userCard; 90 | } 91 | 92 | public void setUserCard(String userCard) { 93 | this.userCard = userCard; 94 | } 95 | 96 | public String getUserPhone() { 97 | return userPhone; 98 | } 99 | 100 | public void setUserPhone(String userPhone) { 101 | this.userPhone = userPhone; 102 | } 103 | 104 | public String getUserUndef() { 105 | return userUndef; 106 | } 107 | 108 | public void setUserUndef(String userUndef) { 109 | this.userUndef = userUndef; 110 | } 111 | 112 | public String getUserForm() { 113 | return userForm; 114 | } 115 | 116 | public void setUserForm(String userForm) { 117 | this.userForm = userForm; 118 | } 119 | 120 | } 121 | -------------------------------------------------------------------------------- /src/main/webapp/js/jquery.maskedinput.min.js: -------------------------------------------------------------------------------- 1 | /* 2 | Masked Input plugin for jQuery 3 | Copyright (c) 2007-2013 Josh Bush (digitalbush.com) 4 | Licensed under the MIT license (http://digitalbush.com/projects/masked-input-plugin/#license) 5 | Version: 1.3.1 6 | */ 7 | (function(e){function t(){var e=document.createElement("input"),t="onpaste";return e.setAttribute(t,""),"function"==typeof e[t]?"paste":"input"}var n,a=t()+".mask",r=navigator.userAgent,i=/iphone/i.test(r),o=/android/i.test(r);e.mask={definitions:{9:"[0-9]",a:"[A-Za-z]","*":"[A-Za-z0-9]"},dataName:"rawMaskFn",placeholder:"_"},e.fn.extend({caret:function(e,t){var n;if(0!==this.length&&!this.is(":hidden"))return"number"==typeof e?(t="number"==typeof t?t:e,this.each(function(){this.setSelectionRange?this.setSelectionRange(e,t):this.createTextRange&&(n=this.createTextRange(),n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",e),n.select())})):(this[0].setSelectionRange?(e=this[0].selectionStart,t=this[0].selectionEnd):document.selection&&document.selection.createRange&&(n=document.selection.createRange(),e=0-n.duplicate().moveStart("character",-1e5),t=e+n.text.length),{begin:e,end:t})},unmask:function(){return this.trigger("unmask")},mask:function(t,r){var c,l,s,u,f,h;return!t&&this.length>0?(c=e(this[0]),c.data(e.mask.dataName)()):(r=e.extend({placeholder:e.mask.placeholder,completed:null},r),l=e.mask.definitions,s=[],u=h=t.length,f=null,e.each(t.split(""),function(e,t){"?"==t?(h--,u=e):l[t]?(s.push(RegExp(l[t])),null===f&&(f=s.length-1)):s.push(null)}),this.trigger("unmask").each(function(){function c(e){for(;h>++e&&!s[e];);return e}function d(e){for(;--e>=0&&!s[e];);return e}function m(e,t){var n,a;if(!(0>e)){for(n=e,a=c(t);h>n;n++)if(s[n]){if(!(h>a&&s[n].test(R[a])))break;R[n]=R[a],R[a]=r.placeholder,a=c(a)}b(),x.caret(Math.max(f,e))}}function p(e){var t,n,a,i;for(t=e,n=r.placeholder;h>t;t++)if(s[t]){if(a=c(t),i=R[t],R[t]=n,!(h>a&&s[a].test(i)))break;n=i}}function g(e){var t,n,a,r=e.which;8===r||46===r||i&&127===r?(t=x.caret(),n=t.begin,a=t.end,0===a-n&&(n=46!==r?d(n):a=c(n-1),a=46===r?c(a):a),k(n,a),m(n,a-1),e.preventDefault()):27==r&&(x.val(S),x.caret(0,y()),e.preventDefault())}function v(t){var n,a,i,l=t.which,u=x.caret();t.ctrlKey||t.altKey||t.metaKey||32>l||l&&(0!==u.end-u.begin&&(k(u.begin,u.end),m(u.begin,u.end-1)),n=c(u.begin-1),h>n&&(a=String.fromCharCode(l),s[n].test(a)&&(p(n),R[n]=a,b(),i=c(n),o?setTimeout(e.proxy(e.fn.caret,x,i),0):x.caret(i),r.completed&&i>=h&&r.completed.call(x))),t.preventDefault())}function k(e,t){var n;for(n=e;t>n&&h>n;n++)s[n]&&(R[n]=r.placeholder)}function b(){x.val(R.join(""))}function y(e){var t,n,a=x.val(),i=-1;for(t=0,pos=0;h>t;t++)if(s[t]){for(R[t]=r.placeholder;pos++a.length)break}else R[t]===a.charAt(pos)&&t!==u&&(pos++,i=t);return e?b():u>i+1?(x.val(""),k(0,h)):(b(),x.val(x.val().substring(0,i+1))),u?t:f}var x=e(this),R=e.map(t.split(""),function(e){return"?"!=e?l[e]?r.placeholder:e:void 0}),S=x.val();x.data(e.mask.dataName,function(){return e.map(R,function(e,t){return s[t]&&e!=r.placeholder?e:null}).join("")}),x.attr("readonly")||x.one("unmask",function(){x.unbind(".mask").removeData(e.mask.dataName)}).bind("focus.mask",function(){clearTimeout(n);var e;S=x.val(),e=y(),n=setTimeout(function(){b(),e==t.length?x.caret(0,e):x.caret(e)},10)}).bind("blur.mask",function(){y(),x.val()!=S&&x.change()}).bind("keydown.mask",g).bind("keypress.mask",v).bind(a,function(){setTimeout(function(){var e=y(!0);x.caret(e),r.completed&&e==x.val().length&&r.completed.call(x)},0)}),y()}))}})})(jQuery); -------------------------------------------------------------------------------- /src/main/webapp/views/searchName.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 社工库查询--按姓名查询 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | <%@ include file="header.jsp" %> 16 | 17 |
18 |
19 | 20 | 23 | 24 |
25 |
26 |
27 | 31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | 39 |
40 |
41 | 42 | 43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | 58 |
59 |
60 |
61 |
62 | 70 |
71 |
72 |
73 |
74 |
75 |
76 | 77 | 78 | 79 | 80 | 81 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /src/main/webapp/views/searchPhone.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 社工库查询--按手机号查询 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | <%@ include file="header.jsp" %> 16 | 17 |
18 |
19 | 20 | 23 | 24 |
25 |
26 |
27 | 31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 | 39 |
40 |
41 | 42 | 43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 | 58 |
59 |
60 |
61 |
62 | 70 |
71 |
72 |
73 |
74 |
75 |
76 | 77 | 78 | 79 | 80 | 81 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /src/main/webapp/views/searchId.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 社工库查询--按身份证查询 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | <%@ include file="header.jsp" %> 16 | 17 |
18 |
19 | 20 | 23 | 24 |
25 | 26 |
27 |
28 | 32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 59 |
60 |
61 |
62 |
63 | 71 |
72 |
73 |
74 |
75 |
76 |
77 | 78 | 79 | 80 | 81 | 82 | 100 | 101 | 102 | -------------------------------------------------------------------------------- /src/main/webapp/views/searchMail.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=UTF-8" 2 | pageEncoding="UTF-8"%> 3 | 4 | 5 | 6 | 7 | 社工库查询--按邮箱查询 8 | 9 | 10 | 11 | 12 | 13 | 14 |
15 | <%@ include file="header.jsp" %> 16 | 17 |
18 |
19 | 20 | 23 | 24 |
25 | 26 |
27 |
28 | 32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 | 40 |
41 |
42 | 43 | 44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 |
52 |
53 | 59 |
60 |
61 |
62 |
63 | 71 |
72 |
73 |
74 |
75 |
76 |
77 | 78 | 79 | 80 | 81 | 82 | 99 | 100 | 101 | -------------------------------------------------------------------------------- /src/main/webapp/css/libs/daterangepicker.css: -------------------------------------------------------------------------------- 1 | .daterangepicker.dropdown-menu{max-width:none;}.daterangepicker.opensleft .ranges,.daterangepicker.opensleft .calendar{float:left;margin:4px;}.daterangepicker.opensright .ranges,.daterangepicker.opensright .calendar{float:right;margin:4px;}.daterangepicker .ranges{width:160px;text-align:left;}.daterangepicker .ranges .range_inputs>div{float:left;}.daterangepicker .ranges .range_inputs>div:nth-child(2){padding-left:11px;}.daterangepicker .calendar{display:none;max-width:270px;}.daterangepicker .calendar th,.daterangepicker .calendar td{font-family:'Helvetica Neue',Helvetica,Arial,sans-serif;white-space:nowrap;text-align:center;min-width:32px;}.daterangepicker .ranges label{color:#333;display:block;font-size:11px;font-weight:normal;height:20px;line-height:20px;margin-bottom:2px;text-shadow:#fff 1px 1px 0px;text-transform:uppercase;width:74px;}.daterangepicker .ranges input{font-size:11px;}.daterangepicker .ranges .input-mini{background-color:#eee;border:1px solid #ccc;border-radius:4px;color:#555;display:block;font-size:11px;height:30px;line-height:30px;vertical-align:middle;margin:0 0 10px 0;padding:0 6px;width:74px;}.daterangepicker .ranges ul{list-style:none;margin:0;padding:0;}.daterangepicker .ranges li{font-size:13px;background:#f5f5f5;border:1px solid #f5f5f5;color:#08c;padding:3px 12px;margin-bottom:8px;-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;cursor:pointer;}.daterangepicker .ranges li.active,.daterangepicker .ranges li:hover{background:#08c;border:1px solid #08c;color:#fff;}.daterangepicker .calendar-date{border:1px solid #ddd;padding:4px;border-radius:4px;background:#fff;}.daterangepicker .calendar-time{text-align:center;margin:8px auto 0 auto;line-height:30px;}.daterangepicker{position:absolute;background:#fff;top:100px;left:20px;padding:4px;margin-top:1px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;}.daterangepicker.opensleft:before{position:absolute;top:-7px;right:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,0.2);content:'';}.daterangepicker.opensleft:after{position:absolute;top:-6px;right:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:'';}.daterangepicker.opensright:before{position:absolute;top:-7px;left:9px;display:inline-block;border-right:7px solid transparent;border-bottom:7px solid #ccc;border-left:7px solid transparent;border-bottom-color:rgba(0,0,0,0.2);content:'';}.daterangepicker.opensright:after{position:absolute;top:-6px;left:10px;display:inline-block;border-right:6px solid transparent;border-bottom:6px solid #fff;border-left:6px solid transparent;content:'';}.daterangepicker table{width:100%;margin:0;}.daterangepicker td,.daterangepicker th{text-align:center;width:20px;height:20px;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px;cursor:pointer;white-space:nowrap;}.daterangepicker td.off{color:#999;}.daterangepicker td.disabled{color:#999;}.daterangepicker td.available:hover,.daterangepicker th.available:hover{background:#eee;}.daterangepicker td.in-range{background:#ebf4f8;-webkit-border-radius:0;-moz-border-radius:0;border-radius:0;}.daterangepicker td.active,.daterangepicker td.active:hover{background-color:#357ebd;border-color:#3071a9;color:#fff;}.daterangepicker td.week,.daterangepicker th.week{font-size:80%;color:#ccc;}.daterangepicker select.monthselect,.daterangepicker select.yearselect{font-size:12px;padding:1px;height:auto;margin:0;cursor:default;}.daterangepicker select.monthselect{margin-right:2%;width:56%;}.daterangepicker select.yearselect{width:40%;}.daterangepicker select.hourselect,.daterangepicker select.minuteselect,.daterangepicker select.ampmselect{width:50px;margin-bottom:0;} -------------------------------------------------------------------------------- /src/main/webapp/js/jquery.easypiechart.min.js: -------------------------------------------------------------------------------- 1 | /**! 2 | * easyPieChart 3 | * Lightweight plugin to render simple, animated and retina optimized pie charts 4 | * 5 | * @license 6 | * @author Robert Fleischmann (http://robert-fleischmann.de) 7 | * @version 2.1.5 8 | **/ 9 | !function(a,b){"object"==typeof exports?module.exports=b(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],b):b(a.jQuery)}(this,function(a){var b=function(a,b){var c,d=document.createElement("canvas");a.appendChild(d),"undefined"!=typeof G_vmlCanvasManager&&G_vmlCanvasManager.initElement(d);var e=d.getContext("2d");d.width=d.height=b.size;var f=1;window.devicePixelRatio>1&&(f=window.devicePixelRatio,d.style.width=d.style.height=[b.size,"px"].join(""),d.width=d.height=b.size*f,e.scale(f,f)),e.translate(b.size/2,b.size/2),e.rotate((-0.5+b.rotate/180)*Math.PI);var g=(b.size-b.lineWidth)/2;b.scaleColor&&b.scaleLength&&(g-=b.scaleLength+2),Date.now=Date.now||function(){return+new Date};var h=function(a,b,c){c=Math.min(Math.max(-1,c||0),1);var d=0>=c?!0:!1;e.beginPath(),e.arc(0,0,g,0,2*Math.PI*c,d),e.strokeStyle=a,e.lineWidth=b,e.stroke()},i=function(){var a,c;e.lineWidth=1,e.fillStyle=b.scaleColor,e.save();for(var d=24;d>0;--d)d%6===0?(c=b.scaleLength,a=0):(c=.6*b.scaleLength,a=b.scaleLength-c),e.fillRect(-b.size/2+a,0,c,1),e.rotate(Math.PI/12);e.restore()},j=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1e3/60)}}(),k=function(){b.scaleColor&&i(),b.trackColor&&h(b.trackColor,b.lineWidth,1)};this.getCanvas=function(){return d},this.getCtx=function(){return e},this.clear=function(){e.clearRect(b.size/-2,b.size/-2,b.size,b.size)},this.draw=function(a){b.scaleColor||b.trackColor?e.getImageData&&e.putImageData?c?e.putImageData(c,0,0):(k(),c=e.getImageData(0,0,b.size*f,b.size*f)):(this.clear(),k()):this.clear(),e.lineCap=b.lineCap;var d;d="function"==typeof b.barColor?b.barColor(a):b.barColor,h(d,b.lineWidth,a/100)}.bind(this),this.animate=function(a,c){var d=Date.now();b.onStart(a,c);var e=function(){var f=Math.min(Date.now()-d,b.animate.duration),g=b.easing(this,f,a,c-a,b.animate.duration);this.draw(g),b.onStep(a,c,g),f>=b.animate.duration?b.onStop(a,c):j(e)}.bind(this);j(e)}.bind(this)},c=function(a,c){var d={barColor:"#ef1e25",trackColor:"#f9f9f9",scaleColor:"#dfe0e0",scaleLength:5,lineCap:"round",lineWidth:3,size:110,rotate:0,animate:{duration:1e3,enabled:!0},easing:function(a,b,c,d,e){return b/=e/2,1>b?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},onStart:function(){},onStep:function(){},onStop:function(){}};if("undefined"!=typeof b)d.renderer=b;else{if("undefined"==typeof SVGRenderer)throw new Error("Please load either the SVG- or the CanvasRenderer");d.renderer=SVGRenderer}var e={},f=0,g=function(){this.el=a,this.options=e;for(var b in d)d.hasOwnProperty(b)&&(e[b]=c&&"undefined"!=typeof c[b]?c[b]:d[b],"function"==typeof e[b]&&(e[b]=e[b].bind(this)));e.easing="string"==typeof e.easing&&"undefined"!=typeof jQuery&&jQuery.isFunction(jQuery.easing[e.easing])?jQuery.easing[e.easing]:d.easing,"number"==typeof e.animate&&(e.animate={duration:e.animate,enabled:!0}),"boolean"!=typeof e.animate||e.animate||(e.animate={duration:1e3,enabled:e.animate}),this.renderer=new e.renderer(a,e),this.renderer.draw(f),a.dataset&&a.dataset.percent?this.update(parseFloat(a.dataset.percent)):a.getAttribute&&a.getAttribute("data-percent")&&this.update(parseFloat(a.getAttribute("data-percent")))}.bind(this);this.update=function(a){return a=parseFloat(a),e.animate.enabled?this.renderer.animate(f,a):this.renderer.draw(a),f=a,this}.bind(this),this.disableAnimation=function(){return e.animate.enabled=!1,this},this.enableAnimation=function(){return e.animate.enabled=!0,this},g()};a.fn.easyPieChart=function(b){return this.each(function(){var d;a.data(this,"easyPieChart")||(d=a.extend({},b,a(this).data()),a.data(this,"easyPieChart",new c(this,d)))})}}); -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/service/WyDropsServiceImpl.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.service; 2 | 3 | import java.util.List; 4 | 5 | import org.springframework.beans.factory.annotation.Autowired; 6 | import org.springframework.stereotype.Service; 7 | import org.springframework.transaction.annotation.Isolation; 8 | import org.springframework.transaction.annotation.Propagation; 9 | import org.springframework.transaction.annotation.Transactional; 10 | 11 | import com.github.pagehelper.PageHelper; 12 | import com.jiyufei.social.bean.WyDrops; 13 | import com.jiyufei.social.bean.WyDropsExample; 14 | import com.jiyufei.social.dao.WyDropsMapper; 15 | 16 | /* 17 | *Created by jiyufei on 2016年11月3日 上午11:32:50 . 18 | */ 19 | @Service("wyDropsService") 20 | public class WyDropsServiceImpl implements WyDropsService{ 21 | 22 | @Autowired 23 | private WyDropsMapper wyDropsMapper; 24 | 25 | @Override 26 | public WyDrops getDropsById(Integer id) throws Exception { 27 | WyDrops wyDrops = wyDropsMapper.selectByPrimaryKey(id); 28 | return wyDrops; 29 | } 30 | 31 | @Override 32 | public List getDropsByTitle(String title) throws Exception { 33 | WyDropsExample example = new WyDropsExample(); 34 | example.createCriteria().andTitleLike("%" + title + "%"); 35 | List wyDropsList = wyDropsMapper.selectByExample(example); 36 | return wyDropsList; 37 | } 38 | 39 | @Override 40 | public List getDropsByAuthor(String author) throws Exception { 41 | WyDropsExample example = new WyDropsExample(); 42 | example.createCriteria().andAuthorLike("%" + author + "%"); 43 | List wyDropsList = wyDropsMapper.selectByExample(example); 44 | return wyDropsList; 45 | } 46 | 47 | @Override 48 | @Transactional(isolation=Isolation.READ_COMMITTED,propagation=Propagation.REQUIRED) 49 | public Integer addReadNumById(Integer id) throws Exception { 50 | WyDrops wyDrops = wyDropsMapper.selectByPrimaryKey(id); 51 | int newNum = wyDrops.getNum() + 1; 52 | WyDrops drops = new WyDrops(); 53 | drops.setId(wyDrops.getId()); 54 | drops.setNum(newNum); 55 | int result = wyDropsMapper.updateByPrimaryKeySelective(drops); 56 | return result; 57 | } 58 | 59 | @Override 60 | public Integer getDropsNum() throws Exception { 61 | 62 | return null; 63 | } 64 | 65 | @Override 66 | public List getAllDrops(Integer pageNum,Integer pageSize) throws Exception { 67 | WyDropsExample example = new WyDropsExample(); 68 | example.createCriteria().andStatusEqualTo(new Integer(1)); 69 | PageHelper.startPage(pageNum, pageSize); 70 | List wyDropsList = wyDropsMapper.selectByExample(example); 71 | return wyDropsList; 72 | } 73 | 74 | @Override 75 | public List getDropsTop10() throws Exception { 76 | WyDropsExample example = new WyDropsExample(); 77 | example.createCriteria().andStatusEqualTo(new Integer(1)); 78 | example.setOrderByClause("num desc"); 79 | PageHelper.startPage(1, 10); 80 | List wyDropsList = wyDropsMapper.selectByExample(example); 81 | return wyDropsList; 82 | } 83 | 84 | @Override 85 | public List searchDrops(WyDrops wyDrops,Integer pageNum,Integer pageSize) throws Exception { 86 | WyDropsExample example = new WyDropsExample(); 87 | WyDropsExample.Criteria criteria = example.createCriteria(); 88 | if((wyDrops.getTitle() != "") && (wyDrops.getTitle() != null)){ 89 | criteria.andTitleLike("%" + wyDrops.getTitle() + "%"); 90 | } 91 | if((wyDrops.getAuthor() != "") && (wyDrops.getAuthor() != null)){ 92 | criteria.andAuthorLike("%" + wyDrops.getAuthor() + "%"); 93 | } 94 | PageHelper.startPage(pageNum, pageSize); 95 | List wyDropsList = wyDropsMapper.selectByExample(example); 96 | return wyDropsList; 97 | } 98 | 99 | 100 | 101 | } 102 | -------------------------------------------------------------------------------- /src/main/resources/root-context.xml: -------------------------------------------------------------------------------- 1 | 2 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 22 | 23 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | text/plain;charset=UTF-8 56 | text/html;charset=UTF-8 57 | application/x-www-form-urlencoded;charset=UTF-8 58 | 59 | 60 | 61 | 62 | 63 | 64 | application/json;charset=UTF-8 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | -------------------------------------------------------------------------------- /src/main/webapp/js/respond.min.js: -------------------------------------------------------------------------------- 1 | /*! matchMedia() polyfill - Test a CSS media type/query in JS. Authors & copyright (c) 2012: Scott Jehl, Paul Irish, Nicholas Zakas. Dual MIT/BSD license */ 2 | /*! NOTE: If you're already including a window.matchMedia polyfill via Modernizr or otherwise, you don't need this part */ 3 | window.matchMedia=window.matchMedia||function(a){"use strict";var c,d=a.documentElement,e=d.firstElementChild||d.firstChild,f=a.createElement("body"),g=a.createElement("div");return g.id="mq-test-1",g.style.cssText="position:absolute;top:-100em",f.style.background="none",f.appendChild(g),function(a){return g.innerHTML='­',d.insertBefore(f,e),c=42===g.offsetWidth,d.removeChild(f),{matches:c,media:a}}}(document); 4 | 5 | /*! Respond.js v1.1.0: min/max-width media query polyfill. (c) Scott Jehl. MIT/GPLv2 Lic. j.mp/respondjs */ 6 | (function(a){"use strict";function x(){u(!0)}var b={};a.respond=b,b.update=function(){},b.mediaQueriesSupported=a.matchMedia&&a.matchMedia("only all").matches,b.mediaQueriesSupported;var q,r,t,c=a.document,d=c.documentElement,e=[],f=[],g=[],h={},i=30,j=c.getElementsByTagName("head")[0]||d,k=c.getElementsByTagName("base")[0],l=j.getElementsByTagName("link"),m=[],n=function(){for(var b=0;l.length>b;b++){var c=l[b],d=c.href,e=c.media,f=c.rel&&"stylesheet"===c.rel.toLowerCase();d&&f&&!h[d]&&(c.styleSheet&&c.styleSheet.rawCssText?(p(c.styleSheet.rawCssText,d,e),h[d]=!0):(!/^([a-zA-Z:]*\/\/)/.test(d)&&!k||d.replace(RegExp.$1,"").split("/")[0]===a.location.host)&&m.push({href:d,media:e}))}o()},o=function(){if(m.length){var a=m.shift();v(a.href,function(b){p(b,a.href,a.media),h[a.href]=!0,setTimeout(function(){o()},0)})}},p=function(a,b,c){var d=a.match(/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi),g=d&&d.length||0;b=b.substring(0,b.lastIndexOf("/"));var h=function(a){return a.replace(/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,"$1"+b+"$2$3")},i=!g&&c;b.length&&(b+="/"),i&&(g=1);for(var j=0;g>j;j++){var k,l,m,n;i?(k=c,f.push(h(a))):(k=d[j].match(/@media *([^\{]+)\{([\S\s]+?)$/)&&RegExp.$1,f.push(RegExp.$2&&h(RegExp.$2))),m=k.split(","),n=m.length;for(var o=0;n>o;o++)l=m[o],e.push({media:l.split("(")[0].match(/(only\s+)?([a-zA-Z]+)\s?/)&&RegExp.$2||"all",rules:f.length-1,hasquery:l.indexOf("(")>-1,minw:l.match(/\(min\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:l.match(/\(max\-width:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/)&&parseFloat(RegExp.$1)+(RegExp.$2||"")})}u()},s=function(){var a,b=c.createElement("div"),e=c.body,f=!1;return b.style.cssText="position:absolute;font-size:1em;width:1em",e||(e=f=c.createElement("body"),e.style.background="none"),e.appendChild(b),d.insertBefore(e,d.firstChild),a=b.offsetWidth,f?d.removeChild(e):e.removeChild(b),a=t=parseFloat(a)},u=function(a){var b="clientWidth",h=d[b],k="CSS1Compat"===c.compatMode&&h||c.body[b]||h,m={},n=l[l.length-1],o=(new Date).getTime();if(a&&q&&i>o-q)return clearTimeout(r),r=setTimeout(u,i),void 0;q=o;for(var p in e)if(e.hasOwnProperty(p)){var v=e[p],w=v.minw,x=v.maxw,y=null===w,z=null===x,A="em";w&&(w=parseFloat(w)*(w.indexOf(A)>-1?t||s():1)),x&&(x=parseFloat(x)*(x.indexOf(A)>-1?t||s():1)),v.hasquery&&(y&&z||!(y||k>=w)||!(z||x>=k))||(m[v.media]||(m[v.media]=[]),m[v.media].push(f[v.rules]))}for(var B in g)g.hasOwnProperty(B)&&g[B]&&g[B].parentNode===j&&j.removeChild(g[B]);for(var C in m)if(m.hasOwnProperty(C)){var D=c.createElement("style"),E=m[C].join("\n");D.type="text/css",D.media=C,j.insertBefore(D,n.nextSibling),D.styleSheet?D.styleSheet.cssText=E:D.appendChild(c.createTextNode(E)),g.push(D)}},v=function(a,b){var c=w();c&&(c.open("GET",a,!0),c.onreadystatechange=function(){4!==c.readyState||200!==c.status&&304!==c.status||b(c.responseText)},4!==c.readyState&&c.send(null))},w=function(){var b=!1;try{b=new a.XMLHttpRequest}catch(c){b=new a.ActiveXObject("Microsoft.XMLHTTP")}return function(){return b}}();n(),b.update=n,a.addEventListener?a.addEventListener("resize",x,!1):a.attachEvent&&a.attachEvent("onresize",x)})(this); 7 | -------------------------------------------------------------------------------- /src/main/webapp/css/libs/xcharts.css: -------------------------------------------------------------------------------- 1 | .xchart .line{stroke-width:3px;fill:none;}.xchart .fill{stroke-width:0;}.xchart circle{stroke:#FFF;stroke-width:3px;}.xchart .axis .domain{fill:none;}.xchart .axis .tick line{stroke:#EEE;stroke-width:1px;}.xchart .axis text{font-family:Helvetica,Arial,Verdana,sans-serif;fill:#666;font-size:12px;}.xchart .color0 .line{stroke:#2980b9;}.xchart .color0 .line .fill{pointer-events:none;}.xchart .color0 rect,.xchart .color0 circle{fill:#2980b9;}.xchart .color0 .fill{fill:rgba(41,128,185,0.2);}.xchart .color0.comp .line{stroke:#89bbd8;}.xchart .color0.comp rect{fill:#89bbd8;}.xchart .color0.comp .fill{display:none;}.xchart .color0.comp circle,.xchart .color0.comp .pointer{fill:#89bbd8;}.xchart .color1 .line{stroke:#2ecc71;}.xchart .color1 .line .fill{pointer-events:none;}.xchart .color1 rect,.xchart .color1 circle{fill:#2ecc71;}.xchart .color1 .fill{fill:rgba(46,204,113,0.2);}.xchart .color1.comp .line{stroke:#9dd597;}.xchart .color1.comp rect{fill:#9dd597;}.xchart .color1.comp .fill{display:none;}.xchart .color1.comp circle,.xchart .color1.comp .pointer{fill:#9dd597;}.xchart .color2 .line{stroke:#d5ac08;}.xchart .color2 .line .fill{pointer-events:none;}.xchart .color2 rect,.xchart .color2 circle{fill:#d5ac08;}.xchart .color2 .fill{fill:rgba(213,172,8,0.2);}.xchart .color2.comp .line{stroke:#f9b99a;}.xchart .color2.comp rect{fill:#f9b99a;}.xchart .color2.comp .fill{display:none;}.xchart .color2.comp circle,.xchart .color2.comp .pointer{fill:#f9b99a;}.xchart .color3 .line{stroke:#626f70;}.xchart .color3 .line .fill{pointer-events:none;}.xchart .color3 rect,.xchart .color3 circle{fill:#626f70;}.xchart .color3 .fill{fill:rgba(98,111,112,0.2);}.xchart .color3.comp .line{stroke:#f8555a;}.xchart .color3.comp rect{fill:#f8555a;}.xchart .color3.comp .fill{display:none;}.xchart .color3.comp circle,.xchart .color3.comp .pointer{fill:#f8555a;}.xchart .color4 .line{stroke:#dd504c;}.xchart .color4 .line .fill{pointer-events:none;}.xchart .color4 rect,.xchart .color4 circle{fill:#dd504c;}.xchart .color4 .fill{fill:rgba(221,80,76,0.2);}.xchart .color4.comp .line{stroke:#a869ce;}.xchart .color4.comp rect{fill:#a869ce;}.xchart .color4.comp .fill{display:none;}.xchart .color4.comp circle,.xchart .color4.comp .pointer{fill:#a869ce;}.xchart .color5 .line{stroke:#8f44ad;}.xchart .color5 .line .fill{pointer-events:none;}.xchart .color5 rect,.xchart .color5 circle{fill:#8f44ad;}.xchart .color5 .fill{fill:rgba(143,68,173,0.2);}.xchart .color5.comp .line{stroke:#f075cb;}.xchart .color5.comp rect{fill:#f075cb;}.xchart .color5.comp .fill{display:none;}.xchart .color5.comp circle,.xchart .color5.comp .pointer{fill:#f075cb;}.xchart .color6 .line{stroke:#d9ce00;}.xchart .color6 .line .fill{pointer-events:none;}.xchart .color6 rect,.xchart .color6 circle{fill:#d9ce00;}.xchart .color6 .fill{fill:rgba(217,206,0,0.2);}.xchart .color6.comp .line{stroke:#fff75a;}.xchart .color6.comp rect{fill:#fff75a;}.xchart .color6.comp .fill{display:none;}.xchart .color6.comp circle,.xchart .color6.comp .pointer{fill:#fff75a;}.xchart .color7 .line{stroke:#754c24;}.xchart .color7 .line .fill{pointer-events:none;}.xchart .color7 rect,.xchart .color7 circle{fill:#754c24;}.xchart .color7 .fill{fill:rgba(117,76,36,0.2);}.xchart .color7.comp .line{stroke:#c98c50;}.xchart .color7.comp rect{fill:#c98c50;}.xchart .color7.comp .fill{display:none;}.xchart .color7.comp circle,.xchart .color7.comp .pointer{fill:#c98c50;}.xchart .color8 .line{stroke:#2eb9b4;}.xchart .color8 .line .fill{pointer-events:none;}.xchart .color8 rect,.xchart .color8 circle{fill:#2eb9b4;}.xchart .color8 .fill{fill:rgba(46,185,180,0.2);}.xchart .color8.comp .line{stroke:#86e1de;}.xchart .color8.comp rect{fill:#86e1de;}.xchart .color8.comp .fill{display:none;}.xchart .color8.comp circle,.xchart .color8.comp .pointer{fill:#86e1de;}.xchart .color9 .line{stroke:#0e2e42;}.xchart .color9 .line .fill{pointer-events:none;}.xchart .color9 rect,.xchart .color9 circle{fill:#0e2e42;}.xchart .color9 .fill{fill:rgba(14,46,66,0.2);}.xchart .color9.comp .line{stroke:#2477ab;}.xchart .color9.comp rect{fill:#2477ab;}.xchart .color9.comp .fill{display:none;}.xchart .color9.comp circle,.xchart .color9.comp .pointer{fill:#2477ab;} -------------------------------------------------------------------------------- /src/main/webapp/js/wizard.js: -------------------------------------------------------------------------------- 1 | var Wizard=function(element,options){var kids;this.$element=$(element);this.options=$.extend({},$.fn.wizard.defaults,options);this.currentStep=this.options.selectedItem.step;this.numSteps=this.$element.find('.steps li').length;this.$prevBtn=this.$element.find('button.btn-prev');this.$nextBtn=this.$element.find('button.btn-next');kids=this.$nextBtn.children().detach();this.nextText=$.trim(this.$nextBtn.text());this.$nextBtn.append(kids);this.$prevBtn.on('click',$.proxy(this.previous,this));this.$nextBtn.on('click',$.proxy(this.next,this));this.$element.on('click','li.complete',$.proxy(this.stepclicked,this));if(this.currentStep>1){this.selectedItem(this.options.selectedItem);}};Wizard.prototype={constructor:Wizard,setState:function(){var canMovePrev=(this.currentStep>1);var firstStep=(this.currentStep===1);var lastStep=(this.currentStep===this.numSteps);this.$prevBtn.attr('disabled',(firstStep===true||canMovePrev===false));var data=this.$nextBtn.data();if(data&&data.last){this.lastText=data.last;if(typeof this.lastText!=='undefined'){var text=(lastStep!==true)?this.nextText:this.lastText;var kids=this.$nextBtn.children().detach();this.$nextBtn.text(text).append(kids);}} 2 | var $steps=this.$element.find('.steps li');$steps.removeClass('active').removeClass('complete');$steps.find('span.badge').removeClass('badge-primary').removeClass('badge-success');var prevSelector='.steps li:lt('+(this.currentStep- 1)+')';var $prevSteps=this.$element.find(prevSelector);$prevSteps.addClass('complete');$prevSteps.find('span.badge').addClass('badge-success');var currentSelector='.steps li:eq('+(this.currentStep- 1)+')';var $currentStep=this.$element.find(currentSelector);$currentStep.addClass('active');$currentStep.find('span.badge').addClass('badge-primary');var target=$currentStep.data().target;this.$element.find('.step-pane').removeClass('active');$(target).addClass('active');$('.wizard .steps').attr('style','margin-left: 0');var totalWidth=0;$('.wizard .steps > li').each(function(){totalWidth+=$(this).outerWidth();});var containerWidth=0;if($('.wizard .actions').length){containerWidth=$('.wizard').width()- $('.wizard .actions').outerWidth();}else{containerWidth=$('.wizard').width();} 3 | if(totalWidth>containerWidth){var newMargin=totalWidth- containerWidth;$('.wizard .steps').attr('style','margin-left: -'+ newMargin+'px');if($('.wizard li.active').position().left<200){newMargin+=$('.wizard li.active').position().left- 200;if(newMargin<1){$('.wizard .steps').attr('style','margin-left: 0');}else{$('.wizard .steps').attr('style','margin-left: -'+ newMargin+'px');}}} 4 | this.$element.trigger('changed');},stepclicked:function(e){var li=$(e.currentTarget);var index=this.$element.find('.steps li').index(li);var evt=$.Event('stepclick');this.$element.trigger(evt,{step:index+ 1});if(evt.isDefaultPrevented())return;this.currentStep=(index+ 1);this.setState();},previous:function(){var canMovePrev=(this.currentStep>1);if(canMovePrev){var e=$.Event('change');this.$element.trigger(e,{step:this.currentStep,direction:'previous'});if(e.isDefaultPrevented())return;this.currentStep-=1;this.setState();}},next:function(){var canMoveNext=(this.currentStep+ 1<=this.numSteps);var lastStep=(this.currentStep===this.numSteps);if(canMoveNext){var e=$.Event('change');this.$element.trigger(e,{step:this.currentStep,direction:'next'});if(e.isDefaultPrevented())return;this.currentStep+=1;this.setState();} 5 | else if(lastStep){this.$element.trigger('finished');}},selectedItem:function(selectedItem){var retVal,step;if(selectedItem){step=selectedItem.step||-1;if(step>=1&&step<=this.numSteps){this.currentStep=step;this.setState();} 6 | retVal=this;} 7 | else{retVal={step:this.currentStep};} 8 | return retVal;}};$.fn.wizard=function(option,value){var methodReturn;var $set=this.each(function(){var $this=$(this);var data=$this.data('wizard');var options=typeof option==='object'&&option;if(!data)$this.data('wizard',(data=new Wizard(this,options)));if(typeof option==='string')methodReturn=data[option](value);});return(methodReturn===undefined)?$set:methodReturn;};$.fn.wizard.defaults={selectedItem:{step:1}};$.fn.wizard.Constructor=Wizard;$(function(){$('body').on('mousedown.wizard.data-api','.wizard',function(){var $this=$(this);if($this.data('wizard'))return;$this.wizard($this.data());});}); -------------------------------------------------------------------------------- /src/main/java/com/jiyufei/social/controller/LoginPageController.java: -------------------------------------------------------------------------------- 1 | package com.jiyufei.social.controller; 2 | 3 | import java.util.ArrayList; 4 | import java.util.Iterator; 5 | import java.util.List; 6 | 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpSession; 9 | 10 | import org.apache.commons.logging.Log; 11 | import org.apache.commons.logging.LogFactory; 12 | import org.springframework.beans.factory.annotation.Autowired; 13 | import org.springframework.security.authentication.AnonymousAuthenticationToken; 14 | import org.springframework.security.core.Authentication; 15 | import org.springframework.security.core.context.SecurityContextHolder; 16 | import org.springframework.security.core.userdetails.UserDetails; 17 | import org.springframework.stereotype.Controller; 18 | import org.springframework.web.bind.annotation.RequestMapping; 19 | import org.springframework.web.servlet.ModelAndView; 20 | 21 | import com.jiyufei.social.bean.LoginUser; 22 | import com.jiyufei.social.bean.SocialHistory; 23 | import com.jiyufei.social.bean.SocialRecord; 24 | import com.jiyufei.social.bean.WyDrops; 25 | import com.jiyufei.social.service.LoginUserService; 26 | import com.jiyufei.social.service.SocialHistoryService; 27 | import com.jiyufei.social.service.SocialRecordService; 28 | import com.jiyufei.social.service.WyDropsService; 29 | import com.jiyufei.social.util.DropsHistory; 30 | 31 | /* 32 | *Created by jiyufei on 2016年10月28日 上午9:36:17 . 33 | */ 34 | @Controller 35 | public class LoginPageController { 36 | 37 | @Autowired 38 | private LoginUserService loginUserService; 39 | @Autowired 40 | private SocialRecordService socialRecordService; 41 | @Autowired 42 | private SocialHistoryService socialHistoryService; 43 | @Autowired 44 | private WyDropsService wyDropsService; 45 | 46 | Log info = LogFactory.getLog("info"); 47 | Log error = LogFactory.getLog("error"); 48 | 49 | @RequestMapping(value="index.htm") 50 | public ModelAndView indexPage(HttpServletRequest request){ 51 | String username = null; 52 | int userId = 0; 53 | ModelAndView modelAndView = new ModelAndView("index"); 54 | UserDetails userDetails = (UserDetails)SecurityContextHolder.getContext().getAuthentication().getPrincipal(); 55 | String email = userDetails.getUsername(); 56 | try { 57 | LoginUser loginUser = loginUserService.getUserByMail(email); 58 | username = loginUser.getUsername(); 59 | userId = loginUser.getId(); 60 | } catch (Exception e) { 61 | e.printStackTrace(); 62 | } 63 | HttpSession session = request.getSession(); 64 | session.setAttribute("username", username); 65 | session.setAttribute("userId", userId); 66 | try { 67 | SocialRecord socialRecord = socialRecordService.getRecord(); 68 | if(socialRecord == null){ 69 | info.info("[LoginPageController.indexPage]socialRecord 为 null"); 70 | } 71 | modelAndView.addObject("socialRecord", socialRecord); 72 | List socialHistories = socialHistoryService.getHistory(); 73 | modelAndView.addObject("history", socialHistories); 74 | List wyDropsList = wyDropsService.getDropsTop10(); 75 | Iterator iterator = wyDropsList.iterator(); 76 | List dropsHistoriyList = new ArrayList(); 77 | WyDrops drops = null; 78 | while(iterator.hasNext()){ 79 | drops = (WyDrops)iterator.next(); 80 | DropsHistory history = new DropsHistory(drops); 81 | dropsHistoriyList.add(history); 82 | } 83 | modelAndView.addObject("dropsHistory", dropsHistoriyList); 84 | } catch (Exception e) { 85 | error.error("[LoginPageController.indexPage]", e); 86 | 87 | } 88 | return modelAndView; 89 | } 90 | 91 | @RequestMapping(value="login.htm") 92 | public ModelAndView loginPage(){ 93 | ModelAndView modelAndView; 94 | Authentication auth = SecurityContextHolder.getContext().getAuthentication(); 95 | if(auth instanceof AnonymousAuthenticationToken){ 96 | modelAndView = new ModelAndView("login"); 97 | }else{ 98 | modelAndView = new ModelAndView("redirect:/index.htm"); 99 | } 100 | return modelAndView; 101 | } 102 | 103 | } 104 | --------------------------------------------------------------------------------