学生资助、学生奖惩、学籍异动内容修改

This commit is contained in:
2025-12-03 10:00:14 +08:00
parent 310bedb4b5
commit f8b635f060
54 changed files with 518 additions and 389 deletions

View File

@@ -4,6 +4,7 @@ import java.util.List;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.srs.comprehensive.domain.SrsZxjApply;
import com.srs.comprehensive.domain.Vo.CphSearch;
@@ -107,4 +108,9 @@ public interface SrsZxjApplyMapper extends BaseMapper<SrsZxjApply> {
int updateFdySignature(CphSearch cphSearch);
int updateEjxySignature(CphSearch cphSearch);
int updateScSignature(CphSearch cphSearch);
/**
* 仅更新申请理由sqly
*/
int updateSqly(@Param("id") Long id, @Param("sqly") String sqly);
}

View File

@@ -95,4 +95,9 @@ public interface ISrsZxjApplyService extends IService<SrsZxjApply> {
List<SrsZxjApply> countXw(CphSearch param);
int updateSignature(CphSearch cphSearch);
/**
* 仅更新申请理由sqly
*/
int updateSqly(Long id, String sqly);
}

View File

@@ -47,9 +47,9 @@ public class KnzzTufaApplyServiceImpl extends ServiceImpl<KnzzTufaApplyMapper,Kn
if(!Objects.equals(apply.getStuNo(), getUsername())){
throw new Exception("只能重新申请自己的申请");
}
if(!Objects.equals(apply.getApplyStatus(), "10")){
throw new Exception("申请已处理");
}
// if(!Objects.equals(apply.getApplyStatus(), "10")){
// throw new Exception("申请已处理");
// }
UpdateWrapper<KnzzTufaApply> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("id", apply.getId())
// 需要重置的审批流程相关字段
@@ -225,9 +225,9 @@ public class KnzzTufaApplyServiceImpl extends ServiceImpl<KnzzTufaApplyMapper,Kn
if(!Objects.equals(apply.getStuNo(), getUsername())){
throw new Exception("只能取消自己的申请");
}
if(!Objects.equals(apply.getApplyStatus(), "1")){
throw new Exception("申请已处理");
}
// if(!Objects.equals(apply.getApplyStatus(), "1")){
// throw new Exception("申请已处理");
// }
int res = knzzTufaApplyMapper.deleteById(id);
if(res == 0){
throw new Exception("取消失败");
@@ -248,13 +248,13 @@ public class KnzzTufaApplyServiceImpl extends ServiceImpl<KnzzTufaApplyMapper,Kn
throw new Exception("申请不存在");
}
if(!Objects.equals(apply.getStuNo(), getUsername())){
throw new Exception("只能修改自己的申请");
}
// if(!Objects.equals(apply.getStuNo(), getUsername())){
// throw new Exception("只能修改自己的申请");
// }
if(!Objects.equals(apply.getApplyStatus(), "1")){
throw new Exception("申请已处理");
}
// if(!Objects.equals(apply.getApplyStatus(), "1")){
// throw new Exception("申请已处理");
// }
apply.helpHis = param.helpHis;
apply.yearMoney = param.yearMoney;
@@ -263,6 +263,15 @@ public class KnzzTufaApplyServiceImpl extends ServiceImpl<KnzzTufaApplyMapper,Kn
apply.applyReason = param.applyReason;
apply.applySign = param.applySign;
apply.hardFile = param.hardFile;
apply.bankCard = param.bankCard;
apply.jthk = param.jthk;
apply.hardCondition = param.hardCondition;
apply.familyAddr = param.familyAddr;
apply.postCode = param.postCode;
// 家庭成员列表不在辅导员修改范围,保留原值
if (param.applyStatus != null && !param.applyStatus.isEmpty()) {
apply.applyStatus = param.applyStatus;
}
apply.setUpdateTime(getNowDate());
apply.setUpdateBy(getUsername());

View File

@@ -142,13 +142,13 @@ public class KnzzZsgApplyServiceImpl extends ServiceImpl<KnzzZsgApplyMapper,Knzz
throw new Exception("申请不存在");
}
if(!Objects.equals(apply.getStuNo(), getUsername())){
throw new Exception("只能修改自己的申请");
}
if(!Objects.equals(apply.getApplyStatus(), "1")){
throw new Exception("申请已处理");
}
// if(!Objects.equals(apply.getStuNo(), getUsername())){
// throw new Exception("只能修改自己的申请");
// }
//
// if(!Objects.equals(apply.getApplyStatus(), "1")){
// throw new Exception("申请已处理");
// }
apply.setBankCard(param.getBankCard());
apply.setBankAddr(param.getBankAddr());
apply.setStuPhone(param.getStuPhone());
@@ -167,6 +167,7 @@ public class KnzzZsgApplyServiceImpl extends ServiceImpl<KnzzZsgApplyMapper,Knzz
apply.setUpdateTime(getNowDate());
apply.setUpdateBy(getUsername());
apply.setDiplomaCertificate(param.getDiplomaCertificate());
apply.setApplyStatus(param.getApplyStatus());
int res = knzzZsgApplyMapper.updateById(apply);
if(res == 0){
throw new Exception("修改失败");

View File

@@ -156,13 +156,13 @@ public class KnzzZzqApplyServiceImpl extends ServiceImpl<KnzzZzqApplyMapper,Knzz
throw new Exception("申请不存在");
}
if(!Objects.equals(apply.getStuNo(), getUsername())){
throw new Exception("只能修改自己的申请");
}
if(!Objects.equals(apply.getApplyStatus(), "1")){
throw new Exception("申请已处理");
}
// if(!Objects.equals(apply.getStuNo(), getUsername())){
// throw new Exception("只能修改自己的申请");
// }
//
// if(!Objects.equals(apply.getApplyStatus(), "1")){
// throw new Exception("申请已处理");
// }
apply.inTime = param.inTime;
apply.helpHis = param.helpHis;
@@ -176,6 +176,7 @@ public class KnzzZzqApplyServiceImpl extends ServiceImpl<KnzzZzqApplyMapper,Knzz
apply.applyReason = param.applyReason;
apply.applyFile = param.applyFile;
apply.applySign = param.applySign;
apply.applyStatus = param.applyStatus;
apply.setUpdateTime(getNowDate());
apply.setUpdateBy(getUsername());

View File

@@ -1,28 +1,30 @@
package com.srs.comprehensive.service.impl;
import java.util.Calendar;
import static com.srs.common.utils.SecurityUtils.getUserId;
import java.util.Date;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.srs.common.core.domain.AjaxResult;
import com.srs.common.core.domain.entity.SysUser;
import com.srs.common.core.domain.model.LoginUser;
import com.srs.common.utils.SecurityUtils;
import com.srs.comprehensive.domain.*;
import com.srs.comprehensive.domain.SrsFemilyMenber;
import com.srs.comprehensive.domain.SrsHandAllKnrd;
import com.srs.comprehensive.domain.SrsKnrdApply;
import com.srs.comprehensive.domain.SrsKnrdApprovalRecord;
import com.srs.comprehensive.domain.SrsStuYear;
import com.srs.comprehensive.domain.SrsStudent;
import com.srs.comprehensive.domain.Vo.CphSearch;
import com.srs.comprehensive.mapper.SrsKnrdApplyMapper;
import com.srs.comprehensive.mapper.SrsKnrdApprovalRecordMapper;
import com.srs.comprehensive.mapper.SrsStuYearMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.stereotype.Service;
import com.srs.comprehensive.mapper.SrsKnrdApplyMapper;
import com.srs.comprehensive.service.ISrsKnrdApplyService;
import org.springframework.transaction.annotation.Transactional;
import static com.srs.common.utils.SecurityUtils.getUserId;
import static com.srs.common.utils.SecurityUtils.getUsername;
/**
* 困难认定Service业务层处理

View File

@@ -276,6 +276,9 @@ public class SrsStudentServiceImpl extends ServiceImpl<SrsStudentMapper, SrsStud
.last("limit 1");
//SrsStudent stu = srsStudentMapper.selectOne(queryWrapper);
SrsStudent stu = srsStudentMapper.selectSrsStudentByStuNo(stuNo);
if(stu == null){
return null;
}
if(stu.getClassId() != null){
SrsClass srsClass = srsClassMapper.selectById(stu.getClassId());
if(srsClass != null){

View File

@@ -334,4 +334,9 @@ public class SrsZxjApplyServiceImpl extends ServiceImpl<SrsZxjApplyMapper, SrsZx
return (row1 + row2 + row3 + row4);
}
@Override
public int updateSqly(Long id, String sqly) {
return srsZxjApplyMapper.updateSqly(id, sqly);
}
}