외사장비 > 사용실적 결재 > 사용실적 조회 및 결재 저장 오류 수정.
parent
a53ed90757
commit
d8ee817fac
|
|
@ -59,10 +59,8 @@ public class ApproveServiceImpl implements ApproveService {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public HashMap<String, Object> insert(final ApproveVO dataVO,
|
public HashMap<String, Object> insert(final ApproveVO dataVO, final Map<String, MultipartFile> fileMap) throws Exception {
|
||||||
final Map<String, MultipartFile> fileMap) throws Exception {
|
|
||||||
HashMap<String, Object> result = new HashMap<String, Object>();
|
HashMap<String, Object> result = new HashMap<String, Object>();
|
||||||
|
|
||||||
// 이미 결재 내역이 있으면 결재하지 않는다.
|
// 이미 결재 내역이 있으면 결재하지 않는다.
|
||||||
ApproveVO vo = select(dataVO);
|
ApproveVO vo = select(dataVO);
|
||||||
if (vo == null) {
|
if (vo == null) {
|
||||||
|
|
|
||||||
|
|
@ -431,10 +431,8 @@ public class EquipmentController {
|
||||||
public String approve(final ApproveVO approveVO, final Model model) throws Exception {
|
public String approve(final ApproveVO approveVO, final Model model) throws Exception {
|
||||||
HashMap<String, Object> result = approveService.insert(approveVO, null);
|
HashMap<String, Object> result = approveService.insert(approveVO, null);
|
||||||
if ("1".equals(result.get("result").toString())) {
|
if ("1".equals(result.get("result").toString())) {
|
||||||
return String
|
return String.format("redirect:/equip/useStateWaiting.do?police=%s&year=%s&quater=%s",
|
||||||
.format("redirect:/equip/useStateWaiting.do?police=%s&year=%s&quater=%s",
|
approveVO.getPolice(), approveVO.getYear(), approveVO.getQuater());
|
||||||
approveVO.getPolice(), approveVO.getYear(),
|
|
||||||
approveVO.getQuater());
|
|
||||||
}
|
}
|
||||||
return useStateApprove(approveVO, model);
|
return useStateApprove(approveVO, model);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue