|
|
@ -12,6 +12,7 @@ import cokr.xit.base.user.ManagedUser;
|
|
|
|
import cokr.xit.base.user.dao.UserMapper;
|
|
|
|
import cokr.xit.base.user.dao.UserMapper;
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
import cokr.xit.base.web.ApplicationController;
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
import cokr.xit.fims.crdn.CrdnQuery;
|
|
|
|
|
|
|
|
import cokr.xit.fims.crdn.Team;
|
|
|
|
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
|
|
|
|
import cokr.xit.fims.crdn.dao.GlobalStngMapper;
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnStngService;
|
|
|
|
import cokr.xit.fims.crdn.service.CrdnStngService;
|
|
|
|
|
|
|
|
|
|
|
@ -29,6 +30,7 @@ public class Crdn07Controller extends ApplicationController {
|
|
|
|
, getTeamList = "/010/list.do"
|
|
|
|
, getTeamList = "/010/list.do"
|
|
|
|
, getRemovedTeamList = "/010/removedTeamList.do"
|
|
|
|
, getRemovedTeamList = "/010/removedTeamList.do"
|
|
|
|
, removeTeamInfo = "/010/remove.do"
|
|
|
|
, removeTeamInfo = "/010/remove.do"
|
|
|
|
|
|
|
|
, saveTeamInfo = "/010/save.do"
|
|
|
|
, getTeamInfo = "/010/info.do"
|
|
|
|
, getTeamInfo = "/010/info.do"
|
|
|
|
;
|
|
|
|
;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -110,6 +112,30 @@ public class Crdn07Controller extends ApplicationController {
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** 단속팀 정보를 저장한다.
|
|
|
|
|
|
|
|
* {@link CrdnStngService#saveTeamInfo(team)} 참고
|
|
|
|
|
|
|
|
* @param team 단속팀 정보
|
|
|
|
|
|
|
|
* @return jsonView
|
|
|
|
|
|
|
|
* <pre><code> {
|
|
|
|
|
|
|
|
* "saved": 저장되었으면 true, 그렇지 않으면 false
|
|
|
|
|
|
|
|
* }</code></pre>
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
public ModelAndView saveTeamInfo(Team team) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean saved = false;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute());
|
|
|
|
|
|
|
|
String curDeptCode = currentUser.getDeptCode();
|
|
|
|
|
|
|
|
String sggCd = globalStngMapper.selectSggCd(curDeptCode);
|
|
|
|
|
|
|
|
team.setSggCd(sggCd);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
saved = crdnStngService.saveTeamInfo(team);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new ModelAndView("jsonView")
|
|
|
|
|
|
|
|
.addObject("saved", saved);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**단속팀 정보를 조회한다.<br />
|
|
|
|
/**단속팀 정보를 조회한다.<br />
|
|
|
|
* {@link CrdnStngService#getTeamInfo(String)} 참고
|
|
|
|
* {@link CrdnStngService#getTeamInfo(String)} 참고
|
|
|
|
* @param crdn 단속
|
|
|
|
* @param crdn 단속
|
|
|
|