diff --git a/aspose-words-15.8.0-jdk16.jar b/aspose-words-15.8.0-jdk16.jar
deleted file mode 100644
index c0e699f..0000000
Binary files a/aspose-words-15.8.0-jdk16.jar and /dev/null differ
diff --git a/pom.xml b/pom.xml
index 49891ff..8d03daf 100644
--- a/pom.xml
+++ b/pom.xml
@@ -377,7 +377,12 @@
commons-codec
commons-codec
-
+
+ org.springframework
+ spring-mock
+ 2.0.8
+ compile
+
commons-fileupload
@@ -483,7 +488,7 @@
org.apache.poi
poi
- 4.1.2
+ 3.17
@@ -501,7 +506,7 @@
org.apache.poi
poi-ooxml
- 4.1.2
+ 3.17
diff --git a/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java b/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java
index 39fbd7d..37b95a0 100644
--- a/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java
+++ b/src/main/java/com/zcloud/controller/assignedManage/AssignedManageController.java
@@ -56,9 +56,6 @@ public class AssignedManageController extends BaseController {
pd.put("CREATOR", Jurisdiction.getUSER_ID()); //添加人id
pd.put("CREATORNAME", Jurisdiction.getUsername()); //添加人名字
pd.put("CREATTIME", DateUtil.date2Str(new Date())); //添加时间
- pd.put("OPERATOR", Jurisdiction.getUSER_ID()); //修改人id
- pd.put("OPERATORNAME", Jurisdiction.getUsername()); // 修改人名字
- pd.put("OPERATTIME", DateUtil.date2Str(new Date())); // 修改时间
pd.put("ASSIGNED_DATE", pd.get("TRANSACTION_DATE"));
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
pd.put("VEHICLE_TYPE",pd.get("ASSIGNED_VEHICLE_MODEL"));
diff --git a/src/main/java/com/zcloud/controller/eduApp/AppUsersCacheController.java b/src/main/java/com/zcloud/controller/eduApp/AppUsersCacheController.java
index b9b175a..0a94b99 100644
--- a/src/main/java/com/zcloud/controller/eduApp/AppUsersCacheController.java
+++ b/src/main/java/com/zcloud/controller/eduApp/AppUsersCacheController.java
@@ -126,9 +126,7 @@ public class AppUsersCacheController extends BaseController {
pd = this.getPageData();
PageData faceBase64 = new PageData();
-// PageData oldStudent = usersService.findStuById(pd);
if (pd.get("USERAVATARURL") != null && !pd.getString("USERAVATARURL").equals("")) {
- String USERAVATARURL64 = ImageAnd64Binary.zipBase64(pd.getString("USERAVATARURL"));
try {
FaceUtil.compareFace(pd.getString("USERAVATARURL"), pd.getString("USERAVATARURL"));
} catch (Exception e) {
@@ -136,7 +134,11 @@ public class AppUsersCacheController extends BaseController {
map.put("msg", "人脸图像不符合要求 请重新上传!");
return map;
}
- faceBase64.put("BASE", USERAVATARURL64);
+ MultipartFile FFILE = ImageUtil.base64ToMultipartFile(pd.getString("USERAVATARPREFIX") + pd.getString("USERAVATARURL"));
+ String ffile = DateUtil.getDays();
+ String fileName = this.get32UUID() + FFILE.getOriginalFilename().substring(FFILE.getOriginalFilename().lastIndexOf("."));
+ smb.sshSftp(FFILE, fileName, Const.FILEPATHUSERFACE + ffile);
+ faceBase64.put("COVERPATH", Const.FILEPATHUSERFACE + ffile + "/" + fileName);
} else {
map.put("result", "error");
map.put("msg", "未上传人脸识别照片,请先认证人脸!");
@@ -144,7 +146,7 @@ public class AppUsersCacheController extends BaseController {
}
initPageDataUtil.initSaveApp(faceBase64, pd.getString("USER_ID"));
faceBase64.put("BASE_FACTORY_ID", this.get32UUID());
- faceBase64.put("TABLE_NAME", "SYS_USER");
+ faceBase64.put("TABLE_NAME", "SYS_USERINFO");
faceBase64.put("COLUMN_NAME", "USER_ID");
faceBase64.put("USERAVATARPREFIX", pd.getString("USERAVATARPREFIX"));
faceBase64.put("FOREIGN_KEY", pd.get("USER_ID"));
@@ -152,9 +154,8 @@ public class AppUsersCacheController extends BaseController {
baseFactoryMapper.deleteByForeign(faceBase64);
baseFactoryMapper.save(faceBase64);
- initPageDataUtil.initEditApp(pd, pd.getString("USER_ID"));
pd.put("AUTHENTICATION", "1");
- usersCacheService.editAuthentication(pd);
+ userInfoService.editAuthentication(pd);
PageData user = new PageData();
user.put("USER_ID", pd.get("USER_ID"));
@@ -163,8 +164,7 @@ public class AppUsersCacheController extends BaseController {
String fileName = this.get32UUID() + file.getOriginalFilename().substring(file.getOriginalFilename().lastIndexOf("."));
smb.sshSftp(file, fileName, Const.FILEPATHFACE + ffile);
user.put("PORTRAIT", Const.FILEPATHFACE + ffile + "/" + fileName);
- initPageDataUtil.initEditApp(user, pd.getString("USER_ID"));
- usersCacheService.editUser(user);
+ userInfoService.editUserInfo(user);
map.put("result", errInfo);
return map;
}
@@ -185,12 +185,13 @@ public class AppUsersCacheController extends BaseController {
pd.put("TYPE", "1");
pd.put("FOREIGN_KEY", pd.get("USER_ID"));
PageData user = baseFactoryMapper.findByKeyType(pd);
- if (user == null || user.get("BASE") == null || user.get("BASE") == "") {
+ if (user == null || user.get("COVERPATH") == null || user.get("COVERPATH") == "") {
map.put("result", "error");
map.put("msg", "用户未录入人脸信息,无法验证");
return map;
}
- String USERAVATARURL = ImageAnd64Binary.upZip(user.getString("BASE"));
+ MultipartFile coverpath = ImageUtil.getMultipartFile(Const.HTTPFILEURL + user.getString("COVERPATH"));
+ String USERAVATARURL = Base64Util.getBase64String(coverpath);
try {
String confidence = FaceUtil.compareFace(pd.getString("USERAVATARURL"), USERAVATARURL);
@@ -209,7 +210,6 @@ public class AppUsersCacheController extends BaseController {
smb.sshSftp(file, fileName, Const.FILEPATHFACE + student.get("CORPINFO_ID") + "/" + ffile);
PageData faceImg = new PageData();
faceImg.put("FACEIMGLOG_ID", this.get32UUID());
- faceImg.put("ENTERPRISE_ID", student.get("ENTERPRISE_ID"));
faceImg.put("CORPINFO_ID", student.get("CORPINFO_ID"));
faceImg.put("STUDENT_ID", student.get("STUDENT_ID"));
faceImg.put("USER_ID", pd.get("USER_ID"));
diff --git a/src/main/java/com/zcloud/controller/eduArchives/ArchivesPostManController.java b/src/main/java/com/zcloud/controller/eduArchives/ArchivesPostManController.java
index 31343e8..4d150a4 100644
--- a/src/main/java/com/zcloud/controller/eduArchives/ArchivesPostManController.java
+++ b/src/main/java/com/zcloud/controller/eduArchives/ArchivesPostManController.java
@@ -172,7 +172,6 @@ public class ArchivesPostManController extends BaseController {
PageData pd = new PageData();
pd = this.getPageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //机构
- pd.put("ENTERPRISE_ID", pd.get("ID")); //企业
List varList = archivespostmanService.listAll(pd); //列出ArchivesPostMan列表
map.put("varList", varList);
map.put("result", errInfo);
@@ -340,7 +339,7 @@ public class ArchivesPostManController extends BaseController {
@SuppressWarnings("unchecked")
@ResponseBody
@Transactional
- public Object readExcel(@RequestParam(value = "excel", required = false) MultipartFile file) throws Exception {
+ public Object readExcel(@RequestParam(value = "FFILE", required = false) MultipartFile file) throws Exception {
Map map = new HashMap();
String errInfo = "success";
StringBuffer errorStr = new StringBuffer();
@@ -438,8 +437,7 @@ public class ArchivesPostManController extends BaseController {
pageData.put("EFFECTIVE_DATE", effective_date);
pageData.put("RETRAINING", retraining);
pageData.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID()); //机构
- pageData.put("ENTERPRISE_ID", pd.get("ID")); //企业
- pageData.put("YEAR", pd.getString("YEAR"));
+ pageData.put("YEAR", pd.getString("year"));
pageData.put("ISDELETE", "0");
pageData.put("CREATOR", Jurisdiction.getName());// 账号类型
pageData.put("CREATTIME", DateUtil.date2Str(new Date()));
diff --git a/src/main/java/com/zcloud/controller/eduArchives/ArchivesStudentController.java b/src/main/java/com/zcloud/controller/eduArchives/ArchivesStudentController.java
index 57bf940..64fe770 100644
--- a/src/main/java/com/zcloud/controller/eduArchives/ArchivesStudentController.java
+++ b/src/main/java/com/zcloud/controller/eduArchives/ArchivesStudentController.java
@@ -131,10 +131,6 @@ public class ArchivesStudentController extends BaseController {
PageData pd = new PageData();
pd = this.getPageData();
PageData stu = archivesstudentService.getStuInfo(pd);
- pd = archivesstudentService.findById(pd); //根据ID读取
- if (pd != null) {
- stu.putAll(pd);
- }
map.put("pd", stu);
map.put("result", errInfo);
return map;
diff --git a/src/main/java/com/zcloud/controller/eduStudy/ClassController.java b/src/main/java/com/zcloud/controller/eduStudy/ClassController.java
index a2b3fcc..33b794e 100644
--- a/src/main/java/com/zcloud/controller/eduStudy/ClassController.java
+++ b/src/main/java/com/zcloud/controller/eduStudy/ClassController.java
@@ -102,13 +102,8 @@ public class ClassController extends BaseController {
int classNum = 0;
PageData data = new PageData();
//注意数据权限。企业看企业数据,机构看机构数据
-// pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
-// data.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
-// if ("0".equals(Jurisdiction.getIS_MAIN())){
-// pd.put("USER_ID", Jurisdiction.getUSER_ID());
-// data.put("USER_ID", Jurisdiction.getUSER_ID());
-// }
- classNum = classService.getClassNum(data);
+ pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
+ classNum = classService.getClassNum(pd);
String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件
if (Tools.notEmpty(KEYWORDS)) pd.put("KEYWORDS", KEYWORDS.trim());
@@ -150,9 +145,6 @@ public class ClassController extends BaseController {
pd = this.getPageData();
PageData data = new PageData();
pd.put("CORPINFO_ID", Jurisdiction.getCORPINFO_ID());
- if ("0".equals(Jurisdiction.getIS_MAIN())){
- pd.put("USER_ID", Jurisdiction.getUSER_ID());
- }
String KEYWORDS = pd.getString("KEYWORDS"); //关键词检索条件
if (Tools.notEmpty(KEYWORDS)) pd.put("KEYWORDS", KEYWORDS.trim());
page.setPd(pd);
diff --git a/src/main/java/com/zcloud/controller/eduStudy/StudentController.java b/src/main/java/com/zcloud/controller/eduStudy/StudentController.java
index 8c22c0e..d9e1f13 100644
--- a/src/main/java/com/zcloud/controller/eduStudy/StudentController.java
+++ b/src/main/java/com/zcloud/controller/eduStudy/StudentController.java
@@ -11,6 +11,7 @@ import fr.opensagres.xdocreport.template.IContext;
import fr.opensagres.xdocreport.template.TemplateEngineKind;
import fr.opensagres.xdocreport.template.formatter.FieldsMetadata;
import fr.opensagres.xdocreport.template.formatter.NullImageBehaviour;
+import org.apache.tools.ant.Project;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -343,61 +344,63 @@ public class StudentController extends BaseController {
Map objMap = new LinkedHashMap<>();
List