| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.Arrays; |
| | | import java.util.List; |
| | |
| | | Material material = ActionUtil.getGson().fromJson(materialStr, Material.class); |
| | | return service.updatePicOrDwg(file,material); |
| | | } |
| | | |
| | | @PostMapping("checkNaming") |
| | | @ApiOperation("命名规范校验") |
| | | public void checkNaming( HttpServletResponse response,@RequestParam MultipartFile file) throws IOException, InvalidFormatException { |
| | | service.checkNaming(file.getInputStream(),response); |
| | | } |
| | | |
| | | @ApiOperation("物料推送弹窗使用") |
| | | @GetMapping("getMaterialDialog") |
| | | public Response getMaterialDialog(@RequestParam String subCode,@RequestParam String subName,@RequestParam String subModel) { |
| | | return service.getMaterialDialog(subCode,subName,subModel); |
| | | } |
| | | } |