| | |
| | | import com.ruoyi.production.service.ProductParameterService; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | } |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addProductParameter(ProductParameterDto productParameter) { |
| | | boolean save = this.save(productParameter); |
| | | if (save) { |
| | | String no = "BP." + String.format("%06d", productParameter.getId()); |
| | | String no = "BP" + String.format("%06d", productParameter.getId()); |
| | | productParameter.setCode(no); |
| | | this.updateById(productParameter); |
| | | } |