|
|
@@ -51,6 +51,7 @@ public class XjbMonthCloseServ extends Serv {
|
|
|
private static final String FORMULA_VERSION = "SC-2024-10-V1";
|
|
|
private static final String SCOPE_SCHOOL = "XX";
|
|
|
private static final long SCHOOL_SCOPE_ID = 0L;
|
|
|
+ private static final long TEST_TEACHER_GWID = 1015464L;
|
|
|
private static final int JD_DRAFT = 1;
|
|
|
private static final int JD_PUBLISHED = 5;
|
|
|
private static final int JD_SUPERSEDED = 6;
|
|
|
@@ -431,7 +432,11 @@ public class XjbMonthCloseServ extends Serv {
|
|
|
+ " from BJ b"
|
|
|
+ " inner join ZY z on z.ZYID=b.ZYID"
|
|
|
+ " where b." + ObjC.JLZT_useStr
|
|
|
- + " and b.BJZTM!=81 order by b.MC,b.BJID");
|
|
|
+ + " and b.BJZTM!=81"
|
|
|
+ + " and not exists (select 1 from RY testRy"
|
|
|
+ + " where testRy.RYID=b.BZRID"
|
|
|
+ + " and testRy.GWID=" + TEST_TEACHER_GWID + ")"
|
|
|
+ + " order by b.MC,b.BJID");
|
|
|
List<ClassRow> rows = new ArrayList<>();
|
|
|
for (Map<String, Object> row : db.doSelMapListByC(sqlc)) {
|
|
|
rows.add(new ClassRow(
|
|
|
@@ -449,7 +454,10 @@ public class XjbMonthCloseServ extends Serv {
|
|
|
throws Exception {
|
|
|
SqlCmd countCmd = new SqlCmd(
|
|
|
"select count(*) CNT from BJ b where b."
|
|
|
- + ObjC.JLZT_useStr + " and b.BJZTM!=81");
|
|
|
+ + ObjC.JLZT_useStr + " and b.BJZTM!=81"
|
|
|
+ + " and not exists (select 1 from RY testRy"
|
|
|
+ + " where testRy.RYID=b.BZRID"
|
|
|
+ + " and testRy.GWID=" + TEST_TEACHER_GWID + ")");
|
|
|
db.doSelByC(countCmd);
|
|
|
int activeCount = db.rowNum == 0 ? 0 : db.rdIntCol("cnt");
|
|
|
if (activeCount == joinableCount)
|
|
|
@@ -460,6 +468,9 @@ public class XjbMonthCloseServ extends Serv {
|
|
|
+ " left join ZY z on z.ZYID=b.ZYID"
|
|
|
+ " where b." + ObjC.JLZT_useStr
|
|
|
+ " and b.BJZTM!=81 and z.ZYID is null"
|
|
|
+ + " and not exists (select 1 from RY testRy"
|
|
|
+ + " where testRy.RYID=b.BZRID"
|
|
|
+ + " and testRy.GWID=" + TEST_TEACHER_GWID + ")"
|
|
|
+ " order by b.BJID");
|
|
|
StringBuilder message = new StringBuilder(
|
|
|
"在用班级主数据不完整:在用班 ")
|
|
|
@@ -621,7 +632,11 @@ public class XjbMonthCloseServ extends Serv {
|
|
|
+ " from BJ b"
|
|
|
+ " inner join ZY z on z.ZYID=b.ZYID"
|
|
|
+ " where z.FZBMID=:bmid and b." + ObjC.JLZT_useStr
|
|
|
- + " and b.BJZTM!=81 order by b.MC,b.BJID");
|
|
|
+ + " and b.BJZTM!=81"
|
|
|
+ + " and not exists (select 1 from RY testRy"
|
|
|
+ + " where testRy.RYID=b.BZRID"
|
|
|
+ + " and testRy.GWID=" + TEST_TEACHER_GWID + ")"
|
|
|
+ + " order by b.MC,b.BJID");
|
|
|
sqlc.wrLongParm("bmid", bmid);
|
|
|
List<ClassRow> rows = new ArrayList<>();
|
|
|
for (Map<String, Object> row : db.doSelMapListByC(sqlc)) {
|