Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -6,16 +6,16 @@ import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* 审核明细Mapper接口
|
||||
*
|
||||
*
|
||||
* @author 邓
|
||||
* @date 2023-07-04
|
||||
*/
|
||||
@Mapper
|
||||
public interface CphAuditDetailsMapper
|
||||
public interface CphAuditDetailsMapper
|
||||
{
|
||||
/**
|
||||
* 查询审核明细
|
||||
*
|
||||
*
|
||||
* @param id 审核明细主键
|
||||
* @return 审核明细
|
||||
*/
|
||||
@@ -25,12 +25,12 @@ public interface CphAuditDetailsMapper
|
||||
|
||||
/**
|
||||
* 查询审核明细列表
|
||||
*
|
||||
*
|
||||
* @param cphAuditDetails 审核明细
|
||||
* @return 审核明细集合
|
||||
*/
|
||||
public List<CphAuditDetails> selectCphAuditDetailsList(CphAuditDetails cphAuditDetails);
|
||||
|
||||
|
||||
/**
|
||||
* 查询已审核
|
||||
* @author zhy
|
||||
@@ -50,7 +50,7 @@ public interface CphAuditDetailsMapper
|
||||
|
||||
/**
|
||||
* 新增审核明细
|
||||
*
|
||||
*
|
||||
* @param cphAuditDetails 审核明细
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -58,7 +58,7 @@ public interface CphAuditDetailsMapper
|
||||
|
||||
/**
|
||||
* 修改审核明细
|
||||
*
|
||||
*
|
||||
* @param cphAuditDetails 审核明细
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -66,7 +66,7 @@ public interface CphAuditDetailsMapper
|
||||
|
||||
/**
|
||||
* 删除审核明细
|
||||
*
|
||||
*
|
||||
* @param id 审核明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -74,9 +74,11 @@ public interface CphAuditDetailsMapper
|
||||
|
||||
/**
|
||||
* 批量删除审核明细
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCphAuditDetailsByIds(Long[] ids);
|
||||
public int cancelAuditById(Long id);
|
||||
public int cancelCphAudiDetailsById(Long id);
|
||||
}
|
||||
|
@@ -11,11 +11,11 @@ import com.srs.comprehensive.domain.Vo.CphSearch;
|
||||
|
||||
/**
|
||||
* 审核明细Service接口
|
||||
*
|
||||
*
|
||||
* @author 邓
|
||||
* @date 2023-07-04
|
||||
*/
|
||||
public interface ICphAuditDetailsService
|
||||
public interface ICphAuditDetailsService
|
||||
{
|
||||
|
||||
public int reSub(CphResub param);
|
||||
@@ -30,7 +30,7 @@ public interface ICphAuditDetailsService
|
||||
|
||||
/**
|
||||
* 查询审核明细
|
||||
*
|
||||
*
|
||||
* @param id 审核明细主键
|
||||
* @return 审核明细
|
||||
*/
|
||||
@@ -48,7 +48,7 @@ public interface ICphAuditDetailsService
|
||||
|
||||
/**
|
||||
* 查询审核明细列表
|
||||
*
|
||||
*
|
||||
* @param cphAuditDetails 审核明细
|
||||
* @return 审核明细集合
|
||||
*/
|
||||
@@ -64,7 +64,7 @@ public interface ICphAuditDetailsService
|
||||
|
||||
/**
|
||||
* 新增审核明细
|
||||
*
|
||||
*
|
||||
* @param cphAuditDetails 审核明细
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -72,7 +72,7 @@ public interface ICphAuditDetailsService
|
||||
|
||||
/**
|
||||
* 修改审核明细
|
||||
*
|
||||
*
|
||||
* @param cphAuditDetails 审核明细
|
||||
* @return 结果
|
||||
*/
|
||||
@@ -85,6 +85,12 @@ public interface ICphAuditDetailsService
|
||||
*/
|
||||
public int auditOpera(CphAuditDetails cphAuditDetails);
|
||||
|
||||
/**
|
||||
* 批量同意
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
|
||||
/**
|
||||
* 批量同意
|
||||
* @param
|
||||
@@ -94,15 +100,17 @@ public interface ICphAuditDetailsService
|
||||
|
||||
/**
|
||||
* 批量删除审核明细
|
||||
*
|
||||
*
|
||||
* @param ids 需要删除的审核明细主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteCphAuditDetailsByIds(Long[] ids);
|
||||
//撤销
|
||||
public int cancelAuditById(Long id);
|
||||
|
||||
/**
|
||||
* 删除审核明细信息
|
||||
*
|
||||
*
|
||||
* @param id 审核明细主键
|
||||
* @return 结果
|
||||
*/
|
||||
|
@@ -435,8 +435,8 @@ public class CphAuditDetailsServiceImpl implements ICphAuditDetailsService {
|
||||
temp.setId(cphAuditDetails.getProjectId());
|
||||
temp.setAuditStatus(cphAuditDetails.getStatusCode().toString());
|
||||
cphIamService.updateCphIam(temp);
|
||||
|
||||
if (cphAuditDetails.getStatusCode() == 6L)//判断审核状态是否完成
|
||||
Long statusCode=cphAuditDetailsMapper.selectCphAuditDetailsById(cphAuditDetails.getId()).getStatusCode();
|
||||
if (statusCode == 6L)//判断审核状态是否完成
|
||||
{
|
||||
SrsStudent stu = _stuService.selectSrsStudentByStuId(cphAuditDetails.getSubmitterId());
|
||||
SrsAddRecord srsAddRecord = new SrsAddRecord();//加分记录表
|
||||
@@ -519,7 +519,13 @@ public class CphAuditDetailsServiceImpl implements ICphAuditDetailsService {
|
||||
public int deleteCphAuditDetailsByIds(Long[] ids) {
|
||||
return cphAuditDetailsMapper.deleteCphAuditDetailsByIds(ids);
|
||||
}
|
||||
|
||||
@Override
|
||||
public int cancelAuditById(Long id) {
|
||||
int result=0;
|
||||
result=cphAuditDetailsMapper.cancelAuditById(id);
|
||||
result+= cphAuditDetailsMapper.cancelCphAudiDetailsById(id);
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* 删除审核明细信息
|
||||
*
|
||||
|
@@ -19,8 +19,10 @@ import com.srs.comprehensive.mapper.ClassCounMapper;
|
||||
import com.srs.comprehensive.mapper.Gxsdxy02JzgxxMapper;
|
||||
import com.srs.comprehensive.mapper.InfoTeacherMapper;
|
||||
import com.srs.comprehensive.util.ListSliceUtil;
|
||||
import com.srs.system.domain.QgzxTeacher;
|
||||
import com.srs.system.domain.SysPost;
|
||||
import com.srs.system.domain.SysUserRole;
|
||||
import com.srs.system.mapper.QgzxTeacherMapper;
|
||||
import com.srs.system.mapper.SysRoleMapper;
|
||||
import com.srs.system.mapper.SysUserMapper;
|
||||
import com.srs.system.mapper.SysUserRoleMapper;
|
||||
@@ -47,6 +49,8 @@ public class CphTeacherServiceImpl implements ICphTeacherService
|
||||
{
|
||||
@Autowired
|
||||
private CphTeacherMapper cphTeacherMapper;
|
||||
@Autowired
|
||||
private QgzxTeacherMapper qgzxTeacherMapper;
|
||||
|
||||
@Autowired
|
||||
private Gxsdxy02JzgxxMapper teacherMapper;
|
||||
@@ -350,14 +354,121 @@ public class CphTeacherServiceImpl implements ICphTeacherService
|
||||
}
|
||||
|
||||
//同步辅导员
|
||||
// @Override
|
||||
// @Transactional(rollbackFor = Exception.class)
|
||||
// public void sqlserverSynchronousMYSQL(List<Map> list) {
|
||||
// //辅导员列表
|
||||
// List<CphTeacher> cphTeachers = cphTeacherMapper.selectTeacherList();
|
||||
// //查找重复值
|
||||
// List<Map> updateMap = list.stream()
|
||||
// .filter(obj1 -> cphTeachers
|
||||
// .stream().anyMatch(obj2 -> {
|
||||
// Object xhObj = obj1.get("zgh");
|
||||
// if (xhObj != null) {
|
||||
// String zgh = xhObj.toString();
|
||||
// return obj2.getEmployeeId().equals(zgh);
|
||||
// }
|
||||
// return false;
|
||||
// }))
|
||||
// .collect(Collectors.toList());
|
||||
//
|
||||
// //添加需要
|
||||
// List<String> kshList2 = cphTeachers.stream()
|
||||
// .map(CphTeacher::getEmployeeId)
|
||||
// .collect(Collectors.toList());
|
||||
//
|
||||
// List<Map> insertMap = list.stream()
|
||||
// .filter(obj -> {
|
||||
// Object xhObj = obj.get("zgh");
|
||||
// return xhObj != null && !kshList2.contains(xhObj.toString());
|
||||
// })
|
||||
// .collect(Collectors.toList());
|
||||
// //添加
|
||||
// List<CphTeacher> insertStudentList = new ArrayList<>();
|
||||
// for (Map map:insertMap){
|
||||
// CphTeacher cphTeacher = new CphTeacher();
|
||||
// Object xmObj = map.get("xm");
|
||||
// if (xmObj != null) {
|
||||
// cphTeacher.setName(xmObj.toString());
|
||||
// }
|
||||
// Object xbObj = map.get("xb");
|
||||
// if (xbObj != null) {
|
||||
// String s = xbObj.toString();
|
||||
// if (!Objects.equals(s, "NULL") && !Objects.equals(s, "null")&&!Objects.equals(s," ")) {
|
||||
// cphTeacher.setGender(xbObj.toString());
|
||||
// }
|
||||
// }
|
||||
// Object zghObj = map.get("zgh");
|
||||
// if (zghObj != null) {
|
||||
// cphTeacher.setEmployeeId(zghObj.toString());
|
||||
// }
|
||||
// //学院id
|
||||
// Object yxdmObj = map.get("yxdm");
|
||||
// if (yxdmObj!=null) {
|
||||
// Long deptId = cphTeacherMapper.selectDeptCode(yxdmObj.toString());
|
||||
// if (deptId != null) {
|
||||
// cphTeacher.setDeptId(deptId);
|
||||
// }
|
||||
// }
|
||||
// cphTeacher.setStatus("1");
|
||||
// cphTeacher.setCreateTime(DateUtils.getNowDate());
|
||||
// insertStudentList.add(cphTeacher);
|
||||
// }
|
||||
// if (insertStudentList.size()!=0) {
|
||||
// cphTeacherMapper.insertBatchSomeColumn(insertStudentList);
|
||||
// }
|
||||
// //修改
|
||||
// List<CphTeacher> updateSrsStudent = new ArrayList<>();
|
||||
// for (Map map:updateMap){
|
||||
// CphTeacher cphTeacher = new CphTeacher();
|
||||
// Object xmObj = map.get("xm");
|
||||
// if (xmObj != null) {
|
||||
// cphTeacher.setName(xmObj.toString());
|
||||
// }
|
||||
// Object xbObj = map.get("xb");
|
||||
// if (xbObj != null) {
|
||||
// String s = xbObj.toString();
|
||||
// if (!Objects.equals(s, "NULL") && !Objects.equals(s, "null")&&!Objects.equals(s," ")) {
|
||||
// cphTeacher.setGender(xbObj.toString());
|
||||
// }
|
||||
// }
|
||||
// Object zghObj = map.get("zgh");
|
||||
// if (zghObj != null) {
|
||||
// cphTeacher.setEmployeeId(zghObj.toString());
|
||||
// }
|
||||
// //学院id
|
||||
// Object yxdmObj = map.get("yxdm");
|
||||
// if (yxdmObj!=null) {
|
||||
// Long ksh = cphTeacherMapper.selectDeptCode(yxdmObj.toString());
|
||||
// if (ksh != null) {
|
||||
// cphTeacher.setDeptId(ksh);
|
||||
// }
|
||||
// }
|
||||
// cphTeacher.setUpdateTime(DateUtils.getNowDate());
|
||||
// updateSrsStudent.add(cphTeacher);
|
||||
// }
|
||||
// /*if (updateSrsStudent.size()!=0) {
|
||||
// List<List<CphTeacher>> lists = ListSliceUtil.updateSlice(updateSrsStudent);
|
||||
// if (lists != null) {
|
||||
// for (List<CphTeacher> studentList : lists) {
|
||||
// cphTeacherMapper.updateSrsClassList(studentList);
|
||||
// }
|
||||
// }
|
||||
// }*/
|
||||
//
|
||||
//
|
||||
//
|
||||
// }
|
||||
|
||||
//同步教职工表
|
||||
@Override
|
||||
@Transactional(rollbackFor = Exception.class)
|
||||
public void sqlserverSynchronousMYSQL(List<Map> list) {
|
||||
//辅导员列表
|
||||
List<CphTeacher> cphTeachers = cphTeacherMapper.selectTeacherList();
|
||||
//教职工列表
|
||||
List<QgzxTeacher> qgzxTeachers = qgzxTeacherMapper.selectTeacherList();
|
||||
//查找重复值
|
||||
List<Map> updateMap = list.stream()
|
||||
.filter(obj1 -> cphTeachers
|
||||
.filter(obj1 -> qgzxTeachers
|
||||
.stream().anyMatch(obj2 -> {
|
||||
Object xhObj = obj1.get("zgh");
|
||||
if (xhObj != null) {
|
||||
@@ -369,8 +480,8 @@ public class CphTeacherServiceImpl implements ICphTeacherService
|
||||
.collect(Collectors.toList());
|
||||
|
||||
//添加需要
|
||||
List<String> kshList2 = cphTeachers.stream()
|
||||
.map(CphTeacher::getEmployeeId)
|
||||
List<String> kshList2 = qgzxTeachers.stream()
|
||||
.map(QgzxTeacher::getEmployeeId)
|
||||
.collect(Collectors.toList());
|
||||
|
||||
List<Map> insertMap = list.stream()
|
||||
@@ -380,68 +491,68 @@ public class CphTeacherServiceImpl implements ICphTeacherService
|
||||
})
|
||||
.collect(Collectors.toList());
|
||||
//添加
|
||||
List<CphTeacher> insertStudentList = new ArrayList<>();
|
||||
List<QgzxTeacher> insertStudentList = new ArrayList<>();
|
||||
for (Map map:insertMap){
|
||||
CphTeacher cphTeacher = new CphTeacher();
|
||||
QgzxTeacher qgzxTeacher = new QgzxTeacher();
|
||||
Object xmObj = map.get("xm");
|
||||
if (xmObj != null) {
|
||||
cphTeacher.setName(xmObj.toString());
|
||||
qgzxTeacher.setName(xmObj.toString());
|
||||
}
|
||||
Object xbObj = map.get("xb");
|
||||
if (xbObj != null) {
|
||||
String s = xbObj.toString();
|
||||
if (!Objects.equals(s, "NULL") && !Objects.equals(s, "null")&&!Objects.equals(s," ")) {
|
||||
cphTeacher.setGender(xbObj.toString());
|
||||
qgzxTeacher.setGender(xbObj.toString());
|
||||
}
|
||||
}
|
||||
Object zghObj = map.get("zgh");
|
||||
if (zghObj != null) {
|
||||
cphTeacher.setEmployeeId(zghObj.toString());
|
||||
qgzxTeacher.setEmployeeId(zghObj.toString());
|
||||
}
|
||||
//学院id
|
||||
Object yxdmObj = map.get("yxdm");
|
||||
if (yxdmObj!=null) {
|
||||
Long deptId = cphTeacherMapper.selectDeptCode(yxdmObj.toString());
|
||||
Long deptId = qgzxTeacherMapper.selectDeptCode(yxdmObj.toString());
|
||||
if (deptId != null) {
|
||||
cphTeacher.setDeptId(deptId);
|
||||
qgzxTeacher.setDeptId(deptId);
|
||||
}
|
||||
}
|
||||
cphTeacher.setStatus("1");
|
||||
cphTeacher.setCreateTime(DateUtils.getNowDate());
|
||||
insertStudentList.add(cphTeacher);
|
||||
qgzxTeacher.setStatus("1");
|
||||
qgzxTeacher.setCreateTime(DateUtils.getNowDate());
|
||||
insertStudentList.add(qgzxTeacher);
|
||||
}
|
||||
if (insertStudentList.size()!=0) {
|
||||
cphTeacherMapper.insertBatchSomeColumn(insertStudentList);
|
||||
qgzxTeacherMapper.insertBatchSomeColumn(insertStudentList);
|
||||
}
|
||||
//修改
|
||||
List<CphTeacher> updateSrsStudent = new ArrayList<>();
|
||||
List<QgzxTeacher> updateSrsStudent = new ArrayList<>();
|
||||
for (Map map:updateMap){
|
||||
CphTeacher cphTeacher = new CphTeacher();
|
||||
QgzxTeacher qgzxTeacher = new QgzxTeacher();
|
||||
Object xmObj = map.get("xm");
|
||||
if (xmObj != null) {
|
||||
cphTeacher.setName(xmObj.toString());
|
||||
qgzxTeacher.setName(xmObj.toString());
|
||||
}
|
||||
Object xbObj = map.get("xb");
|
||||
if (xbObj != null) {
|
||||
String s = xbObj.toString();
|
||||
if (!Objects.equals(s, "NULL") && !Objects.equals(s, "null")&&!Objects.equals(s," ")) {
|
||||
cphTeacher.setGender(xbObj.toString());
|
||||
qgzxTeacher.setGender(xbObj.toString());
|
||||
}
|
||||
}
|
||||
Object zghObj = map.get("zgh");
|
||||
if (zghObj != null) {
|
||||
cphTeacher.setEmployeeId(zghObj.toString());
|
||||
qgzxTeacher.setEmployeeId(zghObj.toString());
|
||||
}
|
||||
//学院id
|
||||
Object yxdmObj = map.get("yxdm");
|
||||
if (yxdmObj!=null) {
|
||||
Long ksh = cphTeacherMapper.selectDeptCode(yxdmObj.toString());
|
||||
Long ksh = qgzxTeacherMapper.selectDeptCode(yxdmObj.toString());
|
||||
if (ksh != null) {
|
||||
cphTeacher.setDeptId(ksh);
|
||||
qgzxTeacher.setDeptId(ksh);
|
||||
}
|
||||
}
|
||||
cphTeacher.setUpdateTime(DateUtils.getNowDate());
|
||||
updateSrsStudent.add(cphTeacher);
|
||||
qgzxTeacher.setUpdateTime(DateUtils.getNowDate());
|
||||
updateSrsStudent.add(qgzxTeacher);
|
||||
}
|
||||
/*if (updateSrsStudent.size()!=0) {
|
||||
List<List<CphTeacher>> lists = ListSliceUtil.updateSlice(updateSrsStudent);
|
||||
|
@@ -3,7 +3,7 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.comprehensive.mapper.CphAuditDetailsMapper">
|
||||
|
||||
|
||||
<resultMap type="CphAuditDetails" id="CphAuditDetailsResult">
|
||||
<result property="id" column="id" />
|
||||
<result property="projectName" column="project_name" />
|
||||
@@ -43,7 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="selectCphAuditDetailsList" parameterType="CphAuditDetails" resultMap="CphAuditDetailsResult">
|
||||
<include refid="selectCphAuditDetailsVo"/>
|
||||
<where>
|
||||
<where>
|
||||
<if test="projectName != null and projectName != ''"> and project_name like concat('%', #{projectName}, '%')</if>
|
||||
<if test="submitterId != null "> and submitter_id = #{submitterId}</if>
|
||||
<if test="submitterName != null and submitterName != ''"> and submitter_name like concat('%', #{submitterName}, '%')</if>
|
||||
@@ -101,7 +101,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
order by stu_no,id desc
|
||||
</select>
|
||||
|
||||
|
||||
|
||||
<select id="selectCphAuditDetailsById" parameterType="Long" resultMap="CphAuditDetailsResult">
|
||||
<include refid="selectCphAuditDetailsVo"/>
|
||||
where ad.id = #{id}
|
||||
@@ -111,7 +111,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectCphAuditDetailsVo"/>
|
||||
where ad.project_id = #{id}
|
||||
</select>
|
||||
|
||||
|
||||
<insert id="insertCphAuditDetails" parameterType="CphAuditDetails" useGeneratedKeys="true" keyProperty="id">
|
||||
insert into cph_audit_details
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
@@ -159,9 +159,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</delete>
|
||||
|
||||
<delete id="deleteCphAuditDetailsByIds" parameterType="String">
|
||||
delete from cph_audit_details where id in
|
||||
delete from cph_audit_details where id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
<update id="cancelAuditById" parameterType="Long">
|
||||
update cph_iam set audit_status=1 where id=#{id}
|
||||
</update>
|
||||
<update id="cancelCphAudiDetailsById" parameterType="Long">
|
||||
update cph_audit_details set status_code=1 where project_id=#{id}
|
||||
</update>
|
||||
</mapper>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.srs.comprehensive.mapper.CphGoodApplyMapper">
|
||||
|
||||
<resultMap type="CphGoodApply" id="CphGoodApplyResult">
|
||||
@@ -66,25 +66,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select t2.* ,sc.class_name,
|
||||
(select count(1) from srs_student where `status` = '01' and class_id = sc.class_id) as class_count,
|
||||
(select count(1) from srs_student as f1
|
||||
left join srs_class as f2 on f1.class_id = f2.class_id
|
||||
left join srs_class as f2 on f1.class_id = f2.class_id
|
||||
where f1.`status` = '01' and f2.major_id = sc.major_id and f2.grade_id = sc.grade_id) as major_count
|
||||
from
|
||||
(select t1.* from (
|
||||
select a.stu_no,a.stu_year_id,b.stu_year_name,a.stu_score,a.cph_score,a.sport_score,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.cph_score DESC ) as cph_class_rank,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_class_rank,
|
||||
RANK() OVER(PARTITION BY d.major_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_major_rank
|
||||
from cph_total_score as a
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
left join srs_student as c on a.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
)as t1
|
||||
where t1.stu_no = #{stuNo} and t1.stu_year_id in (
|
||||
select id from srs_stu_year as b where b.`status` = 1
|
||||
)
|
||||
select a.stu_no,a.stu_year_id,b.stu_year_name,a.stu_score,a.cph_score,a.sport_score,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.cph_score DESC ) as cph_class_rank,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_class_rank,
|
||||
RANK() OVER(PARTITION BY d.major_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_major_rank
|
||||
from cph_total_score as a
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
left join srs_student as c on a.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
)as t1
|
||||
where t1.stu_no = #{stuNo} and t1.stu_year_id in (
|
||||
select id from srs_stu_year as b where b.`status` = 1
|
||||
)
|
||||
)as t2
|
||||
left join srs_student as ss on t2.stu_no = ss.stu_no
|
||||
left join srs_class as sc on ss.class_id = sc.class_id
|
||||
left join srs_student as ss on t2.stu_no = ss.stu_no
|
||||
left join srs_class as sc on ss.class_id = sc.class_id
|
||||
</select>
|
||||
|
||||
<select id="listOwnYearCourseScore" resultType="CphCourseNameScore">
|
||||
@@ -102,7 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select count(a.is_pass) as course_count,sum(case when a.is_pass='true' then 1 else 0 end ) as pass_count,
|
||||
sum(case when a.is_pass='false' then 1 else 0 end ) as unpass_count , b.stu_year_name
|
||||
from cph_stu_score_middle as a
|
||||
left join srs_stu_year as b on a.xndm = b.xndm
|
||||
left join srs_stu_year as b on a.xndm = b.xndm
|
||||
where a.stu_no = #{stuNo}
|
||||
GROUP BY b.id
|
||||
</select>
|
||||
@@ -124,31 +124,31 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select count(a.is_pass) as course_count,sum(case when a.is_pass='1' then 1 else 0 end ) as pass_count,
|
||||
sum(case when a.is_pass='0' then 1 else 0 end ) as unpass_count , b.stu_year_name
|
||||
from cph_stu_score_middle as a
|
||||
left join srs_stu_year as b on a.xndm = b.xndm
|
||||
left join srs_stu_year as b on a.xndm = b.xndm
|
||||
where a.stu_no = #{stuNo} and a.xndm = (select t2.xndm from cph_own_good_type as t1
|
||||
left join srs_stu_year as t2 on t1.stu_year_id = t2.id where t1.type_code = #{code})
|
||||
left join srs_stu_year as t2 on t1.stu_year_id = t2.id where t1.type_code = #{code})
|
||||
GROUP BY b.id
|
||||
</select>
|
||||
|
||||
<select id="getOwnIamCountByCode" resultType="CphIamSitCount">
|
||||
select d.stu_year_name,
|
||||
count(1) as iam_count,
|
||||
sum(case when c.max_score > 0 then 1 else 0 end ) as add_count,
|
||||
sum(case when c.max_score < 0 then 1 else 0 end ) as minus_count
|
||||
count(1) as iam_count,
|
||||
sum(case when c.max_score > 0 then 1 else 0 end ) as add_count,
|
||||
sum(case when c.max_score < 0 then 1 else 0 end ) as minus_count
|
||||
from cph_iam as a
|
||||
left join srs_student as b on a.to_add = b.stu_id
|
||||
left join cph_rules as c on a.rule_id = c.rule_id
|
||||
left join srs_stu_year as d on a.stu_year_id = d.id
|
||||
left join srs_student as b on a.to_add = b.stu_id
|
||||
left join cph_rules as c on a.rule_id = c.rule_id
|
||||
left join srs_stu_year as d on a.stu_year_id = d.id
|
||||
where b.stu_no = #{stuNo} and a.audit_status = 6
|
||||
and a.stu_year_id = (select stu_year_id from cph_own_good_type as t where t.type_code = #{code})
|
||||
and a.stu_year_id = (select stu_year_id from cph_own_good_type as t where t.type_code = #{code})
|
||||
GROUP BY a.stu_year_id
|
||||
</select>
|
||||
|
||||
<select id="listOwnXyjxjApply" resultType="com.srs.comprehensive.domain.Vo.CphGoodApplyVo">
|
||||
select a.* ,b.type_name,c.fdy_comment,c.dept_comment,c.final_comment
|
||||
from cph_good_apply as a
|
||||
left join cph_own_good_type as b on a.type_code = b.type_code
|
||||
left join cph_good_audit as c on a.id = c.apply_id
|
||||
left join cph_own_good_type as b on a.type_code = b.type_code
|
||||
left join cph_good_audit as c on a.id = c.apply_id
|
||||
where a.stu_no = #{stuNo} and b.parent_code = "XYJXJ"
|
||||
ORDER BY create_time DESC
|
||||
</select>
|
||||
@@ -156,11 +156,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="listFdyAudit" resultType="CphGoodAuditFdyVo" parameterType="CphSearch">
|
||||
select c.stu_no,c.`name` as stu_name,d.class_name,b.apply_status,f.type_name,a.*
|
||||
from cph_good_audit as a
|
||||
left join cph_good_apply as b on a.apply_id = b.id
|
||||
left join srs_student as c on b.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
left join cph_teacher as e on d.teacher_id = e.teacher_id
|
||||
left join cph_own_good_type as f on b.type_code = f.type_code
|
||||
left join cph_good_apply as b on a.apply_id = b.id
|
||||
left join srs_student as c on b.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
left join cph_teacher as e on d.teacher_id = e.teacher_id
|
||||
left join cph_own_good_type as f on b.type_code = f.type_code
|
||||
<where>
|
||||
e.employee_id = #{tNo}
|
||||
<if test="status != null and status != ''"> and b.apply_status = #{status}</if>
|
||||
@@ -173,13 +173,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="listXwAudit" resultType="CphGoodAuditFdyVo" parameterType="CphSearch">
|
||||
select b.apply_status,c.stu_no,c.`name` as stu_name,d.class_name,f.type_name,a.*,e.major_id,e.major_name,e.major_type_name,
|
||||
d.class_name
|
||||
d.class_name
|
||||
from cph_good_audit as a
|
||||
left join cph_good_apply as b on a.apply_id = b.id
|
||||
left join srs_student as c on b.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
left join cph_own_good_type as f on b.type_code = f.type_code
|
||||
left join srs_majors as e on d.major_id = e.major_id
|
||||
left join cph_good_apply as b on a.apply_id = b.id
|
||||
left join srs_student as c on b.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
left join cph_own_good_type as f on b.type_code = f.type_code
|
||||
left join srs_majors as e on d.major_id = e.major_id
|
||||
<where>
|
||||
<if test="deptId != null and deptId != ''"> and e.college_id = #{deptId}</if>
|
||||
<if test="majorId != null and majorId != ''"> and d.major_id = #{majorId}</if>
|
||||
@@ -226,7 +226,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
|
||||
<select id="importShxs" resultType="CphGoodApplyVo" parameterType="CphSearch">
|
||||
select d.stu_year_name,e.class_name,a.stu_no,b.`name` as stu_name,c.type_name,NOW() as import_time,f.major_type_name,
|
||||
f.major_name,g.dept_name,
|
||||
f.major_name,g.dept_name,
|
||||
case
|
||||
when a.apply_status = 1 then '已提交待辅导员审核'
|
||||
when a.apply_status = 6 then '学工审核通过'
|
||||
@@ -293,7 +293,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="listXyjxjCanType" resultType="com.srs.comprehensive.domain.Vo.CphGoodTypeCode">
|
||||
select concat(b.stu_year_name,a.type_name) as type_name , a.type_code,a.stu_year_id
|
||||
from cph_own_good_type as a
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
where a.parent_code = 'XYJXJ' and enable_status = 1 and start_status = 1
|
||||
</select>
|
||||
|
||||
@@ -329,26 +329,26 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="getGrades" resultType="java.util.Map" parameterType="CphGoodApply">
|
||||
SELECT cph_good_apply.id as applyId,cph_good_apply.stu_no as stuNo,cph_good_apply.zzmm,cph_good_apply.born_time as bornTime
|
||||
,cph_good_apply.type_code as typeCode,cph_good_apply.class_post as classPost,
|
||||
cph_good_apply.good_his as goodHis,cph_good_apply.main_his as mainHis
|
||||
cph_good_apply.good_his as goodHis,cph_good_apply.main_his as mainHis
|
||||
,cph_good_apply.material,cph_good_apply.apply_status as applyStatus,cph_good_apply.apply_time as applyTime,
|
||||
cph_good_audit.*,cph_own_good_type.type_name as typeName,cph_own_good_type.stu_year_id as stuYearId
|
||||
,cph_good_audit.fdy_comment as fdyComment,cph_good_audit.dept_comment as deptComment,cph_good_audit.final_comment as finalComment
|
||||
,cph_good_apply.classtwo_sure as classtwoSure,cph_good_apply.youth_percent as youthPercent
|
||||
from cph_good_apply
|
||||
cph_good_audit.*,cph_own_good_type.type_name as typeName,cph_own_good_type.stu_year_id as stuYearId
|
||||
,cph_good_audit.fdy_comment as fdyComment,cph_good_audit.dept_comment as deptComment,cph_good_audit.final_comment as finalComment
|
||||
,cph_good_apply.classtwo_sure as classtwoSure,cph_good_apply.youth_percent as youthPercent
|
||||
from cph_good_apply
|
||||
LEFT JOIN cph_good_audit ON cph_good_apply.id = cph_good_audit.apply_id
|
||||
left join cph_own_good_type on cph_good_apply.type_code=cph_own_good_type.type_code
|
||||
left join cph_own_good_type on cph_good_apply.type_code=cph_own_good_type.type_code
|
||||
where stu_no = #{stuNo}
|
||||
and cph_good_apply.type_code like '%SHXS%'
|
||||
order by cph_good_apply.id desc
|
||||
</select>
|
||||
<select id="getMyApply" resultType="com.srs.comprehensive.domain.Vo.ApplyYxgbVo">
|
||||
select cpa.id, cpa.zzmm,cpa.class_post,stu_no, cpa.type_code, type_name, stu_year_name, apply_time,cpa.youth_percent,cpa.classtwo_sure,cpa.good_his,cpa.main_his, cpa.apply_status AS `status`,fdy_comment,dept_comment,final_comment
|
||||
from cph_good_apply cpa
|
||||
left join cph_good_audit cga on cpa.id = cga.apply_id
|
||||
left join cph_own_good_type cogt on cpa.type_code = cogt.type_code
|
||||
left join srs_stu_year ssy on cogt.stu_year_id = ssy.id
|
||||
where stu_no = #{username}
|
||||
and cpa.type_code like '%YXXSGB%'
|
||||
select cpa.id, cpa.zzmm,cpa.class_post,stu_no, cpa.type_code, type_name, stu_year_name, apply_time,cpa.youth_percent,cpa.classtwo_sure,cpa.good_his,cpa.main_his, cpa.apply_status AS `status`,fdy_comment,dept_comment,final_comment
|
||||
from cph_good_apply cpa
|
||||
left join cph_good_audit cga on cpa.id = cga.apply_id
|
||||
left join cph_own_good_type cogt on cpa.type_code = cogt.type_code
|
||||
left join srs_stu_year ssy on cogt.stu_year_id = ssy.id
|
||||
where stu_no = #{username}
|
||||
and cpa.type_code like '%YXXSGB%'
|
||||
order by cpa.id desc
|
||||
</select>
|
||||
|
||||
@@ -356,21 +356,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select t2.* ,sc.class_name,
|
||||
(select count(1) from srs_student where `status` = '01' and class_id = sc.class_id) as class_count,
|
||||
(select count(1) from srs_student as f1
|
||||
left join srs_class as f2 on f1.class_id = f2.class_id
|
||||
left join srs_class as f2 on f1.class_id = f2.class_id
|
||||
where f1.`status` = '01' and f2.major_id = sc.major_id and f2.grade_id = sc.grade_id) as major_count
|
||||
from
|
||||
(select t1.* from (
|
||||
select a.stu_no,a.stu_year_id,b.stu_year_name,a.stu_score,a.cph_score,a.sport_score,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.cph_score DESC ) as cph_class_rank,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_class_rank,
|
||||
RANK() OVER(PARTITION BY d.major_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_major_rank
|
||||
from cph_total_score as a
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
left join srs_student as c on a.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
)as t1
|
||||
where t1.stu_no = #{stuNo}
|
||||
and t1.stu_year_id = (
|
||||
select a.stu_no,a.stu_year_id,b.stu_year_name,a.stu_score,a.cph_score,a.sport_score,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.cph_score DESC ) as cph_class_rank,
|
||||
RANK() OVER(PARTITION BY c.class_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_class_rank,
|
||||
RANK() OVER(PARTITION BY d.major_id,a.stu_year_id,d.grade_id ORDER BY a.stu_score DESC ) as stu_major_rank
|
||||
from cph_total_score as a
|
||||
left join srs_stu_year as b on a.stu_year_id = b.id
|
||||
left join srs_student as c on a.stu_no = c.stu_no
|
||||
left join srs_class as d on c.class_id = d.class_id
|
||||
)as t1
|
||||
where t1.stu_no = #{stuNo}
|
||||
and t1.stu_year_id = (
|
||||
select stu_year_id from cph_own_good_type where type_code = #{code}
|
||||
))as t2
|
||||
left join srs_student as ss on t2.stu_no = ss.stu_no
|
||||
@@ -402,7 +402,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="material != null">material,</if>
|
||||
<if test="classtwoSure != null">classtwo_sure,</if>
|
||||
<if test="youthPercent != null">youth_percent,</if>
|
||||
</trim>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="stuNo != null">#{stuNo},</if>
|
||||
<if test="zzmm != null">#{zzmm},</if>
|
||||
@@ -425,7 +425,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="material != null">#{material},</if>
|
||||
<if test="classtwoSure != null">#{classtwoSure},</if>
|
||||
<if test="youthPercent != null">#{youthPercent},</if>
|
||||
</trim>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
<update id="updateCphGoodApply" parameterType="CphGoodApply">
|
||||
@@ -467,7 +467,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</foreach>
|
||||
</delete>
|
||||
|
||||
<select id="countJwcUnDo" resultType="String">
|
||||
<select id="countJwcUnDo" resultType="String">
|
||||
select concat('good-',count(a.id)) as `all`
|
||||
from cph_good_apply as a
|
||||
where a.apply_status = 3
|
||||
@@ -491,6 +491,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select concat('zx-',count(a.id)) as `all`
|
||||
from srs_zxj_apply as a
|
||||
where a.`step` = 3
|
||||
<!-- 知无涯 教务困难资助-->
|
||||
union
|
||||
select concat('knzz-',count(a.id)) as `all`
|
||||
from knzz_tufa_apply as a
|
||||
where a.apply_status = 1
|
||||
/*宁博 6、困难资助-国家励志奖学金-学工审核代办*/
|
||||
union
|
||||
select concat('knzzgl-',count(a.id)) as `all`
|
||||
from knzz_gl_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1
|
||||
</select>
|
||||
|
||||
<select id="countStuUnDo" resultType="String" parameterType="String">
|
||||
@@ -517,99 +528,140 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
select concat('zx-',count(a.id)) as `all`
|
||||
from srs_zxj_apply as a
|
||||
where a.`step` = 4 and a.xh = #{stuNo}
|
||||
<!-- 知无涯 学生困难资助申请驳回-->
|
||||
union
|
||||
select concat('knzz-',count(a.id)) as `all`
|
||||
from knzz_tufa_apply as a
|
||||
where a.apply_status = 6 and a.stu_no = #{stuNo}
|
||||
</select>
|
||||
|
||||
|
||||
<select id="countXwUnDo" resultType="String" parameterType="Long">
|
||||
select concat('good-',count(a.id)) as `all`
|
||||
from cph_good_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 2 and b.dept_id = #{id}
|
||||
union
|
||||
select concat('lake-',count(a.id)) as `all`
|
||||
from cph_lake_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 2 and b.dept_id = #{id}
|
||||
union
|
||||
select concat('biye-',count(a.id)) as `all`
|
||||
from cph_biye_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 2 and b.dept_id = #{id}
|
||||
union
|
||||
select concat('dms-',count(a.id)) as `all`
|
||||
from dms_manage_application as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.`status` = 1 and b.dept_id = #{id}
|
||||
union
|
||||
select concat('kn-',count(a.id)) as `all`
|
||||
from srs_knrd_apply as a
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
where a.`step` = 3 and b.dept_id = #{id}
|
||||
and
|
||||
EXISTS(
|
||||
SELECT m.* FROM sys_role r
|
||||
LEFT JOIN sys_role_menu rm on r.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where r.role_key ='stumanger' and m.component = 'poverty/povertyapply/xw'
|
||||
)
|
||||
and
|
||||
EXISTS(
|
||||
SELECT m.* FROM sys_role r
|
||||
LEFT JOIN sys_role_menu rm on r.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where r.role_key ='stumanger' and m.component = 'poverty/povertyapply/xw'
|
||||
)
|
||||
union
|
||||
select concat('zx-',count(a.id)) as `all`
|
||||
from srs_zxj_apply as a
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
where a.`step` = 2 and b.dept_id = #{id}
|
||||
and
|
||||
EXISTS(
|
||||
SELECT m.* FROM sys_role r
|
||||
LEFT JOIN sys_role_menu rm on r.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where r.role_key ='stumanger' and m.component = 'poverty/xw'
|
||||
)
|
||||
and
|
||||
EXISTS(
|
||||
SELECT m.* FROM sys_role r
|
||||
LEFT JOIN sys_role_menu rm on r.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where r.role_key ='stumanger' and m.component = 'poverty/xw'
|
||||
)
|
||||
<!-- 知无涯 学务困难资助 -->
|
||||
union
|
||||
select concat('knzz-',count(a.id)) as `all`
|
||||
from knzz_tufa_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.dept_id = #{id}
|
||||
/*宁博 6、困难资助-国家励志奖学金-学务审核代办*/
|
||||
union
|
||||
select concat('knzzgl-',count(a.id)) as `all`
|
||||
from knzz_gl_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.dept_id = #{id}
|
||||
</select>
|
||||
|
||||
<select id="countFdyUnDo" resultType="String" parameterType="String">
|
||||
select concat('good-',count(a.id)) as `all`
|
||||
from cph_good_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.t_no = #{tNo}
|
||||
union
|
||||
select concat('lake-',count(a.id)) as `all`
|
||||
from cph_lake_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.t_no = #{tNo}
|
||||
union
|
||||
select concat('biye-',count(a.id)) as `all`
|
||||
from cph_biye_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.t_no = #{tNo}
|
||||
union
|
||||
select concat('dms-',count(a.id)) as `all`
|
||||
from dms_manage_application as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.`status` = 0 and b.t_no = #{tNo}
|
||||
union
|
||||
select concat('kn-',count(a.id)) as `all`
|
||||
from srs_knrd_apply as a
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
where a.`step` = 2 and b.t_no = #{tNo}
|
||||
union
|
||||
select concat('zx-',count(a.id)) as `all`
|
||||
from srs_zxj_apply as a
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
left join view_stu_info as b on a.xh = b.stu_no
|
||||
where a.`step` = 1 and b.t_no = #{tNo}
|
||||
union
|
||||
select concat('qgzxgw-',count(a.id)) as `all`
|
||||
from qgzx_stu_post as a
|
||||
left join qgzx_post as b on a.post_id = b.id
|
||||
left join sys_dept as c on b.dept_code = c.dept_code
|
||||
left join view_stu_info as d on a.stu_no = d.stu_no
|
||||
left join qgzx_post as b on a.post_id = b.id
|
||||
left join sys_dept as c on b.dept_code = c.dept_code
|
||||
left join view_stu_info as d on a.stu_no = d.stu_no
|
||||
where b.zdls_no = #{tNo} and a.apply_status = '1'
|
||||
union
|
||||
select concat('qgzxgzjl-',count(a.id)) as `all`
|
||||
from qgzx_stu_post as a
|
||||
left join qgzx_post as b on a.post_id = b.id
|
||||
left join sys_dept as c on b.dept_code = c.dept_code
|
||||
left join view_stu_info as d on a.stu_no = d.stu_no
|
||||
left join qgzx_post as b on a.post_id = b.id
|
||||
left join sys_dept as c on b.dept_code = c.dept_code
|
||||
left join view_stu_info as d on a.stu_no = d.stu_no
|
||||
where b.zdls_no = #{tNo} and a.apply_status = '1'
|
||||
<!-- 知无涯 辅导员困难资助-->
|
||||
union
|
||||
select concat('knzz-',count(a.id)) as `all`
|
||||
from knzz_tufa_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.t_no = #{tNo}
|
||||
<!-- 知无涯 统计待审核的离校申请 -->
|
||||
union
|
||||
select concat('leave-',count(a.return_school_id)) as `all`
|
||||
from sur_itinerary as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.leave_status = 1 and b.t_no = #{tNo}
|
||||
/*宁博 10、假期去向-学生返校-辅导员审核代办*/
|
||||
union
|
||||
select concat('return-',count(a.return_school_id)) as `all`
|
||||
from sur_itinerary as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.status = '1' and b.t_no = #{tNo}
|
||||
/*宁博 6、困难资助-国家励志奖学金-辅导员审核代办*/
|
||||
union
|
||||
select concat('knzzgl-',count(a.id)) as `all`
|
||||
from knzz_gl_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.t_no = #{tNo}
|
||||
</select>
|
||||
|
||||
|
||||
@@ -628,11 +680,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
where a.penalty_status=3 and b.dept_id = #{id}
|
||||
and
|
||||
EXISTS(
|
||||
SELECT m.* FROM sys_role r
|
||||
LEFT JOIN sys_role_menu rm on r.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where r.role_key ='Junior_college_leader'
|
||||
)
|
||||
SELECT m.* FROM sys_role r
|
||||
LEFT JOIN sys_role_menu rm on r.role_id = rm.role_id
|
||||
LEFT JOIN sys_menu m on rm.menu_id = m.menu_id
|
||||
where r.role_key ='Junior_college_leader'
|
||||
)
|
||||
<!-- 知无涯 书记困难资助-->
|
||||
union
|
||||
select concat('knzz-',count(a.id)) as `all`
|
||||
from knzz_tufa_apply as a
|
||||
left join view_stu_info as b on a.stu_no = b.stu_no
|
||||
where a.apply_status = 1 and b.dept_id = #{id}
|
||||
|
||||
</select>
|
||||
|
||||
|
Reference in New Issue
Block a user