diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/SystemLogController.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/SystemLogController.java index 0a1a463..0c81d1f 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/SystemLogController.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/controller/SystemLogController.java @@ -1,16 +1,14 @@ package com.hxhq.business.controller; -import java.util.Arrays; import java.util.List; -import com.hxhq.business.form.systemLog.SystemLogSearchForm; +import com.hxhq.business.form.systemlog.SystemLogSearchForm; import com.hxhq.common.security.annotation.RequiresPermissions; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; import com.hxhq.business.domain.SystemLog; import com.hxhq.business.service.ISystemLogService; import com.hxhq.common.core.web.controller.BaseController; -import com.hxhq.common.core.web.domain.AjaxResult; import com.hxhq.common.core.web.page.TableDataInfo; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/systemLog/SystemLogSearchForm.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/systemlog/SystemLogSearchForm.java similarity index 96% rename from hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/systemLog/SystemLogSearchForm.java rename to hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/systemlog/SystemLogSearchForm.java index 9e37c50..3dcfe04 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/systemLog/SystemLogSearchForm.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/form/systemlog/SystemLogSearchForm.java @@ -1,4 +1,4 @@ -package com.hxhq.business.form.systemLog; +package com.hxhq.business.form.systemlog; /** * @author memory diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/ISystemLogService.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/ISystemLogService.java index 17854e6..1665090 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/ISystemLogService.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/ISystemLogService.java @@ -5,10 +5,8 @@ import java.util.List; import com.hxhq.business.domain.StudyJcgj; import com.hxhq.business.domain.SystemLog; import com.baomidou.mybatisplus.extension.service.IService; -import com.hxhq.business.enums.zykgl.JcgjlxEnum; -import com.hxhq.business.enums.zykgl.JcmcysEnum; import com.hxhq.business.form.common.SignForm; -import com.hxhq.business.form.systemLog.SystemLogSearchForm; +import com.hxhq.business.form.systemlog.SystemLogSearchForm; /** * 系统日志Service接口 diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java index 5242b2c..c421858 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudyServiceImpl.java @@ -307,7 +307,6 @@ public class StudyServiceImpl extends ServiceImpl implements jcgj.setQmrId(SecurityUtils.getUserId()); jcgj.setQmrMc(SecurityUtils.getNickName()); jcgj.setQmrMcEn(SecurityUtils.getUsername()); -// jcgj.setRemark(sign.getRemark()); } jcgjList.add(jcgj); } @@ -679,7 +678,7 @@ public class StudyServiceImpl extends ServiceImpl implements } @Override - @Transactional + @Transactional(rollbackFor = Exception.class) public void autoGh() { QueryWrapper queryWrapper = new QueryWrapper<>(); queryWrapper.eq("status",StudyStatusEnum.gd.getValue()); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java index 6ddb99d..4124c44 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectServiceImpl.java @@ -113,13 +113,9 @@ public class StudySubjectServiceImpl extends ServiceImpl itemList = form.getSubjectList(); - //已经设置的学科信息 List oldList = getListByStudyId(form.getStudyId()); List deleteList = new ArrayList<>(); @@ -131,13 +127,11 @@ public class StudySubjectServiceImpl extends ServiceImpl deleteNameList = new ArrayList<>(); List deleteNameEnList = new ArrayList<>(); - for(StudySubject item : itemList){ List exists = oldList.stream().filter(o->o.getDeptId().equals(item.getDeptId())).collect(Collectors.toList()); if(exists.size()==0){ item.setStudyId(form.getStudyId()); addList.add(item); - addNameList.add(item.getLeaderName()); addNameEnList.add(item.getLeaderNameEn()); }else{ @@ -150,7 +144,6 @@ public class StudySubjectServiceImpl extends ServiceImplo.getDeptId().equals(old.getDeptId())).collect(Collectors.toList()).size()==0){ deleteList.add(old); @@ -158,7 +151,6 @@ public class StudySubjectServiceImpl extends ServiceImpl0){ //已有表单的学科不能删除(预填+填报) List formCountList = baseMapper.queryFormCountList(deleteList.stream().map(o->o.getId()).collect(Collectors.toList())); @@ -169,10 +161,7 @@ public class StudySubjectServiceImpl extends ServiceImpl0){ removeBatchByIds(deleteList); @@ -180,7 +169,6 @@ public class StudySubjectServiceImpl extends ServiceImpl0){ saveBatch(addList); } @@ -191,14 +179,10 @@ public class StudySubjectServiceImpl extends ServiceImpl formData = new LinkedHashMap<>(); Map formDataEn = new LinkedHashMap<>(); if(addNameList.size()>0){ - formData.put("新增人员", String.join(",",addNameList)); -// formDataEn.put("Add Person", String.join(",",addNameEnList)); - formDataEn.put("Add Person", String.join(",",addNameList)); + formData.put("新增人员", String.join(",",addNameList)); formDataEn.put("Add Person", String.join(",",addNameList)); } if(deleteNameList.size()>0){ - formData.put("删除人员", String.join(",",deleteNameList)); -// formDataEn.put("Remove Person", String.join(",",deleteNameEnList)); - formDataEn.put("Remove Person", String.join(",",deleteNameList)); + formData.put("删除人员", String.join(",",deleteNameList)); formDataEn.put("Remove Person", String.join(",",deleteNameList)); } form.getSign().setQmyy(study.getType().equals(StudyTypeEnum.sy.getValue())?"人员变更":study.getType().equals(StudyTypeEnum.fsy.getValue())?"人员变更":study.getType().equals(StudyTypeEnum.mjy.getValue())?"人员变更":""); form.getSign().setQmyyEn(study.getType().equals(StudyTypeEnum.sy.getValue())?"Change of Person":study.getType().equals(StudyTypeEnum.fsy.getValue())?"Change of Person":study.getType().equals(StudyTypeEnum.mjy.getValue())?"Change of Person":""); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectUserServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectUserServiceImpl.java index f484324..ccfd684 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectUserServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/StudySubjectUserServiceImpl.java @@ -58,14 +58,9 @@ public class StudySubjectUserServiceImpl extends ServiceImpl itemList = form.getSubjectUserList(); //已经设置的学科信息 @@ -100,7 +95,6 @@ public class StudySubjectUserServiceImpl extends ServiceImplo.getUserId().equals(old.getUserId())).collect(Collectors.toList()).size()==0){ deleteList.add(old); @@ -114,9 +108,7 @@ public class StudySubjectUserServiceImpl extends ServiceImpl0){ saveBatch(addList); @@ -127,18 +119,15 @@ public class StudySubjectUserServiceImpl extends ServiceImpl0){ removeBatchByIds(deleteList); } - if(deleteNameList.size()>0 || addNameList.size()>0){ Map formData = new LinkedHashMap<>(); Map formDataEn = new LinkedHashMap<>(); if(addNameList.size()>0){ formData.put("新增人员", String.join(",",addNameList)); -// formDataEn.put("Add Person", String.join(",",addNameEnList)); formDataEn.put("Add Person", String.join(",",addNameList)); } if(deleteNameList.size()>0){ formData.put("删除人员", String.join(",",deleteNameList)); -// formDataEn.put("Remove Person", String.join(",",deleteNameEnList)); formDataEn.put("Remove Person", String.join(",",deleteNameList)); } form.getSign().setQmyy(study.getType().equals(StudyTypeEnum.sy.getValue())?"人员变更":study.getType().equals(StudyTypeEnum.fsy.getValue())?"人员变更":study.getType().equals(StudyTypeEnum.mjy.getValue())?"人员变更":""); @@ -159,7 +148,6 @@ public class StudySubjectUserServiceImpl extends ServiceImpl formData = new LinkedHashMap<>(); Map formDataEn = new LinkedHashMap<>(); formData.put("删除人员", String.join(",",deleteNameList)); -// formDataEn.put("Remove Person", String.join(",",deleteNameEnList)); formDataEn.put("Remove Person", String.join(",",deleteNameList)); sign.setQmyy(study.getType().equals(StudyTypeEnum.sy.getValue())?"人员变更":study.getType().equals(StudyTypeEnum.fsy.getValue())?"人员变更":study.getType().equals(StudyTypeEnum.mjy.getValue())?"人员变更":""); diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SystemLogServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SystemLogServiceImpl.java index e94ec6a..79d47b4 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SystemLogServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/business/service/impl/SystemLogServiceImpl.java @@ -6,7 +6,7 @@ import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.hxhq.business.domain.StudyJcgj; import com.hxhq.business.form.common.SignForm; -import com.hxhq.business.form.systemLog.SystemLogSearchForm; +import com.hxhq.business.form.systemlog.SystemLogSearchForm; import com.hxhq.common.core.utils.DateUtils; import com.hxhq.common.core.utils.StringUtils; import org.springframework.stereotype.Service; diff --git a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/service/impl/SysDictDataServiceImpl.java b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/service/impl/SysDictDataServiceImpl.java index 62fda39..3ce0c57 100644 --- a/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/service/impl/SysDictDataServiceImpl.java +++ b/hxhq-modules/hxhq-system/src/main/java/com/hxhq/system/service/impl/SysDictDataServiceImpl.java @@ -30,7 +30,8 @@ public class SysDictDataServiceImpl implements ISysDictDataService @Override public List selectDictDataList(SysDictData dictData) { - if(dictData.getDictType().contains(",")) { + String split = ","; + if(dictData.getDictType().contains(split)) { List sysDictDataList = new ArrayList<>(); String[] dictTypeList = dictData.getDictType().split(","); for (String dictType : dictTypeList) {