#!/usr/bin/env php loadYaml('execution')->gen(10); zenData('product')->loadYaml('product')->gen(10); zenData('branch')->loadYaml('branch')->gen(10); zenData('productplan')->loadYaml('productplan')->gen(30); zenData('projectproduct')->loadYaml('projectproduct')->gen(10); /** title=测试executionModel->getPlans(); timeout=0 cid=16334 - 查询全部执行关联计划信息第1条的3属性 @计划3 [2022-01-01 ~ 2022-01-30] - 查询迭代1关联计划信息第1条的2属性 @计划1 /计划2 [2021-06-01 ~ 2021-06-30] - 查询全部执行关联计划数量 @6 - 查询迭代1关联计划数量 @6 - 查询带主干的全部执行关联计划信息第1条的3属性 @计划3 [2022-01-01 ~ 2022-01-30] - 查询带主干的迭代1关联计划信息第1条的2属性 @计划1 /计划2 [2021-06-01 ~ 2021-06-30] - 查询带主干的全部执行关联计划数量 @6 - 查询带主干的迭代1关联计划数量 @6 - 查询非父计划全部执行关联计划信息第1条的3属性 @计划3 [2022-01-01 ~ 2022-01-30] - 查询非父计划迭代1关联计划信息第1条的2属性 @计划1 /计划2 [2021-06-01 ~ 2021-06-30] - 查询非父计划全部执行关联计划数量 @6 - 查询非父计划迭代1关联计划数量 @6 - 查询未过期计划全部执行关联计划信息第5条的15属性 @计划15 待定 - 查询未过期计划迭代1关联计划信息第4条的10属性 @计划10 待定 - 查询未过期计划全部执行关联计划数量 @2 - 查询未过期计划迭代1关联计划数量 @2 - 查询未关闭计划全部执行关联计划信息第3条的7属性 @计划7 [2021-06-01 ~ 2021-06-30] - 查询未关闭计划迭代1关联计划信息第1条的2属性 @计划1 /计划2 [2021-06-01 ~ 2021-06-30] - 查询未关闭计划全部执行关联计划数量 @5 - 查询未关闭计划迭代1关联计划数量 @5 - 查询按照日期升序计划全部执行关联计划信息第3条的7属性 @计划7 [2021-06-01 ~ 2021-06-30] - 查询按照日期升序计划迭代1关联计划信息第1条的2属性 @计划1 /计划2 [2021-06-01 ~ 2021-06-30] - 查询按照日期升序计划全部执行关联计划数量 @6 - 查询按照日期升序计划迭代1关联计划数量 @6 */ $productIdList = array(1, 2, 3, 4, 5, 6); $paramList = array('', 'withMainPlan', 'skipParent', 'unexpired', 'noclosed', 'sortedByDate'); $executionIdList = array(0, 11); $count = array(0, 1); $execution = new executionModelTest(); r($execution->getPlansTest($productIdList, $paramList[0], $executionIdList[0], $count[0])) && p('1:3') && e('计划3 [2022-01-01 ~ 2022-01-30]'); // 查询全部执行关联计划信息 r($execution->getPlansTest($productIdList, $paramList[0], $executionIdList[1], $count[0])) && p('1:2') && e('计划1 /计划2 [2021-06-01 ~ 2021-06-30]'); // 查询迭代1关联计划信息 r($execution->getPlansTest($productIdList, $paramList[0], $executionIdList[0], $count[1])) && p() && e('6'); // 查询全部执行关联计划数量 r($execution->getPlansTest($productIdList, $paramList[0], $executionIdList[1], $count[1])) && p() && e('6'); // 查询迭代1关联计划数量 r($execution->getPlansTest($productIdList, $paramList[1], $executionIdList[0], $count[0])) && p('1:3') && e('计划3 [2022-01-01 ~ 2022-01-30]'); // 查询带主干的全部执行关联计划信息 r($execution->getPlansTest($productIdList, $paramList[1], $executionIdList[1], $count[0])) && p('1:2') && e('计划1 /计划2 [2021-06-01 ~ 2021-06-30]'); // 查询带主干的迭代1关联计划信息 r($execution->getPlansTest($productIdList, $paramList[1], $executionIdList[0], $count[1])) && p() && e('6'); // 查询带主干的全部执行关联计划数量 r($execution->getPlansTest($productIdList, $paramList[1], $executionIdList[1], $count[1])) && p() && e('6'); // 查询带主干的迭代1关联计划数量 r($execution->getPlansTest($productIdList, $paramList[2], $executionIdList[0], $count[0])) && p('1:3') && e('计划3 [2022-01-01 ~ 2022-01-30]'); // 查询非父计划全部执行关联计划信息 r($execution->getPlansTest($productIdList, $paramList[2], $executionIdList[1], $count[0])) && p('1:2') && e('计划1 /计划2 [2021-06-01 ~ 2021-06-30]'); // 查询非父计划迭代1关联计划信息 r($execution->getPlansTest($productIdList, $paramList[2], $executionIdList[0], $count[1])) && p() && e('6'); // 查询非父计划全部执行关联计划数量 r($execution->getPlansTest($productIdList, $paramList[2], $executionIdList[1], $count[1])) && p() && e('6'); // 查询非父计划迭代1关联计划数量 r($execution->getPlansTest($productIdList, $paramList[3], $executionIdList[0], $count[0])) && p('5:15') && e('计划15 待定'); // 查询未过期计划全部执行关联计划信息 r($execution->getPlansTest($productIdList, $paramList[3], $executionIdList[1], $count[0])) && p('4:10') && e('计划10 待定'); // 查询未过期计划迭代1关联计划信息 r($execution->getPlansTest($productIdList, $paramList[3], $executionIdList[0], $count[1])) && p() && e('2'); // 查询未过期计划全部执行关联计划数量 r($execution->getPlansTest($productIdList, $paramList[3], $executionIdList[1], $count[1])) && p() && e('2'); // 查询未过期计划迭代1关联计划数量 r($execution->getPlansTest($productIdList, $paramList[4], $executionIdList[0], $count[0])) && p('3:7') && e('计划7 [2021-06-01 ~ 2021-06-30]'); // 查询未关闭计划全部执行关联计划信息 r($execution->getPlansTest($productIdList, $paramList[4], $executionIdList[1], $count[0])) && p('1:2') && e('计划1 /计划2 [2021-06-01 ~ 2021-06-30]'); // 查询未关闭计划迭代1关联计划信息 r($execution->getPlansTest($productIdList, $paramList[4], $executionIdList[0], $count[1])) && p() && e('5'); // 查询未关闭计划全部执行关联计划数量 r($execution->getPlansTest($productIdList, $paramList[4], $executionIdList[1], $count[1])) && p() && e('5'); // 查询未关闭计划迭代1关联计划数量 r($execution->getPlansTest($productIdList, $paramList[5], $executionIdList[0], $count[0])) && p('3:7') && e('计划7 [2021-06-01 ~ 2021-06-30]'); // 查询按照日期升序计划全部执行关联计划信息 r($execution->getPlansTest($productIdList, $paramList[5], $executionIdList[1], $count[0])) && p('1:2') && e('计划1 /计划2 [2021-06-01 ~ 2021-06-30]'); // 查询按照日期升序计划迭代1关联计划信息 r($execution->getPlansTest($productIdList, $paramList[5], $executionIdList[0], $count[1])) && p() && e('6'); // 查询按照日期升序计划全部执行关联计划数量 r($execution->getPlansTest($productIdList, $paramList[5], $executionIdList[1], $count[1])) && p() && e('6'); // 查询按照日期升序计划迭代1关联计划数量