用户列表用户详情页,新增设备,摄像头,解绑设备,厂家管理,电子厂信息页,电子厂信息修改页,修改电子厂数据

This commit is contained in:
谢洪龙
2017-08-04 13:33:33 +08:00
parent 58f923f8b4
commit f79b7df185
21 changed files with 2122 additions and 907 deletions
@@ -0,0 +1,97 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ifish.controller;
import com.ifish.helper.FactoryHelperI;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;
/**
*
* @author Administrator
*/
@Controller
public class Factory {
@Autowired
private FactoryHelperI factoryHelperI;
/**
* 电子厂列表页面
*
* @return
*/
@RequestMapping(value = {"/factorylist"}, method = RequestMethod.GET)
public ModelAndView getFactoryListView() {
return factoryHelperI.getFactoryListView();
}
/**
* 电子厂列表数据
*
* @param draw
* @param start
* @param length
* @return
*/
@RequestMapping(value = {"/factorylistData"}, method = RequestMethod.POST)
@ResponseBody
public Object getFactoryListData(String draw, Integer start, Integer length) {
return factoryHelperI.getFactoryListData(draw, start, length);
}
/**
* 修改电子厂信息是否收税
*
* @param code
* @param isTax
* @return
*/
@RequestMapping(value = {"/updateFactoryIsTax"}, method = RequestMethod.POST, produces = " text/html;charset=utf-8")
@ResponseBody
public Object updateFactoryIsTax(String code, String isTax) {
return factoryHelperI.changeFactoryIsTax(code, isTax);
}
/**
* 修改电子厂信息页面
*
* @return
*/
@RequestMapping(value = {"/updateFactoryDetail"}, method = RequestMethod.GET)
public ModelAndView updateFactoryDetail(String code) {
return factoryHelperI.updateFactoryDetail(code);
}
/**
* 修改电子厂
*
* @return
*/
@RequestMapping(value = {"/updateFactory"}, method = RequestMethod.POST, produces = " text/html;charset=utf-8")
@ResponseBody
public Object updateFactory(String[] brandCodes, String[] hardwareTypes, String factoryName, String factoryCode) {
return factoryHelperI.updateFactory(brandCodes, hardwareTypes, factoryName, factoryCode);
}
/**
* 删除电子厂
*
* @param code
* @return
*/
@RequestMapping(value = {"/deleteFactory"}, method = RequestMethod.POST, produces = " text/html;charset=utf-8")
@ResponseBody
public Object deleteFactory(String code) {
return factoryHelperI.deleteFactory(code);
}
}