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

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);
}
}

View File

@@ -267,7 +267,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join view_stu_info as b on a.stu_no = b.stu_no
left join srs_stu_year as c on a.stu_year_id = c.id
left join cph_teacher as d on a.fdy_no = d.employee_id
left join qgzx_teacher as e on a.dept_no = d.employee_id
left join qgzx_teacher as e on a.dept_no = e.employee_id
left join qgzx_teacher as f on a.xg_no = f.employee_id
left join qgzx_teacher as g on a.leader_no = g.employee_id
<where>

View File

@@ -192,7 +192,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<sql id="selectSrsKnrdApplyVo">
select * from srs_knrd_apply
select t.knrd_type as knlx, a.*
from srs_knrd_apply as a
left join srs_knrd_type as t
on t.stu_no = a.xh
and t.stu_year_id = a.stu_year_id
</sql>
<select id="selectSrsKnrdApplyList" parameterType="SrsKnrdApply" resultMap="SrsKnrdApplyResult">
@@ -247,11 +251,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectSrsKnrdApplyById" parameterType="Long" resultMap="SrsKnrdApplyResult">
<include refid="selectSrsKnrdApplyVo"/>
where id = #{id}
where a.id = #{id}
</select>
<select id="selectSrsKnrdApplyBysfz" resultType="com.srs.comprehensive.domain.SrsKnrdApply">
<include refid="selectSrsKnrdApplyVo"/>
where sfzhm = #{sfzhm} and stu_year_id = #{stuYearId}
where a.sfzhm = #{sfzhm} and a.stu_year_id = #{stuYearId}
</select>
<select id="selectsfzhm" resultType="com.srs.comprehensive.domain.SrsKnrdApply">
select * from srs_student where id_card=#{sfzhm}

View File

@@ -75,79 +75,90 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectSrsZxjApplyVo">
select id, step, xm, xb, mz, zzmm, xh, rxsj, csny, dh, nj, xy, zy, bj, kndj, knlx, knlx2, rkzs, yzsr, rjyr, srly, jtcy, sqly, fdyqm, fdyqmrq, ejxyldqm, ejxyldqmrq, xsqm, xsqmrq, csdj, zzdj, zzls, zp,affix_id,status1,status2,status3,dz,yb,xxyjrq,apply_year,locked,level,
EXISTS(SELECT application_id FROM rt_stu_disciplinary_application rsda WHERE rsda.stu_no = srs_zxj_apply.xh and (penalty_status = 0 or penalty_status = 2)) as penalty_status0,
EXISTS(SELECT application_id FROM rt_stu_disciplinary_application rsda WHERE rsda.stu_no = srs_zxj_apply.xh and (penalty_status = 1 )) as penalty_status1,
EXISTS(SELECT application_id FROM rt_stu_disciplinary_application rsda WHERE rsda.stu_no = srs_zxj_apply.xh and (penalty_status = 3 )) as penalty_status3,
sfzhm,
gyhd,
bankCard,
bankAddr,
rjnsr,
bjyj,
bjyjdj,
ejxyyj,
ejxyyjdj,
xxyj,
xxqm,
stu_year_id,fdygh,fdymc,ejxyldmc,ejxyldgh,xxmc,xxgh
from srs_zxj_apply
select a.id, a.step, a.xm, a.xb, a.mz, a.zzmm, a.xh, a.rxsj, a.csny, a.dh, a.nj, a.xy, a.zy, a.bj, a.kndj,
t.knrd_type as knlx,
a.knlx2, a.rkzs, a.yzsr, a.rjyr, a.srly, a.jtcy, a.sqly, a.fdyqm, a.fdyqmrq, a.ejxyldqm, a.ejxyldqmrq,
a.xsqm, a.xsqmrq, a.csdj, a.zzdj, a.zzls, a.zp, a.affix_id, a.status1, a.status2, a.status3, a.dz, a.yb,
a.xxyjrq, a.apply_year, a.locked, a.level,
EXISTS(SELECT application_id FROM rt_stu_disciplinary_application rsda WHERE rsda.stu_no = a.xh and (penalty_status = 0 or penalty_status = 2)) as penalty_status0,
EXISTS(SELECT application_id FROM rt_stu_disciplinary_application rsda WHERE rsda.stu_no = a.xh and (penalty_status = 1 )) as penalty_status1,
EXISTS(SELECT application_id FROM rt_stu_disciplinary_application rsda WHERE rsda.stu_no = a.xh and (penalty_status = 3 )) as penalty_status3,
a.sfzhm,
a.gyhd,
a.bankCard,
a.bankAddr,
a.rjnsr,
a.bjyj,
a.bjyjdj,
a.ejxyyj,
a.ejxyyjdj,
a.xxyj,
a.xxqm,
a.stu_year_id, a.fdygh, a.fdymc, a.ejxyldmc, a.ejxyldgh, a.xxmc, a.xxgh
from srs_zxj_apply as a
left join srs_knrd_type as t
on t.stu_no = a.xh
and t.stu_year_id = a.stu_year_id
</sql>
<select id="selectSrsZxjApplyList" parameterType="SrsZxjApply" resultMap="SrsZxjApplyResult">
<include refid="selectSrsZxjApplyVo"/>
<where>
<if test="step != null "> and step = #{step}</if>
<if test="xm != null and xm != ''"> and xm = #{xm}</if>
<if test="xb != null and xb != ''"> and xb = #{xb}</if>
<if test="mz != null and mz != ''"> and mz = #{mz}</if>
<if test="zzmm != null and zzmm != ''"> and zzmm = #{zzmm}</if>
<if test="xh != null and xh != ''"> and xh = #{xh}</if>
<if test="rxsj != null and rxsj != ''"> and rxsj = #{rxsj}</if>
<if test="csny != null and csny != ''"> and csny = #{csny}</if>
<if test="dh != null and dh != ''"> and dh = #{dh}</if>
<if test="nj != null and nj != ''"> and nj = #{nj}</if>
<if test="xy != null and xy != ''"> and xy = #{xy}</if>
<if test="zy != null and zy != ''"> and zy = #{zy}</if>
<if test="bj != null and bj != ''"> and bj = #{bj}</if>
<if test="kndj != null and kndj != ''"> and kndj = #{kndj}</if>
<if test="knlx != null and knlx != ''"> and knlx = #{knlx}</if>
<if test="knlx2 != null and knlx2 != ''"> and knlx2 = #{knlx2}</if>
<if test="rkzs != null and rkzs != ''"> and rkzs = #{rkzs}</if>
<if test="yzsr != null and yzsr != ''"> and yzsr = #{yzsr}</if>
<if test="rjyr != null and rjyr != ''"> and rjyr = #{rjyr}</if>
<if test="srly != null and srly != ''"> and srly = #{srly}</if>
<if test="jtcy != null and jtcy != ''"> and jtcy = #{jtcy}</if>
<if test="sqly != null and sqly != ''"> and sqly = #{sqly}</if>
<if test="fdyqm != null and fdyqm != ''"> and fdyqm = #{fdyqm}</if>
<if test="fdyqmrq != null and fdyqmrq != ''"> and fdyqmrq = #{fdyqmrq}</if>
<if test="ejxyldqm != null and ejxyldqm != ''"> and ejxyldqm = #{ejxyldqm}</if>
<if test="ejxyldqmrq != null and ejxyldqmrq != ''"> and ejxyldqmrq = #{ejxyldqmrq}</if>
<if test="xsqm != null and xsqm != ''"> and xsqm = #{xsqm}</if>
<if test="xsqmrq != null and xsqmrq != ''"> and xsqmrq = #{xsqmrq}</if>
<if test="csdj != null and csdj != ''"> and csdj = #{csdj}</if>
<if test="zzdj != null and zzdj != ''"> and zzdj = #{zzdj}</if>
<if test="zzls != null and zzls != ''"> and zzls = #{zzls}</if>
<if test="zp != null and zp != ''"> and zp = #{zp}</if>
<if test="affixId != null and affixId != ''"> and affix_id = #{affixId}</if>
<if test="status1 != null and status1 != ''"> and status1 = #{status1}</if>
<if test="status2 != null and status2 != ''"> and status2 = #{status2}</if>
<if test="status3 != null and status3 != ''"> and status3 = #{status3}</if>
<if test="dz != null and dz != ''"> and dz = #{dz}</if>
<if test="yb != null and yb != ''"> and yb = #{yb}</if>
<if test="xxyjrq != null and xxyjrq != ''"> and xxyjrq = #{xxyjrq}</if>
<if test="applyYear != null and applyYear != ''"> and apply_year = #{applyYear}</if>
<if test="stuYearId != null and stuYearId != ''"> and stu_year_id = #{stuYearId}</if>
<if test="step != null "> and a.step = #{step}</if>
<if test="xm != null and xm != ''"> and a.xm = #{xm}</if>
<if test="xb != null and xb != ''"> and a.xb = #{xb}</if>
<if test="mz != null and mz != ''"> and a.mz = #{mz}</if>
<if test="zzmm != null and zzmm != ''"> and a.zzmm = #{zzmm}</if>
<if test="xh != null and xh != ''"> and a.xh = #{xh}</if>
<if test="rxsj != null and rxsj != ''"> and a.rxsj = #{rxsj}</if>
<if test="csny != null and csny != ''"> and a.csny = #{csny}</if>
<if test="dh != null and dh != ''"> and a.dh = #{dh}</if>
<if test="nj != null and nj != ''"> and a.nj = #{nj}</if>
<if test="xy != null and xy != ''"> and a.xy = #{xy}</if>
<if test="zy != null and zy != ''"> and a.zy = #{zy}</if>
<if test="bj != null and bj != ''"> and a.bj = #{bj}</if>
<if test="kndj != null and kndj != ''"> and a.kndj = #{kndj}</if>
<if test="knlx != null and knlx != ''"> and t.knrd_type = #{knlx}</if>
<if test="knlx2 != null and knlx2 != ''"> and a.knlx2 = #{knlx2}</if>
<if test="rkzs != null and rkzs != ''"> and a.rkzs = #{rkzs}</if>
<if test="yzsr != null and yzsr != ''"> and a.yzsr = #{yzsr}</if>
<if test="rjyr != null and rjyr != ''"> and a.rjyr = #{rjyr}</if>
<if test="srly != null and srly != ''"> and a.srly = #{srly}</if>
<if test="jtcy != null and jtcy != ''"> and a.jtcy = #{jtcy}</if>
<if test="sqly != null and sqly != ''"> and a.sqly = #{sqly}</if>
<if test="fdyqm != null and fdyqm != ''"> and a.fdyqm = #{fdyqm}</if>
<if test="fdyqmrq != null and fdyqmrq != ''"> and a.fdyqmrq = #{fdyqmrq}</if>
<if test="ejxyldqm != null and ejxyldqm != ''"> and a.ejxyldqm = #{ejxyldqm}</if>
<if test="ejxyldqmrq != null and ejxyldqmrq != ''"> and a.ejxyldqmrq = #{ejxyldqmrq}</if>
<if test="xsqm != null and xsqm != ''"> and a.xsqm = #{xsqm}</if>
<if test="xsqmrq != null and xsqmrq != ''"> and a.xsqmrq = #{xsqmrq}</if>
<if test="csdj != null and csdj != ''"> and a.csdj = #{csdj}</if>
<if test="zzdj != null and zzdj != ''"> and a.zzdj = #{zzdj}</if>
<if test="zzls != null and zzls != ''"> and a.zzls = #{zzls}</if>
<if test="zp != null and zp != ''"> and a.zp = #{zp}</if>
<if test="affixId != null and affixId != ''"> and a.affix_id = #{affixId}</if>
<if test="status1 != null and status1 != ''"> and a.status1 = #{status1}</if>
<if test="status2 != null and status2 != ''"> and a.status2 = #{status2}</if>
<if test="status3 != null and status3 != ''"> and a.status3 = #{status3}</if>
<if test="dz != null and dz != ''"> and a.dz = #{dz}</if>
<if test="yb != null and yb != ''"> and a.yb = #{yb}</if>
<if test="xxyjrq != null and xxyjrq != ''"> and a.xxyjrq = #{xxyjrq}</if>
<if test="applyYear != null and applyYear != ''"> and a.apply_year = #{applyYear}</if>
<if test="stuYearId != null and stuYearId != ''"> and a.stu_year_id = #{stuYearId}</if>
</where>
</select>
<select id="selectSrsZxjApplyById" parameterType="Long" resultMap="SrsZxjApplyResult">
<include refid="selectSrsZxjApplyVo"/>
where id = #{id}
where a.id = #{id}
</select>
<!-- 仅更新申请理由sqly -->
<update id="updateSqly">
update srs_zxj_apply
set sqly = #{sqly}
where id = #{id}
</update>
<!-- 获取下一个未审批的-->
<select id="nextApply" parameterType="CphSearch" resultMap="SrsZxjApplyResult">
select a.*
@@ -245,7 +256,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
a.zy as zy,
a.bj as bj,
a.kndj as kndj,
a.knlx as knlx,
t.knrd_type as knlx,
a.knlx2 as knlx2,
a.rkzs as rkzs,
a.yzsr as yzsr,
@@ -291,6 +302,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
left join srs_class as c on b.class_id = c.class_id
left join srs_majors as d on c.major_id = d.major_id
left join cph_teacher as e on c.teacher_id = e.teacher_id
left join srs_knrd_type as t on t.stu_no = a.xh and t.stu_year_id = a.stu_year_id
left join (
SELECT * FROM (
SELECT *,

View File

@@ -81,6 +81,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
right join srs_zxj_approval_record as r on r.apply_id = a.id
where
r.step != 0 and r.step != 1
and a.step != 0
<if test="step != null "> and r.step = #{step}</if>
<if test="tNo != null "> and e.employee_id = #{tNo}</if>
<if test="deptId != null "> and d.college_id = #{deptId}</if>