|  |  |  | 
|---|
|  |  |  | import com.zy.asrs.entity.MatCodePrint; | 
|---|
|  |  |  | import com.zy.asrs.service.MatCodeService; | 
|---|
|  |  |  | import com.zy.common.CodeRes; | 
|---|
|  |  |  | import com.zy.common.config.AdminInterceptor; | 
|---|
|  |  |  | import com.zy.common.utils.BarcodeUtils; | 
|---|
|  |  |  | import com.zy.common.utils.QrCode; | 
|---|
|  |  |  | import com.zy.common.utils.excel.matcode.MatCodeExcel; | 
|---|
|  |  |  | 
|---|
|  |  |  | public R find(@RequestParam("id") String id) { | 
|---|
|  |  |  | return R.ok(matCodeService.selectById(String.valueOf(id))); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @RequestMapping(value = "/matCode/list/auth") | 
|---|
|  |  |  | @ManagerAuth | 
|---|
|  |  |  | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | // 打印 | 
|---|
|  |  |  | @RequestMapping(value = "/macCode/print/auth") | 
|---|
|  |  |  | @RequestMapping(value = "/matCode/print/auth") | 
|---|
|  |  |  | @ManagerAuth(memo = "物料编码打印") | 
|---|
|  |  |  | public R matCodePrint(@RequestParam(value = "param[]") String[] param) { | 
|---|
|  |  |  | if(Cools.isEmpty(param)) { | 
|---|
|  |  |  | 
|---|
|  |  |  | public R matCodeBarcode(@RequestParam(defaultValue = "1") Integer type | 
|---|
|  |  |  | , @RequestParam String param | 
|---|
|  |  |  | , HttpServletResponse response) throws Exception { | 
|---|
|  |  |  | AdminInterceptor.cors(response); | 
|---|
|  |  |  | if (Cools.isEmpty(param)){ | 
|---|
|  |  |  | return R.parse(BaseRes.EMPTY); | 
|---|
|  |  |  | } | 
|---|