VAR1:=MA.MA1#DAY;
VAR2:=MA.MA1#WEEK;
VAR3:=C#WEEK;
VAR4:=O#WEEK;
TJ:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,2) AND EVERY(C>O,2);
TJ1:=VAR2>REF(VAR2,1) AND REF(VAR2,1)<REF(VAR2,2) AND EVERY(VAR3>VAR4,2);
TJ AND TJ1;
VAR1:=MA.MA1#DAY;
VAR2:=MA.MA1#WEEK;
VAR3:=C#WEEK;
VAR4:=O#WEEK;
TJ:=VAR1>REF(VAR1,1) AND REF(VAR1,1)<REF(VAR1,3) AND EVERY(C>O,2);
拐头的条件放松一下,看看
TJ1:=VAR2>REF(VAR2,1) AND REF(VAR2,1)<REF(VAR2,3) AND EVERY(VAR3>VAR4,2);
TJ AND TJ1;