|
|
@ -12,6 +12,7 @@ import com.huatek.busi.vo.BusiSensorVo;
|
|
|
|
import com.huatek.busi.vo.generator.BusiGeneratorAmplTypeVo;
|
|
|
|
import com.huatek.busi.vo.generator.BusiGeneratorAmplTypeVo;
|
|
|
|
import com.huatek.torch.frame.tools.ConstantUtil;
|
|
|
|
import com.huatek.torch.frame.tools.ConstantUtil;
|
|
|
|
import com.huatek.torch.frame.tools.ResultUtil;
|
|
|
|
import com.huatek.torch.frame.tools.ResultUtil;
|
|
|
|
|
|
|
|
import com.sun.org.apache.regexp.internal.RE;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
|
import io.swagger.annotations.ApiImplicitParams;
|
|
|
@ -76,6 +77,23 @@ public class BusiSensorController {
|
|
|
|
return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", "");
|
|
|
|
return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", "");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 批量新增 批量生成Sensor编码
|
|
|
|
|
|
|
|
* @param frontCode 前置编码
|
|
|
|
|
|
|
|
* @param code 后面两位数编码
|
|
|
|
|
|
|
|
* @param number 传感器个数
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@PostMapping(value = "/batchAdd", produces = {"application/json;charset=utf-8"})
|
|
|
|
|
|
|
|
public Map<String, Object> batchAdd(
|
|
|
|
|
|
|
|
@RequestBody BusiSensorVo busiSensorVo,
|
|
|
|
|
|
|
|
@RequestParam(value = "frontCode", required = true) String frontCode,
|
|
|
|
|
|
|
|
@RequestParam(value = "code", required = true) String code,
|
|
|
|
|
|
|
|
@RequestParam(value = "number", required = true) String number) {
|
|
|
|
|
|
|
|
busiSensorService.batchAdd(busiSensorVo,frontCode,code,Integer.parseInt(number));
|
|
|
|
|
|
|
|
return ResultUtil.put(ConstantUtil.REQUEST_SUCCESS, "", "");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @Title: update @Description: 修改传感器 @createDate: Jul 18, 2019 3:10:20 PM @param @return Map<String,Object> @throws
|
|
|
|
* @Title: update @Description: 修改传感器 @createDate: Jul 18, 2019 3:10:20 PM @param @return Map<String,Object> @throws
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|