| | |
| | | |
| | | @RequestMapping(value = "/mat/covert/{id}/auth") |
| | | @ManagerAuth |
| | | public R covert(@PathVariable("id") String id) { |
| | | Mat mat = matService.selectByMatnr(String.valueOf(id)); |
| | | public R covert(@PathVariable("id") String id) throws UnsupportedEncodingException{ |
| | | byte[] decode = Base64.getDecoder().decode(id); |
| | | String id2 = new String(decode, "utf-8"); |
| | | Mat mat = matService.selectByMatnr(id2); |
| | | if (mat == null) { |
| | | return R.ok(); |
| | | } |
| | |
| | | datasource: |
| | | driver-class-name: com.microsoft.sqlserver.jdbc.SQLServerDriver |
| | | # url: jdbc:sqlserver://10.10.10.100:1433;databasename=bfasrs |
| | | url: jdbc:sqlserver://192.168.4.13:1433;databasename=bfasrs |
| | | url: jdbc:sqlserver://localhost:1433;databasename=bfasrs |
| | | username: sa |
| | | # password: Zoneyung@zy56$ |
| | | password: sa@123 |
| | |
| | | let item = selectList[i]; |
| | | // 查询物料详情 |
| | | $.ajax({ |
| | | url: baseUrl+"/mat/covert/"+item.value+"/auth", |
| | | url: baseUrl+"/mat/covert/"+btoa(item.value)+"/auth", |
| | | headers: {'token': localStorage.getItem('token')}, |
| | | method: 'GET', |
| | | async: false, |