質問編集履歴
2
説明分の編集
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
```service
|
22
22
|
|
23
|
-
public List<
|
23
|
+
public List<User> search(UserForm form) throws Exception {
|
24
24
|
|
25
|
-
List <
|
25
|
+
List <User> result = UserRepository.findList(form.getBlNm(), form.getRoNo());
|
26
26
|
|
27
27
|
}
|
28
28
|
|
1
誤字
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,41 +16,13 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
```Java
|
20
|
-
|
21
|
-
@Repository
|
22
|
-
|
23
|
-
public interface MUnitRepository extends JpaRepository<MUnit, Long> {
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
@Query(value ="SELECT mu.unitId,mb.bldgId,mb.bldgNm,mu.roomNo,mu.layoutNum,mu.layoutKbn,mu.exclusiveArea,mu.floor,mb.builtYm,mp.prefNm,mc.cityNm,mb.town "
|
30
|
-
|
31
|
-
+ "FROM MUnit mu "
|
32
|
-
|
33
|
-
+ "INNER JOIN MBldg mb ON mu.bldgId = mb.bldgId "
|
34
|
-
|
35
|
-
+ "LEFT JOIN MBldgSta bs ON bs.bldgId = mb.bldgId "
|
36
|
-
|
37
|
-
+ "LEFT JOIN MPref mp ON mb.prefId = mp.prefId "
|
38
|
-
|
39
|
-
+ "LEFT JOIN MCity mc ON mb.cityId = mc.cityId")
|
40
|
-
|
41
|
-
public List<MUnit> findList(String bldgNm,String roomNo,String prefNm, String cityNm, String town,String cho);
|
42
|
-
|
43
|
-
}
|
44
|
-
|
45
|
-
```
|
46
|
-
|
47
19
|
|
48
20
|
|
49
21
|
```service
|
50
22
|
|
51
|
-
public List<MUnit> search(U
|
23
|
+
public List<MUnit> search(UForm form) throws Exception {
|
52
24
|
|
53
|
-
List <MUnit> result = mU
|
25
|
+
List <MUnit> result = mURepository.findList(form.getBlNm(), form.getRoNo(), form.getPrNm(),form.getCiNm(), form.getTown(),);
|
54
26
|
|
55
27
|
}
|
56
28
|
|
@@ -59,21 +31,3 @@
|
|
59
31
|
}
|
60
32
|
|
61
33
|
```
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
```controller
|
66
|
-
|
67
|
-
@RequestMapping(path = "search", method = RequestMethod.GET)
|
68
|
-
|
69
|
-
//検索メソッド
|
70
|
-
|
71
|
-
public String search(UnitForm form,Model model) throws Exception {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
return JsonUtil.convSearchData(unitService.search(form));
|
76
|
-
|
77
|
-
}
|
78
|
-
|
79
|
-
```
|