You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

64 lines
2.2 KiB
Java

package cokr.xit.fims.crdn.web;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import cokr.xit.base.code.CommonCode;
import cokr.xit.base.web.ApplicationController;
import cokr.xit.fims.crdn.CrdnQuery;
import cokr.xit.fims.crdn.service.CrdnService;
import cokr.xit.fims.crdn.service.CrdnStngService;
/** .<br />
* { }/crdn/crdn06 .
* @author leebj
*/
public class Crdn06Controller extends ApplicationController {
@Resource(name="crdnService")
private CrdnService crdnService;
@Resource(name="crdnStngService")
private CrdnStngService crdnStngService;
/** .
* @return fims/crdn/crdn06010-main
*/
public ModelAndView crackdownManagementMain() {
ModelAndView mav = new ModelAndView();
mav.setViewName("fims/crdn/crdn06010-main");
mav.addObject("pageName", "crdn06010-main");
Map<String, List<CommonCode>> commonCodes = getCodesOf("FIM002", "FIM003", "FIM005", "FIM010", "FIM022", "FIM026", "FIM054");
mav.addObject("FIM003List", commonCodes.get("FIM003"));
mav.addObject("FIM005List", commonCodes.get("FIM005"));
mav.addObject("FIM010List", commonCodes.get("FIM010"));
mav.addObject("FIM054List", commonCodes.get("FIM054"));
addCodes(commonCodes, mav, "FIM002", "FIM003", "FIM010", "FIM022", "FIM026");
return mav;
}
/** .<br />
* {@link CrdnService#getCrackdownList(CrdnQuery)}
* @param query
* @return jsonView
* <pre><code> {
* "crdnList": [ ],
* "crdnStart": ,
* "crdnFetchTotal": ,
* "crdnTotal":
* }</code></pre>
*/
@RequestMapping(name="단속자료 목록", value="/010/list.do")
public ModelAndView getCrackdownList(CrdnQuery query) {
setFetchSize(query);
return setCollectionInfo(new ModelAndView("jsonView"), crdnService.getCrackdownList(query),"");
}
}