Browse Source

Merge remote-tracking branch 'origin/dev' into dev

大数据与最优化研究所 6 tháng trước cách đây
mục cha
commit
563988a4ea

+ 1 - 1
src/main/java/com/xjrsoft/module/form/utils/FormDataTransUtil.java

@@ -191,7 +191,7 @@ public final class FormDataTransUtil {
                                     .filter(x -> ObjectUtil.isNotNull(x.get("value")))
                                     .collect(Collectors.toMap(data -> data.get("value").toString(), data -> data.get("label"), (e1, e2) -> e1)));
                         }
-                        if("multiple".equals(options.get("multiple").toString())){
+                        if(options.containsKey("multiple") && "multiple".equals(options.get("multiple").toString())){
                             Map<String, String> multiSettingMap = new HashMap<>();
                             for (Map<String, Object> objectMap : apiDataList) {
                                 multiSettingMap.put(objectMap.get(options.get("valueField").toString()).toString(), objectMap.get(options.get("labelField").toString()).toString());

+ 3 - 0
src/main/java/com/xjrsoft/module/oa/controller/NewsController.java

@@ -147,6 +147,9 @@ public class NewsController {
         if (news == null) {
             return RT.error("该内容不存在或已被删除!");
         }
+        if (EnabledMark.DISABLED.getCode() == news.getEnabledMark()) {
+            return RT.error("该内容已被作废!");
+        }
 
         List<NewsRelationVo> newsRelationVoList = new ArrayList<>();
         MPJLambdaWrapper<NewsRelation> queryWrapper = new MPJLambdaWrapper<>();

+ 14 - 3
src/main/java/com/xjrsoft/module/student/controller/BaseStudentInfoController.java

@@ -86,7 +86,7 @@ public class BaseStudentInfoController {
 
     @GetMapping(value = "/info")
     @ApiOperation(value = "根据id查询详情信息")
-    @SaCheckPermission("room:detail")
+    @SaCheckPermission("basestudentpost:detail")
     @XjrLog(value = "根据id查询详情信息", saveResponseData = true)
     public RT<BaseStudentInfoDetailVo> info(@RequestParam Long id) {
         BaseStudentInfoDetailDto dto = new BaseStudentInfoDetailDto();
@@ -103,7 +103,7 @@ public class BaseStudentInfoController {
 
     @GetMapping(value = "/studentinfoByKeyWord")
     @ApiOperation(value = "根据姓名或者身份证号查询详情信息")
-    @SaCheckPermission("room:detail")
+    @SaCheckPermission("basestudentpost:detail")
     @XjrLog(value = "根据姓名或者身份证号查询详情信息")
     public RT<List<BaseStudentSompleInfoVo>> info(@Valid BaseStudentSimpleInfoDto dto) {
         dto.setArchivesStatus(ArchivesStatusEnum.FB2901.getCode());
@@ -111,9 +111,20 @@ public class BaseStudentInfoController {
         return RT.ok(infos);
     }
 
+    @GetMapping(value = "/studentinfoByKeyWordNotReading")
+    @ApiOperation(value = "根据姓名或者身份证号查询不在读学生详情信息")
+    @SaCheckPermission("basestudentpost:detail")
+    @XjrLog(value = "根据姓名或者身份证号查询不在读学生详情信息")
+    public RT<List<BaseStudentSompleInfoVo>> studentinfoByKeyWordNotReading(@Valid BaseStudentSimpleInfoDto dto) {
+        dto.setFindNewStudent(0);
+        dto.setIsNotReading(1);
+        List<BaseStudentSompleInfoVo> infos = baseStudentSchoolRollService.getInfosByParam(dto);
+        return RT.ok(infos);
+    }
+
     @GetMapping(value = "/getWhitelistInfo")
     @ApiOperation(value = "根据userId查询白名单信息(不传默认查询登录者)")
-    @SaCheckPermission("room:detail")
+    @SaCheckPermission("basestudentpost:detail")
     @XjrLog(value = "根据userId查询白名单信息(不传默认查询登录者)", saveResponseData = true)
     public RT<WhitelistInfoVo> getWhitelistInfo(Long userId) {
         if (userId == null) {

+ 4 - 0
src/main/java/com/xjrsoft/module/student/dto/BaseStudentSimpleInfoDto.java

@@ -31,4 +31,8 @@ public class BaseStudentSimpleInfoDto {
 
     @JsonIgnore
     private Integer findNewStudent = 1;
+
+    @JsonIgnore
+    @ApiModelProperty("是否在读学生(1:是 0:否)")
+    private Integer isNotReading;
 }

+ 1 - 0
src/main/resources/application-dev.yml

@@ -117,6 +117,7 @@ xjrsoft:
       - /system/imgcaptcha-answer
       - /student/basestudentinfo/studentinfoByKeyWord
       - /student/pbCseFeeobjupdate/enrollment-statistics-start
+      - /student/basestudentinfo/studentinfoByKeyWordNotReading
     approval-time: 300 # 审核超时时间 目前设为5分钟
   email:
     host:  #邮件服务器的SMTP地址,可选,默认为smtp.<发件人邮箱后缀>

+ 1 - 0
src/main/resources/application-pre.yml

@@ -100,6 +100,7 @@ xjrsoft:
       - /student/basestudentinfo/studentinfoByKeyWord
       - /student/pbCseFeeobjupdate/enrollment-statistics-start
       - /student/baseNewStudent/basenewstudent-task-start
+      - /student/basestudentinfo/studentinfoByKeyWordNotReading
     approval-time: 300 # 审核超时时间 目前设为5分钟
   email:
     host:  #邮件服务器的SMTP地址,可选,默认为smtp.<发件人邮箱后缀>

+ 1 - 0
src/main/resources/application-prod.yml

@@ -97,6 +97,7 @@ xjrsoft:
       - /system/xjrTipsMessage/infoByCode
       - /student/pbCseFeeobjupdate/enrollment-statistics-start
       - /student/baseNewStudent/basenewstudent-task-start
+      - /student/basestudentinfo/studentinfoByKeyWordNotReading
     approval-time: 300 # 审核超时时间 目前设为5分钟
   email:
     host:  #邮件服务器的SMTP地址,可选,默认为smtp.<发件人邮箱后缀>

+ 3 - 0
src/main/resources/mapper/organization/UserMapper.xml

@@ -54,6 +54,9 @@
         <if test="dto.archivesStatus != null and dto.archivesStatus != ''">
             AND t3.archives_status = #{dto.archivesStatus}
         </if>
+        <if test="dto.isNotReading != null and dto.isNotReading == 1">
+            AND t3.archives_status != 'FB2901'
+        </if>
         <if test="dto.idNumberList != null">
             and t1.credential_number in
             <foreach item="idNumber" index="index" collection="dto.idNumberList" open="(" close=")"