| | |
| | | if (!pictureRowSet.isEmpty() && pictureRowSet.contains(k)) { |
| | | |
| | | PictureData pictureData = pictureDataMap.get(k); |
| | | //判断物料型号是否包含非法字符(图片会转化为路径) |
| | | if(bom.getSubModel()!=null) { |
| | | String regexStr = "[\\/*?\"|:<>\t]"; |
| | | boolean matches = Pattern.compile(regexStr).matcher(bom.getSubModel()).find(); |
| | | if (matches) { |
| | | return response.set(1, false, "型号为"+bom.getSubModel()+"的物料包含非法字符:\\/*?\"|:<>或前置空格"); |
| | | } |
| | | } |
| | | //图片存储 product_submit/username/2022-07/ |
| | | String approvingPath = rootFile + File.separator + "product_submit" + File.separator + user.getName() + File.separator + dateFormat + File.separator + timeStamp; |
| | | File provingFile = new File(approvingPath); |
| | |
| | | List<MaterialHistory> materialHistoryList = new LinkedList<>(); |
| | | //新物料 |
| | | List<Material> newMaterialList = new LinkedList<>(); |
| | | //已经存在的物料 |
| | | //判断物料是否已经存在于物料表中 |
| | | List<Material> materialUpdateList = new LinkedList<>(); |
| | | for (ProductBom bom : bomList) { |
| | | if (!subCodeList.contains(bom.getSubCode() + "/" + bom.getSubModel())) { |
| | |
| | | return new Response().setIII(1,listMaterial.size()>0||listProduct.size()>0,listMaterial,listProduct,""); |
| | | } |
| | | |
| | | //反馈管理-查询当前使用的所有的产品 |
| | | //反馈管理-查询所有的产品 |
| | | public Response getFkProduct() { |
| | | QueryWrapper wrapper=new QueryWrapper(); |
| | | wrapper.ne("version",-1); |
| | | List list=mapper.selectList(wrapper); |
| | | return new Response().setII(1,list.size()>0,list,"反馈管理-查询当前使用的所有的产品"); |
| | | //QueryWrapper wrapper=new QueryWrapper(); |
| | | //wrapper.ne("version",-1); |
| | | List list=mapper.selectList(null); |
| | | return new Response().setII(1,list.size()>0,list,"反馈管理-查询所有的产品"); |
| | | } |
| | | |
| | | //产品对比下拉选中 |