質問編集履歴
10
情報追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
入力データがnullになってしまう
|
test
CHANGED
@@ -6,16 +6,6 @@
|
|
6
6
|
|
7
7
|
遷移はできているのですがデータがきちんと渡っていないため更新されず悩んでいます。
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
またregistIdを引っ張て来てinsurt.htmlに表示したいのですが
|
12
|
-
|
13
|
-
そのやり方も教えていただきたいです。
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
ネットでサンプルコードを探してみても今やっている内容に当てはめることができず
|
18
|
-
|
19
9
|
自分の力では進めることができないので皆様のお力添えをいただきたいです。
|
20
10
|
|
21
11
|
|
@@ -24,7 +14,7 @@
|
|
24
14
|
|
25
15
|
```
|
26
16
|
|
27
|
-
更新
|
17
|
+
更新されないまま遷移する。
|
28
18
|
|
29
19
|
```
|
30
20
|
|
@@ -38,13 +28,13 @@
|
|
38
28
|
|
39
29
|
/** 情報更新 **/
|
40
30
|
|
41
|
-
@Update("UPDATE TBL_
|
31
|
+
@Update("UPDATE TBL_REGIST SET regist_name=#{uName}, regist_representative=#{uRepre}, regist_tel=#{uTel}, regist_fax=#{uFax}, regist_postalcode=#{uPostal}, regist_address1=#{uA1}, WHERE regist_id = #{uId}")
|
42
32
|
|
43
33
|
void updateSQL01(@Param("uId") String registId, @Param("uName") String uName, @Param("uRepre") String uRepre,
|
44
34
|
|
45
35
|
@Param("uTel") String uTel, @Param("uFax") String uFax, @Param("uPostal") String uPostal,
|
46
36
|
|
47
|
-
@Param("uA1") String uA1
|
37
|
+
@Param("uA1") String uA1);
|
48
38
|
|
49
39
|
```
|
50
40
|
|
@@ -54,7 +44,7 @@
|
|
54
44
|
|
55
45
|
```
|
56
46
|
|
57
|
-
package jp.co.lain.
|
47
|
+
package jp.co.lain.information;
|
58
48
|
|
59
49
|
|
60
50
|
|
@@ -102,18 +92,6 @@
|
|
102
92
|
|
103
93
|
|
104
94
|
|
105
|
-
private String regist_address2;
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
private String regist_address3;
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
private String regist_address4;
|
114
|
-
|
115
|
-
|
116
|
-
|
117
95
|
private Timestamp create_date;
|
118
96
|
|
119
97
|
}
|
@@ -132,76 +110,42 @@
|
|
132
110
|
|
133
111
|
```
|
134
112
|
|
135
|
-
|
113
|
+
|
136
|
-
|
137
|
-
|
114
|
+
|
138
|
-
|
139
|
-
* @param model
|
140
|
-
|
141
|
-
* @param list
|
142
|
-
|
143
|
-
* @return 企業情報更新細面
|
144
|
-
|
145
|
-
*/
|
146
|
-
|
147
|
-
@GetMapping("/
|
115
|
+
@GetMapping("/viewUpdate")
|
148
116
|
|
149
117
|
public String viewUpdate(Model model, RegistForm registId) {
|
150
118
|
|
151
|
-
System.out.println("☆26:");
|
152
|
-
|
153
119
|
|
154
120
|
|
155
121
|
String result = new String();
|
156
122
|
|
157
|
-
System.out.println("☆27:");
|
158
|
-
|
159
123
|
|
160
124
|
|
161
125
|
result = service.updRegistList(registId);
|
162
126
|
|
163
|
-
|
127
|
+
|
164
|
-
|
165
|
-
|
166
128
|
|
167
129
|
model.addAttribute("registForm", registId);
|
168
130
|
|
169
|
-
|
131
|
+
|
170
|
-
|
171
|
-
|
172
|
-
|
132
|
+
|
173
|
-
return "
|
133
|
+
return "information/update";
|
174
134
|
|
175
135
|
}
|
176
136
|
|
177
|
-
|
178
|
-
|
179
|
-
|
137
|
+
|
180
|
-
|
181
|
-
|
138
|
+
|
182
|
-
|
183
|
-
* @param model
|
184
|
-
|
185
|
-
* @param list
|
186
|
-
|
187
|
-
* @return 更新完了画面
|
188
|
-
|
189
|
-
*/
|
190
|
-
|
191
|
-
@PostMapping("/
|
139
|
+
@PostMapping("/viewUpdateComplete")
|
192
140
|
|
193
141
|
public String viewUpdateComplete(Model model, String list) {
|
194
142
|
|
195
|
-
|
143
|
+
|
196
|
-
|
197
|
-
|
198
|
-
|
144
|
+
|
199
|
-
return "
|
145
|
+
return "information/UpdateComplete";
|
200
146
|
|
201
147
|
}
|
202
148
|
|
203
|
-
|
204
|
-
|
205
149
|
}
|
206
150
|
|
207
151
|
```
|
@@ -214,47 +158,17 @@
|
|
214
158
|
|
215
159
|
```
|
216
160
|
|
217
|
-
|
161
|
+
|
218
|
-
|
219
|
-
* 会員情報テーブルに企業情報の更新
|
220
|
-
|
221
|
-
* @return 企業情報更新
|
222
|
-
|
223
|
-
*/
|
224
162
|
|
225
163
|
public String updRegistList(RegistForm registForm) {
|
226
164
|
|
227
|
-
|
165
|
+
|
228
|
-
|
229
|
-
|
230
166
|
|
231
167
|
String result = new String();
|
232
168
|
|
233
|
-
|
169
|
+
|
234
|
-
|
235
|
-
|
170
|
+
|
236
|
-
|
237
|
-
System.out.println("☆24getRegist_tel:" + registForm.getRegist_tel() + "//");
|
238
|
-
|
239
|
-
System.out.println("☆24getRegist_fax:" + registForm.getRegist_fax() + "//");
|
240
|
-
|
241
|
-
System.out.println("☆24getRegist_representative:" + registForm.getRegist_representative() + "//");
|
242
|
-
|
243
|
-
System.out.println("☆24getRegist_postalcode:" + registForm.getRegist_postalcode() + "//");
|
244
|
-
|
245
|
-
System.out.println("☆24getRegist_address1:" + registForm.getRegist_address1() + "//");
|
246
|
-
|
247
|
-
System.out.println("☆24getRegist_address2:" + registForm.getRegist_address2() + "//");
|
248
|
-
|
249
|
-
System.out.println("☆24getRegist_address3:" + registForm.getRegist_address3() + "//");
|
250
|
-
|
251
|
-
System.out.println("☆24getRegist_address4:" + registForm.getRegist_address4() + "//");
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
//ここ
|
256
|
-
|
257
|
-
|
171
|
+
sqlMapper.updateSQL01(
|
258
172
|
|
259
173
|
|
260
174
|
|
@@ -280,10 +194,6 @@
|
|
280
194
|
|
281
195
|
|
282
196
|
|
283
|
-
System.out.println("☆25:");
|
284
|
-
|
285
|
-
|
286
|
-
|
287
197
|
return result;
|
288
198
|
|
289
199
|
|
@@ -314,7 +224,7 @@
|
|
314
224
|
|
315
225
|
<meta charset="UTF-8">
|
316
226
|
|
317
|
-
<title>
|
227
|
+
<title>更新画面</title>
|
318
228
|
|
319
229
|
<script src=“https://yubinbango.github.io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
320
230
|
|
@@ -426,43 +336,9 @@
|
|
426
336
|
|
427
337
|
</tr>
|
428
338
|
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
|
339
|
+
|
434
|
-
|
435
|
-
|
340
|
+
|
436
|
-
|
437
|
-
|
341
|
+
|
438
|
-
|
439
|
-
</tr>
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
<tr>
|
444
|
-
|
445
|
-
<td style="width: 70">住所3</td>
|
446
|
-
|
447
|
-
<td><input type=text size="30" th:field="*{regist_address3}"></input></td>
|
448
|
-
|
449
|
-
</tr>
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
<tr>
|
454
|
-
|
455
|
-
<td style="width: 70">住所4</td>
|
456
|
-
|
457
|
-
<td><input type=text size="30" th:field="*{regist_address4}"></input></td>
|
458
|
-
|
459
|
-
</tr>
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
342
|
|
467
343
|
<tr>
|
468
344
|
|
@@ -482,7 +358,7 @@
|
|
482
358
|
|
483
359
|
<br><br>
|
484
360
|
|
485
|
-
<a th:href="@{/
|
361
|
+
<a th:href="@{/viewCompanyInformationList}">一覧へ戻る</a>
|
486
362
|
|
487
363
|
</form>
|
488
364
|
|
@@ -534,18 +410,12 @@
|
|
534
410
|
|
535
411
|
|
536
412
|
|
413
|
+
<p><a th:href="@{/viewCompanyInformationList}">一覧へ戻る</a></p>
|
414
|
+
|
537
415
|
|
538
416
|
|
539
|
-
|
540
|
-
|
541
|
-
<br><br><br><br><br><br><br>
|
542
|
-
|
543
|
-
<p><a th:href="@{/CIMS/viewCompanyInformationList}">情報一覧へ戻る</a></p>
|
544
|
-
|
545
417
|
|
546
418
|
|
547
|
-
|
548
|
-
|
549
419
|
</div>
|
550
420
|
|
551
421
|
</body>
|
9
情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -316,7 +316,7 @@
|
|
316
316
|
|
317
317
|
<title>情報更新画面</title>
|
318
318
|
|
319
|
-
<script src=“https://yubinbango.github.
|
319
|
+
<script src=“https://yubinbango.github.io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
320
320
|
|
321
321
|
</head>
|
322
322
|
|
8
ページの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -336,7 +336,7 @@
|
|
336
336
|
|
337
337
|
|
338
338
|
|
339
|
-
<form th:action="@{/view
|
339
|
+
<form th:action="@{/viewUpdatetComplete}"
|
340
340
|
|
341
341
|
th:object="${registForm}" method="POST" >
|
342
342
|
|
@@ -498,6 +498,70 @@
|
|
498
498
|
|
499
499
|
|
500
500
|
|
501
|
+
### updateComplete.html
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
```
|
506
|
+
|
507
|
+
<!doctype html>
|
508
|
+
|
509
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
510
|
+
|
511
|
+
<head>
|
512
|
+
|
513
|
+
<meta charset="UTF-8">
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
<title>更新完了画面</title>
|
518
|
+
|
519
|
+
</head>
|
520
|
+
|
521
|
+
<body>
|
522
|
+
|
523
|
+
<div style="text-align: center">
|
524
|
+
|
525
|
+
<h2 style="text-align: center">更新完了</h2>
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
<br>
|
530
|
+
|
531
|
+
更新が完了しました。
|
532
|
+
|
533
|
+
情報一覧へ戻るを押してご確認ください。
|
534
|
+
|
535
|
+
|
536
|
+
|
537
|
+
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
<br><br><br><br><br><br><br>
|
542
|
+
|
543
|
+
<p><a th:href="@{/CIMS/viewCompanyInformationList}">情報一覧へ戻る</a></p>
|
544
|
+
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
</div>
|
550
|
+
|
551
|
+
</body>
|
552
|
+
|
553
|
+
</html>
|
554
|
+
|
555
|
+
|
556
|
+
|
557
|
+
```
|
558
|
+
|
559
|
+
|
560
|
+
|
561
|
+
|
562
|
+
|
563
|
+
|
564
|
+
|
501
565
|
### build.grable
|
502
566
|
|
503
567
|
|
7
ページの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,320 +50,522 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
+
### RegistForm.java
|
54
|
+
|
55
|
+
```
|
56
|
+
|
57
|
+
package jp.co.lain.companyInformation;
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
import java.sql.Timestamp;
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
import lombok.Data;
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
@Data
|
70
|
+
|
71
|
+
public class RegistForm {
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
private String regist_id;
|
78
|
+
|
79
|
+
|
80
|
+
|
81
|
+
private String regist_name;
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
private String regist_tel;
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
private String regist_fax;
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
private String regist_representative;
|
94
|
+
|
95
|
+
|
96
|
+
|
97
|
+
private String regist_postalcode;
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
private String regist_address1;
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
private String regist_address2;
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
private String regist_address3;
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
private String regist_address4;
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
private Timestamp create_date;
|
118
|
+
|
119
|
+
}
|
120
|
+
|
121
|
+
```
|
122
|
+
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
53
129
|
|
54
130
|
|
55
131
|
### Controller
|
56
132
|
|
57
133
|
```
|
58
134
|
|
59
|
-
|
135
|
+
/**
|
60
|
-
|
136
|
+
|
61
|
-
* 情報更新画面を表示。
|
137
|
+
* 企業情報更新画面を表示する。
|
138
|
+
|
62
|
-
|
139
|
+
* @param model
|
140
|
+
|
141
|
+
* @param list
|
142
|
+
|
63
|
-
* @return 情報更新細面
|
143
|
+
* @return 企業情報更新細面
|
144
|
+
|
145
|
+
*/
|
146
|
+
|
147
|
+
@GetMapping("/CIMS/viewUpdate")
|
148
|
+
|
149
|
+
public String viewUpdate(Model model, RegistForm registId) {
|
150
|
+
|
151
|
+
System.out.println("☆26:");
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
String result = new String();
|
156
|
+
|
157
|
+
System.out.println("☆27:");
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
result = service.updRegistList(registId);
|
162
|
+
|
163
|
+
System.out.println("☆28:");
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
model.addAttribute("registForm", registId);
|
168
|
+
|
169
|
+
System.out.println("☆29:");
|
170
|
+
|
171
|
+
|
172
|
+
|
173
|
+
return "companyInformation/update";
|
174
|
+
|
175
|
+
}
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
/**
|
180
|
+
|
181
|
+
* 更新完了画面を表示する。
|
182
|
+
|
183
|
+
* @param model
|
184
|
+
|
185
|
+
* @param list
|
186
|
+
|
187
|
+
* @return 更新完了画面
|
64
188
|
|
65
189
|
*/
|
66
190
|
|
67
|
-
|
68
|
-
|
69
|
-
@
|
191
|
+
@PostMapping("/CIMS/viewUpdateComplete")
|
70
|
-
|
192
|
+
|
71
|
-
public String view
|
193
|
+
public String viewUpdateComplete(Model model, String list) {
|
194
|
+
|
195
|
+
System.out.println("☆30:");
|
72
196
|
|
73
197
|
|
74
198
|
|
199
|
+
return "companyInformation/UpdateComplete";
|
200
|
+
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
```
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
### Service
|
214
|
+
|
215
|
+
```
|
216
|
+
|
217
|
+
/**
|
218
|
+
|
219
|
+
* 会員情報テーブルに企業情報の更新
|
220
|
+
|
221
|
+
* @return 企業情報更新
|
222
|
+
|
223
|
+
*/
|
224
|
+
|
225
|
+
public String updRegistList(RegistForm registForm) {
|
226
|
+
|
227
|
+
System.out.println("☆23:");
|
228
|
+
|
229
|
+
|
230
|
+
|
75
231
|
String result = new String();
|
76
232
|
|
77
|
-
|
233
|
+
System.out.println("☆24getRegist_id:" + registForm.getRegist_id() + "//");
|
234
|
+
|
78
|
-
|
235
|
+
System.out.println("☆24getRegist_name:" + registForm.getRegist_name() + "//");
|
236
|
+
|
237
|
+
System.out.println("☆24getRegist_tel:" + registForm.getRegist_tel() + "//");
|
238
|
+
|
239
|
+
System.out.println("☆24getRegist_fax:" + registForm.getRegist_fax() + "//");
|
240
|
+
|
241
|
+
System.out.println("☆24getRegist_representative:" + registForm.getRegist_representative() + "//");
|
242
|
+
|
243
|
+
System.out.println("☆24getRegist_postalcode:" + registForm.getRegist_postalcode() + "//");
|
244
|
+
|
245
|
+
System.out.println("☆24getRegist_address1:" + registForm.getRegist_address1() + "//");
|
246
|
+
|
247
|
+
System.out.println("☆24getRegist_address2:" + registForm.getRegist_address2() + "//");
|
248
|
+
|
249
|
+
System.out.println("☆24getRegist_address3:" + registForm.getRegist_address3() + "//");
|
250
|
+
|
251
|
+
System.out.println("☆24getRegist_address4:" + registForm.getRegist_address4() + "//");
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
//ここ
|
256
|
+
|
257
|
+
sqlMapper.updateSQL01(
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
registForm.getRegist_id(),
|
262
|
+
|
263
|
+
registForm.getRegist_name(),
|
264
|
+
|
265
|
+
registForm.getRegist_tel(),
|
266
|
+
|
267
|
+
registForm.getRegist_fax(),
|
268
|
+
|
269
|
+
registForm.getRegist_representative(),
|
270
|
+
|
271
|
+
registForm.getRegist_postalcode(),
|
272
|
+
|
273
|
+
registForm.getRegist_address1(),
|
274
|
+
|
275
|
+
registForm.getRegist_address2(),
|
276
|
+
|
277
|
+
registForm.getRegist_address3(),
|
278
|
+
|
79
|
-
|
279
|
+
registForm.getRegist_address4());
|
80
|
-
|
81
|
-
|
82
|
-
|
280
|
+
|
281
|
+
|
282
|
+
|
83
|
-
|
283
|
+
System.out.println("☆25:");
|
284
|
+
|
285
|
+
|
286
|
+
|
287
|
+
return result;
|
288
|
+
|
289
|
+
|
84
290
|
|
85
291
|
}
|
86
292
|
|
87
293
|
|
88
294
|
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
|
299
|
+
```
|
300
|
+
|
301
|
+
|
302
|
+
|
303
|
+
### update.html
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
```
|
308
|
+
|
309
|
+
<!doctype html>
|
310
|
+
|
311
|
+
<html xmlns:th="http://www.thymeleaf.org">
|
312
|
+
|
313
|
+
<head>
|
314
|
+
|
315
|
+
<meta charset="UTF-8">
|
316
|
+
|
317
|
+
<title>情報更新画面</title>
|
318
|
+
|
319
|
+
<script src=“https://yubinbango.github..io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
320
|
+
|
89
|
-
|
321
|
+
</head>
|
90
|
-
|
322
|
+
|
91
|
-
|
323
|
+
<body>
|
324
|
+
|
325
|
+
|
326
|
+
|
92
|
-
|
327
|
+
<div style="text-align: center">
|
328
|
+
|
329
|
+
<h2 style="text-align: center">情報更新</h2>
|
330
|
+
|
331
|
+
<hr style="height: 3; background =color: #0000FF" />
|
332
|
+
|
93
|
-
|
333
|
+
<br> 更新する情報を入力してください。
|
94
|
-
|
95
|
-
|
334
|
+
|
96
|
-
|
335
|
+
|
336
|
+
|
337
|
+
|
338
|
+
|
97
|
-
|
339
|
+
<form th:action="@{/viewInsurtComplete1}"
|
98
|
-
|
99
|
-
|
100
|
-
|
340
|
+
|
101
|
-
|
341
|
+
th:object="${registForm}" method="POST" >
|
342
|
+
|
343
|
+
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
|
102
348
|
|
103
349
|
|
104
350
|
|
351
|
+
<table style="margin: 0 auto">
|
352
|
+
|
353
|
+
|
354
|
+
|
355
|
+
<tr>
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
<td><input type=text size="30" th:field="*{regist_id}" pattern="\d{4}" title="半角数字4桁でご入力ください。" placeholder="例 : 0001" required></input></td>
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
</tr>
|
364
|
+
|
365
|
+
|
366
|
+
|
367
|
+
<tr>
|
368
|
+
|
369
|
+
<td style="width: 60">企業名</td>
|
370
|
+
|
371
|
+
<td><input type=text size="30" th:field="*{regist_name}" placeholder="例 : 株式会社A" required></input></td>
|
372
|
+
|
373
|
+
</tr>
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
<tr>
|
378
|
+
|
379
|
+
<td style="width: 70">電話番号</td>
|
380
|
+
|
381
|
+
<td><input type=tel size="30" th:field="*{regist_tel}" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 090-1234-5678"></input></td>
|
382
|
+
|
383
|
+
</tr>
|
384
|
+
|
385
|
+
|
386
|
+
|
387
|
+
<tr>
|
388
|
+
|
389
|
+
<td style="width: 70">FAX</td>
|
390
|
+
|
391
|
+
<td><input type=tel size="30" th:field="*{regist_fax}" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 080-1234-5678"></input></td>
|
392
|
+
|
393
|
+
</tr>
|
394
|
+
|
395
|
+
|
396
|
+
|
397
|
+
<tr>
|
398
|
+
|
399
|
+
<td style="width: 70">代表者</td>
|
400
|
+
|
401
|
+
<td><input type=text size="30" th:field="*{regist_representative}" pattern="[^\x20-\x7E]*" title="全角でご入力ください。" placeholder="例 : 山田太郎" required></input></td>
|
402
|
+
|
403
|
+
</tr>
|
404
|
+
|
405
|
+
|
406
|
+
|
407
|
+
|
408
|
+
|
409
|
+
<tr>
|
410
|
+
|
411
|
+
<td style="width: 70">郵便番号</td>
|
412
|
+
|
413
|
+
<td><input type=text size="30" th:field="*{regist_postalcode}" pattern="\d{3}-\d{4}" title="3桁の数字、ハイフン、4桁の数字の順でご入力ください。" placeholder="例 : 123-4567"
|
414
|
+
|
415
|
+
onKeyUp="AjaxZip3.zip2addr(this,'','regist_address1','regist_address1');"></input></td>
|
416
|
+
|
417
|
+
</tr>
|
418
|
+
|
419
|
+
|
420
|
+
|
421
|
+
<tr>
|
422
|
+
|
423
|
+
<td style="width: 70">住所1</td>
|
424
|
+
|
425
|
+
<td><input type=text size="30" th:field="*{regist_address1}" placeholder="例 : 埼玉県さいたま市大宮区1-1-1"></input></td>
|
426
|
+
|
427
|
+
</tr>
|
428
|
+
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
|
433
|
+
<tr>
|
434
|
+
|
435
|
+
<td style="width: 70">住所2</td>
|
436
|
+
|
437
|
+
<td><input type=text size="30" th:field="*{regist_address2}"></input></td>
|
438
|
+
|
439
|
+
</tr>
|
440
|
+
|
441
|
+
|
442
|
+
|
443
|
+
<tr>
|
444
|
+
|
445
|
+
<td style="width: 70">住所3</td>
|
446
|
+
|
447
|
+
<td><input type=text size="30" th:field="*{regist_address3}"></input></td>
|
448
|
+
|
449
|
+
</tr>
|
450
|
+
|
451
|
+
|
452
|
+
|
453
|
+
<tr>
|
454
|
+
|
455
|
+
<td style="width: 70">住所4</td>
|
456
|
+
|
457
|
+
<td><input type=text size="30" th:field="*{regist_address4}"></input></td>
|
458
|
+
|
459
|
+
</tr>
|
460
|
+
|
461
|
+
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
|
466
|
+
|
467
|
+
<tr>
|
468
|
+
|
469
|
+
|
470
|
+
|
105
|
-
|
471
|
+
<td colspan=2 style="text-align: center">
|
472
|
+
|
473
|
+
<input type="submit" value="更新"></td>
|
474
|
+
|
475
|
+
|
476
|
+
|
477
|
+
</tr>
|
478
|
+
|
479
|
+
|
480
|
+
|
481
|
+
</table>
|
482
|
+
|
483
|
+
<br><br>
|
484
|
+
|
485
|
+
<a th:href="@{/CIMS/viewCompanyInformationList}">情報一覧へ戻る</a>
|
486
|
+
|
487
|
+
</form>
|
488
|
+
|
489
|
+
</div>
|
490
|
+
|
491
|
+
</body>
|
492
|
+
|
493
|
+
</html>
|
494
|
+
|
495
|
+
|
496
|
+
|
497
|
+
```
|
498
|
+
|
499
|
+
|
500
|
+
|
501
|
+
### build.grable
|
502
|
+
|
503
|
+
|
504
|
+
|
505
|
+
```
|
506
|
+
|
507
|
+
plugins {
|
508
|
+
|
509
|
+
id 'org.springframework.boot' version '2.1.4.RELEASE'
|
510
|
+
|
511
|
+
id 'java'
|
512
|
+
|
513
|
+
}
|
514
|
+
|
515
|
+
|
516
|
+
|
517
|
+
apply plugin: 'io.spring.dependency-management'
|
518
|
+
|
519
|
+
|
520
|
+
|
521
|
+
group = 'com.example'
|
522
|
+
|
523
|
+
version = '0.0.1-SNAPSHOT'
|
524
|
+
|
525
|
+
sourceCompatibility = '1.8'
|
526
|
+
|
527
|
+
|
528
|
+
|
529
|
+
configurations {
|
530
|
+
|
531
|
+
compileOnly {
|
532
|
+
|
533
|
+
extendsFrom annotationProcessor
|
106
534
|
|
107
535
|
}
|
108
536
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
p
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
registForm.getRegist_tel(),
|
146
|
-
|
147
|
-
registForm.getRegist_fax(),
|
148
|
-
|
149
|
-
registForm.getRegist_representative(),
|
150
|
-
|
151
|
-
registForm.getRegist_postalcode(),
|
152
|
-
|
153
|
-
registForm.getRegist_address1(),
|
154
|
-
|
155
|
-
registForm.getRegist_address2(),
|
156
|
-
|
157
|
-
registForm.getRegist_address3(),
|
158
|
-
|
159
|
-
registForm.getRegist_address4());
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
return result;
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
}
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
```
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
### update.html
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
```
|
180
|
-
|
181
|
-
<!doctype html>
|
182
|
-
|
183
|
-
<html xmlns:th="http://www.thymeleaf.org">
|
184
|
-
|
185
|
-
<head>
|
186
|
-
|
187
|
-
<meta charset="UTF-8">
|
188
|
-
|
189
|
-
<title>情報更新画面</title>
|
190
|
-
|
191
|
-
<script src=“https://yubinbango.github..io/yubinbango/yubinbango.js” charset=“UTF-8”></script>
|
192
|
-
|
193
|
-
</head>
|
194
|
-
|
195
|
-
<body>
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
<div style="text-align: center">
|
200
|
-
|
201
|
-
<h2 style="text-align: center">情報更新</h2>
|
202
|
-
|
203
|
-
<hr style="height: 3; background =color: #0000FF" />
|
204
|
-
|
205
|
-
<br> 更新する情報を入力してください。
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
<form th:action="@{/viewInsurtComplete1}"
|
212
|
-
|
213
|
-
th:object="${registForm}" method="POST" >
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
<table style="margin: 0 auto">
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
<tr>
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
<td><input type=text size="30" th:field="*{regist_id}" pattern="\d{4}" title="半角数字4桁でご入力ください。" placeholder="例 : 0001" required></input></td>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
</tr>
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
<tr>
|
240
|
-
|
241
|
-
<td style="width: 60">企業名</td>
|
242
|
-
|
243
|
-
<td><input type=text size="30" th:field="*{regist_name}" placeholder="例 : 株式会社A" required></input></td>
|
244
|
-
|
245
|
-
</tr>
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
<tr>
|
250
|
-
|
251
|
-
<td style="width: 70">電話番号</td>
|
252
|
-
|
253
|
-
<td><input type=tel size="30" th:field="*{regist_tel}" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 090-1234-5678"></input></td>
|
254
|
-
|
255
|
-
</tr>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
<tr>
|
260
|
-
|
261
|
-
<td style="width: 70">FAX</td>
|
262
|
-
|
263
|
-
<td><input type=tel size="30" th:field="*{regist_fax}" pattern="\d{2,4}-\d{3,4}-\d{3,4}" title="半角数字11桁、ハイフンを付けてご入力ください。" placeholder="例 : 080-1234-5678"></input></td>
|
264
|
-
|
265
|
-
</tr>
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
<tr>
|
270
|
-
|
271
|
-
<td style="width: 70">代表者</td>
|
272
|
-
|
273
|
-
<td><input type=text size="30" th:field="*{regist_representative}" pattern="[^\x20-\x7E]*" title="全角でご入力ください。" placeholder="例 : 山田太郎" required></input></td>
|
274
|
-
|
275
|
-
</tr>
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
<tr>
|
282
|
-
|
283
|
-
<td style="width: 70">郵便番号</td>
|
284
|
-
|
285
|
-
<td><input type=text size="30" th:field="*{regist_postalcode}" pattern="\d{3}-\d{4}" title="3桁の数字、ハイフン、4桁の数字の順でご入力ください。" placeholder="例 : 123-4567"
|
286
|
-
|
287
|
-
onKeyUp="AjaxZip3.zip2addr(this,'','regist_address1','regist_address1');"></input></td>
|
288
|
-
|
289
|
-
</tr>
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
<tr>
|
294
|
-
|
295
|
-
<td style="width: 70">住所1</td>
|
296
|
-
|
297
|
-
<td><input type=text size="30" th:field="*{regist_address1}" placeholder="例 : 埼玉県さいたま市大宮区1-1-1"></input></td>
|
298
|
-
|
299
|
-
</tr>
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
<tr>
|
306
|
-
|
307
|
-
<td style="width: 70">住所2</td>
|
308
|
-
|
309
|
-
<td><input type=text size="30" th:field="*{regist_address2}"></input></td>
|
310
|
-
|
311
|
-
</tr>
|
312
|
-
|
313
|
-
|
314
|
-
|
315
|
-
<tr>
|
316
|
-
|
317
|
-
<td style="width: 70">住所3</td>
|
318
|
-
|
319
|
-
<td><input type=text size="30" th:field="*{regist_address3}"></input></td>
|
320
|
-
|
321
|
-
</tr>
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
<tr>
|
326
|
-
|
327
|
-
<td style="width: 70">住所4</td>
|
328
|
-
|
329
|
-
<td><input type=text size="30" th:field="*{regist_address4}"></input></td>
|
330
|
-
|
331
|
-
</tr>
|
332
|
-
|
333
|
-
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
<tr>
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
<td colspan=2 style="text-align: center">
|
344
|
-
|
345
|
-
<input type="submit" value="更新"></td>
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
</tr>
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
</table>
|
354
|
-
|
355
|
-
<br><br>
|
356
|
-
|
357
|
-
<a th:href="@{/CIMS/viewCompanyInformationList}">情報一覧へ戻る</a>
|
358
|
-
|
359
|
-
</form>
|
360
|
-
|
361
|
-
</div>
|
362
|
-
|
363
|
-
</body>
|
364
|
-
|
365
|
-
</html>
|
366
|
-
|
367
|
-
|
368
|
-
|
369
|
-
```
|
537
|
+
}
|
538
|
+
|
539
|
+
|
540
|
+
|
541
|
+
repositories {
|
542
|
+
|
543
|
+
mavenCentral()
|
544
|
+
|
545
|
+
}
|
546
|
+
|
547
|
+
|
548
|
+
|
549
|
+
dependencies {
|
550
|
+
|
551
|
+
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
|
552
|
+
|
553
|
+
implementation 'org.springframework.boot:spring-boot-starter-web'
|
554
|
+
|
555
|
+
implementation 'org.mybatis.spring.boot:mybatis-spring-boot-starter:2.0.1'
|
556
|
+
|
557
|
+
compileOnly 'org.projectlombok:lombok'
|
558
|
+
|
559
|
+
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
560
|
+
|
561
|
+
runtimeOnly 'com.h2database:h2'
|
562
|
+
|
563
|
+
annotationProcessor 'org.projectlombok:lombok'
|
564
|
+
|
565
|
+
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
566
|
+
|
567
|
+
}
|
568
|
+
|
569
|
+
|
570
|
+
|
571
|
+
```
|
6
ページの追加
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
Springbootで
|
1
|
+
Springbootで入力データがnullになってしまう
|
test
CHANGED
File without changes
|
5
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -226,7 +226,7 @@
|
|
226
226
|
|
227
227
|
<tr>
|
228
228
|
|
229
|
-
|
229
|
+
|
230
230
|
|
231
231
|
<td><input type=text size="30" th:field="*{regist_id}" pattern="\d{4}" title="半角数字4桁でご入力ください。" placeholder="例 : 0001" required></input></td>
|
232
232
|
|
4
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -172,7 +172,7 @@
|
|
172
172
|
|
173
173
|
|
174
174
|
|
175
|
-
###
|
175
|
+
### update.html
|
176
176
|
|
177
177
|
|
178
178
|
|
3
情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -50,6 +50,8 @@
|
|
50
50
|
|
51
51
|
|
52
52
|
|
53
|
+
|
54
|
+
|
53
55
|
### Controller
|
54
56
|
|
55
57
|
```
|
2
情報追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -170,7 +170,7 @@
|
|
170
170
|
|
171
171
|
|
172
172
|
|
173
|
-
### ins
|
173
|
+
### insert.html
|
174
174
|
|
175
175
|
|
176
176
|
|
1
誤字修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -112,7 +112,7 @@
|
|
112
112
|
|
113
113
|
|
114
114
|
|
115
|
-
### Sr
|
115
|
+
### Service
|
116
116
|
|
117
117
|
```
|
118
118
|
|
@@ -348,9 +348,7 @@
|
|
348
348
|
|
349
349
|
|
350
350
|
|
351
|
-
</table>
|
351
|
+
</table>
|
352
|
-
|
353
|
-
|
354
352
|
|
355
353
|
<br><br>
|
356
354
|
|