Przeglądaj źródła

git-svn-id: https://192.168.57.71/svn/jsgkj@1025 931142cf-59ea-a443-aa0e-51397b428577

xt_yuanxd 8 lat temu
rodzic
commit
a374457346

+ 15 - 18
gkaqv2/trunk/modules/web/src/main/java/com/xt/js/gkaq/web/ctl/BwCtl.java

@@ -9,22 +9,19 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 
 import com.xt.js.gkaq.common.BaseCtl;
-import com.xt.js.gkaq.dwxx.model.JyrjcxxInfol;
-import com.xt.js.gkaq.dwxx.model.JyrjcxxModel;
 import com.xt.js.gkaq.frame.service.CodeService;
 import com.xt.js.gkaq.web.model.BwInfoModel;
 import com.xt.js.gkaq.web.model.BwModel;
 import com.xt.js.gkaq.web.service.BwService;
 import com.xt.js.gkaq.web.vo.BwVo;
-import com.xt.js.gkaq.web.vo.JyrjcxxVo;
 import com.yuanxd.tools.pagehelper.PageHelper;
 import com.yuanxd.tools.pagehelper.PageInfo;
 
 @Controller
 @RequestMapping(value = "/bw", produces = "application/json; charset=utf-8")
 public class BwCtl extends BaseCtl {
-	@Autowired
-	private BwService bwService;
+    @Autowired
+    private BwService bwService;
     @Autowired
     private CodeService codeService;
     
@@ -36,19 +33,19 @@ public class BwCtl extends BaseCtl {
     @RequestMapping("list")
     @ResponseBody
     public PageInfo<BwInfoModel> list(BwVo vo) {
-		if (null == vo.getPage() || vo.getPage() < 1) {
-			vo.setPage(1);
-		}
-		if (null == vo.getRows() || vo.getRows() < 1) {
-			vo.setRows(1);
-		}
-		PageHelper.startPage(vo.getPage(), vo.getRows());
-		BwModel model = new BwModel();
-		BeanUtils.copyProperties(vo, model);
-		
-		List<BwInfoModel> list = bwService.selectInfo(model);
-		PageInfo<BwInfoModel> pageResult = new PageInfo<>(list);
-		return pageResult;
+        if (null == vo.getPage() || vo.getPage() < 1) {
+            vo.setPage(1);
+        }
+        if (null == vo.getRows() || vo.getRows() < 1) {
+            vo.setRows(1);
+        }
+        PageHelper.startPage(vo.getPage(), vo.getRows());
+        BwModel model = new BwModel();
+        BeanUtils.copyProperties(vo, model);
+        
+        List<BwInfoModel> list = bwService.selectInfo(model);
+        PageInfo<BwInfoModel> pageResult = new PageInfo<>(list);
+        return pageResult;
     }
   
 }