ids) {
+ CourseExample example = new CourseExample();
+ CourseExample.Criteria criteria = example.createCriteria();
+ criteria.andSpecialtyIdIn(ids);
+ return courseMapper.selectByExample(example);
+ }
+
}
diff --git a/src/cn/edu/hit/education/service/ICourseService.java b/src/cn/edu/hit/education/service/ICourseService.java
index ffbfafb42db69188fef21263bda3576837f26fa1..07e936b6d3e5db082f2cb1e28409fd09dadac3b3 100644
--- a/src/cn/edu/hit/education/service/ICourseService.java
+++ b/src/cn/edu/hit/education/service/ICourseService.java
@@ -1,18 +1,18 @@
/**
-* title ICouserService.java
-* package cn.edu.hit.education.service
-* description TODO
-* copyright ҵѧ(C) 2019
-* company ҵѧAS&MT
-* author ѩ jinxuesong@163.com
-* date 2021421 3:00:15
-* version v1.0
+* title �� ICouserService.java
+* package �� cn.edu.hit.education.service
+* description ��TODO
+* copyright �� ��������ҵ��ѧ(C) 2019
+* company �� ��������ҵ��ѧAS&MT
+* author �� ��ѩ�� jinxuesong@163.com
+* date �� 2021��4��21�� ����3:00:15
+* version �� v1.0
*
* Modification History:
* Date Author Version Discription
* -----------------------------------------------------------------------------------
-* 2021421 ѩ 1.0 1.0
-* Why & What is modified: <ԭ>
+* 2021��4��21�� ��ѩ�� 1.0 1.0
+* Why & What is modified: <��ԭ������>
*/
package cn.edu.hit.education.service;
@@ -22,10 +22,10 @@ import java.util.Set;
import cn.edu.hit.education.pojo.Course;
/**
- * classname ICouserService
- * description TODO
- * author ѩ jinxuesong@163.com
- * date 2021421 3:00:15
+ * classname �� ICouserService
+ * description ��TODO
+ * author �� ��ѩ�� jinxuesong@163.com
+ * date �� 2021��4��21�� ����3:00:15
*/
public interface ICourseService {
@@ -44,4 +44,7 @@ public interface ICourseService {
List queryCoursesBySpecialtyPropertyId(int specialtyId, int propertyId);
List queryCoursesByIds(Set ids);
+
+ List queryAllCourseBySpecityId(List ids);
+
}
diff --git a/src/cn/edu/hit/education/service/IProcessService.java b/src/cn/edu/hit/education/service/IProcessService.java
index c3883aefbc66b99602af7ed6cb5ef5bd360871f9..6b5a11e02b66778040a3fc951c447373c25b711a 100644
--- a/src/cn/edu/hit/education/service/IProcessService.java
+++ b/src/cn/edu/hit/education/service/IProcessService.java
@@ -1,29 +1,24 @@
/**
-* title IProcessService.java
-* package cn.edu.hit.education.service
-* description TODO
-* copyright ҵѧ(C) 2019
-* company ҵѧAS&MT
-* author ѩ jinxuesong@163.com
-* date 2021421 4:22:02
-* version v1.0
+* title �� IProcessService.java
+* package �� cn.edu.hit.education.service
+* description ��TODO
+* copyright �� ��������ҵ��ѧ(C) 2019
+* company �� ��������ҵ��ѧAS&MT
+* author �� ��ѩ�� jinxuesong@163.com
+* date �� 2021��4��21�� ����4:22:02
+* version �� v1.0
*
* Modification History:
* Date Author Version Discription
* -----------------------------------------------------------------------------------
-* 2021421 ѩ 1.0 1.0
-* Why & What is modified: <ԭ>
+* 2021��4��21�� ��ѩ�� 1.0 1.0
+* Why & What is modified: <��ԭ������>
*/
package cn.edu.hit.education.service;
import java.util.List;
import cn.edu.hit.education.pojo.Process;
-/**
- * classname IProcessService
- * description TODO
- * author ѩ jinxuesong@163.com
- * date 2021421 4:22:02
- */
+
public interface IProcessService {
int insert(Process process);
@@ -32,6 +27,8 @@ public interface IProcessService {
int update(Process process);
+ Process queryProcessByPrimaryKey(int id);
+
List queryAllProcess();
List queryProcessesByProcessName(String name);
diff --git a/src/cn/edu/hit/education/service/IPropertyService.java b/src/cn/edu/hit/education/service/IPropertyService.java
index 9fc0696cc4ef4b400834c81d630a0dc1532f313d..2ec88015a6c1ee865dedb631beb99482baa13e7f 100644
--- a/src/cn/edu/hit/education/service/IPropertyService.java
+++ b/src/cn/edu/hit/education/service/IPropertyService.java
@@ -1,31 +1,10 @@
-/**
-* title IPropertyService.java
-* package cn.edu.hit.education.service
-* description TODO
-* copyright ҵѧ(C) 2019
-* company ҵѧAS&MT
-* author ѩ jinxuesong@163.com
-* date 2021421 4:22:14
-* version v1.0
-*
-* Modification History:
-* Date Author Version Discription
-* -----------------------------------------------------------------------------------
-* 2021421 ѩ 1.0 1.0
-* Why & What is modified: <ԭ>
-*/
+
package cn.edu.hit.education.service;
import java.util.List;
import cn.edu.hit.education.pojo.Property;
-/**
- * classname IPropertyService
- * description TODO
- * author ѩ jinxuesong@163.com
- * date 2021421 4:22:14
- */
public interface IPropertyService {
int insert(Property property);
@@ -34,6 +13,8 @@ public interface IPropertyService {
int update(Property property);
+ Property queryPropertyByPrimaryKey(int id);
+
Property queryPropertyById(int id);
List queryAllProperty();
@@ -41,4 +22,7 @@ public interface IPropertyService {
List queryPropertiesByProcessId(int processId);
void clearPropertyNum();
+
+ Property queryPropertyByName(String name);
+
}
diff --git a/src/cn/edu/hit/education/service/ProcessServiceImpl.java b/src/cn/edu/hit/education/service/ProcessServiceImpl.java
index 17868d6dd0683a573e06749b23e1034a64e24373..a0460082ce06219ebc07f8253167f31f31b56f6f 100644
--- a/src/cn/edu/hit/education/service/ProcessServiceImpl.java
+++ b/src/cn/edu/hit/education/service/ProcessServiceImpl.java
@@ -1,18 +1,18 @@
/**
-* title ProcessServiceImpl.java
-* package cn.edu.hit.education.service
-* description TODO
-* copyright ҵѧ(C) 2019
-* company ҵѧAS&MT
-* author ѩ jinxuesong@163.com
-* date 2021421 4:38:37
-* version v1.0
+* title �� ProcessServiceImpl.java
+* package �� cn.edu.hit.education.service
+* description ��TODO
+* copyright �� ��������ҵ��ѧ(C) 2019
+* company �� ��������ҵ��ѧAS&MT
+* author �� ��ѩ�� jinxuesong@163.com
+* date �� 2021��4��21�� ����4:38:37
+* version �� v1.0
*
* Modification History:
* Date Author Version Discription
* -----------------------------------------------------------------------------------
-* 2021421 ѩ 1.0 1.0
-* Why & What is modified: <ԭ>
+* 2021��4��21�� ��ѩ�� 1.0 1.0
+* Why & What is modified: <��ԭ������>
*/
package cn.edu.hit.education.service;
@@ -25,12 +25,6 @@ import cn.edu.hit.education.dao.ProcessMapper;
import cn.edu.hit.education.pojo.Process;
import cn.edu.hit.education.pojo.ProcessExample;
-/**
- * classname ProcessServiceImpl
- * description TODO
- * author ѩ jinxuesong@163.com
- * date 2021421 4:38:37
- */
@Service
public class ProcessServiceImpl implements IProcessService {
@@ -39,25 +33,21 @@ public class ProcessServiceImpl implements IProcessService {
@Override
public int insert(Process process) {
- // TODO Զɵķ
return processMapper.insert(process);
}
@Override
public int deleteByPrimaryKey(int id) {
- // TODO Զɵķ
return processMapper.deleteByPrimaryKey(id);
}
@Override
public int update(Process process) {
- // TODO Զɵķ
return processMapper.updateByPrimaryKey(process);
}
@Override
public List queryAllProcess() {
- // TODO Զɵķ
ProcessExample example = new ProcessExample();
ProcessExample.Criteria criteria = example.createCriteria();
criteria.andIdGreaterThan(0);
@@ -67,7 +57,6 @@ public class ProcessServiceImpl implements IProcessService {
@Override
public List queryProcessesByProcessName(String name) {
- // TODO Զɵķ
ProcessExample example = new ProcessExample();
ProcessExample.Criteria criteria = example.createCriteria();
criteria.andNameEqualTo(name.trim());
@@ -75,4 +64,10 @@ public class ProcessServiceImpl implements IProcessService {
return processMapper.selectByExample(example);
}
+ @Override
+ public Process queryProcessByPrimaryKey(int id) {
+ // TODO 自动生成的方法存根
+ return processMapper.selectByPrimaryKey(id);
+ }
+
}
diff --git a/src/cn/edu/hit/education/service/PropertyServiceImpl.java b/src/cn/edu/hit/education/service/PropertyServiceImpl.java
index 1b5ae0da98602b077601a6a8181bae5a1ea83a37..a0bbe5e9d2ea67efef8f0ab92c88ffe50d514d1f 100644
--- a/src/cn/edu/hit/education/service/PropertyServiceImpl.java
+++ b/src/cn/edu/hit/education/service/PropertyServiceImpl.java
@@ -1,19 +1,4 @@
-/**
-* title PropertyServiceImpl.java
-* package cn.edu.hit.education.service
-* description TODO
-* copyright ҵѧ(C) 2019
-* company ҵѧAS&MT
-* author ѩ jinxuesong@163.com
-* date 2021421 4:39:13
-* version v1.0
-*
-* Modification History:
-* Date Author Version Discription
-* -----------------------------------------------------------------------------------
-* 2021421 ѩ 1.0 1.0
-* Why & What is modified: <ԭ>
-*/
+
package cn.edu.hit.education.service;
import java.util.List;
@@ -24,13 +9,8 @@ import org.springframework.stereotype.Service;
import cn.edu.hit.education.dao.PropertyMapper;
import cn.edu.hit.education.pojo.Property;
import cn.edu.hit.education.pojo.PropertyExample;
+import cn.edu.hit.education.pojo.PropertyExample.Criteria;
-/**
- * classname PropertyServiceImpl
- * description TODO
- * author ѩ jinxuesong@163.com
- * date 2021421 4:39:13
- */
@Service
public class PropertyServiceImpl implements IPropertyService {
@@ -39,25 +19,21 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public int insert(Property property) {
- // TODO Զɵķ
return propertyMapper.insert(property);
}
@Override
public int deleteByPrimaryKey(int id) {
- // TODO Զɵķ
return propertyMapper.deleteByPrimaryKey(id);
}
@Override
public int update(Property property) {
- // TODO Զɵķ
return propertyMapper.updateByPrimaryKey(property);
}
@Override
public List queryAllProperty() {
- // TODO Զɵķ
PropertyExample example = new PropertyExample();
PropertyExample.Criteria criteria = example.createCriteria();
criteria.andIdGreaterThan(0);
@@ -67,7 +43,6 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public List queryPropertiesByProcessId(int processId) {
- // TODO Զɵķ
PropertyExample example = new PropertyExample();
PropertyExample.Criteria criteria = example.createCriteria();
criteria.andProcessIdEqualTo(processId);
@@ -77,7 +52,6 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public void clearPropertyNum() {
- // TODO Զɵķ
List properties = queryAllProperty();
if(properties != null && properties.size() > 0){
for (Property property : properties) {
@@ -90,8 +64,19 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public Property queryPropertyById(int id) {
- // TODO Զɵķ
return propertyMapper.selectByPrimaryKey(id);
}
+ @Override
+ public Property queryPropertyByPrimaryKey(int id) {
+ // TODO 自动生成的方法存根
+ return propertyMapper.selectByPrimaryKey(id);
+ }
+
+ @Override
+ public Property queryPropertyByName(String name) {
+
+ return propertyMapper.queryPropertyByName(name);
+ }
+
}
diff --git a/src/cn/edu/hit/education/utils/ExcelUtil.java b/src/cn/edu/hit/education/utils/ExcelUtil.java
new file mode 100644
index 0000000000000000000000000000000000000000..c0a50cfb2b2e5062fe546d4a1bd3d5171ac1d437
--- /dev/null
+++ b/src/cn/edu/hit/education/utils/ExcelUtil.java
@@ -0,0 +1,312 @@
+package cn.edu.hit.education.utils;
+
+
+
+import org.apache.commons.io.FileUtils;
+import org.apache.commons.lang3.StringUtils;
+import org.apache.poi.hssf.usermodel.*;
+import org.apache.poi.ss.usermodel.BorderStyle;
+import org.apache.poi.ss.usermodel.CellType;
+import org.apache.poi.ss.usermodel.HorizontalAlignment;
+import org.apache.poi.ss.usermodel.VerticalAlignment;
+import org.apache.poi.xssf.usermodel.*;
+
+import java.io.*;
+import java.text.MessageFormat;
+import java.text.SimpleDateFormat;
+import java.util.*;
+
+/**
+ * @program: Demo
+ * @Date: 2019/2/19 10:50
+ * @Author: LiJc
+ * @Description:
+ */
+public class ExcelUtil {
+
+ public boolean writeExcel(List