| | |
| | | and TO_DAYS(t2.dimissionDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.dimissionDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.dimissionDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.dimissionDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t.entryDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t.entryDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t.entryDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t.entryDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t.dimissionDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t.dimissionDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t.dimissionDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t.dimissionDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.applayDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.applayDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.applayDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.applayDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.signingDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.signingDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.signingDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.signingDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.signingDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.signingDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.signingDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.signingDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.endDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.endDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.endDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.endDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.returnDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.returnDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.returnDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.returnDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.arbitrationDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.arbitrationDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.arbitrationDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.arbitrationDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.injuredTime) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.injuredTime,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.injuredTime,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.injuredTime,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.injuredTime) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.injuredTime,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.injuredTime,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.injuredTime,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.applayDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.applayDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.applayDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.applayDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.applayDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.applayDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.applayDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.applayDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.physicalExamDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.physicalExamDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.physicalExamDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.physicalExamDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t.certificateValidity) <= TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t.certificateValidity,'%Y-%m-%d')) <= YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t.certificateValidity,'%Y-%m-%d'),1) <= YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t.certificateValidity,'%Y-%m') <= date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.changeDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.changeDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.changeDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.changeDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t2.badDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t2.badDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t2.badDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t2.badDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.certificateValidity) <= TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.certificateValidity,'%Y-%m-%d')) <= YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.certificateValidity,'%Y-%m-%d'),1) <= YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.certificateValidity,'%Y-%m') <= date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.entryDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.entryDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.entryDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.entryDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.applayDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.applayDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.applayDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.applayDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t.dimissionDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t.dimissionDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t.dimissionDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t.dimissionDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.signingDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.signingDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.signingDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.signingDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.signingDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.signingDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.signingDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.signingDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.signingDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.signingDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.signingDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.signingDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.endDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.endDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.endDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.endDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t.dimissionDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t.dimissionDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t.dimissionDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t.dimissionDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.returnDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.returnDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.returnDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.returnDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.physicalExamDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.physicalExamDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.physicalExamDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.physicalExamDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.arbitrationDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.arbitrationDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.arbitrationDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.arbitrationDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.injuredTime) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.injuredTime,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.injuredTime,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.injuredTime,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.injuredTime) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.injuredTime,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.injuredTime,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.injuredTime,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.applayDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.applayDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.applayDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.applayDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.applayDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.applayDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.applayDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.applayDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.badDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.badDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.badDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.badDate,'%Y-%m') = date_format(now(),'%Y-%m') |
| | |
| | | and TO_DAYS(t1.changeDate) = TO_DAYS(NOW()) |
| | | </when> |
| | | <when test="index==1"> |
| | | and YEARWEEK(date_format(t1.changeDate,'%Y-%m-%d')) = YEARWEEK(now()) |
| | | and YEARWEEK(date_format(t1.changeDate,'%Y-%m-%d'),1) = YEARWEEK(now()) |
| | | </when> |
| | | <when test="index==2"> |
| | | and date_format(t1.changeDate,'%Y-%m') = date_format(now(),'%Y-%m') |