|  |  | 
 |  |  |         if (Cools.isEmpty(mat) || null==mat.getId()){ | 
 |  |  |             return R.error(); | 
 |  |  |         } | 
 |  |  |         String oldMatnr = matService.getOldMatnr(mat.getId()); | 
 |  |  |         mat.setUpdateBy(getUserId()); | 
 |  |  |         mat.setUpdateTime(new Date()); | 
 |  |  |         matService.updateById(mat); | 
 |  |  |  | 
 |  |  |         return R.ok(); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | 
 |  |  |         } | 
 |  |  |         OrderDetl orderDetl = new OrderDetl(); | 
 |  |  |         orderDetl.sync(mat); | 
 |  |  |         orderDetl.setStandby1(mat.getSupp()); | 
 |  |  |         orderDetl.setStandby2(mat.getSku()); | 
 |  |  |         orderDetl.setAnfme(0.0D); | 
 |  |  |         return R.ok().add(orderDetl); | 
 |  |  |     } | 
 |  |  | 
 |  |  |             print.setBarcode(mat.getBarcode()); | 
 |  |  |             print.setMaktx(mat.getMaktx()); | 
 |  |  |             print.setSpecs(mat.getSpecs()); | 
 |  |  |             print.setSupp(mat.getSupp()); | 
 |  |  |             print.setSku(mat.getSku()); | 
 |  |  |             print.setUnit(mat.getUnit()); | 
 |  |  |             print.setMemo(mat.getMemo()); | 
 |  |  |             res.add(print); |