-
Notifications
You must be signed in to change notification settings - Fork 18
/
test.json
150 lines (142 loc) · 4.18 KB
/
test.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
"start": {
"template": {
"_id": "$TESTID",
"vehicleid": "$VEHICLEID",
"testdate": "$TESTDATE",
"testclass": "$TESTCLASSID",
"testtype": "@testtypesection",
"testresult": "@testresultsection",
"testmileage": "$TESTMILEAGE",
"postcode": "$POSTCODEREGION",
"make": "$MAKE",
"model": "$MODEL",
"colour": "$COLOUR",
"fuel": "@fuelsection",
"capacity": "$CYLCPCTY",
"firstusedate": "$FIRSTUSEDATE",
"faileditems": [ "@itemssection" ]
},
"source": {
"uri": "jdbc:mysql://mysql.mdbrecruit.net:3306/MOT?useUnicode=true&useServerPrepStmts=true&useSSL=false&zeroDateTimeBehavior=convertToNull",
"user": "mysql",
"password": "Tradecraftmysq1!",
},
"target": {
"mode": "json" },
"query": {
"sql": "SELECT * FROM TESTRESULT ORDER BY TESTID"
}
},
"testtypesection": {
"template": {
"_value": "$TESTTYPE"
},
"query": {
"sql": "SELECT * FROM TEST_TYPES where TYPECODE=?"
},
"params": ["TESTTYPE"],
"cached": true
},
"testresultsection": {
"template": {
"_value": "$RESULT"
},
"query": {
"sql": "SELECT * FROM TEST_OUTCOME where RESULTCODE=?"
},
"params": ["TESTRESULT"],
"cached": true
},
"fuelsection": {
"template": {
"_value": "$FUEL_TYPE"
},
"query": {
"sql": "SELECT * FROM FUEL_TYPES where TYPECODE=?"
},
"params": ["FUELTYPE"],
"cached": true
},
"itemssection": {
"template": {
"RFRTYPE": "$RFRTYPE",
"details" : "@itemdetailsection",
"location": "@itemlocationsection",
"dangerous": "$DMARK"
},
"query": {
"sql" : "SELECT TESTID,RFRID,RFRTYPE,LOCATIONID,IF(DMARK='',NULL,DMARK ) AS DMARK FROM TESTITEM ORDER BY TESTID"
},
"mergeon": "TESTID"
},
"itemdetailsection": {
"template": {
"TESTCLASSID":"$TESTCLASSID",
"ITEM":"@itemidsection",
"MINORITEM":"$MINORITEM",
"TEXT":"$TEXT"
},
"query": {
"!! COMMENT" : "CANNOT CURRENTLY PASS TESTCLASS DOWN FROM TOP LEVEL WHEN USING MERGEON",
"sql": "SELECT RFRID,TSTITMID, MINORITEM, IF( ? = 'F',RFRINSPMANDESC,RFRADVISORYTEXT) AS TEXT FROM TESTITEM_DETAIL where RFRID=? LIMIT 1"
},
"params": ["RFRTYPE","RFRID"],
"cached" : true
},
"itemlocationsection": {
"template": {
"LATERAL":"$LATERAL",
"LONGITUDINAL":"$LONGITUDINAL",
"VERTICAL":"$VERTICAL"
},
"query": {
"sql": "SELECT * FROM FAILURE_LOCATION where FAILURELOCATIONID=?"
},
"params": ["LOCATIONID"],
"cached": true
},
"itemidsection" : {
"template" : {
"ITEMNAME" : "$ITEMNAME",
"subcategory" : "@itemidsection2"
},
"query" : {
"sql" : "SELECT * FROM TESTITEM_GROUP WHERE TSTITMID=?"
},
"params" : ["TSTITMID"],
"cached":true
},
"itemidsection2" : {
"template" : {
"ITEMNAME" : "$ITEMNAME",
"subcategory" : "@itemidsection3"
},
"query" : {
"sql" : "SELECT * FROM TESTITEM_GROUP WHERE TSTITMID=?"
},
"params" : ["PARENTID"],
"cached":true
},
"itemidsection3" : {
"template" : {
"ITEMNAME" : "$ITEMNAME",
"subcategory" : "@itemidsection4"
},
"query" : {
"sql" : "SELECT * FROM TESTITEM_GROUP WHERE TSTITMID=?"
},
"params" : ["PARENTID"],
"cached":true
},
"itemidsection4" : {
"template" : {
"ITEMNAME" : "$ITEMNAME"
},
"query" : {
"sql" : "SELECT * FROM TESTITEM_GROUP WHERE TSTITMID=?"
},
"params" : ["PARENTID"],
"cached":true
}
}