mirror of
https://github.com/suhf/No1WMS.git
synced 2026-02-05 04:03:45 +09:00
#update
ResetPasswordController.java ResetPasswordMapper.java ResetPasswordService.java ResetPasswordMapper.xml resetpassword/list.jsp
This commit is contained in:
@@ -17,15 +17,22 @@ public class ResetPasswordController {
|
||||
@Autowired
|
||||
ResetPasswordService resetPasswordService;
|
||||
|
||||
/*GetMapping("/list")
|
||||
@GetMapping("/list")
|
||||
public String list(@RequestParam(name = "searchn", defaultValue = "0") int searchn,
|
||||
@RequestParam(name = "search", defaultValue = "") String search,
|
||||
@RequestParam(name = "p", defaultValue = "1") int page, Model m) {
|
||||
@RequestParam(name = "p", defaultValue = "1") int page, String resetpassword, String cancelrequest, Model m) {
|
||||
int count = resetPasswordService.count(searchn, search);
|
||||
|
||||
int perPage = 10; // 한 페이지에 보일 글의 갯수
|
||||
int startRow = (page - 1) * perPage;
|
||||
|
||||
if(resetpassword != null){
|
||||
|
||||
}
|
||||
if(cancelrequest != null){
|
||||
|
||||
}
|
||||
|
||||
//스톡서비스로 재고 리스트 출력 메서트 작성
|
||||
List<Map<String, Object>> dto = resetPasswordService.list(searchn, search, startRow ,perPage);
|
||||
m.addAttribute("rlist", dto);
|
||||
@@ -51,8 +58,8 @@ public class ResetPasswordController {
|
||||
System.out.println("테스트 : : " + m);
|
||||
|
||||
|
||||
return "out/list";
|
||||
}*/
|
||||
return "resetpassword/list";
|
||||
}
|
||||
|
||||
@PostMapping("/insert")
|
||||
@ResponseBody
|
||||
|
||||
@@ -3,13 +3,22 @@ package com.no1.wms.resetpassword;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Repository
|
||||
@Mapper
|
||||
public interface ResetPasswordMapper {
|
||||
|
||||
List<Map<String, Object>> list(Map<String, Object> m);
|
||||
|
||||
int count(Map<String, Object> m);
|
||||
|
||||
void insert(ResetPasswordDto dto);
|
||||
|
||||
void delete(ResetPasswordDto dto);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -3,12 +3,39 @@ package com.no1.wms.resetpassword;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
public class ResetPasswordService {
|
||||
|
||||
@Autowired
|
||||
ResetPasswordMapper mapper;
|
||||
|
||||
public int count(int searchn, String search) {
|
||||
|
||||
Map<String,Object> m = new HashMap<String, Object>();
|
||||
m.put("searchn",searchn);
|
||||
m.put("search", search);
|
||||
return mapper.count(m);
|
||||
}
|
||||
|
||||
|
||||
public List<Map<String, Object>> list(int searchn, String search, int start, int perPage){
|
||||
|
||||
System.out.println(searchn+search);
|
||||
|
||||
Map<String, Object> m = new HashMap<String, Object>();
|
||||
m.put("searchn",searchn);
|
||||
m.put("search", search);
|
||||
m.put("start", start);
|
||||
m.put("perPage", perPage);
|
||||
|
||||
return mapper.list(m);
|
||||
|
||||
}
|
||||
|
||||
void insert(ResetPasswordDto dto){
|
||||
mapper.insert(dto);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user