| | |
| | | pla = excel; |
| | | pla.setStep(2); |
| | | pla.setCreateTime(new Date()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_0); |
| | | pla.setModifyTime(new Date()); |
| | | pla.setStatus(GlobleParameter.PLA_STATUS_00); |
| | | if (!plaService.insert(pla)) { |
| | | throw new CoolException("保存商品信息失败,商品编码:" + excel.getMatnr()); |
| | | } |
| | | total++; |
| | | }else if (pla.getStatus().equals(GlobleParameter.PLA_STATUS_0)){ |
| | | }else if (pla.getStatus().equals(GlobleParameter.PLA_STATUS_00)){ |
| | | excel.setId(pla.getId()); |
| | | excel.setCreateTime(pla.getCreateTime()); |
| | | excel.setModifyTime(pla.getModifyTime()); |
| | | excel.setModifyTime(new Date()); |
| | | excel.setStep(2); |
| | | excel.setStatus(GlobleParameter.PLA_STATUS_0); |
| | | excel.setStatus(GlobleParameter.PLA_STATUS_00); |
| | | BeanUtils.copyProperties(excel,pla); |
| | | plaService.updateById(pla); |
| | | total++; |