Commit 85fe6228 by 丁伟

1、迁移初始提交

parent 43b3e44e
...@@ -5,12 +5,13 @@ services: ...@@ -5,12 +5,13 @@ services:
mysql: mysql:
environment: environment:
MYSQL_ROOT_PASSWORD: root MYSQL_ROOT_PASSWORD: root
image: itc/mysql:5.5 image: itc/mariadb:10.2
volumes: volumes:
- ./mysql/data:/var/lib/mysql - /dockerv/ccpit.org/itc/sfzx/database:/var/lib/mysql
- ./mysql/log:/var/log/mysql
command: mysqld --lower_case_table_names=1 command: mysqld --lower_case_table_names=1
networks:
hx_net:
ipv4_address: 172.40.0.3
web: web:
depends_on: depends_on:
- mysql - mysql
...@@ -18,6 +19,16 @@ services: ...@@ -18,6 +19,16 @@ services:
volumes: volumes:
- ./web:/usr/local/tomcat/webapps/ROOT - ./web:/usr/local/tomcat/webapps/ROOT
- ./logs:/logs - ./logs:/logs
- ./upload:/upload - ./upload.co.ccpit.org:/data/vhosts/upload.co.ccpit.org
ports: ports:
- "30128:8080" - "30128:8080"
networks:
hx_net:
ipv4_address: 172.40.0.4
networks:
hx_net:
driver: bridge
ipam:
config:
- subnet: 172.40.0.0/24
...@@ -22,7 +22,6 @@ import ccpit.base.logManage.LogInfoService; ...@@ -22,7 +22,6 @@ import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User; import ccpit.base.user.User;
import ccpit.base.utils.DateConvert; import ccpit.base.utils.DateConvert;
import ccpit.base.utils.StringUtil; import ccpit.base.utils.StringUtil;
import ccpit.base.utils.lucene.LuceneUtil;
import ccpit.base.utils.page.PageUtil; import ccpit.base.utils.page.PageUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
...@@ -38,8 +37,7 @@ public class CoApplicationInfoService { ...@@ -38,8 +37,7 @@ public class CoApplicationInfoService {
@Autowired @Autowired
private LogInfoService logInfoService; private LogInfoService logInfoService;
@Autowired
private LuceneUtil<CoApplicationInfo> luceneUtil;
public boolean addOrUpdateCoApplicationInfo(CoApplicationInfo coApplicationInfo, String operate, public boolean addOrUpdateCoApplicationInfo(CoApplicationInfo coApplicationInfo, String operate,
String coApplicationInfoId, User user, HttpServletRequest request) { String coApplicationInfoId, User user, HttpServletRequest request) {
boolean flag = false; boolean flag = false;
...@@ -48,7 +46,6 @@ public class CoApplicationInfoService { ...@@ -48,7 +46,6 @@ public class CoApplicationInfoService {
coApplicationInfo.setCreator(user); coApplicationInfo.setCreator(user);
flag = coApplicationInfoDao.save(coApplicationInfo); flag = coApplicationInfoDao.save(coApplicationInfo);
if (flag) { if (flag) {
luceneUtil.createIndex(createCoApplicationInfosIndex(coApplicationInfo));
// 记录用户操作日志信息 // 记录用户操作日志信息
logInfoService.recordLog(request, "新增CO数据信息"); logInfoService.recordLog(request, "新增CO数据信息");
} }
...@@ -60,8 +57,6 @@ public class CoApplicationInfoService { ...@@ -60,8 +57,6 @@ public class CoApplicationInfoService {
flag = coApplicationInfoDao.update(coApplicationInfo1); flag = coApplicationInfoDao.update(coApplicationInfo1);
if (flag) { if (flag) {
// 记录用户操作日志信息 // 记录用户操作日志信息
luceneUtil.deleteIndex("n" + coApplicationInfoId);
luceneUtil.createIndex(createCoApplicationInfosIndex(coApplicationInfo1));
logInfoService.recordLog(request, "修改CO数据信息"); logInfoService.recordLog(request, "修改CO数据信息");
} }
} }
...@@ -81,9 +76,8 @@ public class CoApplicationInfoService { ...@@ -81,9 +76,8 @@ public class CoApplicationInfoService {
flag = coApplicationInfoDao.save(coApplicationInfo); flag = coApplicationInfoDao.save(coApplicationInfo);
if (flag) { if (flag) {
//luceneUtil.createIndex(createCoApplicationInfosIndex(coApplicationInfo));
// 记录用户操作日志信息 // 记录用户操作日志信息
//logInfoService.recordLog(request, "新增CO数据信息"); logInfoService.recordLog(request, "新增CO数据信息");
} }
return flag; return flag;
...@@ -98,7 +92,6 @@ public class CoApplicationInfoService { ...@@ -98,7 +92,6 @@ public class CoApplicationInfoService {
.valueOf(metadataId))); .valueOf(metadataId)));
coApplicationInfo.setDeleted(true); coApplicationInfo.setDeleted(true);
flag = coApplicationInfoDao.update(coApplicationInfo); flag = coApplicationInfoDao.update(coApplicationInfo);
luceneUtil.deleteIndex("n" + metadataId.toString());
} }
return flag; return flag;
} }
......
...@@ -32,7 +32,6 @@ import ccpit.base.logManage.LogInfoService; ...@@ -32,7 +32,6 @@ import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User; import ccpit.base.user.User;
import ccpit.base.utils.DateConvert; import ccpit.base.utils.DateConvert;
import ccpit.base.utils.StringUtil; import ccpit.base.utils.StringUtil;
import ccpit.base.utils.lucene.LuceneUtil;
import ccpit.base.utils.page.PageUtil; import ccpit.base.utils.page.PageUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -58,8 +57,6 @@ public class NewsInfoService { ...@@ -58,8 +57,6 @@ public class NewsInfoService {
@Autowired @Autowired
private LogInfoService logInfoService; private LogInfoService logInfoService;
@Autowired
private LuceneUtil<NewsInfo> luceneUtil;
public boolean addOrUpdateNewsInfo(NewsInfo newsInfo, String operate, public boolean addOrUpdateNewsInfo(NewsInfo newsInfo, String operate,
String newsInfoId, User user, HttpServletRequest request) { String newsInfoId, User user, HttpServletRequest request) {
...@@ -69,7 +66,6 @@ public class NewsInfoService { ...@@ -69,7 +66,6 @@ public class NewsInfoService {
newsInfo.setCreator(user); newsInfo.setCreator(user);
flag = newsInfoDao.save(newsInfo); flag = newsInfoDao.save(newsInfo);
if (flag) { if (flag) {
luceneUtil.createIndex(createNewsInfosIndex(newsInfo));
// 记录用户操作日志信息 // 记录用户操作日志信息
logInfoService.recordLog(request, "新增新闻数据信息"); logInfoService.recordLog(request, "新增新闻数据信息");
} }
...@@ -80,9 +76,7 @@ public class NewsInfoService { ...@@ -80,9 +76,7 @@ public class NewsInfoService {
newsInfo1.setModifyBy(user); newsInfo1.setModifyBy(user);
flag = newsInfoDao.update(newsInfo1); flag = newsInfoDao.update(newsInfo1);
if (flag) { if (flag) {
// 记录用户操作日志信息
luceneUtil.deleteIndex("n" + newsInfoId);
luceneUtil.createIndex(createNewsInfosIndex(newsInfo1));
logInfoService.recordLog(request, "修改新闻数据信息"); logInfoService.recordLog(request, "修改新闻数据信息");
} }
} }
...@@ -98,7 +92,6 @@ public class NewsInfoService { ...@@ -98,7 +92,6 @@ public class NewsInfoService {
.valueOf(metadataId))); .valueOf(metadataId)));
newsInfo.setDeleted(true); newsInfo.setDeleted(true);
flag = newsInfoDao.update(newsInfo); flag = newsInfoDao.update(newsInfo);
luceneUtil.deleteIndex("n" + metadataId.toString());
} }
return flag; return flag;
} }
......
...@@ -59,7 +59,6 @@ public class NoticeService { ...@@ -59,7 +59,6 @@ public class NoticeService {
Notice.setCreator(user); Notice.setCreator(user);
flag = noticeDao.save(Notice); flag = noticeDao.save(Notice);
if (flag) { if (flag) {
// luceneUtil.createIndex(createNoticesIndex(Notice));
// 记录用户操作日志信息 // 记录用户操作日志信息
logInfoService.recordLog(request, "新增通知公告数据信息"); logInfoService.recordLog(request, "新增通知公告数据信息");
} }
...@@ -71,8 +70,6 @@ public class NoticeService { ...@@ -71,8 +70,6 @@ public class NoticeService {
flag = noticeDao.update(Notice1); flag = noticeDao.update(Notice1);
if (flag) { if (flag) {
// 记录用户操作日志信息 // 记录用户操作日志信息
// luceneUtil.deleteIndex("n" + NoticeId);
// luceneUtil.createIndex(createNoticesIndex(Notice1));
logInfoService.recordLog(request, "修改通知公告数据信息"); logInfoService.recordLog(request, "修改通知公告数据信息");
} }
} }
...@@ -93,7 +90,6 @@ public class NoticeService { ...@@ -93,7 +90,6 @@ public class NoticeService {
.valueOf(metadataId))); .valueOf(metadataId)));
Notice.setDeleted(true); Notice.setDeleted(true);
flag = noticeDao.update(Notice); flag = noticeDao.update(Notice);
// luceneUtil.deleteIndex("n" + metadataId.toString());
} }
return flag; return flag;
} }
......
...@@ -38,7 +38,6 @@ public class QuestionService { ...@@ -38,7 +38,6 @@ public class QuestionService {
question.setCreator(user); question.setCreator(user);
flag = questionDao.save(question); flag = questionDao.save(question);
if (flag) { if (flag) {
// luceneUtil.createIndex(createQuestionsIndex(Question));
// 记录用户操作日志信息 // 记录用户操作日志信息
logInfoService.recordLog(request, "新增问题数据信息"); logInfoService.recordLog(request, "新增问题数据信息");
} }
...@@ -50,8 +49,6 @@ public class QuestionService { ...@@ -50,8 +49,6 @@ public class QuestionService {
flag = questionDao.update(question1); flag = questionDao.update(question1);
if (flag) { if (flag) {
// 记录用户操作日志信息 // 记录用户操作日志信息
// luceneUtil.deleteIndex("n" + QuestionId);
// luceneUtil.createIndex(createQuestionsIndex(Question1));
logInfoService.recordLog(request, "修改问题数据信息"); logInfoService.recordLog(request, "修改问题数据信息");
} }
} }
...@@ -67,7 +64,6 @@ public class QuestionService { ...@@ -67,7 +64,6 @@ public class QuestionService {
.valueOf(metadataId))); .valueOf(metadataId)));
question.setDeleted(true); question.setDeleted(true);
flag = questionDao.update(question); flag = questionDao.update(question);
// luceneUtil.deleteIndex("n" + metadataId.toString());
} }
return flag; return flag;
} }
......
...@@ -25,7 +25,6 @@ import ccpit.base.logManage.LogInfoService; ...@@ -25,7 +25,6 @@ import ccpit.base.logManage.LogInfoService;
import ccpit.base.user.User; import ccpit.base.user.User;
import ccpit.base.utils.DateConvert; import ccpit.base.utils.DateConvert;
import ccpit.base.utils.StringUtil; import ccpit.base.utils.StringUtil;
import ccpit.base.utils.lucene.LuceneUtil;
import ccpit.base.utils.page.PageUtil; import ccpit.base.utils.page.PageUtil;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
...@@ -36,8 +35,6 @@ public class VisaAgencyService { ...@@ -36,8 +35,6 @@ public class VisaAgencyService {
private VisaAgencyDao visaAgencyDao; private VisaAgencyDao visaAgencyDao;
@Autowired @Autowired
private LogInfoService logInfoService; private LogInfoService logInfoService;
@Autowired
private LuceneUtil<VisaAgency> luceneUtil;
public boolean addOrUpdateVisaAgency(VisaAgency visaAgency, String operate, public boolean addOrUpdateVisaAgency(VisaAgency visaAgency, String operate,
String visaAgencyId, User user, HttpServletRequest request) { String visaAgencyId, User user, HttpServletRequest request) {
...@@ -47,7 +44,6 @@ public class VisaAgencyService { ...@@ -47,7 +44,6 @@ public class VisaAgencyService {
visaAgency.setCreator(user); visaAgency.setCreator(user);
flag = visaAgencyDao.save(visaAgency); flag = visaAgencyDao.save(visaAgency);
if (flag) { if (flag) {
luceneUtil.createIndex(createVisaAgencysIndex(visaAgency));
// 记录用户操作日志信息 // 记录用户操作日志信息
logInfoService.recordLog(request, "新增签证机构数据信息"); logInfoService.recordLog(request, "新增签证机构数据信息");
} }
...@@ -59,8 +55,6 @@ public class VisaAgencyService { ...@@ -59,8 +55,6 @@ public class VisaAgencyService {
flag = visaAgencyDao.update(visaAgency1); flag = visaAgencyDao.update(visaAgency1);
if (flag) { if (flag) {
// 记录用户操作日志信息 // 记录用户操作日志信息
luceneUtil.deleteIndex("n" + visaAgencyId);
luceneUtil.createIndex(createVisaAgencysIndex(visaAgency1));
logInfoService.recordLog(request, "修改签证机构数据信息"); logInfoService.recordLog(request, "修改签证机构数据信息");
} }
} }
...@@ -76,7 +70,6 @@ public class VisaAgencyService { ...@@ -76,7 +70,6 @@ public class VisaAgencyService {
.valueOf(metadataId))); .valueOf(metadataId)));
visaAgency.setDeleted(true); visaAgency.setDeleted(true);
flag = visaAgencyDao.update(visaAgency); flag = visaAgencyDao.update(visaAgency);
luceneUtil.deleteIndex("n" + metadataId.toString());
} }
return flag; return flag;
} }
......
...@@ -25,7 +25,6 @@ import ccpit.base.controller.Page; ...@@ -25,7 +25,6 @@ import ccpit.base.controller.Page;
import ccpit.base.controller.PageRequest; import ccpit.base.controller.PageRequest;
import ccpit.base.controller.ValidateCodeController; import ccpit.base.controller.ValidateCodeController;
import ccpit.base.user.User; import ccpit.base.user.User;
import ccpit.base.utils.lucene.LuceneUtil;
import ccpit.business.coApplication.CoApplicationInfo; import ccpit.business.coApplication.CoApplicationInfo;
import ccpit.business.coApplication.CoApplicationInfoService; import ccpit.business.coApplication.CoApplicationInfoService;
import ccpit.business.noticeManage.Notice; import ccpit.business.noticeManage.Notice;
...@@ -66,8 +65,7 @@ public class IndexController extends BaseController { ...@@ -66,8 +65,7 @@ public class IndexController extends BaseController {
private QuestionService questionService; private QuestionService questionService;
@Autowired @Autowired
private CoApplicationInfoService coApplicationInfoService; private CoApplicationInfoService coApplicationInfoService;
@Autowired
private LuceneUtil luceneUtil;
@Autowired @Autowired
private TaxableGoodsService taxableGoodsService; private TaxableGoodsService taxableGoodsService;
...@@ -263,13 +261,6 @@ public class IndexController extends BaseController { ...@@ -263,13 +261,6 @@ public class IndexController extends BaseController {
return mv; return mv;
} }
String[] searchFields = { "title" }; String[] searchFields = { "title" };
List<Map<String, Object>> lst = luceneUtil.SearchIndex(queryString,
searchFields);
List<String> result = new LinkedList<String>();
lst.stream().forEach(map -> {
// result.add(indexService.convertResult(map));
});
mv.addObject("result", result);
return mv; return mv;
} }
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<html> <html>
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html> <html>
<head> <head>
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html> <html>
<head> <head>
......
<%@ page contentType="text/html;charset=UTF-8" language="java" %> <%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<html> <html>
<head> <head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
......
<%@ page language="java" contentType="text/html; charset=UTF-8" <%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%> pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="security" uri="http://www.ccpit.org/" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html> <html>
<head> <head>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment