|
|
|
|
@ -1,16 +1,11 @@
|
|
|
|
|
package com.flossom.miniProgram.controller;
|
|
|
|
|
|
|
|
|
|
import com.flossom.common.core.domain.R;
|
|
|
|
|
import com.flossom.common.core.exception.ServiceException;
|
|
|
|
|
import com.flossom.common.core.utils.StringUtils;
|
|
|
|
|
import com.flossom.common.core.web.controller.BaseController;
|
|
|
|
|
import com.flossom.common.core.web.domain.AjaxResult;
|
|
|
|
|
import com.flossom.miniProgram.service.IWxInstrumentService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
import javax.validation.Valid;
|
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
@ -26,6 +21,15 @@ public class WxInstrumentController extends BaseController {
|
|
|
|
|
@Autowired
|
|
|
|
|
private IWxInstrumentService wxInstrumentService;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 获取仪器列表
|
|
|
|
|
*/
|
|
|
|
|
@GetMapping(value = "/getInstrumentInfoList")
|
|
|
|
|
public R getInstrumentInfoList() {
|
|
|
|
|
return R.ok(wxInstrumentService.getInstrumentInfoList());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 根据序列号获取仪器信息
|
|
|
|
|
*
|
|
|
|
|
|