@@ -6,93 +6,93 @@ const updateQuery = `
6
6
LEFT JOIN plantation_details ON forms.id = plantation_details.form_id
7
7
LEFT JOIN form_lands ON forms.id = form_lands.form_id
8
8
SET
9
- forms.form_type = 1,
10
- forms.farmer_name = 'NEW_FARMER_NAME',
11
- forms.age = 'NEW_AGE',
12
- forms.mobile = 9876543210,
13
- forms.district = 'NEW_DISTRICT',
14
- forms.block = 'NEW_BLOCK',
15
- forms.panchayat = 'NEW_PANCHAYAT',
16
- forms.hamlet = 'NEW_HAMLET',
17
- forms.id_type = 'NEW_ID_TYPE',
18
- forms.id_number = 'NEW_ID_NUMBER',
19
- forms.gender = 'NEW_GENDER',
20
- forms.spouse = 'NEW_SPOUSE',
21
- forms.type_of_households = 'NEW_HOUSEHOLD_TYPE',
22
- forms.h_members = 5,
23
- forms.hh_occupation = 'NEW_OCCUPATION',
24
- forms.special_catog = 'NEW_SPECIAL_CAT',
25
- forms.caste = 'NEW_CASTE',
26
- forms.house_owner = 'NEW_OWNER',
27
- forms.type_of_house = 'NEW_HOUSE_TYPE',
28
- forms.drinking_water = 'NEW_DRINK_WATER',
29
- forms.potability = 'NEW_POTABILITY',
30
- forms.domestic_water = 'NEW_DOMESTIC_WATER',
31
- forms.toilet_avail = 'NEW_TOILET_AVAIL',
32
- forms.toilet_cond = 'NEW_TOILET_COND',
33
- forms.household_education = 'NEW_EDUCATION',
34
- forms.user_id = 1,
35
- forms.created_at = '2025-04-16',
36
- forms.lat = 'NEW_LAT',
37
- forms.lon = 'NEW_LON',
38
- forms.mcode = 'NEW_MCODE',
39
- forms.status = 1,
40
- forms.remarks = 'bdjkc',
9
+ forms.form_type = ?,
10
+ forms.farmer_name = ?,
11
+ forms.age = ?,
12
+ forms.mobile = ?,
13
+ forms.district = ?,
14
+ forms.block = ?,
15
+ forms.panchayat = ?,
16
+ forms.hamlet = ?,
17
+ forms.id_type = ?,
18
+ forms.id_number = ?,
19
+ forms.gender = ?,
20
+ forms.spouse = ?,
21
+ forms.type_of_households = ?,
22
+ forms.h_members = ?,
23
+ forms.hh_occupation = ?,
24
+ forms.special_catog = ?,
25
+ forms.caste = ?,
26
+ forms.house_owner = ?,
27
+ forms.type_of_house = ?,
28
+ forms.drinking_water = ?,
29
+ forms.potability = ?,
30
+ forms.domestic_water = ?,
31
+ forms.toilet_avail = ?,
32
+ forms.toilet_cond = ?,
33
+ forms.household_education = ?,
34
+ forms.user_id = ?,
35
+ forms.created_at = ?,
36
+ forms.lat = ?,
37
+ forms.lon = ?,
38
+ forms.mcode = ?,
39
+ forms.status = ?,
40
+ forms.remarks = ?,
41
41
42
- bank_details.account_holder_name = 'NEW_ACCOUNT_HOLDER',
43
- bank_details.account_number = 123456789012,
44
- bank_details.bank_name = 'NEW_BANK_NAME',
45
- bank_details.branch = 'NEW_BRANCH_NAME',
46
- bank_details.ifsc_code = 'NEW_IFSC',
47
- bank_details.farmer_ack = 'NEW_ACK',
42
+ bank_details.account_holder_name = ?,
43
+ bank_details.account_number = ?,
44
+ bank_details.bank_name = ?,
45
+ bank_details.branch = ?,
46
+ bank_details.ifsc_code = ?,
47
+ bank_details.farmer_ack = ?,
48
48
49
- files.identity = 'NEW_IDENTITY_DOC',
50
- files.geotag = 'NEW_GEOTAG_URL',
51
- files.patta = 'NEW_PATTA_DOC',
52
- files.fmb = 'NEW_FMB_DOC',
53
- files.photo = 'NEW_PHOTO_URL',
54
- files.passbook = 'NEW_PASSBOOK_DOC',
55
- files.passbook_postfunding = 'bduhdj',
56
- files.payment_voucher = 'vhdbhej',
49
+ files.identity = ?,
50
+ files.geotag = ?,
51
+ files.patta = ?,
52
+ files.fmb = ?,
53
+ files.photo = ?,
54
+ files.passbook = ?,
55
+ files.passbook_postfunding = ?,
56
+ files.payment_voucher = ?,
57
57
58
- form_lands.ownership = 'NEW_OWNERSHIP',
59
- form_lands.well_irrigation = 'NEW_WELL_IRR',
60
- form_lands.area_irrigated = 'NEW_AREA_IRR',
61
- form_lands.irrigated_lands = 'NEW_IRRIG_LAND',
62
- form_lands.patta = 'NEW_PATTA',
63
- form_lands.total_area = 'NEW_TOT_AREA',
64
- form_lands.taluk = 'NEW_TALUK',
65
- form_lands.firka = 'NEW_FIRKA',
66
- form_lands.revenue = 'NEW_REVENUE',
67
- form_lands.crop_season = 'NEW_CROP_SEASON',
68
- form_lands.livestocks = 'NEW_LIVESTOCK',
69
- form_lands.sf_number = 'NEW_SF_NO',
70
- form_lands.soil_type = 'NEW_SOIL',
71
- form_lands.land_to_benefit = 'NEW_LAND_BENEFIT',
72
- form_lands.date_of_ins = 'NEW_DATE_INS',
73
- form_lands.area_benefited = 'NEW_AREA_BENEFITED',
74
- form_lands.type_of_work = 'NEW_WORK_TYPE',
75
- form_lands.any_other_works = 'NEW_OTHER_WORKS',
76
- form_lands.p_contribution = 'NEW_P_CONTRI',
77
- form_lands.f_contribution = 'NEW_F_CONTRI',
78
- form_lands.total_est = 'NEW_EST_TOTAL',
79
- form_lands.field_insp = 'NEW_INSP',
80
- form_lands.site_app = 'NEW_APP',
81
- form_lands.date_of_app = 'NEW_APP_DATE',
82
- form_lands.area_benefited_postfunding = 'NEW_POSTFUNDING_AREA',
83
- form_lands.verified_by = 'NEW_VERIFIED_BY',
58
+ form_lands.ownership = ?,
59
+ form_lands.well_irrigation = ?,
60
+ form_lands.area_irrigated = ?,
61
+ form_lands.irrigated_lands = ?,
62
+ form_lands.patta = ?,
63
+ form_lands.total_area = ?,
64
+ form_lands.taluk = ?,
65
+ form_lands.firka = ?,
66
+ form_lands.revenue = ?,
67
+ form_lands.crop_season = ?,
68
+ form_lands.livestocks = ?,
69
+ form_lands.sf_number = ?,
70
+ form_lands.soil_type = ?,
71
+ form_lands.land_to_benefit = ?,
72
+ form_lands.date_of_ins = ?,
73
+ form_lands.area_benefited = ?,
74
+ form_lands.type_of_work = ?,
75
+ form_lands.any_other_works = ?,
76
+ form_lands.p_contribution = ?,
77
+ form_lands.f_contribution = ?,
78
+ form_lands.total_est = ?,
79
+ form_lands.field_insp = ?,
80
+ form_lands.site_app = ?,
81
+ form_lands.date_of_app = ?,
82
+ form_lands.area_benefited_postfunding = ?,
83
+ form_lands.verified_by = ?,
84
84
85
- users.name = 'NEW_NAME',
86
- users.email = 'NEW_EMAIL',
87
- users.password = 'NEW_PASSWORD',
88
- users.role = 'NEW_ROLE',
89
- users.mobile = 'NEW_MOBILE',
90
- users.date_of_joining = 'NEW_DATE_OF_JOINING',
91
- users.location = 'NEW_LOCATION',
92
- users.created_at = 'NEW_CREATED_AT',
93
- users.photo = 'NEW_PHOTO_URL'
85
+ users.name = ?,
86
+ users.email = ?,
87
+ users.password = ?,
88
+ users.role = ?,
89
+ users.mobile = ?,
90
+ users.date_of_joining = ?,
91
+ users.location = ?,
92
+ users.created_at = ?,
93
+ users.photo = ?
94
94
95
- WHERE
96
- forms.form_type = '1'
97
- AND forms.id = ?; -- using prepared statement for form_id
95
+ WHERE
96
+ forms.form_type = 1
97
+ AND forms.id = ?;
98
98
` ;
0 commit comments