| | |
| | | package com.consum.base.core; |
| | | |
| | | import com.consum.base.core.utils.IdUtil; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Propagation; |
| | |
| | | get(sql, new SqlParameter().put("CODE_PREFIX", CODE_PREFIX), new BaseCodeIndexing()); |
| | | if (codeIndexing == null) { |
| | | codeIndexing = new BaseCodeIndexing(); |
| | | codeIndexing.setId(NumberGenerator.getLongSequenceNumber()); |
| | | codeIndexing.setId(IdUtil.generateId()); |
| | | codeIndexing.setCodePrefix(CODE_PREFIX); |
| | | codeIndexing.setCodeIndex(1); |
| | | insert(codeIndexing); |