ids);
+
}
diff --git a/src/cn/edu/hit/education/service/IPropertyService.java b/src/cn/edu/hit/education/service/IPropertyService.java
index 9fc0696cc4ef4b400834c81d630a0dc1532f313d..11706d0a72cd2692139cc1ab9378bf903c2cc5ad 100644
--- a/src/cn/edu/hit/education/service/IPropertyService.java
+++ b/src/cn/edu/hit/education/service/IPropertyService.java
@@ -1,18 +1,18 @@
/**
-* 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
+* title �� IPropertyService.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:14
+* 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;
@@ -21,10 +21,10 @@ import java.util.List;
import cn.edu.hit.education.pojo.Property;
/**
- * classname IPropertyService
- * description TODO
- * author ѩ jinxuesong@163.com
- * date 2021421 4:22:14
+ * classname �� IPropertyService
+ * description ��TODO
+ * author �� ��ѩ�� jinxuesong@163.com
+ * date �� 2021��4��21�� ����4:22:14
*/
public interface IPropertyService {
@@ -41,4 +41,7 @@ public interface IPropertyService {
List queryPropertiesByProcessId(int processId);
void clearPropertyNum();
+
+ Property queryPropertyByName(String name);
+
}
diff --git a/src/cn/edu/hit/education/service/PropertyServiceImpl.java b/src/cn/edu/hit/education/service/PropertyServiceImpl.java
index 1b5ae0da98602b077601a6a8181bae5a1ea83a37..f1bf24324f055d9e38e47d0756fc2ad80972e6d7 100644
--- a/src/cn/edu/hit/education/service/PropertyServiceImpl.java
+++ b/src/cn/edu/hit/education/service/PropertyServiceImpl.java
@@ -1,18 +1,18 @@
/**
-* 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
+* title �� PropertyServiceImpl.java
+* package �� cn.edu.hit.education.service
+* description ��TODO
+* copyright �� ��������ҵ��ѧ(C) 2019
+* company �� ��������ҵ��ѧAS&MT
+* author �� ��ѩ�� jinxuesong@163.com
+* date �� 2021��4��21�� ����4:39:13
+* 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;
@@ -24,12 +24,13 @@ 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
+ * classname �� PropertyServiceImpl
+ * description ��TODO
+ * author �� ��ѩ�� jinxuesong@163.com
+ * date �� 2021��4��21�� ����4:39:13
*/
@Service
public class PropertyServiceImpl implements IPropertyService {
@@ -39,25 +40,25 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public int insert(Property property) {
- // TODO Զɵķ
+ // TODO �Զ����ɵķ������
return propertyMapper.insert(property);
}
@Override
public int deleteByPrimaryKey(int id) {
- // TODO Զɵķ
+ // TODO �Զ����ɵķ������
return propertyMapper.deleteByPrimaryKey(id);
}
@Override
public int update(Property property) {
- // TODO Զɵķ
+ // TODO �Զ����ɵķ������
return propertyMapper.updateByPrimaryKey(property);
}
@Override
public List queryAllProperty() {
- // TODO Զɵķ
+ // TODO �Զ����ɵķ������
PropertyExample example = new PropertyExample();
PropertyExample.Criteria criteria = example.createCriteria();
criteria.andIdGreaterThan(0);
@@ -67,7 +68,7 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public List queryPropertiesByProcessId(int processId) {
- // TODO Զɵķ
+ // TODO �Զ����ɵķ������
PropertyExample example = new PropertyExample();
PropertyExample.Criteria criteria = example.createCriteria();
criteria.andProcessIdEqualTo(processId);
@@ -77,7 +78,7 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public void clearPropertyNum() {
- // TODO Զɵķ
+ // TODO �Զ����ɵķ������
List properties = queryAllProperty();
if(properties != null && properties.size() > 0){
for (Property property : properties) {
@@ -90,8 +91,14 @@ public class PropertyServiceImpl implements IPropertyService {
@Override
public Property queryPropertyById(int id) {
- // TODO Զɵķ
+ // 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